text1
stringlengths
0
536k
text2
stringlengths
0
536k
label
int64
0
1
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV = 4.5.0</li> <li>Operating System / Platform =&gt; Raspbian 32 Bit</li> <li>Compiler =&gt; Visual Studio 2017</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">This is my program:<br> import cv2<br> img = cv2.imread('test.png',1)<br> cv2.imshow('Camera Capture', img)</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/35594203/97256254-8b16ae80-184d-11eb-8914-62d7b1f0b4dc.png"><img src="https://user-images.githubusercontent.com/35594203/97256254-8b16ae80-184d-11eb-8914-62d7b1f0b4dc.png" alt="image" style="max-width: 100%;"></a><br> When i run this program, it will prompt "error: (-2:Unspecified error) Can't initialize GTK backend in function 'cvInitSystem'"<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/35594203/97256316-ada8c780-184d-11eb-8fa5-d7d527a3e6c3.png"><img src="https://user-images.githubusercontent.com/35594203/97256316-ada8c780-184d-11eb-8fa5-d7d527a3e6c3.png" alt="image" style="max-width: 100%;"></a></p>
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 3.4</li> <li>Operating System / Platform =&gt; aarch64 (debian based OS)</li> <li>Compiler =&gt; g++ 8.3.0</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">I have opencv as an external dependency that I compile from source like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ExternalProject_Add(opencv GIT_REPOSITORY https://github.com/opencv/opencv GIT_TAG &quot;3.4&quot; SOURCE_DIR opencv BINARY_DIR opencv-build CMAKE_ARGS -DCMAKE_BUILD_TYPE=RELEASE -DFORCE_VTK=ON -DWITH_TBB=ON -DWITH_V4L=ON -DWITH_QT=OFF -DWITH_GTK_2_x=ON -DWITH_OPENGL=ON -DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/opencv_install ) set(OPENCV_INCLUDE_DIR ${CMAKE_BINARY_DIR}/opencv_install/include/) set(OPENCV_LIBRARY_DIR ${CMAKE_BINARY_DIR}/opencv_install/lib/) set(OPENCV_LIBRARIES opencv_imgproc opencv_core opencv_highgui opencv_video opencv_videoio opencv_imgcodecs opencv_features2d) if(EXISTS &quot;${CMAKE_BINARY_DIR}/opencv_install/share/OpenCV/OpenCVConfig.cmake&quot;) include(${CMAKE_BINARY_DIR}/opencv_install/share/OpenCV/OpenCVConfig.cmake) add_custom_target(rerun) else() add_custom_target(rerun ${CMAKE_COMMAND} ${CMAKE_SOURCE_DIR} DEPENDS opencv) endif()"><pre class="notranslate"><code class="notranslate">ExternalProject_Add(opencv GIT_REPOSITORY https://github.com/opencv/opencv GIT_TAG "3.4" SOURCE_DIR opencv BINARY_DIR opencv-build CMAKE_ARGS -DCMAKE_BUILD_TYPE=RELEASE -DFORCE_VTK=ON -DWITH_TBB=ON -DWITH_V4L=ON -DWITH_QT=OFF -DWITH_GTK_2_x=ON -DWITH_OPENGL=ON -DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/opencv_install ) set(OPENCV_INCLUDE_DIR ${CMAKE_BINARY_DIR}/opencv_install/include/) set(OPENCV_LIBRARY_DIR ${CMAKE_BINARY_DIR}/opencv_install/lib/) set(OPENCV_LIBRARIES opencv_imgproc opencv_core opencv_highgui opencv_video opencv_videoio opencv_imgcodecs opencv_features2d) if(EXISTS "${CMAKE_BINARY_DIR}/opencv_install/share/OpenCV/OpenCVConfig.cmake") include(${CMAKE_BINARY_DIR}/opencv_install/share/OpenCV/OpenCVConfig.cmake) add_custom_target(rerun) else() add_custom_target(rerun ${CMAKE_COMMAND} ${CMAKE_SOURCE_DIR} DEPENDS opencv) endif() </code></pre></div> <p dir="auto">Everything compiles just fine until I run the program, an error like this appears:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="terminate called after throwing an instance of 'cv::Exception' what(): OpenCV(3.4.12-pre) /media/sd/nam-detect/edgetpu-detection-camera/build/opencv/modules/highgui/src/window_gtk.cpp:624: error: (-2:Unspecified error) Can't initialize GTK backend in function 'cvInitSystem' Aborted"><pre class="notranslate"><code class="notranslate">terminate called after throwing an instance of 'cv::Exception' what(): OpenCV(3.4.12-pre) /media/sd/nam-detect/edgetpu-detection-camera/build/opencv/modules/highgui/src/window_gtk.cpp:624: error: (-2:Unspecified error) Can't initialize GTK backend in function 'cvInitSystem' Aborted </code></pre></div> <p dir="auto">libgtk2 is definitely installed:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ sudo apt search libgtk2.0-dev Sorting... Done Full Text Search... Done libgtk2.0-dev/eagle,now 2.24.32-3 arm64 [installed] development files for the GTK+ library"><pre class="notranslate"><code class="notranslate">$ sudo apt search libgtk2.0-dev Sorting... Done Full Text Search... Done libgtk2.0-dev/eagle,now 2.24.32-3 arm64 [installed] development files for the GTK+ library </code></pre></div> <h5 dir="auto">Steps to reproduce</h5> <p dir="auto">This code, which used to works without issue: <a href="https://github.com/Namburger/edgetpu-detection-camera">https://github.com/Namburger/edgetpu-detection-camera</a><br> We are only seeing this behavior on one of the system o_0</p> <p dir="auto">Any suggestion would be highly appreciated!</p>
1
<p dir="auto">Code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="macro_rules! macro_ { ($t:ty) =&gt; { #[test] fn test() { } } } struct Foo; struct Bar; macro_!(Foo); macro_!(Bar);"><pre class="notranslate"><code class="notranslate">macro_rules! macro_ { ($t:ty) =&gt; { #[test] fn test() { } } } struct Foo; struct Bar; macro_!(Foo); macro_!(Bar); </code></pre></div> <p dir="auto">Error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="a.rs:4:9: 4:22 error: duplicate definition of value `test` [E0428] a.rs:4 fn test() { } ^~~~~~~~~~~~~ a.rs:1:1: 6:2 note: in expansion of macro_! a.rs:11:1: 11:14 note: expansion site a.rs:4:9: 4:22 help: run `rustc --explain E0428` to see a detailed explanation a.rs:4:9: 4:22 note: first definition of value `test` here a.rs:4 fn test() { } ^~~~~~~~~~~~~ a.rs:1:1: 6:2 note: in expansion of macro_! a.rs:10:1: 10:14 note: expansion site error: aborting due to previous error"><pre class="notranslate"><code class="notranslate">a.rs:4:9: 4:22 error: duplicate definition of value `test` [E0428] a.rs:4 fn test() { } ^~~~~~~~~~~~~ a.rs:1:1: 6:2 note: in expansion of macro_! a.rs:11:1: 11:14 note: expansion site a.rs:4:9: 4:22 help: run `rustc --explain E0428` to see a detailed explanation a.rs:4:9: 4:22 note: first definition of value `test` here a.rs:4 fn test() { } ^~~~~~~~~~~~~ a.rs:1:1: 6:2 note: in expansion of macro_! a.rs:10:1: 10:14 note: expansion site error: aborting due to previous error </code></pre></div>
<p dir="auto">TaskBuilder::spawn() is causing a "conditional jump or move depends on uninitialized values(s)" error in valgrind.</p> <p dir="auto"><code class="notranslate">fn main() { spawn(proc() {}) }</code><br> Is the absolute minimum required to reproduce, and the error message is still present if a TaskBuilder is created and TaskBuilder::spawn() is called directly. Tested on <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rust-lang/rust/commit/18c451fc497a23944b7b759cca5ff0b0be1122fd/hovercard" href="https://github.com/rust-lang/rust/commit/18c451fc497a23944b7b759cca5ff0b0be1122fd"><tt>18c451f</tt></a> (most recent master as of this post).</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: 0.2.0</li> <li>Operating System version: linux</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>xxx</li> <li>xxx</li> <li>xxx</li> </ol> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">What do you expected from the above steps?</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">What actually happens?</p> <p dir="auto">If there is an exception, please attach the exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here! Caused by: org.springframework.boot.context.properties.ConfigurationPropertiesBindException: Error creating bean with name 'spring.redis-org.springframework.boot.autoconfigure.data.redis.RedisProperties': Could not bind properties to 'RedisProperties' : prefix=spring.redis, ignoreInvalidFields=false, ignoreUnknownFields=true; nested exception is java.lang.IllegalStateException: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@1b0375b3 has been closed already at org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.bind(ConfigurationPropertiesBindingPostProcessor.java:110) at org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.postProcessBeforeInitialization(ConfigurationPropertiesBindingPostProcessor.java:93) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:419) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1737) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:576) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:498) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:273) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1237) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1164) at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:857) at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:760) ... 59 more Caused by: java.lang.IllegalStateException: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@1b0375b3 has been closed already at org.springframework.context.support.AbstractApplicationContext.assertBeanFactoryActive(AbstractApplicationContext.java:1067) at org.springframework.context.support.AbstractApplicationContext.getBeanProvider(AbstractApplicationContext.java:1112) at org.springframework.boot.context.properties.ConfigurationPropertiesBinder.getBindHandlerAdvisors(ConfigurationPropertiesBinder.java:138) at org.springframework.boot.context.properties.ConfigurationPropertiesBinder.getBindHandler(ConfigurationPropertiesBinder.java:130) at org.springframework.boot.context.properties.ConfigurationPropertiesBinder.bind(ConfigurationPropertiesBinder.java:82) at org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.bind(ConfigurationPropertiesBindingPostProcessor.java:107) ... 73 more at com.alibaba.dubbo.rpc.filter.ExceptionFilter.invoke(ExceptionFilter.java:106) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) at com.alibaba.dubbo.monitor.support.MonitorFilter.invoke(MonitorFilter.java:75) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) at com.alibaba.dubbo.rpc.filter.TimeoutFilter.invoke(TimeoutFilter.java:42) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) at com.alibaba.dubbo.rpc.protocol.dubbo.filter.TraceFilter.invoke(TraceFilter.java:78) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) at com.alibaba.dubbo.rpc.filter.ContextFilter.invoke(ContextFilter.java:72) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) at com.alibaba.dubbo.rpc.filter.GenericFilter.invoke(GenericFilter.java:131) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) at com.alibaba.dubbo.rpc.filter.ClassLoaderFilter.invoke(ClassLoaderFilter.java:38) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) at com.alibaba.dubbo.rpc.filter.EchoFilter.invoke(EchoFilter.java:38) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol$1.reply(DubboProtocol.java:103) at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.handleRequest(HeaderExchangeHandler.java:96) at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.received(HeaderExchangeHandler.java:172) at com.alibaba.dubbo.remoting.transport.DecodeHandler.received(DecodeHandler.java:51) at com.alibaba.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.run(ChannelEventRunnable.java:80) 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 class="notranslate"><code class="notranslate">Just put your stack trace here! Caused by: org.springframework.boot.context.properties.ConfigurationPropertiesBindException: Error creating bean with name 'spring.redis-org.springframework.boot.autoconfigure.data.redis.RedisProperties': Could not bind properties to 'RedisProperties' : prefix=spring.redis, ignoreInvalidFields=false, ignoreUnknownFields=true; nested exception is java.lang.IllegalStateException: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@1b0375b3 has been closed already at org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.bind(ConfigurationPropertiesBindingPostProcessor.java:110) at org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.postProcessBeforeInitialization(ConfigurationPropertiesBindingPostProcessor.java:93) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:419) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1737) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:576) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:498) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:273) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1237) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1164) at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:857) at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:760) ... 59 more Caused by: java.lang.IllegalStateException: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@1b0375b3 has been closed already at org.springframework.context.support.AbstractApplicationContext.assertBeanFactoryActive(AbstractApplicationContext.java:1067) at org.springframework.context.support.AbstractApplicationContext.getBeanProvider(AbstractApplicationContext.java:1112) at org.springframework.boot.context.properties.ConfigurationPropertiesBinder.getBindHandlerAdvisors(ConfigurationPropertiesBinder.java:138) at org.springframework.boot.context.properties.ConfigurationPropertiesBinder.getBindHandler(ConfigurationPropertiesBinder.java:130) at org.springframework.boot.context.properties.ConfigurationPropertiesBinder.bind(ConfigurationPropertiesBinder.java:82) at org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.bind(ConfigurationPropertiesBindingPostProcessor.java:107) ... 73 more at com.alibaba.dubbo.rpc.filter.ExceptionFilter.invoke(ExceptionFilter.java:106) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) at com.alibaba.dubbo.monitor.support.MonitorFilter.invoke(MonitorFilter.java:75) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) at com.alibaba.dubbo.rpc.filter.TimeoutFilter.invoke(TimeoutFilter.java:42) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) at com.alibaba.dubbo.rpc.protocol.dubbo.filter.TraceFilter.invoke(TraceFilter.java:78) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) at com.alibaba.dubbo.rpc.filter.ContextFilter.invoke(ContextFilter.java:72) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) at com.alibaba.dubbo.rpc.filter.GenericFilter.invoke(GenericFilter.java:131) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) at com.alibaba.dubbo.rpc.filter.ClassLoaderFilter.invoke(ClassLoaderFilter.java:38) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) at com.alibaba.dubbo.rpc.filter.EchoFilter.invoke(EchoFilter.java:38) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol$1.reply(DubboProtocol.java:103) at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.handleRequest(HeaderExchangeHandler.java:96) at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.received(HeaderExchangeHandler.java:172) at com.alibaba.dubbo.remoting.transport.DecodeHandler.received(DecodeHandler.java:51) at com.alibaba.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.run(ChannelEventRunnable.java:80) 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>
<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.x</li> <li>Operating System version: win 10/linux</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <p dir="auto">the session config of ZK registry is invalid. When create zookeeper client In AbstractZookeeperTransporter.class there is a filter. It will persist only two parameters for example timeout and backup. And it does not deal session time out with CuratorFrameworkFactory.Builder.</p> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">What do you expected from the above steps?</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">What actually happens?</p> <p dir="auto">If there is an exception, please attach the exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here! </code></pre></div>
0
<p dir="auto">I am testing the latest VS Code insiders build (Version 0.10.10-insider (0.10.10-insider)). With the introduction of the new Salsa JS language service, "Goto symbol" no longer works for JS files with old module pattern (anonymous closure) or with AMD modules. I understand that, as documented, Salsa can't resolve AMD references, but it should recognise the symbols inside the file.</p> <p dir="auto">Here's an example how it works in the latest stable build:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/10324676/13567580/b645f394-e464-11e5-9499-801bb63e52ec.png"><img src="https://cloud.githubusercontent.com/assets/10324676/13567580/b645f394-e464-11e5-9499-801bb63e52ec.png" alt="screen shot 2016-03-07 at 12 57 55" style="max-width: 100%;"></a></p> <p dir="auto">and here's with Salsa:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/10324676/13567577/b413af4e-e464-11e5-8607-a3e1f3225c5c.png"><img src="https://cloud.githubusercontent.com/assets/10324676/13567577/b413af4e-e464-11e5-8607-a3e1f3225c5c.png" alt="screen shot 2016-03-07 at 12 57 37" style="max-width: 100%;"></a></p>
<p dir="auto"><em>From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/warpdesign/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/warpdesign">@warpdesign</a> on February 17, 2016 11:21</em></p> <p dir="auto">I have activated salsa and when activated, some symbols cannot be found anymore in ES5 files.</p> <p dir="auto">For example, if I have a a file with only:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function toto() { }"><pre class="notranslate"><code class="notranslate">function toto() { } </code></pre></div> <p dir="auto">Typing <code class="notranslate">@toto</code>will work and highlight the toto function.</p> <p dir="auto">But if I wrap the code into a closure, it doesn't work anymore:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/199648/13107988/b5b09720-d570-11e5-8e1a-9a00e8c5984b.jpg"><img src="https://cloud.githubusercontent.com/assets/199648/13107988/b5b09720-d570-11e5-8e1a-9a00e8c5984b.jpg" alt="salsa" style="max-width: 100%;"></a></p> <p dir="auto">Without salsa, it works as expected, highlighting the toto function even if it is wrapped into a closure.</p> <p dir="auto">Code 0.10.8<br> Windows 10</p> <p dir="auto"><em>Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="134253446" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/3079" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/3079/hovercard" href="https://github.com/microsoft/vscode/issues/3079">microsoft/vscode#3079</a></em></p>
1
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: [Versión 10.0.18363.900] PowerToys version: V0.19.2 (and V0.19.1) PowerToy module for which you are reporting the bug (if applicable):Keyboard Manager"><pre class="notranslate"><code class="notranslate">Windows build number: [Versión 10.0.18363.900] PowerToys version: V0.19.2 (and V0.19.1) PowerToy module for which you are reporting the bug (if applicable):Keyboard Manager </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Map keys:</p> <ul dir="auto"> <li>[Play/Pause Media(Fn+F6)] -&gt; [F6]</li> <li>[F6] -&gt; [Play/Pause Media(Fn+F6)]</li> </ul> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Play and pause media with a single click on the F6 key =)</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">The map works just fine while inside the powertoys setting window. When change the window to another one or close de powertoys setting the [Play/Pause Media] don't trigger, the [F6(Fn+F6)] works fine instead.</p>
<h1 dir="auto">Summary of the new feature/enhancement</h1> <ul dir="auto"> <li>I want to map 'Print Screen' single button to run a shortcut 'Win Key + Print Screen'. To take screenshot with single key.</li> <li>Remap keys only allow one key as source and target.</li> <li>Remap shortcuts doesn't allow source to be one key which is in my example 'Print Screen'</li> <li>Either add a new section for map key to shortcut. Or allow the Remap shortcuts to have source doesn't start by a modifier key.</li> </ul>
0
<p dir="auto">Hi,</p> <p dir="auto">First of all, thank you for a great library that I'm using almost daily. I have recently updated seaborn to the latest version, and I'm now facing a bug that I did not have before. When a dataset is missing x/hue pairs, using pointplot will throw a ValueError. See minimal example below:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="cols = [&quot;Judgment&quot;, &quot;Target&quot;, &quot;WTP&quot;] vals = np.array([ ['Certain (Separate)', '$100 Gift Card', 72], ['Certain (Separate)', '$50 Gift Card', 39], ['Uncertain (In Lottery)', '$100 Gift Card', 42], ['Uncertain (In Lottery)', '$50 Gift Card', 21], ['Uncertain (In Lottery)', '50/50 Lottery', 28], # This &quot;Target&quot; value does not exist for other &quot;Judgments&quot; ['Uncertain (Separate)', '$100 Gift Card', 61], ['Uncertain (Separate)', '$50 Gift Card', 33] ]) data = pd.DataFrame(vals, columns=cols).astype({'WTP': 'float32'}) sns.pointplot( x=&quot;Judgment&quot;, y=&quot;WTP&quot;, hue=&quot;Target&quot;, data=data )"><pre class="notranslate"><span class="pl-s1">cols</span> <span class="pl-c1">=</span> [<span class="pl-s">"Judgment"</span>, <span class="pl-s">"Target"</span>, <span class="pl-s">"WTP"</span>] <span class="pl-s1">vals</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([ [<span class="pl-s">'Certain (Separate)'</span>, <span class="pl-s">'$100 Gift Card'</span>, <span class="pl-c1">72</span>], [<span class="pl-s">'Certain (Separate)'</span>, <span class="pl-s">'$50 Gift Card'</span>, <span class="pl-c1">39</span>], [<span class="pl-s">'Uncertain (In Lottery)'</span>, <span class="pl-s">'$100 Gift Card'</span>, <span class="pl-c1">42</span>], [<span class="pl-s">'Uncertain (In Lottery)'</span>, <span class="pl-s">'$50 Gift Card'</span>, <span class="pl-c1">21</span>], [<span class="pl-s">'Uncertain (In Lottery)'</span>, <span class="pl-s">'50/50 Lottery'</span>, <span class="pl-c1">28</span>], <span class="pl-c"># This "Target" value does not exist for other "Judgments"</span> [<span class="pl-s">'Uncertain (Separate)'</span>, <span class="pl-s">'$100 Gift Card'</span>, <span class="pl-c1">61</span>], [<span class="pl-s">'Uncertain (Separate)'</span>, <span class="pl-s">'$50 Gift Card'</span>, <span class="pl-c1">33</span>] ]) <span class="pl-s1">data</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>(<span class="pl-s1">vals</span>, <span class="pl-s1">columns</span><span class="pl-c1">=</span><span class="pl-s1">cols</span>).<span class="pl-en">astype</span>({<span class="pl-s">'WTP'</span>: <span class="pl-s">'float32'</span>}) <span class="pl-s1">sns</span>.<span class="pl-en">pointplot</span>( <span class="pl-s1">x</span><span class="pl-c1">=</span><span class="pl-s">"Judgment"</span>, <span class="pl-s1">y</span><span class="pl-c1">=</span><span class="pl-s">"WTP"</span>, <span class="pl-s1">hue</span><span class="pl-c1">=</span><span class="pl-s">"Target"</span>, <span class="pl-s1">data</span><span class="pl-c1">=</span><span class="pl-s1">data</span> )</pre></div> <p dir="auto">Throws: ValueError: Invalid RGBA argument: 0.6274509803921569</p> <p dir="auto">My intuition is that Seaborn expects a "balanced" dataset in which all x/hue pairs exists, but I'm not sure how to fix it.</p>
<p dir="auto">Hi guys,</p> <p dir="auto">I recently updated python packages, and it broke my script running under python 3.8. Sadly, I don't have a list of the previous versions. I try to reinstall fresh on python 3.9, but the problem persists. Both on Mac OS 10.15 and Windows 10. Here are the versions presently used:</p> <blockquote> <p dir="auto">Python 3.9.0<br> matplotlib==3.3.3<br> seaborn==0.11.0</p> </blockquote> <p dir="auto">When plotting a <code class="notranslate">pointplot</code> with sparse data, depending of the shape of the data, the plot is not completely generated, ending with the following <code class="notranslate">ValueError: Invalid RGBA argument: ...</code>, I suppose having to do with some of the graphical elements.</p> <h3 dir="auto">Working Example</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import pandas as pd import seaborn as sns # initialize some sparse data data = {'Type':['A2', 'A2','A2','A2','A2', 'A3', 'A3','A3','A4','A4','A4','A4'], 'Period':['2018', 'a','2019', 'b', '2020', '2018', 'a','2020','2018','a','2019','b'], 'value':[4, 4.2, 4.1, 4.3,4.1, 3, 3.5,3.2, 2.8,2.5,2.4,2.7]} df = pd.DataFrame(data) print(df) # do pointplot g = sns.pointplot(x='Period',y='value',hue='Type',data=df)"><pre class="notranslate"><code class="notranslate">import pandas as pd import seaborn as sns # initialize some sparse data data = {'Type':['A2', 'A2','A2','A2','A2', 'A3', 'A3','A3','A4','A4','A4','A4'], 'Period':['2018', 'a','2019', 'b', '2020', '2018', 'a','2020','2018','a','2019','b'], 'value':[4, 4.2, 4.1, 4.3,4.1, 3, 3.5,3.2, 2.8,2.5,2.4,2.7]} df = pd.DataFrame(data) print(df) # do pointplot g = sns.pointplot(x='Period',y='value',hue='Type',data=df) </code></pre></div> <p dir="auto">This works, and the result if following:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" Type Period value 0 A2 2018 4.0 1 A2 a 4.2 2 A2 2019 4.1 3 A2 b 4.3 4 A2 2020 4.1 5 A3 2018 3.0 6 A3 a 3.5 7 A3 2020 3.2 8 A4 2018 2.8 9 A4 a 2.5 10 A4 2019 2.4 11 A4 b 2.7"><pre class="notranslate"><code class="notranslate"> Type Period value 0 A2 2018 4.0 1 A2 a 4.2 2 A2 2019 4.1 3 A2 b 4.3 4 A2 2020 4.1 5 A3 2018 3.0 6 A3 a 3.5 7 A3 2020 3.2 8 A4 2018 2.8 9 A4 a 2.5 10 A4 2019 2.4 11 A4 b 2.7 </code></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/48928957/101200174-38a78980-3666-11eb-98ec-16535e08b188.png"><img src="https://user-images.githubusercontent.com/48928957/101200174-38a78980-3666-11eb-98ec-16535e08b188.png" alt="Unknown" style="max-width: 100%;"></a></p> <h3 dir="auto">Selection of subset that works</h3> <p dir="auto">Now, if I try to select a subset of the data to display using the parameter <code class="notranslate">order</code>, sometimes it works, sometimes not...<br> It seems that any combination of 2 or 4 elements works, such as</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="g = sns.pointplot(x='Period',y='value',hue='Type',data=df, order=['2018','a','2019','2020']) g = sns.pointplot(x='Period',y='value',hue='Type',data=df, order=['2018','a','b','2019']) g = sns.pointplot(x='Period',y='value',hue='Type',data=df, order=['2019','b','a','2020']) g = sns.pointplot(x='Period',y='value',hue='Type',data=df, order=['2018','2020']"><pre class="notranslate"><code class="notranslate">g = sns.pointplot(x='Period',y='value',hue='Type',data=df, order=['2018','a','2019','2020']) g = sns.pointplot(x='Period',y='value',hue='Type',data=df, order=['2018','a','b','2019']) g = sns.pointplot(x='Period',y='value',hue='Type',data=df, order=['2019','b','a','2020']) g = sns.pointplot(x='Period',y='value',hue='Type',data=df, order=['2018','2020'] </code></pre></div> <h3 dir="auto">Selection of subset that <em>does NOT</em> work</h3> <p dir="auto">But when I try to select 3 elements, trouble arises. Any of those command will give the same error.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="g = sns.pointplot(x='Period',y='value',hue='Type',data=df, order=['2018','2019','2020']) g = sns.pointplot(x='Period',y='value',hue='Type',data=df, order=['a','b','2020']) g = sns.pointplot(x='Period',y='value',hue='Type',data=df, order=['2018','b','2019'])"><pre class="notranslate"><code class="notranslate">g = sns.pointplot(x='Period',y='value',hue='Type',data=df, order=['2018','2019','2020']) g = sns.pointplot(x='Period',y='value',hue='Type',data=df, order=['a','b','2020']) g = sns.pointplot(x='Period',y='value',hue='Type',data=df, order=['2018','b','2019']) </code></pre></div> <p dir="auto">I tried simply removing the unwanted data from <code class="notranslate">df</code>, it still doesn't work:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="g = sns.pointplot(x='Period',y='value',hue='Type', data=df[df['Period'].isin(['2018','2019','2020'])])"><pre class="notranslate"><code class="notranslate">g = sns.pointplot(x='Period',y='value',hue='Type', data=df[df['Period'].isin(['2018','2019','2020'])]) </code></pre></div> <p dir="auto">The problem also seems to be limited to <code class="notranslate">pointplot</code>, as others plots apparently work well:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="g = sns.lineplot(x='Period',y='value',hue='Type', data=df[df['Period'].isin(['2018','2019','2020'])]) g = sns.scatterplot(x='Period',y='value',hue='Type', data=df[df['Period'].isin(['2018','2019','2020'])]) g = sns.barplot(x='Period',y='value',hue='Type',data=df, order=['2018','2019','2020'])"><pre class="notranslate"><code class="notranslate">g = sns.lineplot(x='Period',y='value',hue='Type', data=df[df['Period'].isin(['2018','2019','2020'])]) g = sns.scatterplot(x='Period',y='value',hue='Type', data=df[df['Period'].isin(['2018','2019','2020'])]) g = sns.barplot(x='Period',y='value',hue='Type',data=df, order=['2018','2019','2020']) </code></pre></div> <p dir="auto">I try to lookup online to find a solution, but couldn't seem to find anything.</p> <h3 dir="auto">Error log</h3> <blockquote> <hr> <p dir="auto">ValueError Traceback (most recent call last)<br> in <br> ----&gt; 1 g = sns.pointplot(x='Period',y='value',hue='Type',data=df,<br> 2 order=['b','2019','2020']<br> 3 )</p> <p dir="auto">/usr/local/lib/python3.9/site-packages/seaborn/_decorators.py in inner_f(*args, **kwargs)<br> 44 )<br> 45 kwargs.update({k: arg for k, arg in zip(sig.parameters, args)})<br> ---&gt; 46 return f(**kwargs)<br> 47 return inner_f<br> 48</p> <p dir="auto">/usr/local/lib/python3.9/site-packages/seaborn/categorical.py in pointplot(x, y, hue, data, order, hue_order, estimator, ci, n_boot, units, seed, markers, linestyles, dodge, join, scale, orient, color, palette, errwidth, capsize, ax, **kwargs)<br> 3368 ax = plt.gca()<br> 3369<br> -&gt; 3370 plotter.plot(ax)<br> 3371 return ax<br> 3372</p> <p dir="auto">/usr/local/lib/python3.9/site-packages/seaborn/categorical.py in plot(self, ax)<br> 1786 def plot(self, ax):<br> 1787 """Make the plot."""<br> -&gt; 1788 self.draw_points(ax)<br> 1789 self.annotate_axes(ax)<br> 1790 if self.orient == "h":</p> <p dir="auto">/usr/local/lib/python3.9/site-packages/seaborn/categorical.py in draw_points(self, ax)<br> 1779 x = y = [np.nan] * n_points<br> 1780<br> -&gt; 1781 ax.scatter(x, y, label=hue_level,<br> 1782 facecolor=color, edgecolor=color,<br> 1783 linewidth=mew, marker=marker, s=markersize,</p> <p dir="auto">/usr/local/lib/python3.9/site-packages/matplotlib/<strong>init</strong>.py in inner(ax, data, *args, **kwargs)<br> 1445 def inner(ax, *args, data=None, **kwargs):<br> 1446 if data is None:<br> -&gt; 1447 return func(ax, *map(sanitize_sequence, args), **kwargs)<br> 1448<br> 1449 bound = new_sig.bind(ax, *args, **kwargs)</p> <p dir="auto">/usr/local/lib/python3.9/site-packages/matplotlib/cbook/deprecation.py in wrapper(*inner_args, **inner_kwargs)<br> 409 else deprecation_addendum,<br> 410 **kwargs)<br> --&gt; 411 return func(*inner_args, **inner_kwargs)<br> 412<br> 413 return wrapper</p> <p dir="auto">/usr/local/lib/python3.9/site-packages/matplotlib/axes/_axes.py in scatter(self, x, y, s, c, marker, cmap, norm, vmin, vmax, alpha, linewidths, verts, edgecolors, plotnonfinite, **kwargs)<br> 4486 offsets = np.ma.column_stack([x, y])<br> 4487<br> -&gt; 4488 collection = mcoll.PathCollection(<br> 4489 (path,), scales,<br> 4490 facecolors=colors,</p> <p dir="auto">/usr/local/lib/python3.9/site-packages/matplotlib/collections.py in <strong>init</strong>(self, paths, sizes, **kwargs)<br> 951 """<br> 952<br> --&gt; 953 super().<strong>init</strong>(**kwargs)<br> 954 self.set_paths(paths)<br> 955 self.set_sizes(sizes)</p> <p dir="auto">/usr/local/lib/python3.9/site-packages/matplotlib/cbook/deprecation.py in wrapper(*inner_args, **inner_kwargs)<br> 409 else deprecation_addendum,<br> 410 **kwargs)<br> --&gt; 411 return func(*inner_args, **inner_kwargs)<br> 412<br> 413 return wrapper</p> <p dir="auto">/usr/local/lib/python3.9/site-packages/matplotlib/collections.py in <strong>init</strong>(self, edgecolors, facecolors, linewidths, linestyles, capstyle, joinstyle, antialiaseds, offsets, transOffset, norm, cmap, pickradius, hatch, urls, offset_position, zorder, **kwargs)<br> 173 self._hatch_color = mcolors.to_rgba(mpl.rcParams['hatch.color'])<br> 174 self.set_facecolor(facecolors)<br> --&gt; 175 self.set_edgecolor(edgecolors)<br> 176 self.set_linewidth(linewidths)<br> 177 self.set_linestyle(linestyles)</p> <p dir="auto">/usr/local/lib/python3.9/site-packages/matplotlib/collections.py in set_edgecolor(self, c)<br> 828 """<br> 829 self._original_edgecolor = c<br> --&gt; 830 self._set_edgecolor(c)<br> 831<br> 832 def set_alpha(self, alpha):</p> <p dir="auto">/usr/local/lib/python3.9/site-packages/matplotlib/collections.py in _set_edgecolor(self, c)<br> 812 except AttributeError:<br> 813 pass<br> --&gt; 814 self._edgecolors = mcolors.to_rgba_array(c, self._alpha)<br> 815 if set_hatch_color and len(self._edgecolors):<br> 816 self._hatch_color = tuple(self._edgecolors[0])</p> <p dir="auto">/usr/local/lib/python3.9/site-packages/matplotlib/colors.py in to_rgba_array(c, alpha)<br> 339 return np.zeros((0, 4), float)<br> 340 else:<br> --&gt; 341 return np.array([to_rgba(cc, alpha) for cc in c])<br> 342<br> 343</p> <p dir="auto">/usr/local/lib/python3.9/site-packages/matplotlib/colors.py in (.0)<br> 339 return np.zeros((0, 4), float)<br> 340 else:<br> --&gt; 341 return np.array([to_rgba(cc, alpha) for cc in c])<br> 342<br> 343</p> <p dir="auto">/usr/local/lib/python3.9/site-packages/matplotlib/colors.py in to_rgba(c, alpha)<br> 187 rgba = None<br> 188 if rgba is None: # Suppress exception chaining of cache lookup failure.<br> --&gt; 189 rgba = _to_rgba_no_colorcycle(c, alpha)<br> 190 try:<br> 191 _colors_full_map.cache[c, alpha] = rgba</p> <p dir="auto">/usr/local/lib/python3.9/site-packages/matplotlib/colors.py in _to_rgba_no_colorcycle(c, alpha)<br> 261 # tuple color.<br> 262 if not np.iterable(c):<br> --&gt; 263 raise ValueError(f"Invalid RGBA argument: {orig_c!r}")<br> 264 if len(c) not in [3, 4]:<br> 265 raise ValueError("RGBA sequence should have length 3 or 4")</p> <p dir="auto">ValueError: Invalid RGBA argument: 0.054901960784313725</p> </blockquote>
1
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/2004" rel="nofollow">http://projects.scipy.org/numpy/ticket/2004</a> on 2011-12-23 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/charris/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/charris">@charris</a>, assigned to unknown.</em></p> <p dir="auto">To wit:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [13]: x = ones(5, maskna=1) In [14]: x[2] = NA In [15]: x.astype(double) --------------------------------------------------------------------------- ValueError Traceback (most recent call last) /home/charris/&lt;ipython-input-15-c95438174230&gt; in &lt;module&gt;() ----&gt; 1 x.astype(double) ValueError: Cannot assign NA to an array which does not support NAs"><pre class="notranslate"><code class="notranslate">In [13]: x = ones(5, maskna=1) In [14]: x[2] = NA In [15]: x.astype(double) --------------------------------------------------------------------------- ValueError Traceback (most recent call last) /home/charris/&lt;ipython-input-15-c95438174230&gt; in &lt;module&gt;() ----&gt; 1 x.astype(double) ValueError: Cannot assign NA to an array which does not support NAs </code></pre></div> <p dir="auto">I suspect the easiest thing to do here is propagate the MASKNA flag.</p>
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/1973" rel="nofollow">http://projects.scipy.org/numpy/ticket/1973</a> on 2011-11-04 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bsouthey/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bsouthey">@bsouthey</a>, assigned to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pierregm/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pierregm">@pierregm</a>.</em></p> <p dir="auto">I get an error when displaying a masked array that contains the new missing value, np.NA under 64-bit Linux. But the operations seem to work as expected.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; import numpy as np &gt;&gt;&gt; np.__version__ '2.0.0.dev-7297785' &gt;&gt;&gt; b=np.ma.array([3,5,np.NA,6], mask=[0,0,1,0]) &gt;&gt;&gt; b Traceback (most recent call last): File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt; File &quot;/usr/lib64/python2.7/site-packages/numpy/ma/core.py&quot;, line 3551, in __repr__ data=str(self), mask=str(self._mask), File &quot;/usr/lib64/python2.7/site-packages/numpy/ma/core.py&quot;, line 3534, in __str__ res = self._data.astype(&quot;O&quot;) ValueError: Cannot assign NA to an array which does not support NAs &gt;&gt;&gt; b._data array([3, 5, NA, 6]) &gt;&gt;&gt; b.sum() 14 &gt;&gt;&gt; b.mask=[0,0,0,0] &gt;&gt;&gt; b Traceback (most recent call last): File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt; File &quot;/usr/lib64/python2.7/site-packages/numpy/ma/core.py&quot;, line 3551, in __repr__ data=str(self), mask=str(self._mask), File &quot;/usr/lib64/python2.7/site-packages/numpy/ma/core.py&quot;, line 3534, in __str__ res = self._data.astype(&quot;O&quot;) ValueError: Cannot assign NA to an array which does not support NAs &gt;&gt;&gt; b.sum() NA(dtype='int64')"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; import numpy as np &gt;&gt;&gt; np.__version__ '2.0.0.dev-7297785' &gt;&gt;&gt; b=np.ma.array([3,5,np.NA,6], mask=[0,0,1,0]) &gt;&gt;&gt; b Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; File "/usr/lib64/python2.7/site-packages/numpy/ma/core.py", line 3551, in __repr__ data=str(self), mask=str(self._mask), File "/usr/lib64/python2.7/site-packages/numpy/ma/core.py", line 3534, in __str__ res = self._data.astype("O") ValueError: Cannot assign NA to an array which does not support NAs &gt;&gt;&gt; b._data array([3, 5, NA, 6]) &gt;&gt;&gt; b.sum() 14 &gt;&gt;&gt; b.mask=[0,0,0,0] &gt;&gt;&gt; b Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; File "/usr/lib64/python2.7/site-packages/numpy/ma/core.py", line 3551, in __repr__ data=str(self), mask=str(self._mask), File "/usr/lib64/python2.7/site-packages/numpy/ma/core.py", line 3534, in __str__ res = self._data.astype("O") ValueError: Cannot assign NA to an array which does not support NAs &gt;&gt;&gt; b.sum() NA(dtype='int64') </code></pre></div>
1
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 2.4.13.7-4-gfd63c6041</li> <li>Operating System / Platform =&gt; Windows 10.0.17134 AMD64</li> <li>Compiler =&gt; Visual studio 15 2017</li> <li>CMake =&gt;3.12.3</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">If I set OpenCV to not build zlib and use a prebuilt zlib version, the configuration step of cmake will fail.</p> <p dir="auto">I've tried setting the following options in cmake:</p> <ul dir="auto"> <li>ZLIB_INCLUDE_DIR : <code class="notranslate">C:\development\zlib\include</code></li> <li>ZLIB_LIBRARY_RELEASE : <code class="notranslate">C:\development\zlib\lib\zlibstatic.lib</code></li> <li>ZLIB_LIBRARY_DEBUG : <code class="notranslate">C:\development\zlib\lib\zlibstaticd.lib</code></li> </ul> <p dir="auto">output is</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Checking for Windows (Phone) Platform SDK 8.0/8.1 Checking for Visual Studio 2012/2013 Found ZLIB: optimized;C:/development/zlib/lib/zlibstatic.lib;debug;C:/development/zlib/lib/zlibstaticd.lib (found version &quot;1.2.11&quot;) Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) Assume that non-module dependency is available: optimized (for module opencv_core) Assume that non-module dependency is available: debug (for module opencv_core) CMake Warning (dev) at cmake/OpenCVModule.cmake:593 (target_link_libraries): Link library type specifier &quot;debug&quot; is followed by specifier &quot;optimized&quot; instead of a library name. The first specifier will be ignored. Call Stack (most recent call first): modules/core/CMakeLists.txt:56 (ocv_create_module) This warning is for project developers. Use -Wno-dev to suppress it. CMake Error at cmake/OpenCVModule.cmake:593 (target_link_libraries): The &quot;optimized&quot; argument must be followed by a library. Call Stack (most recent call first): modules/core/CMakeLists.txt:56 (ocv_create_module) Configuring incomplete, errors occurred!"><pre class="notranslate"><code class="notranslate">Checking for Windows (Phone) Platform SDK 8.0/8.1 Checking for Visual Studio 2012/2013 Found ZLIB: optimized;C:/development/zlib/lib/zlibstatic.lib;debug;C:/development/zlib/lib/zlibstaticd.lib (found version "1.2.11") Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) Assume that non-module dependency is available: optimized (for module opencv_core) Assume that non-module dependency is available: debug (for module opencv_core) CMake Warning (dev) at cmake/OpenCVModule.cmake:593 (target_link_libraries): Link library type specifier "debug" is followed by specifier "optimized" instead of a library name. The first specifier will be ignored. Call Stack (most recent call first): modules/core/CMakeLists.txt:56 (ocv_create_module) This warning is for project developers. Use -Wno-dev to suppress it. CMake Error at cmake/OpenCVModule.cmake:593 (target_link_libraries): The "optimized" argument must be followed by a library. Call Stack (most recent call first): modules/core/CMakeLists.txt:56 (ocv_create_module) Configuring incomplete, errors occurred! </code></pre></div> <p dir="auto"><strong>NOTE: if i set the RELEASE and DEBUG lib to the same file this does not occur.</strong></p> <p dir="auto">It seems as if OpenCV doesn't parse the "optimized;"and "Debug;" flags properly that is sent together with the zlib filenames</p> <h5 dir="auto">Steps to reproduce</h5> <p dir="auto">while configuring opencv cmake, set <code class="notranslate">ZLIB_LIBRARY_RELEASE</code> and <code class="notranslate">ZLIB_LIBRARY_DEBUG</code> to two different values</p>
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 4.4.0</li> <li>Operating System / Platform =&gt; Ubuntu/docker</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">I was trying to inference on Yolo trained model using OpenCV 4.4.0 with a python code.<br> The issue I had is that some image I was inferring on was giving me wrong bounding box that extends to the end of the image. that issue doesn't happen when I use the same model on darknet detector</p> <p dir="auto">the code I'm using is :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="def __get_output_layers__(self): layer_names = self.net.getLayerNames() output_layers = [layer_names[i[0] - 1] for i in self.net.getUnconnectedOutLayers()] return output_layers def infer(self): self.net = cv2.dnn.readNet(os.path.join(self.model_path, 'yolo-obj.cfg'), os.path.join(self.model_path, 'yolo-obj.weights')) conf_threshold = data['confidence'] nms_threshold = data['nms_threshold'] height, width, depth = np_image.shape # create input blob blob = cv2.dnn.blobFromImage( np_image, self.scale, (self.image_width, self.image_height), (self.R_mean, self.G_mean, self.B_mean), self.swapRB, self.crop) # feed the blob to the network self.net.setInput(blob) # get the output layers output_layers = self.net.forward(self.__get_output_layers__()) # for each detection from each output layer # get the confidence, class id, bounding box params # and ignore detections below threshold boxes = [] class_ids = [] confidences = [] for layer in output_layers: for detection in layer: scores = detection[5:] class_id = np.argmax(scores) confidence = scores[class_id] if confidence * 100 &gt; conf_threshold: center_x = int(detection[0] * width) center_y = int(detection[1] * height) w = int(detection[2] * width) h = int(detection[3] * height) x = center_x - w / 2 y = center_y - h / 2 class_ids.append(int(class_id)) confidences.append(float(confidence * 100)) boxes.append([x, y, w, h]) # apply non-max suppression to remove duplicate bounding boxes for same object remaining_indices = cv2.dnn.NMSBoxes( boxes, confidences, conf_threshold, nms_threshold) for i in range(len(boxes)): # i = i[0] box = boxes[i] x = box[0] y = box[1] w = box[2] h = box[3] # release resources cv2.destroyAllWindows() # return the remaining boxes output_bboxes = [] for i in remaining_indices: box = boxes[i[0]] left = int(box[0]) right = int(box[0]) + int(box[2]) top = int(box[1]) bottom = int(box[1]) + int(box[3]) if (left &lt; 0): left = 0 if (right &gt; height- 1): right = width - 1 if (top &lt; 0): top = 0 if (bottom &gt;height - 1): bottom = height - 1 output_bboxes.append( { 'ObjectClassName': self.labels[class_ids[i[0]]], 'ObjectClassId': class_ids[i[0]], 'confidence': confidences[i[0]], 'coordinates': { 'left': left, 'right':right, 'top': top, 'bottom': bottom } } ) "><pre class="notranslate"><code class="notranslate">def __get_output_layers__(self): layer_names = self.net.getLayerNames() output_layers = [layer_names[i[0] - 1] for i in self.net.getUnconnectedOutLayers()] return output_layers def infer(self): self.net = cv2.dnn.readNet(os.path.join(self.model_path, 'yolo-obj.cfg'), os.path.join(self.model_path, 'yolo-obj.weights')) conf_threshold = data['confidence'] nms_threshold = data['nms_threshold'] height, width, depth = np_image.shape # create input blob blob = cv2.dnn.blobFromImage( np_image, self.scale, (self.image_width, self.image_height), (self.R_mean, self.G_mean, self.B_mean), self.swapRB, self.crop) # feed the blob to the network self.net.setInput(blob) # get the output layers output_layers = self.net.forward(self.__get_output_layers__()) # for each detection from each output layer # get the confidence, class id, bounding box params # and ignore detections below threshold boxes = [] class_ids = [] confidences = [] for layer in output_layers: for detection in layer: scores = detection[5:] class_id = np.argmax(scores) confidence = scores[class_id] if confidence * 100 &gt; conf_threshold: center_x = int(detection[0] * width) center_y = int(detection[1] * height) w = int(detection[2] * width) h = int(detection[3] * height) x = center_x - w / 2 y = center_y - h / 2 class_ids.append(int(class_id)) confidences.append(float(confidence * 100)) boxes.append([x, y, w, h]) # apply non-max suppression to remove duplicate bounding boxes for same object remaining_indices = cv2.dnn.NMSBoxes( boxes, confidences, conf_threshold, nms_threshold) for i in range(len(boxes)): # i = i[0] box = boxes[i] x = box[0] y = box[1] w = box[2] h = box[3] # release resources cv2.destroyAllWindows() # return the remaining boxes output_bboxes = [] for i in remaining_indices: box = boxes[i[0]] left = int(box[0]) right = int(box[0]) + int(box[2]) top = int(box[1]) bottom = int(box[1]) + int(box[3]) if (left &lt; 0): left = 0 if (right &gt; height- 1): right = width - 1 if (top &lt; 0): top = 0 if (bottom &gt;height - 1): bottom = height - 1 output_bboxes.append( { 'ObjectClassName': self.labels[class_ids[i[0]]], 'ObjectClassId': class_ids[i[0]], 'confidence': confidences[i[0]], 'coordinates': { 'left': left, 'right':right, 'top': top, 'bottom': bottom } } ) </code></pre></div> <p dir="auto">after running this code and drawing boxes on image i get this result<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/31547256/88072463-57085f00-cb75-11ea-90e9-199011aea553.png"><img src="https://user-images.githubusercontent.com/31547256/88072463-57085f00-cb75-11ea-90e9-199011aea553.png" alt="Screenshot from 2020-07-21 17-11-50" style="max-width: 100%;"></a></p> <p dir="auto">but when i use the darknet detector i get this image which is fine without the issue of bounding box extending to the end of the image<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/31547256/88086213-47921180-cb87-11ea-8b1f-d6cd1b6d3d75.png"><img src="https://user-images.githubusercontent.com/31547256/88086213-47921180-cb87-11ea-8b1f-d6cd1b6d3d75.png" alt="Screenshot from 2020-07-21 17-12-10" style="max-width: 100%;"></a></p> <h5 dir="auto">Steps to reproduce</h5> <p dir="auto">I'm using the Yolov3 weights trained on COCO dataset with the cfg provided that come from <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/AlexeyAB/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/AlexeyAB">@AlexeyAB</a> repo on github</p> <h5 dir="auto">Issue submission checklist</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I report the issue, it's not a question </li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I checked the problem with documentation, FAQ, open issues,<br> answers.opencv.org, Stack Overflow, etc and have not found solution </li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I updated to latest OpenCV version and the issue is still there </li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> There is reproducer code and related data files: videos, images, onnx, etc </li> </ul>
0
<p dir="auto"><strong>Glide Version</strong>: 4.5.0</p> <p dir="auto"><strong>Integration libraries</strong>: okhttp3-integration</p> <p dir="auto"><strong>Device/Android Version</strong>: doesn't seem device related. The warning shows on emulators and every test devices I have.</p> <p dir="auto"><strong>Issue details / Repro steps / Use case background</strong>:<br> I followed the setup instructions. Glide is working as expected in my app, but i'm getting this warning in logcat, which shouldn't be there since my setup seems correct.</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Glide: Failed to find GeneratedAppGlideModule. You should include an annotationProcessor compile dependency on com.github.bumptech.glide:glide:compiler in your application and a @GlideModule annotated AppGlideModule implementation or LibraryGlideModules will be silently ignored"><pre class="notranslate"><span class="pl-s1">Glide</span>: <span class="pl-smi">Failed</span> <span class="pl-s1">to</span> <span class="pl-smi">find</span> <span class="pl-s1">GeneratedAppGlideModule</span>. <span class="pl-s1">You</span> <span class="pl-s1">should</span> <span class="pl-s1">include</span> <span class="pl-s1">an</span> <span class="pl-s1">annotationProcessor</span> <span class="pl-s1">compile</span> <span class="pl-s1">dependency</span> <span class="pl-s1">on</span> <span class="pl-s1">com</span>.<span class="pl-s1">github</span>.<span class="pl-s1">bumptech</span>.<span class="pl-s1">glide</span>:<span class="pl-s1">glide</span>:<span class="pl-s1">compiler</span> <span class="pl-s1">in</span> <span class="pl-s1">your</span> <span class="pl-s1">application</span> <span class="pl-s1">and</span> <span class="pl-s1">a</span> <span class="pl-c1">@</span><span class="pl-c1">GlideModule</span> <span class="pl-s1">annotated</span> <span class="pl-s1">AppGlideModule</span> <span class="pl-s1">implementation</span> <span class="pl-s1">or</span> <span class="pl-s1">LibraryGlideModules</span> <span class="pl-s1">will</span> <span class="pl-s1">be</span> <span class="pl-s1">silently</span> <span class="pl-s1">ignored</span></pre></div> <p dir="auto">I'm using kotlin. kapt plugin is applied at the top of my build.gradle file:</p> <div class="highlight highlight-source-groovy-gradle notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-kapt' apply plugin: 'kotlin-android-extensions'"><pre class="notranslate">apply <span class="pl-c1">plugin</span>: <span class="pl-s"><span class="pl-pds">'</span>com.android.application<span class="pl-pds">'</span></span> apply <span class="pl-c1">plugin</span>: <span class="pl-s"><span class="pl-pds">'</span>kotlin-android<span class="pl-pds">'</span></span> apply <span class="pl-c1">plugin</span>: <span class="pl-s"><span class="pl-pds">'</span>kotlin-kapt<span class="pl-pds">'</span></span> apply <span class="pl-c1">plugin</span>: <span class="pl-s"><span class="pl-pds">'</span>kotlin-android-extensions<span class="pl-pds">'</span></span></pre></div> <p dir="auto">and I also have this</p> <div class="highlight highlight-source-groovy-gradle notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="implementation 'com.github.bumptech.glide:glide:4.5.0' kapt 'com.github.bumptech.glide:compiler:4.5.0' implementation &quot;com.github.bumptech.glide:okhttp3-integration:4.5.0&quot;"><pre class="notranslate">implementation <span class="pl-s"><span class="pl-pds">'</span>com.github.bumptech.glide:glide:4.5.0<span class="pl-pds">'</span></span> kapt <span class="pl-s"><span class="pl-pds">'</span>com.github.bumptech.glide:compiler:4.5.0<span class="pl-pds">'</span></span> implementation <span class="pl-s"><span class="pl-pds">"</span>com.github.bumptech.glide:okhttp3-integration:4.5.0<span class="pl-pds">"</span></span></pre></div> <p dir="auto">I have created a class extending AppGlideModule</p> <div class="highlight highlight-source-kotlin notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@GlideModule class MyAppGlideModule : AppGlideModule() { override fun applyOptions(context: Context, builder: GlideBuilder) { super.applyOptions(context, builder) if (BuildConfig.DEBUG) { builder.setLogLevel(Log.VERBOSE) } } }"><pre class="notranslate">@GlideModule <span class="pl-k">class</span> <span class="pl-en">MyAppGlideModule</span> : <span class="pl-en">AppGlideModule</span>() { <span class="pl-k">override</span> <span class="pl-k">fun</span> <span class="pl-en">applyOptions</span>(<span class="pl-smi">context</span><span class="pl-k">:</span> <span class="pl-en">Context</span>, <span class="pl-smi">builder</span><span class="pl-k">:</span> <span class="pl-en">GlideBuilder</span>) { <span class="pl-c1">super</span>.applyOptions(context, builder) <span class="pl-k">if</span> (<span class="pl-en">BuildConfig</span>.<span class="pl-en">DEBUG</span>) { builder.setLogLevel(<span class="pl-en">Log</span>.<span class="pl-en">VERBOSE</span>) } } }</pre></div> <p dir="auto">kapt seems to generate the <code class="notranslate">GlideApp</code>, <code class="notranslate">GlideOptions</code>, <code class="notranslate">GlideRequest</code>, <code class="notranslate">GlideRequests</code>, <code class="notranslate">GeneratedAppGlideModuleImpl</code> and <code class="notranslate">GeneratedRequestManagerFactory</code> classes correctly. I can see them.</p>
<p dir="auto">I'm trying to use glide 4.0.0-RC0 by Gradle:</p> <div class="highlight highlight-source-groovy-gradle notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="dependencies { compile 'com.android.support:appcompat-v7:25.1.0' compile 'com.caverock:androidsvg:1.2.2-beta-1' compile 'com.github.bumptech.glide:glide:4.0.0-RC0' compile 'com.android.support:support-v4:25.3.1' }"><pre class="notranslate"><span class="pl-en">dependencies</span> { compile <span class="pl-s"><span class="pl-pds">'</span>com.android.support:appcompat-v7:25.1.0<span class="pl-pds">'</span></span> compile <span class="pl-s"><span class="pl-pds">'</span>com.caverock:androidsvg:1.2.2-beta-1<span class="pl-pds">'</span></span> compile <span class="pl-s"><span class="pl-pds">'</span>com.github.bumptech.glide:glide:4.0.0-RC0<span class="pl-pds">'</span></span> compile <span class="pl-s"><span class="pl-pds">'</span>com.android.support:support-v4:25.3.1<span class="pl-pds">'</span></span> }</pre></div> <p dir="auto">I followed the example here: <a href="https://github.com/bumptech/glide/tree/master/samples/svg/src/main/java/com/bumptech/glide/samples/svg">https://github.com/bumptech/glide/tree/master/samples/svg/src/main/java/com/bumptech/glide/samples/svg</a><br> but after add glide by Gradle, I got error: <strong>Cannot resolve symbol 'GlideApp'</strong><br> My source:</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="package com.example.quangson.glidesvg; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import static com.bumptech.glide.load.resource.drawable.DrawableTransitionOptions.withCrossFade; import android.content.ContentResolver; import android.graphics.drawable.PictureDrawable; import android.net.Uri; import android.widget.ImageView; import android.widget.LinearLayout; import com.bumptech.glide.RequestBuilder; import com.example.quangson.glidesvg.glide.SvgSoftwareLayerSetter; public class MainActivity extends AppCompatActivity { private static final String TAG = &quot;SVGActivity&quot;; private ImageView imageViewRes; private ImageView imageViewNet; private RequestBuilder&lt;PictureDrawablerequestBuilder; LinearLayout ll; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); imageViewNet = (ImageView) findViewById(R.id.svg_image_view2); requestBuilder = GlideApp.with(this) .as(PictureDrawable.class) .placeholder(R.drawable.image_loading) .error(R.drawable.image_error) .transition(withCrossFade()) .listener(new SvgSoftwareLayerSetter()); Uri uri = Uri.parse(&quot;http://www.clker.com/cliparts/u/Z/2/b/a/6/android-toy-h.svg&quot;); requestBuilder.load(uri).into(imageViewNet); } }"><pre class="notranslate"><span class="pl-k">package</span> <span class="pl-s1">com</span>.<span class="pl-s1">example</span>.<span class="pl-s1">quangson</span>.<span class="pl-s1">glidesvg</span>; <span class="pl-k">import</span> <span class="pl-s1">android</span>.<span class="pl-s1">support</span>.<span class="pl-s1">v7</span>.<span class="pl-s1">app</span>.<span class="pl-s1">AppCompatActivity</span>; <span class="pl-k">import</span> <span class="pl-s1">android</span>.<span class="pl-s1">os</span>.<span class="pl-s1">Bundle</span>; <span class="pl-k">import</span> <span class="pl-k">static</span> <span class="pl-s1">com</span>.<span class="pl-s1">bumptech</span>.<span class="pl-s1">glide</span>.<span class="pl-s1">load</span>.<span class="pl-s1">resource</span>.<span class="pl-s1">drawable</span>.<span class="pl-s1">DrawableTransitionOptions</span>.<span class="pl-s1">withCrossFade</span>; <span class="pl-k">import</span> <span class="pl-s1">android</span>.<span class="pl-s1">content</span>.<span class="pl-s1">ContentResolver</span>; <span class="pl-k">import</span> <span class="pl-s1">android</span>.<span class="pl-s1">graphics</span>.<span class="pl-s1">drawable</span>.<span class="pl-s1">PictureDrawable</span>; <span class="pl-k">import</span> <span class="pl-s1">android</span>.<span class="pl-s1">net</span>.<span class="pl-s1">Uri</span>; <span class="pl-k">import</span> <span class="pl-s1">android</span>.<span class="pl-s1">widget</span>.<span class="pl-s1">ImageView</span>; <span class="pl-k">import</span> <span class="pl-s1">android</span>.<span class="pl-s1">widget</span>.<span class="pl-s1">LinearLayout</span>; <span class="pl-k">import</span> <span class="pl-s1">com</span>.<span class="pl-s1">bumptech</span>.<span class="pl-s1">glide</span>.<span class="pl-s1">RequestBuilder</span>; <span class="pl-k">import</span> <span class="pl-s1">com</span>.<span class="pl-s1">example</span>.<span class="pl-s1">quangson</span>.<span class="pl-s1">glidesvg</span>.<span class="pl-s1">glide</span>.<span class="pl-s1">SvgSoftwareLayerSetter</span>; <span class="pl-k">public</span> <span class="pl-k">class</span> <span class="pl-smi">MainActivity</span> <span class="pl-k">extends</span> <span class="pl-smi">AppCompatActivity</span> { <span class="pl-k">private</span> <span class="pl-k">static</span> <span class="pl-k">final</span> <span class="pl-smi">String</span> <span class="pl-c1">TAG</span> = <span class="pl-s">"SVGActivity"</span>; <span class="pl-k">private</span> <span class="pl-smi">ImageView</span> <span class="pl-s1">imageViewRes</span>; <span class="pl-k">private</span> <span class="pl-smi">ImageView</span> <span class="pl-s1">imageViewNet</span>; <span class="pl-k">private</span> <span class="pl-s1">RequestBuilder</span>&lt;<span class="pl-smi">PictureDrawablerequestBuilder</span>; <span class="pl-smi">LinearLayout</span> <span class="pl-s1">ll</span>; <span class="pl-c1">@</span><span class="pl-c1">Override</span> <span class="pl-k">protected</span> <span class="pl-smi">void</span> <span class="pl-en">onCreate</span>(<span class="pl-smi">Bundle</span> <span class="pl-s1">savedInstanceState</span>) { <span class="pl-en">super</span>.<span class="pl-en">onCreate</span>(<span class="pl-s1">savedInstanceState</span>); <span class="pl-en">setContentView</span>(<span class="pl-smi">R</span>.<span class="pl-s1">layout</span>.<span class="pl-s1">activity_main</span>); <span class="pl-s1">imageViewNet</span> = (<span class="pl-smi">ImageView</span>) <span class="pl-en">findViewById</span>(<span class="pl-smi">R</span>.<span class="pl-s1">id</span>.<span class="pl-s1">svg_image_view2</span>); <span class="pl-s1">requestBuilder</span> = <span class="pl-smi">GlideApp</span>.<span class="pl-en">with</span>(<span class="pl-smi">this</span>) .<span class="pl-en">as</span>(<span class="pl-smi">PictureDrawable</span>.<span class="pl-k">class</span>) .<span class="pl-en">placeholder</span>(<span class="pl-smi">R</span>.<span class="pl-s1">drawable</span>.<span class="pl-s1">image_loading</span>) .<span class="pl-en">error</span>(<span class="pl-smi">R</span>.<span class="pl-s1">drawable</span>.<span class="pl-s1">image_error</span>) .<span class="pl-en">transition</span>(<span class="pl-en">withCrossFade</span>()) .<span class="pl-en">listener</span>(<span class="pl-k">new</span> <span class="pl-smi">SvgSoftwareLayerSetter</span>()); <span class="pl-smi">Uri</span> <span class="pl-s1">uri</span> = <span class="pl-smi">Uri</span>.<span class="pl-en">parse</span>(<span class="pl-s">"http://www.clker.com/cliparts/u/Z/2/b/a/6/android-toy-h.svg"</span>); <span class="pl-s1">requestBuilder</span>.<span class="pl-en">load</span>(<span class="pl-s1">uri</span>).<span class="pl-en">into</span>(<span class="pl-s1">imageViewNet</span>); } }</pre></div> <p dir="auto">Please help</p>
1
<p dir="auto">Hi,</p> <p dir="auto">I followed the new instructions for the <a href="https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/cmake/README.md">CMake build on Windows</a>.<br> The C++ example program <code class="notranslate">tf_tutorials_example_trainer.exe</code> build and run successfully.<br> But the build of the PIP package exited with the following error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ld_pip_package.vcxproj&quot; (Standardziel) (1) -&gt; &quot;C:\Users\jonas\projects\tensorflow\tensorflow\contrib\cmake\build\pywrap_tensor flow.vcxproj&quot; (Standardziel) (3) -&gt; (ClCompile Ziel) -&gt; C:\Users\jonas\projects\tensorflow\tensorflow\python\lib\core\py_func.cc(165): error C2466: cannot allocate an array of constant size 0 [C:\Users\jonas\projec ts\tensorflow\tensorflow\contrib\cmake\build\pywrap_tensorflow.vcxproj] 2398 Warnung(en) 1 Fehler"><pre class="notranslate"><code class="notranslate">ld_pip_package.vcxproj" (Standardziel) (1) -&gt; "C:\Users\jonas\projects\tensorflow\tensorflow\contrib\cmake\build\pywrap_tensor flow.vcxproj" (Standardziel) (3) -&gt; (ClCompile Ziel) -&gt; C:\Users\jonas\projects\tensorflow\tensorflow\python\lib\core\py_func.cc(165): error C2466: cannot allocate an array of constant size 0 [C:\Users\jonas\projec ts\tensorflow\tensorflow\contrib\cmake\build\pywrap_tensorflow.vcxproj] 2398 Warnung(en) 1 Fehler </code></pre></div>
<p dir="auto">(Copied from <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/laudney/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/laudney">@laudney</a>'s comment on <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="115925964" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/17" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/17/hovercard" href="https://github.com/tensorflow/tensorflow/issues/17">#17</a>)</p> <blockquote> <p dir="auto">I've tried to follow your instructions. All seem to work flawlessly (for about 45min) until it failed with:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="The target &quot;BeforeGenerateProjectPriFile&quot; listed in a BeforeTargets attribute at &quot;C:\Program Files (x86)\MSBuild\Microsoft\NuGet\Microsoft.NuGet.targets (186,61)&quot; does not exist in the project, and will be ignored. Done Building Project &quot;H:\PycharmProjects\tensorflow\tensorflow\contrib\cmake\build\tf_python_build_pip_package.vcxproj&quot; (default targets) -- FAILED. &quot;H:\PycharmProjects\tensorflow\tensorflow\contrib\cmake\build\tf_python_build_pip_package.vcxproj&quot; (default target) (1) -&gt; &quot;H:\PycharmProjects\tensorflow\tensorflow\contrib\cmake\build\pywrap_tensorflow.vcxproj&quot; (default target) (3) -&gt; &quot;H:\PycharmProjects\tensorflow\tensorflow\contrib\cmake\build\tf_core_cpu.vcxproj&quot; (default target) (4) -&gt; &quot;H:\PycharmProjects\tensorflow\tensorflow\contrib\cmake\build\tf_core_framework.vcxproj&quot; (default target) (5) -&gt; (CustomBuild target) -&gt; C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(171,5): error MSB6006: &quot;cmd.exe&quot; exited with code 1. [H:\PycharmProjects\t ensorflow\tensorflow\contrib\cmake\build\tf_core_framework.vcxproj] 30 Warning(s) 1 Error(s)"><pre class="notranslate"><code class="notranslate">The target "BeforeGenerateProjectPriFile" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\Microsoft\NuGet\Microsoft.NuGet.targets (186,61)" does not exist in the project, and will be ignored. Done Building Project "H:\PycharmProjects\tensorflow\tensorflow\contrib\cmake\build\tf_python_build_pip_package.vcxproj" (default targets) -- FAILED. "H:\PycharmProjects\tensorflow\tensorflow\contrib\cmake\build\tf_python_build_pip_package.vcxproj" (default target) (1) -&gt; "H:\PycharmProjects\tensorflow\tensorflow\contrib\cmake\build\pywrap_tensorflow.vcxproj" (default target) (3) -&gt; "H:\PycharmProjects\tensorflow\tensorflow\contrib\cmake\build\tf_core_cpu.vcxproj" (default target) (4) -&gt; "H:\PycharmProjects\tensorflow\tensorflow\contrib\cmake\build\tf_core_framework.vcxproj" (default target) (5) -&gt; (CustomBuild target) -&gt; C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(171,5): error MSB6006: "cmd.exe" exited with code 1. [H:\PycharmProjects\t ensorflow\tensorflow\contrib\cmake\build\tf_core_framework.vcxproj] 30 Warning(s) 1 Error(s) </code></pre></div> </blockquote>
1
<p dir="auto">When Python Requests is used to contact a server which returns multiple <code class="notranslate">Set-Cookie</code> response headers, Python Requests combines them into one header field with the values separated by commas.</p> <h2 dir="auto">Expected Result</h2> <p dir="auto">Using Nginx as my origin server with the following config:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" location / { root /usr/share/nginx/html; index index.html index.htm; add_header Set-Cookie cookieone=test; add_header Set-Cookie cookietwo=testing; }"><pre class="notranslate"><code class="notranslate"> location / { root /usr/share/nginx/html; index index.html index.htm; add_header Set-Cookie cookieone=test; add_header Set-Cookie cookietwo=testing; } </code></pre></div> <p dir="auto">Contacting this origin server I expect to receive two separate <code class="notranslate">Set-Cookie</code> headers with their corresponding values. As per <a href="https://tools.ietf.org/html/rfc6265#section-3" rel="nofollow">RFC6265</a>:</p> <blockquote> <p dir="auto">Origin servers SHOULD NOT fold multiple Set-Cookie header fields into<br> a single header field. The usual mechanism for folding HTTP headers<br> fields (i.e., as defined in [RFC2616]) might change the semantics of<br> the Set-Cookie header field because the %x2C (",") character is used<br> by Set-Cookie in a way that conflicts with such folding.</p> </blockquote> <p dir="auto">When using the browser my response from this origin has multiple <code class="notranslate">Set-Cookie</code> headers:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1361529/36676430-aae682cc-1ad9-11e8-882e-ada65918633f.png"><img src="https://user-images.githubusercontent.com/1361529/36676430-aae682cc-1ad9-11e8-882e-ada65918633f.png" alt="image" style="max-width: 100%;"></a></p> <h2 dir="auto">Actual Result</h2> <p dir="auto">Python Requests folds the multiple <code class="notranslate">Set-Cookie</code> headers into a single header field separated by comma(s). For example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; import requests &gt;&gt;&gt; r = requests.get('http://localhost') &gt;&gt;&gt; r &lt;Response [200]&gt; &gt;&gt;&gt; r.headers {'Content-Length': '612', 'Set-Cookie': 'cookieone=test, cookietwo=testing', 'Accept-Ranges': 'bytes', 'Server': 'nginx/1.13.9', 'Last-Modified': 'Tue, 20 Feb 2018 12:21:20 GMT', 'Connection': 'keep-alive', 'ETag': '&quot;5a8c12c0-264&quot;', 'Date': 'Mon, 26 Feb 2018 14:21:59 GMT', 'Content-Type': 'text/html'} &gt;&gt;&gt; r.cookies &lt;RequestsCookieJar[Cookie(version=0, name='cookieone', value='test', port=None, port_specified=False, domain='localhost.local', domain_specified=False, domain_initial_dot=False, path='/', path_specified=False, secure=False, expires=None, discard=True, comment=None, comment_url=None, rest={}, rfc2109=False), Cookie(version=0, name='cookietwo', value='testing', port=None, port_specified=False, domain='localhost.local', domain_specified=False, domain_initial_dot=False, path='/', path_specified=False, secure=False, expires=None, discard=True, comment=None, comment_url=None, rest={}, rfc2109=False)]&gt;"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; import requests &gt;&gt;&gt; r = requests.get('http://localhost') &gt;&gt;&gt; r &lt;Response [200]&gt; &gt;&gt;&gt; r.headers {'Content-Length': '612', 'Set-Cookie': 'cookieone=test, cookietwo=testing', 'Accept-Ranges': 'bytes', 'Server': 'nginx/1.13.9', 'Last-Modified': 'Tue, 20 Feb 2018 12:21:20 GMT', 'Connection': 'keep-alive', 'ETag': '"5a8c12c0-264"', 'Date': 'Mon, 26 Feb 2018 14:21:59 GMT', 'Content-Type': 'text/html'} &gt;&gt;&gt; r.cookies &lt;RequestsCookieJar[Cookie(version=0, name='cookieone', value='test', port=None, port_specified=False, domain='localhost.local', domain_specified=False, domain_initial_dot=False, path='/', path_specified=False, secure=False, expires=None, discard=True, comment=None, comment_url=None, rest={}, rfc2109=False), Cookie(version=0, name='cookietwo', value='testing', port=None, port_specified=False, domain='localhost.local', domain_specified=False, domain_initial_dot=False, path='/', path_specified=False, secure=False, expires=None, discard=True, comment=None, comment_url=None, rest={}, rfc2109=False)]&gt; </code></pre></div> <h2 dir="auto">Reproduction Steps</h2> <ul dir="auto"> <li>Set up Nginx locally (using Docker <code class="notranslate">docker run -itd -p 80:80 nginx</code>)</li> <li>Use the Nginx location config above with multiple <code class="notranslate">Set-Cookie</code> headers</li> <li>Call the Nginx url from the browser and notice multiple <code class="notranslate">Set-Cookie</code> headers (screenshot above)</li> <li>Call the Nginx url from requests and notice a single, folded, <code class="notranslate">Set-Cookie</code> header (code above)</li> </ul> <h2 dir="auto">System Information</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="➜ python -m requests.help { &quot;chardet&quot;: { &quot;version&quot;: &quot;3.0.4&quot; }, &quot;cryptography&quot;: { &quot;version&quot;: &quot;&quot; }, &quot;idna&quot;: { &quot;version&quot;: &quot;2.6&quot; }, &quot;implementation&quot;: { &quot;name&quot;: &quot;CPython&quot;, &quot;version&quot;: &quot;2.7.10&quot; }, &quot;platform&quot;: { &quot;release&quot;: &quot;17.4.0&quot;, &quot;system&quot;: &quot;Darwin&quot; }, &quot;pyOpenSSL&quot;: { &quot;openssl_version&quot;: &quot;&quot;, &quot;version&quot;: null }, &quot;requests&quot;: { &quot;version&quot;: &quot;2.18.4&quot; }, &quot;system_ssl&quot;: { &quot;version&quot;: &quot;20000000&quot; }, &quot;urllib3&quot;: { &quot;version&quot;: &quot;1.22&quot; }, &quot;using_pyopenssl&quot;: false }"><pre class="notranslate"><code class="notranslate">➜ python -m requests.help { "chardet": { "version": "3.0.4" }, "cryptography": { "version": "" }, "idna": { "version": "2.6" }, "implementation": { "name": "CPython", "version": "2.7.10" }, "platform": { "release": "17.4.0", "system": "Darwin" }, "pyOpenSSL": { "openssl_version": "", "version": null }, "requests": { "version": "2.18.4" }, "system_ssl": { "version": "20000000" }, "urllib3": { "version": "1.22" }, "using_pyopenssl": false } </code></pre></div> <p dir="auto">Jupyterhub is an example of where this is a problem in the wild: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="296420498" data-permission-text="Title is private" data-url="https://github.com/jupyterhub/jupyterhub/issues/1657" data-hovercard-type="issue" data-hovercard-url="/jupyterhub/jupyterhub/issues/1657/hovercard" href="https://github.com/jupyterhub/jupyterhub/issues/1657">jupyterhub/jupyterhub#1657</a></p>
<p dir="auto">Many web-apps send cookie in multiple Set-Cookie headers, one header for one cookie. Requests joins this headers in one big header separate by comma.</p> <p dir="auto">From same webapp to requests.get</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Set-Cookie: ASP.NET_SessionId=token1; path=/; HttpOnly Set-Cookie: Cookie1=token2; path=/ecp Set-Cookie: X-BEResource=WIN-RBFR0BDA7V7.testlab.net~1; path=/ecp/15.0.516.30; HttpOnly Set-Cookie: X-BackEndCookie=token3; expires=Mon, 03-Apr-2017 12:25:07 GMT; path=/ecp; HttpOnly"><pre class="notranslate"><code class="notranslate">Set-Cookie: ASP.NET_SessionId=token1; path=/; HttpOnly Set-Cookie: Cookie1=token2; path=/ecp Set-Cookie: X-BEResource=WIN-RBFR0BDA7V7.testlab.net~1; path=/ecp/15.0.516.30; HttpOnly Set-Cookie: X-BackEndCookie=token3; expires=Mon, 03-Apr-2017 12:25:07 GMT; path=/ecp; HttpOnly </code></pre></div> <p dir="auto">In requests:<br> resp.headers this look like</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Set-Cookie: ASP.NET_SessionId=token1; path=/; HttpOnly, Cookie1=token2; path=/ecp, X-BEResource=WIN-RBFR0BDA7V7.testlab.net~1; path=/ecp/15.0.516.30; HttpOnly, X-BackEndCookie=token3; expires=Thu, 06-Apr-2017 08:27:22 GMT; path=/ecp; HttpOnly"><pre class="notranslate"><code class="notranslate">Set-Cookie: ASP.NET_SessionId=token1; path=/; HttpOnly, Cookie1=token2; path=/ecp, X-BEResource=WIN-RBFR0BDA7V7.testlab.net~1; path=/ecp/15.0.516.30; HttpOnly, X-BackEndCookie=token3; expires=Thu, 06-Apr-2017 08:27:22 GMT; path=/ecp; HttpOnly </code></pre></div> <p dir="auto">Firefox, IE, Chrome invalid interpreted this cookies because separater is comma but in field EXPIRES comma separate day and date.</p> <p dir="auto">Principal problem in modification traffic. In my opinion then server send multiple headers lib must return multiple headers</p>
1
<p dir="auto">Hi,<br> afraid I'm a flutter newbie. I was asked to report this bug.<br> I'll report back if I crack it.<br> Many thanks,<br> Andy.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Performing hot reload... Syncing files to device Android SDK built for x86 64... I/flutter (25832): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════ I/flutter (25832): The following assertion was thrown building SlideTransition(animation: AnimationController#859ac(⏭ I/flutter (25832): 1.000; paused; for MaterialPageRoute&lt;dynamic&gt;(/))➩ProxyAnimation➩Cubic(0.40, 0.00, 0.20, I/flutter (25832): 1.00)➩Tween&lt;Offset&gt;(Offset(0.0, 0.3) → Offset(0.0, 0.0))➩Offset(0.0, 0.0), state: I/flutter (25832): _AnimatedState#7c1f8): I/flutter (25832): 'package:flutter/src/widgets/framework.dart': Failed assertion: line 4659 pos 12: 'child == _child': I/flutter (25832): is not true. I/flutter (25832): Either the assertion indicates an error in the framework itself, or we should provide substantially I/flutter (25832): more information in this error message to help you determine and fix the underlying cause. I/flutter (25832): In either case, please report this assertion by filing a bug on GitHub: I/flutter (25832): https://github.com/flutter/flutter/issues/new I/flutter (25832): When the exception was thrown, this was the stack: I/flutter (25832): #2 SingleChildRenderObjectElement.forgetChild (package:flutter/src/widgets/framework.dart:4659:12) I/flutter (25832): #3 Element._retakeInactiveElement (package:flutter/src/widgets/framework.dart:2880:14) I/flutter (25832): #4 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2907:32) I/flutter (25832): #5 Element.updateChild (package:flutter/src/widgets/framework.dart:2722:12) I/flutter (25832): #6 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4666:14) I/flutter (25832): #7 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2919:14) I/flutter (25832): #8 Element.updateChild (package:flutter/src/widgets/framework.dart:2722:12) I/flutter (25832): #9 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4666:14) I/flutter (25832): #10 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2919:14) I/flutter (25832): #11 Element.updateChild (package:flutter/src/widgets/framework.dart:2722:12) I/flutter (25832): #12 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4666:14) I/flutter (25832): #13 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2919:14) I/flutter (25832): #14 Element.updateChild (package:flutter/src/widgets/framework.dart:2722:12) I/flutter (25832): #15 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3665:16) I/flutter (25832): #16 Element.rebuild (package:flutter/src/widgets/framework.dart:3507:5) I/flutter (25832): #17 StatefulElement.update (package:flutter/src/widgets/framework.dart:3811:5) I/flutter (25832): #18 Element.updateChild (package:flutter/src/widgets/framework.dart:2711:15) I/flutter (25832): #19 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3665:16) I/flutter (25832): #20 Element.rebuild (package:flutter/src/widgets/framework.dart:3507:5) I/flutter (25832): #21 StatelessElement.update (package:flutter/src/widgets/framework.dart:3714:5) I/flutter (25832): #22 Element.updateChild (package:flutter/src/widgets/framework.dart:2711:15) I/flutter (25832): #23 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3665:16) I/flutter (25832): #24 Element.rebuild (package:flutter/src/widgets/framework.dart:3507:5) I/flutter (25832): #25 StatefulElement.update (package:flutter/src/widgets/framework.dart:3811:5) I/flutter (25832): #26 Element.updateChild (package:flutter/src/widgets/framework.dart:2711:15) I/flutter (25832): #27 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4673:14) I/flutter (25832): #28 Element.updateChild (package:flutter/src/widgets/framework.dart:2711:15) I/flutter (25832): #29 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3665:16) I/flutter (25832): #30 Element.rebuild (package:flutter/src/widgets/framework.dart:3507:5) I/flutter (25832): #31 ProxyElement.update (package:flutter/src/widgets/framework.dart:3921:5) I/flutter (25832): #32 Element.updateChild (package:flutter/src/widgets/framework.dart:2711:15) I/flutter (25832): #33 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4673:14) I/flutter (25832): #34 Element.updateChild (package:flutter/src/widgets/framework.dart:2711:15) I/flutter (25832): #35 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3665:16) I/flutter (25832): #36 Element.rebuild (package:flutter/src/widgets/framework.dart:3507:5) I/flutter (25832): #37 StatefulElement.update (package:flutter/src/widgets/framework.dart:3811:5) I/flutter (25832): #38 Element.updateChild (package:flutter/src/widgets/framework.dart:2711:15) I/flutter (25832): #39 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3665:16) I/flutter (25832): #40 Element.rebuild (package:flutter/src/widgets/framework.dart:3507:5) I/flutter (25832): #41 StatelessElement.update (package:flutter/src/widgets/framework.dart:3714:5) I/flutter (25832): #42 Element.updateChild (package:flutter/src/widgets/framework.dart:2711:15) I/flutter (25832): #43 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4673:14) I/flutter (25832): #44 Element.updateChild (package:flutter/src/widgets/framework.dart:2711:15) I/flutter (25832): #45 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3665:16) I/flutter (25832): #46 Element.rebuild (package:flutter/src/widgets/framework.dart:3507:5) I/flutter (25832): #47 ProxyElement.update (package:flutter/src/widgets/framework.dart:3921:5) I/flutter (25832): #48 Element.updateChild (package:flutter/src/widgets/framework.dart:2711:15) I/flutter (25832): #49 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3665:16) I/flutter (25832): #50 Element.rebuild (package:flutter/src/widgets/framework.dart:3507:5) I/flutter (25832): #51 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2255:33) I/flutter (25832): #52 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding&amp;PaintingBinding&amp;SemanticsBinding&amp;RendererBinding&amp;WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:653:20) I/flutter (25832): #53 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding&amp;PaintingBinding&amp;SemanticsBinding&amp;RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:208:5) I/flutter (25832): #54 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15) I/flutter (25832): #55 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9) I/flutter (25832): #56 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding.scheduleWarmUpFrame.&lt;anonymous closure&gt; (package:flutter/src/scheduler/binding.dart:751:7) I/flutter (25832): #58 _Timer._runTimers (dart:isolate/runtime/libtimer_impl.dart:382:19) I/flutter (25832): #59 _Timer._handleMessage (dart:isolate/runtime/libtimer_impl.dart:416:5) I/flutter (25832): #60 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12) I/flutter (25832): (elided 3 frames from class _AssertionError and package dart:async) I/flutter (25832): ════════════════════════════════════════════════════════════════════════════════════════════════════ I/flutter (25832): Another exception was thrown: 'package:flutter/src/rendering/box.dart': Failed assertion: line 1503 pos 18: 'debugDoingThisResize || debugDoingThisLayout || I/flutter (25832): Another exception was thrown: RenderBox was not laid out: RenderRepaintBoundary#431cb NEEDS-PAINT DETACHED I/flutter (25832): Another exception was thrown: RenderBox was not laid out: RenderSemanticsAnnotations#f7a72 NEEDS-PAINT DETACHED I/flutter (25832): Another exception was thrown: RenderBox was not laid out: RenderOffstage#5fdd2 NEEDS-PAINT I/flutter (25832): Another exception was thrown: RenderBox was not laid out: RenderRepaintBoundary#431cb NEEDS-PAINT DETACHED I/flutter (25832): Another exception was thrown: Duplicate GlobalKey detected in widget tree. Reloaded 3 of 474 libraries in 433ms."><pre class="notranslate"><code class="notranslate">Performing hot reload... Syncing files to device Android SDK built for x86 64... I/flutter (25832): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════ I/flutter (25832): The following assertion was thrown building SlideTransition(animation: AnimationController#859ac(⏭ I/flutter (25832): 1.000; paused; for MaterialPageRoute&lt;dynamic&gt;(/))➩ProxyAnimation➩Cubic(0.40, 0.00, 0.20, I/flutter (25832): 1.00)➩Tween&lt;Offset&gt;(Offset(0.0, 0.3) → Offset(0.0, 0.0))➩Offset(0.0, 0.0), state: I/flutter (25832): _AnimatedState#7c1f8): I/flutter (25832): 'package:flutter/src/widgets/framework.dart': Failed assertion: line 4659 pos 12: 'child == _child': I/flutter (25832): is not true. I/flutter (25832): Either the assertion indicates an error in the framework itself, or we should provide substantially I/flutter (25832): more information in this error message to help you determine and fix the underlying cause. I/flutter (25832): In either case, please report this assertion by filing a bug on GitHub: I/flutter (25832): https://github.com/flutter/flutter/issues/new I/flutter (25832): When the exception was thrown, this was the stack: I/flutter (25832): #2 SingleChildRenderObjectElement.forgetChild (package:flutter/src/widgets/framework.dart:4659:12) I/flutter (25832): #3 Element._retakeInactiveElement (package:flutter/src/widgets/framework.dart:2880:14) I/flutter (25832): #4 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2907:32) I/flutter (25832): #5 Element.updateChild (package:flutter/src/widgets/framework.dart:2722:12) I/flutter (25832): #6 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4666:14) I/flutter (25832): #7 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2919:14) I/flutter (25832): #8 Element.updateChild (package:flutter/src/widgets/framework.dart:2722:12) I/flutter (25832): #9 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4666:14) I/flutter (25832): #10 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2919:14) I/flutter (25832): #11 Element.updateChild (package:flutter/src/widgets/framework.dart:2722:12) I/flutter (25832): #12 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4666:14) I/flutter (25832): #13 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2919:14) I/flutter (25832): #14 Element.updateChild (package:flutter/src/widgets/framework.dart:2722:12) I/flutter (25832): #15 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3665:16) I/flutter (25832): #16 Element.rebuild (package:flutter/src/widgets/framework.dart:3507:5) I/flutter (25832): #17 StatefulElement.update (package:flutter/src/widgets/framework.dart:3811:5) I/flutter (25832): #18 Element.updateChild (package:flutter/src/widgets/framework.dart:2711:15) I/flutter (25832): #19 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3665:16) I/flutter (25832): #20 Element.rebuild (package:flutter/src/widgets/framework.dart:3507:5) I/flutter (25832): #21 StatelessElement.update (package:flutter/src/widgets/framework.dart:3714:5) I/flutter (25832): #22 Element.updateChild (package:flutter/src/widgets/framework.dart:2711:15) I/flutter (25832): #23 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3665:16) I/flutter (25832): #24 Element.rebuild (package:flutter/src/widgets/framework.dart:3507:5) I/flutter (25832): #25 StatefulElement.update (package:flutter/src/widgets/framework.dart:3811:5) I/flutter (25832): #26 Element.updateChild (package:flutter/src/widgets/framework.dart:2711:15) I/flutter (25832): #27 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4673:14) I/flutter (25832): #28 Element.updateChild (package:flutter/src/widgets/framework.dart:2711:15) I/flutter (25832): #29 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3665:16) I/flutter (25832): #30 Element.rebuild (package:flutter/src/widgets/framework.dart:3507:5) I/flutter (25832): #31 ProxyElement.update (package:flutter/src/widgets/framework.dart:3921:5) I/flutter (25832): #32 Element.updateChild (package:flutter/src/widgets/framework.dart:2711:15) I/flutter (25832): #33 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4673:14) I/flutter (25832): #34 Element.updateChild (package:flutter/src/widgets/framework.dart:2711:15) I/flutter (25832): #35 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3665:16) I/flutter (25832): #36 Element.rebuild (package:flutter/src/widgets/framework.dart:3507:5) I/flutter (25832): #37 StatefulElement.update (package:flutter/src/widgets/framework.dart:3811:5) I/flutter (25832): #38 Element.updateChild (package:flutter/src/widgets/framework.dart:2711:15) I/flutter (25832): #39 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3665:16) I/flutter (25832): #40 Element.rebuild (package:flutter/src/widgets/framework.dart:3507:5) I/flutter (25832): #41 StatelessElement.update (package:flutter/src/widgets/framework.dart:3714:5) I/flutter (25832): #42 Element.updateChild (package:flutter/src/widgets/framework.dart:2711:15) I/flutter (25832): #43 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4673:14) I/flutter (25832): #44 Element.updateChild (package:flutter/src/widgets/framework.dart:2711:15) I/flutter (25832): #45 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3665:16) I/flutter (25832): #46 Element.rebuild (package:flutter/src/widgets/framework.dart:3507:5) I/flutter (25832): #47 ProxyElement.update (package:flutter/src/widgets/framework.dart:3921:5) I/flutter (25832): #48 Element.updateChild (package:flutter/src/widgets/framework.dart:2711:15) I/flutter (25832): #49 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3665:16) I/flutter (25832): #50 Element.rebuild (package:flutter/src/widgets/framework.dart:3507:5) I/flutter (25832): #51 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2255:33) I/flutter (25832): #52 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding&amp;PaintingBinding&amp;SemanticsBinding&amp;RendererBinding&amp;WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:653:20) I/flutter (25832): #53 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding&amp;PaintingBinding&amp;SemanticsBinding&amp;RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:208:5) I/flutter (25832): #54 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15) I/flutter (25832): #55 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9) I/flutter (25832): #56 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding.scheduleWarmUpFrame.&lt;anonymous closure&gt; (package:flutter/src/scheduler/binding.dart:751:7) I/flutter (25832): #58 _Timer._runTimers (dart:isolate/runtime/libtimer_impl.dart:382:19) I/flutter (25832): #59 _Timer._handleMessage (dart:isolate/runtime/libtimer_impl.dart:416:5) I/flutter (25832): #60 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12) I/flutter (25832): (elided 3 frames from class _AssertionError and package dart:async) I/flutter (25832): ════════════════════════════════════════════════════════════════════════════════════════════════════ I/flutter (25832): Another exception was thrown: 'package:flutter/src/rendering/box.dart': Failed assertion: line 1503 pos 18: 'debugDoingThisResize || debugDoingThisLayout || I/flutter (25832): Another exception was thrown: RenderBox was not laid out: RenderRepaintBoundary#431cb NEEDS-PAINT DETACHED I/flutter (25832): Another exception was thrown: RenderBox was not laid out: RenderSemanticsAnnotations#f7a72 NEEDS-PAINT DETACHED I/flutter (25832): Another exception was thrown: RenderBox was not laid out: RenderOffstage#5fdd2 NEEDS-PAINT I/flutter (25832): Another exception was thrown: RenderBox was not laid out: RenderRepaintBoundary#431cb NEEDS-PAINT DETACHED I/flutter (25832): Another exception was thrown: Duplicate GlobalKey detected in widget tree. Reloaded 3 of 474 libraries in 433ms. </code></pre></div>
<p dir="auto">The "Text Fields" option is hidden underneath the Android system buttons. I am on a Nexus 6P.</p> <p dir="auto">I can scroll up to see "Text Fields" but then the list animates back down. The last item I can see is "Tooltips".</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/mui-org/material-ui/issues?utf8=%E2%9C%93&amp;q=is%3Aissue+is%3Aopen+fontSize">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">There shouldn't be a warning when importing an svg icon. Or if there should be, please update docs to reflect the correct way of rendering the SVG icon in our code. Currently the docs don't show if any fontSize attribute needs to be passed in.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">When importing any svg icon, I get a warning saying:</p> <p dir="auto"><code class="notranslate">Warning: Received true for a non-boolean attribute fontSize. If you want to write it to the DOM, pass a string instead: fontSize="true" or fontSize={value.toString()}.</code></p> <p dir="auto">I don't set a <code class="notranslate">fontSize</code> attribute in the tag, like how the <a href="https://material-ui-next.com/demos/buttons/#icon-buttons" rel="nofollow">docs</a> show. This is part of what my code looks like:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import IconButton from 'material-ui-next/IconButton'; import DeleteIcon from 'material-ui-icons/Delete'; &lt;IconButton onClick={() =&gt; this.setState({ openDialog: true })}&gt; &lt;DeleteIcon /&gt; &lt;/IconButton&gt;"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-v">IconButton</span> <span class="pl-k">from</span> <span class="pl-s">'material-ui-next/IconButton'</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-v">DeleteIcon</span> <span class="pl-k">from</span> <span class="pl-s">'material-ui-icons/Delete'</span><span class="pl-kos">;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">IconButton</span> <span class="pl-c1">onClick</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">=&gt;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">setState</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">openDialog</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-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">DeleteIcon</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">IconButton</span><span class="pl-c1">&gt;</span></pre></div> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>Import any icon from <code class="notranslate">material-ui-icons</code> package.</li> <li>Render it.</li> <li>See warning in console.</li> </ol> <p dir="auto">NOTE: I tried this in codesandbox but did not see the warning. But here is the link regardless:<br> <a href="https://codesandbox.io/s/qvo302329q" rel="nofollow">https://codesandbox.io/s/qvo302329q</a></p> <h2 dir="auto">Context</h2> <p dir="auto">I'm currently in the processing of migrating all Button components from Material-UI v.0.20 to v.1 in my application at work. Currently, the way I'm avoiding getting this warning is by actually not using SVG icons at all and using, for instance <code class="notranslate">&lt;Icon&gt;delete&lt;/Icon&gt;</code> instead.</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.31</td> </tr> <tr> <td>material-ui-icons</td> <td>1.0.0-beta.17</td> </tr> <tr> <td>React</td> <td>16.2.0</td> </tr> <tr> <td>browser</td> <td>Chrome v63.0.3239.84</td> </tr> </tbody> </table>
<p dir="auto">Is there any possibility that as part of the release process, the ES2015 Components can be included as part of the published NPM artifacts?</p> <p dir="auto">I'm working in a large React app, which is already doing transpiling and I don't want the babel transform-runtime as part of every component (babel-polyfill is already in the bundle). My primary motivation is reducing bundle size. In other libraries (<a href="https://github.com/ReactTraining/react-router/blob/master/package.json#L20">react-router</a> the ES2015 is built into an <code class="notranslate">es</code> folder, which assumes you're using a bundler that can understand these modules.</p> <p dir="auto">This might be as easy as writing a copy task from <code class="notranslate">src</code> to <code class="notranslate">es</code> although I haven't look into your build process too deeply.</p>
0
<p dir="auto">I dragged in an XML file (with the extension <code class="notranslate">.config</code>) into Atom and it tried to render it in the browser. Running v. 0.209.0 on Windows Server 2008 R2.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1463553/8191014/04fb8276-1434-11e5-8b72-87e17f80800a.png"><img src="https://cloud.githubusercontent.com/assets/1463553/8191014/04fb8276-1434-11e5-8b72-87e17f80800a.png" alt="atom" style="max-width: 100%;"></a></p>
<p dir="auto">Atom's drag&amp;drop feature seem quite buggy. Sometimes it just won't open a dragged file, but even worse bug is when decides to open the file as if it was a real browser, efectively replacing the entire editor with the content of the file.</p> <p dir="auto">Video: <a href="http://youtu.be/EPRRFs9SQbs" rel="nofollow">http://youtu.be/EPRRFs9SQbs</a></p>
1
<p dir="auto">Hi.<br> I like this project very much. Please note that I have troubles to change the program's settings (see below), so that, it is possible that some of my comments/ideas may already be available.</p> <ol dir="auto"> <li>I use Visual Studio and every time I select settings option, a window with Visual Studio code opens. What about having a nice Window to edit the program settings being open by default?</li> <li>What about Ctrl+C and Ctrl+V to copy and paste selected text?</li> <li>What about an option to copy selected text automatically immediately after selection?</li> <li>What about an option to open by default a different terminal (e.g. UBUNTU) that PowerShell?<br> Regards CESBER</li> </ol>
<p dir="auto">I installed the terminal from the windows app store, created a powershell tab, ran a command.</p> <p dir="auto">I then wanted to copy that command text, so I highlighted it, then pressed ctrl + c but it doesn't appear to have copied the command text. I also tried ctrl + shift + c. Getting desperate I right clicked on the tab item itself, looking for a menu where I could select "copy" but no such menu seems to exist. I also tried right clicking with the text selected hoping for a menu where I could select "copy selection" but again no such menu exists. In desperation I gave up - copying text does not appear possible. What am I doing wrong?</p>
1
<p dir="auto">Hi,</p> <p dir="auto">We are currently implement <a href="https://github.com/AnalyticalGraphicsInc/3d-tiles/tree/master/TileFormats/Batched3DModel">b3dm</a> (a format that encapsulates glTF) support in our project and have encountered a few problems with the current GLTFLoader implementation.</p> <p dir="auto">We need to support addition attribute (<code class="notranslate">batchid</code>, used to identify the different objects packed in the geometry), extensions (<a href="https://github.com/KhronosGroup/glTF/blob/master/extensions/Vendor/CESIUM_RTC/README.md">CESIUM_RTC</a>) and potentially additional uniforms. However, there does not seem to be any way to add these new features without modifying the GLTFLoader file itself.</p> <p dir="auto">So my question is: how to support the extensible nature of glTF? Do we contribute directly to the source and add the attributes/extensions/uniforms that we need? Or does the loader need to be modified so extensions can be "plugged in" without changing the source?</p> <p dir="auto">Related question: when loading glTFs in a scene rendered using a logarithmic depth buffer, the model's shader are not modified to account for it, resulting in depth issues: <a href="http://jsfiddle.net/x6ufnz3y/" rel="nofollow">http://jsfiddle.net/x6ufnz3y/</a>. I implemented a <a href="https://github.com/iTowns/itowns2/commit/d3e2456d36ca1799d72cc4393291c2228895ce09#diff-4c76f3570ec49d62d5e66e22e861662aR87">small hack</a> to fix the problem. Should this process be added to the loader natively? Or could Three provide a helper function to patch the materials?</p>
<p dir="auto">After introducing support for texture repeat and offset in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="894609103" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/21852" data-hovercard-type="pull_request" data-hovercard-url="/mrdoob/three.js/pull/21852/hovercard" href="https://github.com/mrdoob/three.js/pull/21852">#21852</a>, the ambient occlusion map is repeated many times, despite the fact that we are setting the scale separately for each texture:<br> <code class="notranslate">float2 inputs:scale = ${ buildVector2( texture.repeat ) }</code></p> <p dir="auto"><strong>To Reproduce</strong></p> <p dir="auto">Steps to reproduce the behavior:</p> <ol dir="auto"> <li>Have a model with tiled diffuse map and (obviously not tiled) AO map.</li> <li>Export to USDZ</li> <li>unzip USDZ archive and open USDA file</li> <li>notice different scaling for each textures, diffuse texture may have scale major/minor from (1,1) and AO map should have a scale of (1,1)</li> <li>Transfer USDZ file to iPhone/iPad</li> <li>Open it in QuickLook and see AO map being tiled multiple times (probably as many as diffuse)</li> </ol> <p dir="auto"><strong>Expected behavior</strong></p> <p dir="auto">AO map should not be tiled/repeated.</p> <p dir="auto"><strong>Screenshots</strong></p> <p dir="auto">from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="898238184" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/21871" data-hovercard-type="issue" data-hovercard-url="/mrdoob/three.js/issues/21871/hovercard" href="https://github.com/mrdoob/three.js/issues/21871">#21871</a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/28507944/119883060-01d07300-bf27-11eb-8951-139dfce3e014.png"><img src="https://user-images.githubusercontent.com/28507944/119883060-01d07300-bf27-11eb-8951-139dfce3e014.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto"><strong>Platform:</strong></p> <ul dir="auto"> <li>Device: [Desktop, Mobile]</li> <li>OS: [Windows, MacOS, Linux, iOS]</li> <li>Browser: [Chrome, Firefox, Safari, Edge]</li> <li>Three.js version: [dev, r129]</li> </ul>
0
<p dir="auto">I've upgraded from Symfony 2.3 to Symfony 2.5 and encountered a problem.</p> <p dir="auto">Before I had the following code (entity with: <code class="notranslate">Assert\Callback(methods={"isEmailCollectionValid", "isCompanySelected"})</code>)</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" // this worked fine in Symfony 2.3 but stopped working properly in 2.5 public function isEmailCollectionValid(ExecutionContextInterface $context) { foreach ($this-&gt;getEmails() as $id =&gt; $email) { $context-&gt;validateValue($email-&gt;getValue(), array( new Assert\Email(array( 'message' =&gt; &quot;'{{ value }}' is not a valid email.&quot;, )) ), 'emails['.$id.'].value'); } }"><pre class="notranslate"> <span class="pl-c">// this worked fine in Symfony 2.3 but stopped working properly in 2.5</span> <span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">isEmailCollectionValid</span>(<span class="pl-smi"><span class="pl-smi">ExecutionContextInterface</span></span> <span class="pl-s1"><span class="pl-c1">$</span>context</span>) { <span class="pl-k">foreach</span> (<span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">getEmails</span>() <span class="pl-k">as</span> <span class="pl-s1"><span class="pl-c1">$</span>id</span> =&gt; <span class="pl-s1"><span class="pl-c1">$</span>email</span>) { <span class="pl-s1"><span class="pl-c1">$</span>context</span>-&gt;<span class="pl-en">validateValue</span>(<span class="pl-s1"><span class="pl-c1">$</span>email</span>-&gt;<span class="pl-en">getValue</span>(), <span class="pl-en">array</span>( <span class="pl-k">new</span> <span class="pl-v">Assert</span>\<span class="pl-v">Email</span>(<span class="pl-en">array</span>( <span class="pl-s">'message'</span> =&gt; "<span class="pl-s">'{{ value }}' is not a valid email.</span>", )) ), <span class="pl-s">'emails['</span>.<span class="pl-s1"><span class="pl-c1">$</span>id</span>.<span class="pl-s">'].value'</span>); } }</pre></div> <p dir="auto">Now I have the following code:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" // this doesn't work properly (at least as I expect) in 2.5 public function isEmailCollectionValid(ExecutionContextInterface $context) { $validator = $context-&gt;getValidator(); $contextValidator = $validator-&gt;inContext($context); foreach ($this-&gt;getEmails() as $id =&gt; $email) { $contextValidator-&gt;atPath('emails['.$id.'].value')-&gt;validate($email-&gt;getValue(), array( new Assert\Email(array( 'message' =&gt; &quot;'{{ value }}' is not a valid email.&quot;, )) )); } }"><pre class="notranslate"> <span class="pl-c">// this doesn't work properly (at least as I expect) in 2.5</span> <span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">isEmailCollectionValid</span>(<span class="pl-smi"><span class="pl-smi">ExecutionContextInterface</span></span> <span class="pl-s1"><span class="pl-c1">$</span>context</span>) { <span class="pl-s1"><span class="pl-c1">$</span>validator</span> = <span class="pl-s1"><span class="pl-c1">$</span>context</span>-&gt;<span class="pl-en">getValidator</span>(); <span class="pl-s1"><span class="pl-c1">$</span>contextValidator</span> = <span class="pl-s1"><span class="pl-c1">$</span>validator</span>-&gt;<span class="pl-en">inContext</span>(<span class="pl-s1"><span class="pl-c1">$</span>context</span>); <span class="pl-k">foreach</span> (<span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">getEmails</span>() <span class="pl-k">as</span> <span class="pl-s1"><span class="pl-c1">$</span>id</span> =&gt; <span class="pl-s1"><span class="pl-c1">$</span>email</span>) { <span class="pl-s1"><span class="pl-c1">$</span>contextValidator</span>-&gt;<span class="pl-en">atPath</span>(<span class="pl-s">'emails['</span>.<span class="pl-s1"><span class="pl-c1">$</span>id</span>.<span class="pl-s">'].value'</span>)-&gt;<span class="pl-en">validate</span>(<span class="pl-s1"><span class="pl-c1">$</span>email</span>-&gt;<span class="pl-en">getValue</span>(), <span class="pl-en">array</span>( <span class="pl-k">new</span> <span class="pl-v">Assert</span>\<span class="pl-v">Email</span>(<span class="pl-en">array</span>( <span class="pl-s">'message'</span> =&gt; "<span class="pl-s">'{{ value }}' is not a valid email.</span>", )) )); } }</pre></div> <p dir="auto">I'm unable to add all the violations to the correspondent fields. Instead the path is being appended (i.e.: <code class="notranslate">1. "data.emails[0].value", 2. "data.emails[0].emails[1].value"</code>, and so on). And it seems (according to the sources), no way exists to overcome it. Older code works the same as the newer one in 2.5.</p> <p dir="auto">Moreover, if I have more validators in the same entity (in this entity I have two of them), then the first error path is appended to the second one, which also produces wrong error path.</p> <p dir="auto">Is it a bug or how can I fix it? Thanks.</p>
<p dir="auto">Hello,</p> <p dir="auto">When using Validator 2.5 to validate an array of scalars, the <code class="notranslate">propertyPath</code> of the returned violations has really strange values.</p> <p dir="auto">Consider the following script:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;?php require 'vendor/autoload.php'; use Symfony\Component\Validator\Constraints; use Symfony\Component\Validator\Validation; $constraints = array( 'foo' =&gt; array( new Constraints\NotBlank(), new Constraints\Date() ), 'bar' =&gt; new Constraints\NotBlank() ); $collectionConstraint = new Constraints\Collection(array('fields' =&gt; $constraints)); $validator = Validation::createValidatorBuilder() -&gt;setApiVersion(Validation::API_VERSION_2_5) -&gt;getValidator(); $value = array( 'foo' =&gt; 'bar' ); $violations = $validator-&gt;validate($value, $collectionConstraint); foreach ($violations as $violation) { var_dump($violation-&gt;getPropertyPath()); }"><pre class="notranslate"><code class="notranslate">&lt;?php require 'vendor/autoload.php'; use Symfony\Component\Validator\Constraints; use Symfony\Component\Validator\Validation; $constraints = array( 'foo' =&gt; array( new Constraints\NotBlank(), new Constraints\Date() ), 'bar' =&gt; new Constraints\NotBlank() ); $collectionConstraint = new Constraints\Collection(array('fields' =&gt; $constraints)); $validator = Validation::createValidatorBuilder() -&gt;setApiVersion(Validation::API_VERSION_2_5) -&gt;getValidator(); $value = array( 'foo' =&gt; 'bar' ); $violations = $validator-&gt;validate($value, $collectionConstraint); foreach ($violations as $violation) { var_dump($violation-&gt;getPropertyPath()); } </code></pre></div> <p dir="auto">Output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="string(11) &quot;[foo].[foo]&quot; string(17) &quot;[foo].[foo].[bar]&quot;"><pre class="notranslate"><code class="notranslate">string(11) "[foo].[foo]" string(17) "[foo].[foo].[bar]" </code></pre></div> <p dir="auto">If I set <code class="notranslate">Validation::API_VERSION_2_4</code> and call the old <code class="notranslate">validateValue</code> method, it outputs:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="string(5) &quot;[foo]&quot; string(5) &quot;[bar]&quot;"><pre class="notranslate"><code class="notranslate">string(5) "[foo]" string(5) "[bar]" </code></pre></div> <p dir="auto">Is this something expected ?</p>
1
<ul dir="auto"> <li>VSCode Version:0.10.13 insiders</li> <li>OS Version:Windows 10</li> </ul> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>Open a file with characters without indenting</li> <li>Set cursor to the right and try to column select moving mouse to the left<br> You can't select the first characters on lines.<br> You can select the first characters if you start on the first character and move the mouse to the right.</li> </ol>
<ul dir="auto"> <li>VSCode Version: 0.10.13-insider</li> <li>OS Version: Windows 10</li> </ul> <p dir="auto">I am properly enjoying the new <em>insider</em> release - it offers so much! - and it is with great regret that I must file this first bug...</p> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>Create a block of text such as this one:</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var gulp = require('gulp'); var path = require('path'); var rimraf = require('rimraf'); var isarray = require('isarray'); var merge = require('merge-stream'); var concat = require('gulp-concat'); var newer = require('gulp-newer');"><pre class="notranslate"><code class="notranslate">var gulp = require('gulp'); var path = require('path'); var rimraf = require('rimraf'); var isarray = require('isarray'); var merge = require('merge-stream'); var concat = require('gulp-concat'); var newer = require('gulp-newer'); </code></pre></div> <ol dir="auto"> <li>Place the caret on the first line, on the left of the <code class="notranslate">var</code> keyword.</li> <li>Hold <code class="notranslate">alt + shift</code> and left-click on the right hand side of the <code class="notranslate">var</code> keyword on the last line to make a column selection.</li> <li>Observe that if the mouse was even a few pixels overlapped with the <code class="notranslate">space</code> character, the column of spaces will also be included in the selection - the selection is biased towards the right.</li> <li>Now repeat step two and make a single-line selection by holding shift and clicking on the right hand side of the <code class="notranslate">var</code> keyword on the <em>first</em> line - observe that the selection is biased to the left - i.e. you have to be almost completely past the <code class="notranslate">space</code> character or else it is <em>excluded</em> from the selection.</li> </ol> <p dir="auto">Clearly, column-select's behaviour is non-traditional in this regard.</p> <p dir="auto">Personally, I prefer to "draw" my column selections like you can in full-fat Visual Studio when you hold down <code class="notranslate">alt</code>. This shift-select style is fine but it should at least be consistent with U.I. norms.</p>
1
<p dir="auto">Sorry if this is a duplicate. I searched and searched and I didn't find something quite the same, but it <em>is</em> similar and probably related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="352877413" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/14255" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/14255/hovercard" href="https://github.com/electron/electron/issues/14255">#14255</a> and a few other tickets all reporting broken events (all the tickets I found are different classes of events, none specific to key events) since OOPIF.</p> <p dir="auto">I'm also not certain if this is intended behavior with OOPIF.</p> <ul dir="auto"> <li>Output of <code class="notranslate">node_modules/.bin/electron --version</code>: <code class="notranslate">v3.0.2</code></li> <li>Operating System (Platform and Version):</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ uname -a Linux lyra 4.18.10-arch1-1-ARCH #1 SMP PREEMPT Wed Sep 26 09:48:22 UTC 2018 x86_64 GNU/Linux"><pre class="notranslate"><code class="notranslate">$ uname -a Linux lyra 4.18.10-arch1-1-ARCH #1 SMP PREEMPT Wed Sep 26 09:48:22 UTC 2018 x86_64 GNU/Linux </code></pre></div> <ul dir="auto"> <li>Output of <code class="notranslate">node_modules/.bin/electron --version</code> on last known working Electron version (if applicable): <code class="notranslate">v3.0.0-beta.5</code></li> </ul> <p dir="auto"><strong>Expected Behavior</strong><br> <code class="notranslate">keydown</code> <code class="notranslate">keypress</code>, etc events are emitted when a webview is focused.</p> <p dir="auto"><strong>Actual behavior</strong><br> No such events are emitted.</p> <p dir="auto"><strong>To Reproduce</strong><br> Please see <a href="https://github.com/cprussin/electron-webview-key-event-bug">https://github.com/cprussin/electron-webview-key-event-bug</a>, specifically the commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/cprussin/electron-webview-key-event-bug/commit/1cec1ec745331f272b6b3b0ee26446686cc28900/hovercard" href="https://github.com/cprussin/electron-webview-key-event-bug/commit/1cec1ec745331f272b6b3b0ee26446686cc28900">cprussin/electron-webview-key-event-bug@<tt>1cec1ec</tt></a>. Clone the repo and run the typical setup commands:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ git clone https://github.com/cprussin/electron-webview-key-event-bug.git $ cd electron-webview-key-event-bug $ yarn $ npx electron ."><pre class="notranslate">$ git clone https://github.com/cprussin/electron-webview-key-event-bug.git $ <span class="pl-c1">cd</span> electron-webview-key-event-bug $ yarn $ npx electron <span class="pl-c1">.</span></pre></div> <p dir="auto">Note that when you press any keys, you get an alert indicating what key you pressed. Then, focus the webview and note that no longer do the alerts show. Note that there's a key down listener attached to both the webview itself, and the document element of the frame.</p> <p dir="auto"><strong>Additional Information</strong></p> <p dir="auto">Everything inside the webview still works properly--e.g., if I add listeners to the document element in a preload script, they are fired properly.</p> <p dir="auto"><strong>EDIT</strong>: I did further testing, and I've noticed that the <code class="notranslate">before-input-event</code> event on the <code class="notranslate">webContents</code> instance for the window containing the webview is also not fired. Not that this is particularly unexpected, just figured it might be interesting or helpful.</p> <p dir="auto"><strong>EDIT 2</strong>: after more testing, this appears to work up to <code class="notranslate">3.0.0-beta.5</code>, as with the related bug I linked (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="352877413" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/14255" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/14255/hovercard" href="https://github.com/electron/electron/issues/14255">#14255</a>) I've updated the header to this ticket accordingly.</p>
<ul dir="auto"> <li>Electron version: 1.7.10</li> <li>Operating system: Mac OS High Sierra and Mac OS Sierra</li> </ul> <h3 dir="auto">Expected behavior</h3> <p dir="auto">shell.openExternal() should open the url in the chrome new tab.</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">If you open a url using shell.openExternal() when my chrome had received a update in Mac and I didn't relaunch the chrome it will open a empty chrome tab.</p> <h3 dir="auto">How to reproduce</h3> <p dir="auto">You can duplicate this issue by going back to older version of chrome in mac and check for update but don't relaunch it.</p> <p dir="auto">Now try opening a url using shell.openExternal() it will just give you a empty tab.</p>
0
<p dir="auto">[X] feature request</p> <p dir="auto">This is a feature I am proposing for a future Angular.</p> <p dir="auto"><strong>Current behavior</strong></p> <p dir="auto">Both FormGroup and FormControl provide <code class="notranslate">.valueChanges</code>, and observable stream of changes to the control or group of controls' value. This is very helpful, but it seems to omit the first value (before the first "change") for no particularly good reason other than consistency with the name.</p> <p dir="auto">This is easily worked around by with something like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const x$ = this.aControl.valueChanges.startWith(this.aControl.value);"><pre class="notranslate"><code class="notranslate">const x$ = this.aControl.valueChanges.startWith(this.aControl.value); </code></pre></div> <p dir="auto">... which is effective, but verbose and repetitive.</p> <p dir="auto"><strong>Expected behavior</strong></p> <p dir="auto">Programmatically, very often when handling a control or group as an observable stream, one wants access to the entire stream from the beginning.</p> <p dir="auto">Therefore, I request that <code class="notranslate">.valueChanges</code> be supplemented with <code class="notranslate">.values</code>, which would be an Observable that emits both the initial value and changes.</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p> <p dir="auto">A search of Github yields numerous cases in published Angular code where something similar to the above pattern appears.</p> <p dir="auto"><a href="https://github.com/search?q=valueChanges.startWith&amp;ref=simplesearch&amp;type=Code&amp;utf8=%E2%9C%93">https://github.com/search?q=valueChanges.startWith&amp;ref=simplesearch&amp;type=Code&amp;utf8=%E2%9C%93</a></p> <p dir="auto">All of these, as well as similar code behind countless corporate firewalls, could be tightened up by this API improvement.</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="[ ] bug report =&gt; search github for a similar issue or PR before submitting [X] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[ ] bug report =&gt; search github for a similar issue or PR before submitting [X] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong></p> <p dir="auto">I need the ability to dynamic assign <code class="notranslate">Input()</code>'s to <code class="notranslate">HostBinding</code>'s.</p> <p dir="auto">Use case is allowing a developer to pass a custom css class to attach to the host. Lets think about a modal, I might want the upload modal to look slightly different from my new user modal. I allow the developer to pass a custom css class via input. Currently, there is no clean way to apply that. You end up with code like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" @Input() cssClass: string = ''; @HostBinding('class') get cssClasses(): string { let clz = 'drawer'; clz += ` ${this.cssClass}`; return clz; } "><pre class="notranslate"><code class="notranslate"> @Input() cssClass: string = ''; @HostBinding('class') get cssClasses(): string { let clz = 'drawer'; clz += ` ${this.cssClass}`; return clz; } </code></pre></div> <p dir="auto"><strong>Expected behavior</strong></p> <p dir="auto">Some way to accomplish this with the decorator, just spit balling but maybe something like:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" @HostBinding(`class.${this.cssClass}`) @Input() cssClass: string = '';"><pre class="notranslate"><code class="notranslate"> @HostBinding(`class.${this.cssClass}`) @Input() cssClass: string = ''; </code></pre></div> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p> <p dir="auto">NA</p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p> <p dir="auto">Dynamic css applying via decorators</p> <p dir="auto"><strong>Please tell us about your environment:</strong></p> <p dir="auto">NA</p> <ul dir="auto"> <li><strong>Angular version:</strong> 2.0.X</li> </ul> <p dir="auto">2.3.x</p> <ul dir="auto"> <li><strong>Browser:</strong> [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]</li> </ul> <p dir="auto">NA</p> <ul dir="auto"> <li> <p dir="auto"><strong>Language:</strong> [all | TypeScript X.X | ES6/7 | ES5]<br> TypeScript 2.1.x</p> </li> <li> <p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> =<br> Node 7.x</p> </li> </ul>
0
<p dir="auto">Extended from <a href="http://stackoverflow.com/questions/37032251/tensorflow-image-resize-mess-up-image-on-unknown-image-size" rel="nofollow">Stackoverflow question</a></p> <h3 dir="auto">Environment info</h3> <p dir="auto">Operating System: Ubuntu 14.04 / OS X Yosemite</p> <p dir="auto">Installed version of CUDA and cuDNN:<br> CUDA Version : 7.5<br> cuDnn: 4</p> <p dir="auto">Tensorflow version: 0.8.0</p> <p dir="auto">When resizing image with variable dimension (output from <code class="notranslate">decode_jpeg</code>), image tend to get messed up. However, if <code class="notranslate">reshape()</code> is applied prior to <code class="notranslate">resize()</code>, image will get resized properly. This issue does not affect <code class="notranslate">ResizeMethod.Nearest_Neighbour</code>.</p> <h3 dir="auto">Steps to reproduce</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" import tensorflow as tf import matplotlib.pyplot as plt file_contents = tf.read_file('./2008_000002.jpg') im = tf.image.decode_jpeg(file_contents) im_bi = tf.image.resize_images(im, 256, 256, method=tf.image.ResizeMethod.BILINEAR) im_nn = tf.image.resize_images(im, 256, 256, method=tf.image.ResizeMethod.NEAREST_NEIGHBOR) im_bic = tf.image.resize_images(im, 256, 256, method=tf.image.ResizeMethod.BICUBIC) im_ar = tf.image.resize_images(im, 256, 256, method=tf.image.ResizeMethod.AREA) # im = tf.reshape(im, shape=[256, 256, 3]) sess = tf.Session() sess.run(tf.initialize_all_variables()) img_bi, img_nn, img_bic, img_ar = sess.run([im_bi, im_nn, im_bic, im_ar]) plt.imshow(img_bi) plt.title(&quot;BILINEAR&quot;) plt.figure() plt.imshow(img_nn) plt.title(&quot;NEAREST_NEIGHBOR&quot;) plt.figure() plt.imshow(img_bic) plt.title(&quot;BICUBIC&quot;) plt.figure() plt.imshow(img_ar) plt.title('AREA') plt.show()"><pre class="notranslate"><code class="notranslate"> import tensorflow as tf import matplotlib.pyplot as plt file_contents = tf.read_file('./2008_000002.jpg') im = tf.image.decode_jpeg(file_contents) im_bi = tf.image.resize_images(im, 256, 256, method=tf.image.ResizeMethod.BILINEAR) im_nn = tf.image.resize_images(im, 256, 256, method=tf.image.ResizeMethod.NEAREST_NEIGHBOR) im_bic = tf.image.resize_images(im, 256, 256, method=tf.image.ResizeMethod.BICUBIC) im_ar = tf.image.resize_images(im, 256, 256, method=tf.image.ResizeMethod.AREA) # im = tf.reshape(im, shape=[256, 256, 3]) sess = tf.Session() sess.run(tf.initialize_all_variables()) img_bi, img_nn, img_bic, img_ar = sess.run([im_bi, im_nn, im_bic, im_ar]) plt.imshow(img_bi) plt.title("BILINEAR") plt.figure() plt.imshow(img_nn) plt.title("NEAREST_NEIGHBOR") plt.figure() plt.imshow(img_bic) plt.title("BICUBIC") plt.figure() plt.imshow(img_ar) plt.title('AREA') plt.show() </code></pre></div> <p dir="auto"><a href="http://imgur.com/MskVWIV" rel="nofollow">Original image</a></p> <p dir="auto">Result<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/650407/15034074/7b973208-12a4-11e6-943e-ea04e1389c01.png"><img src="https://cloud.githubusercontent.com/assets/650407/15034074/7b973208-12a4-11e6-943e-ea04e1389c01.png" alt="nearest Neighbour" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/650407/15034080/88bfbc84-12a4-11e6-81be-b0fa632d7997.png"><img src="https://cloud.githubusercontent.com/assets/650407/15034080/88bfbc84-12a4-11e6-81be-b0fa632d7997.png" alt="bilinear" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/650407/15034081/88c2a41c-12a4-11e6-9681-f008ec36ff0f.png"><img src="https://cloud.githubusercontent.com/assets/650407/15034081/88c2a41c-12a4-11e6-9681-f008ec36ff0f.png" alt="bicubic" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/650407/15034079/88bb4604-12a4-11e6-9ff9-1a53c49a5ab3.png"><img src="https://cloud.githubusercontent.com/assets/650407/15034079/88bb4604-12a4-11e6-9ff9-1a53c49a5ab3.png" alt="area" style="max-width: 100%;"></a></p>
<p dir="auto">It looks like the op <code class="notranslate">tf.image.resize_images()</code> has no effect on the image shape when the parameters <code class="notranslate">new_height</code> and <code class="notranslate">new_width</code> are dynamically computed (this is possible since the fix of issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="131664218" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/1001" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/1001/hovercard" href="https://github.com/tensorflow/tensorflow/issues/1001">#1001</a>).</p> <p dir="auto">For example, this piece of code</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="shape = tf.shape(image) height = shape[0] width = shape[1] new_shorter_edge = tf.constant(400, dtype=tf.int32) height_smaller_than_width = tf.less_equal(height, width) new_height_and_width = tf.cond( height_smaller_than_width, lambda: (new_shorter_edge, _compute_longer_edge(height, width, new_shorter_edge)), lambda: (_compute_longer_edge(width, height, new_shorter_edge), new_shorter_edge) ) image = tf.image.resize_images(image, new_height_and_width[0], new_height_and_width[1]) image = tf.Print(image, [tf.shape(image), height, width, new_height_and_width[0], new_height_and_width[1]]) return tf.image.random_crop(image, [224, 224])"><pre class="notranslate"><code class="notranslate">shape = tf.shape(image) height = shape[0] width = shape[1] new_shorter_edge = tf.constant(400, dtype=tf.int32) height_smaller_than_width = tf.less_equal(height, width) new_height_and_width = tf.cond( height_smaller_than_width, lambda: (new_shorter_edge, _compute_longer_edge(height, width, new_shorter_edge)), lambda: (_compute_longer_edge(width, height, new_shorter_edge), new_shorter_edge) ) image = tf.image.resize_images(image, new_height_and_width[0], new_height_and_width[1]) image = tf.Print(image, [tf.shape(image), height, width, new_height_and_width[0], new_height_and_width[1]]) return tf.image.random_crop(image, [224, 224]) </code></pre></div> <p dir="auto">throws the following exception:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="I tensorflow/core/kernels/logging_ops.cc:79] [122 160 3][122][160][400][524] W tensorflow/core/common_runtime/executor.cc:1096] 0x7f9c08008490 Compute status: Failed precondition: width must be &gt;= target_width: width = 160, target_width = 224"><pre class="notranslate"><code class="notranslate">I tensorflow/core/kernels/logging_ops.cc:79] [122 160 3][122][160][400][524] W tensorflow/core/common_runtime/executor.cc:1096] 0x7f9c08008490 Compute status: Failed precondition: width must be &gt;= target_width: width = 160, target_width = 224 </code></pre></div> <p dir="auto">So as you can see in the first line of the printout, the shape of the image is not affected by <code class="notranslate">tf.image.resize_images</code>. Is this a bug or am I doing something wrong?</p> <hr> <p dir="auto">I also made up a workaround for this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="image = tf.expand_dims(image, 0) image = tf.image.resize_bilinear(image, tf.pack(new_height_and_width)) image = tf.squeeze(image, [0]) image = tf.Print(image, [tf.shape(image), height, width, new_height_and_width[0], new_height_and_width[1]]) return tf.image.random_crop(image, [224, 224])"><pre class="notranslate"><code class="notranslate">image = tf.expand_dims(image, 0) image = tf.image.resize_bilinear(image, tf.pack(new_height_and_width)) image = tf.squeeze(image, [0]) image = tf.Print(image, [tf.shape(image), height, width, new_height_and_width[0], new_height_and_width[1]]) return tf.image.random_crop(image, [224, 224]) </code></pre></div> <p dir="auto">for example prints</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="I tensorflow/core/kernels/logging_ops.cc:79] [400 711 3][281][500][400][711]"><pre class="notranslate"><code class="notranslate">I tensorflow/core/kernels/logging_ops.cc:79] [400 711 3][281][500][400][711] </code></pre></div>
1
<p dir="auto">Hi team ,<br> I am facing trouble while navigation from one challenge to next challenge. It is showing error while I move to next challenge after completion of the current challenge successfully.<br> I am attaching screenshot also.<br> Please help.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6574625/13028162/ad13162e-d28c-11e5-829d-48a9daa5cbfb.png"><img src="https://cloud.githubusercontent.com/assets/6574625/13028162/ad13162e-d28c-11e5-829d-48a9daa5cbfb.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Regards,<br> Surender</p>
<p dir="auto">Intermediate Algorithm Scripting challenge "Missing Letter" - helpful links "String.charCodeAt()" url link is incorrect.</p>
0
<p dir="auto">I seem to be getting setFunctionBreakpoints requests after the launch request whereas setBreakpoints requests come in before the launch request. Should I be using the configurationDone request or something here? BTW the extension is configured to send the initialized event in the processing of the initialize request but before the initialize response is sent. Could that be causing this?</p>
<ul dir="auto"> <li>VSCode Version: 0.10.12-alpha</li> <li>OS Version: Windows10</li> </ul> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>Launch app and open a folder for "Blank Node.js TypeScript" project.</li> <li>Click on debug icon from the view bar and set node debugger.</li> <li>It will generate a launch.json file with some default settings.</li> <li>Try to debug and verify error messages.<br> 5 try to generate few more errors by updating invalid entries in launch.json.</li> <li>Now fix all the error by updating launch.json and start debugging.</li> <li>Verify command prompt and make sure it should not generate any error message.</li> </ol> <p dir="auto">Actual:<br> Error message pop-up remains forever and user needs to click on close button to get rid from error popup.</p> <p dir="auto">Debugger started and command prompt displaying message like below with error pop-up.<br> node --debug-brk=29322 --nolazy BlankNodeJSTypeScriptApp\server.js<br> Debugger listening on port 29322</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/17735796/13976372/8580fa5a-f07c-11e5-8639-4836677e1352.png"><img src="https://cloud.githubusercontent.com/assets/17735796/13976372/8580fa5a-f07c-11e5-8639-4836677e1352.png" alt="image" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/17735796/13976224/175dbc9e-f07b-11e5-9f05-c8a559e3e6f6.png"><img src="https://cloud.githubusercontent.com/assets/17735796/13976224/175dbc9e-f07b-11e5-9f05-c8a559e3e6f6.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Debug control action hidden behind the error pop-up.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/17735796/13976214/d9e005fc-f07a-11e5-9e09-37c8ef56ed00.png"><img src="https://cloud.githubusercontent.com/assets/17735796/13976214/d9e005fc-f07a-11e5-9e09-37c8ef56ed00.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Expected: Once user fixed the errors and start debugging then error pop-up should not be displayed.</p>
0
<p dir="auto">Setting up <a href="https://github.com/SphinxKnight/Twitter-Assistant">https://github.com/SphinxKnight/Twitter-Assistant</a>, at the <code class="notranslate">npm run build</code>, a TS1005 error was thrown. This is due to the signature of the <code class="notranslate">isArray</code> method in <code class="notranslate">lib.es6.d.ts</code> which is incorrect.</p> <p dir="auto">This typo also occurs in signatures for <code class="notranslate">isView</code> with <code class="notranslate">ArrayBuffer</code>.</p> <p dir="auto">Note: This wasn't detected by running the tests.</p>
<p dir="auto">This interface contains:<br> isArray(arg: any): arg is Array;<br> but I think it should be:<br> isArray(arg: any): boolean;</p> <p dir="auto">It doesn't compile as it is.</p>
1
<p dir="auto">React version: 18.0.x, 18.1.x, 18.2.x</p> <h2 dir="auto">Steps To Reproduce</h2> <ol dir="auto"> <li>Visit provided sandbox</li> <li>Open console and observe logs displayed twice.</li> <li>Click the button and observe the rendering log happens twice, the effect log happens once.</li> </ol> <p dir="auto">Link to code example: <a href="https://codesandbox.io/s/react-18-use-effect-bug-iqn1fx" rel="nofollow">https://codesandbox.io/s/react-18-use-effect-bug-iqn1fx</a></p> <h2 dir="auto">The current behavior</h2> <p dir="auto">The useEffect callback runs twice for initial render, probably because the component renders twice. After state change the component renders twice but the effect runs once.</p> <h2 dir="auto">The expected behavior</h2> <p dir="auto">I should not see different number of renders in dev and prod modes.</p> <h2 dir="auto">Extras</h2> <p dir="auto">The code to reproduce:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { useEffect, useReducer } from &quot;react&quot;; import &quot;./styles.css&quot;; export default function App() { const [enabled, toggle] = useReducer((x) =&gt; !x, false); useEffect(() =&gt; { console.log( &quot;You will see this log twice for dev mode, once after state change - double effect call&quot; ); }, [enabled]); console.log(&quot;You will see this log twice for dev mode - double rendering&quot;); return ( &lt;div className=&quot;App&quot;&gt; &lt;h1&gt;Hello CodeSandbox&lt;/h1&gt; &lt;h2&gt;Start editing to see some magic happen!&lt;/h2&gt; &lt;button onClick={() =&gt; toggle()}&gt; Toggle me: {enabled ? &quot;on&quot; : &quot;off&quot;} &lt;/button&gt; &lt;/div&gt; ); } "><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">useEffect</span><span class="pl-kos">,</span> <span class="pl-s1">useReducer</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-s">"./styles.css"</span><span class="pl-kos">;</span> <span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-k">function</span> <span class="pl-v">App</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><span class="pl-s1">enabled</span><span class="pl-kos">,</span> <span class="pl-s1">toggle</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-en">useReducer</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">x</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-c1">!</span><span class="pl-s1">x</span><span class="pl-kos">,</span> <span class="pl-c1">false</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">useEffect</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span> <span class="pl-s">"You will see this log twice for dev mode, once after state change - double effect call"</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">enabled</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">"You will see this log twice for dev mode - double rendering"</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-c1">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">className</span><span class="pl-c1">=</span><span class="pl-s">"App"</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">h1</span><span class="pl-c1">&gt;</span>Hello CodeSandbox<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">h1</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">h2</span><span class="pl-c1">&gt;</span>Start editing to see some magic happen!<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">h2</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">onClick</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">=&gt;</span> <span class="pl-s1">toggle</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span> Toggle me: <span class="pl-kos">{</span><span class="pl-s1">enabled</span> ? <span class="pl-s">"on"</span> : <span class="pl-s">"off"</span><span class="pl-kos">}</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">button</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div>
<p dir="auto">When trying to use react-addons-perf@15.1.0 in Google Chrome, it is found that after Perf.start(), error messages displayed<br> Warning: There is an internal error in the React performance measurement code. Did not expect ctor timer to start while componentDidMount timer is still in progress for another instance.<br> Warning: There is an internal error in the React performance measurement code. We did not expect componentDidMount timer to stop while no timer is still in progress for another instance. Please report this as a bug in React.</p> <p dir="auto">After I typed Perf.stop() and try to use getWasted - this error message displayed<br> ReactPerf.js:239 Uncaught TypeError: Cannot read property 'updateCount' of undefined(…)</p>
0
<p dir="auto">When working in a CSS file (or presumably any type of file), if the file is updated from an outside source, the position of the page will reset causing you to have to scroll back down to where you were.</p> <p dir="auto">Case: When working in CSS, I often work both directly in the CSS and via Chrome Dev Tools (changes are autosaved to the local CSS). Every time the file changes via Chrome Dev Tools, Atom resets the scroll position.</p> <p dir="auto">Sublime Text handles this perfectly. Any changes are just updated but your position is never lost. This can probably be solved by just capturing the current line number before the file resets, then going back to that number.</p>
<p dir="auto">steps to reproduce</p> <ol dir="auto"> <li>open a log file in atom</li> <li>scroll part way down the file</li> <li>add new line to end of log file with an external tool/editor and save</li> <li>go back and view the log file in atom</li> </ol> <p dir="auto">expected</p> <ul dir="auto"> <li>log file is reloaded</li> <li>log file scroll position is still part way down (same as in step 2 above)</li> </ul> <p dir="auto">actual</p> <ul dir="auto"> <li>log file is reloaded (PASS)</li> <li>log file scroll position goes back to top (FAIL)</li> </ul> <p dir="auto">Every time a new line is added externally the editor reloads it (as it should) but it jumps to the top which makes it impossible to read log files while they're been written because atom constantly jump back to the top.</p>
1
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel beta, v0.5.1, on Mac OS X 10.13.5 17F77, locale en-CR) [✓] Android toolchain - develop for Android devices (Android SDK 28.0.1) [✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1) [✓] Android Studio (version 3.1) [!] IntelliJ IDEA Community Edition (version 2017.1.2) ✗ Flutter plugin not installed; this adds Flutter specific functionality. [✓] Connected devices (2 available)"><pre class="notranslate"><code class="notranslate">Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel beta, v0.5.1, on Mac OS X 10.13.5 17F77, locale en-CR) [✓] Android toolchain - develop for Android devices (Android SDK 28.0.1) [✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1) [✓] Android Studio (version 3.1) [!] IntelliJ IDEA Community Edition (version 2017.1.2) ✗ Flutter plugin not installed; this adds Flutter specific functionality. [✓] Connected devices (2 available) </code></pre></div> <p dir="auto">Download the Flutter gallery app from the <a href="https://play.google.com/store/apps/details?id=io.flutter.demo.gallery" rel="nofollow">Google Play Store</a>, open the Date Time picker example, the Ok/Cancel buttons are not rendered due the screen size.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1301103/42246268-391fe6e2-7ed9-11e8-95b6-48276461ce42.png"><img src="https://user-images.githubusercontent.com/1301103/42246268-391fe6e2-7ed9-11e8-95b6-48276461ce42.png" alt="device-2018-07-03-155311" style="max-width: 100%;"></a></p> <p dir="auto">I was able to reproduce it also doing my implementation of the <a href="https://github.com/flutter/flutter/blob/master/examples/flutter_gallery/lib/demo/material/date_and_time_picker_demo.dart">Date and Time picker demo</a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1301103/42246373-937bc408-7ed9-11e8-9d06-821136bc2762.png"><img src="https://user-images.githubusercontent.com/1301103/42246373-937bc408-7ed9-11e8-9d06-821136bc2762.png" alt="device-2018-07-03-155549" style="max-width: 100%;"></a></p> <p dir="auto">This issue only happens on small screen devices, if I open the Date Picker dialog in a +5" everything is rendered correctly.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="flutter doctor Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel beta, v0.5.1, on Mac OS X 10.13.6 17G65, locale pt-BR) [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) [✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1) [✓] Android Studio (version 3.1) [✓] Connected devices (1 available)"><pre class="notranslate"><code class="notranslate">flutter doctor Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel beta, v0.5.1, on Mac OS X 10.13.6 17G65, locale pt-BR) [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) [✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1) [✓] Android Studio (version 3.1) [✓] Connected devices (1 available) </code></pre></div> <p dir="auto">The <code class="notranslate">DatePicker</code> widget is with bug when displayed on small mobile phone screens.</p> <p dir="auto">(LG K130) mobile phone screen is is height: 521 and width: 320</p> <p dir="auto">Below is the evidence and the code used</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/9912894/43180959-4a7d6bce-8fb1-11e8-8cd1-21c9cac4db7b.png"><img src="https://user-images.githubusercontent.com/9912894/43180959-4a7d6bce-8fb1-11e8-8cd1-21c9cac4db7b.png" alt="screenshot_2018-07-25-02-10-29" style="max-width: 100%;"></a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/9912894/43180967-52a87762-8fb1-11e8-9fa1-0301230690f1.png"><img src="https://user-images.githubusercontent.com/9912894/43180967-52a87762-8fb1-11e8-9fa1-0301230690f1.png" alt="screenshot_2018-07-25-02-10-44" style="max-width: 100%;"></a></p> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import 'dart:async'; import 'package:flutter/material.dart'; import 'dart:ui' as ui; void main() =&gt; runApp(new MyApp()); class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return new MaterialApp( home: new MyHomePage(), ); } } class MyHomePage extends StatefulWidget { @override _MyHomePageState createState() =&gt; new _MyHomePageState(); } class _MyHomePageState extends State&lt;MyHomePage&gt; { DateTime _fromDateTime = new DateTime.now(); Future&lt;Null&gt; _selectDate(BuildContext context) async { final DateTime picked = await showDatePicker( context: context, initialDate: _fromDateTime, firstDate: new DateTime(2018), lastDate: new DateTime(2020) ); if(picked != null &amp;&amp; picked != _fromDateTime) { setState(() { _fromDateTime = picked; }); } } @override Widget build(BuildContext context) { final ui.Size logicalSize = MediaQuery.of(context).size; final double _width = logicalSize.width; final double _height = logicalSize.height; // [height: , 521.3333333333334, _width: , 320.0] print(['height: ', _height, ' _width: ', _width]); return new Scaffold( appBar: new AppBar(), body: new InkWell( onTap: () { _selectDate(context); }, child: new Container( padding: EdgeInsets.only(top: 12.0, bottom: 12.0, left: 16.0, right: 16.0), decoration: new BoxDecoration( borderRadius: new BorderRadius.all(new Radius.circular(4.0)), border: new Border.all( color: Colors.black45, width: 1.0, ), ), child: new Text('${_fromDateTime.toString()}'), ), ) ); } }"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s">'dart:async'</span>; <span class="pl-k">import</span> <span class="pl-s">'package:flutter/material.dart'</span>; <span class="pl-k">import</span> <span class="pl-s">'dart:ui'</span> <span class="pl-k">as</span> ui; <span class="pl-k">void</span> <span class="pl-en">main</span>() <span class="pl-k">=&gt;</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-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>( home<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">MyHomePage</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-k">@override</span> <span class="pl-c1">_MyHomePageState</span> <span class="pl-en">createState</span>() <span class="pl-k">=&gt;</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>&lt;<span class="pl-c1">MyHomePage</span>&gt; { <span class="pl-c1">DateTime</span> _fromDateTime <span class="pl-k">=</span> <span class="pl-k">new</span> <span class="pl-c1">DateTime</span>.<span class="pl-en">now</span>(); <span class="pl-c1">Future</span>&lt;<span class="pl-c1">Null</span>&gt; <span class="pl-en">_selectDate</span>(<span class="pl-c1">BuildContext</span> context) <span class="pl-k">async</span> { <span class="pl-k">final</span> <span class="pl-c1">DateTime</span> picked <span class="pl-k">=</span> <span class="pl-k">await</span> <span class="pl-en">showDatePicker</span>( context<span class="pl-k">:</span> context, initialDate<span class="pl-k">:</span> _fromDateTime, firstDate<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">DateTime</span>(<span class="pl-c1">2018</span>), lastDate<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">DateTime</span>(<span class="pl-c1">2020</span>) ); <span class="pl-k">if</span>(picked <span class="pl-k">!=</span> <span class="pl-c1">null</span> <span class="pl-k">&amp;&amp;</span> picked <span class="pl-k">!=</span> _fromDateTime) { <span class="pl-en">setState</span>(() { _fromDateTime <span class="pl-k">=</span> picked; }); } } <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">final</span> ui.<span class="pl-c1">Size</span> logicalSize <span class="pl-k">=</span> <span class="pl-c1">MediaQuery</span>.<span class="pl-en">of</span>(context).size; <span class="pl-k">final</span> <span class="pl-c1">double</span> _width <span class="pl-k">=</span> logicalSize.width; <span class="pl-k">final</span> <span class="pl-c1">double</span> _height <span class="pl-k">=</span> logicalSize.height; <span class="pl-c">// [height: , 521.3333333333334, _width: , 320.0]</span> <span class="pl-en">print</span>([<span class="pl-s">'height: '</span>, _height, <span class="pl-s">' _width: '</span>, _width]); <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>(), body<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">InkWell</span>( onTap<span class="pl-k">:</span> () { <span class="pl-en">_selectDate</span>(context); }, child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Container</span>( padding<span class="pl-k">:</span> <span class="pl-c1">EdgeInsets</span>.<span class="pl-en">only</span>(top<span class="pl-k">:</span> <span class="pl-c1">12.0</span>, bottom<span class="pl-k">:</span> <span class="pl-c1">12.0</span>, left<span class="pl-k">:</span> <span class="pl-c1">16.0</span>, right<span class="pl-k">:</span> <span class="pl-c1">16.0</span>), decoration<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">BoxDecoration</span>( borderRadius<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">BorderRadius</span>.<span class="pl-en">all</span>(<span class="pl-k">new</span> <span class="pl-c1">Radius</span>.<span class="pl-en">circular</span>(<span class="pl-c1">4.0</span>)), border<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Border</span>.<span class="pl-en">all</span>( color<span class="pl-k">:</span> <span class="pl-c1">Colors</span>.black45, width<span class="pl-k">:</span> <span class="pl-c1">1.0</span>, ), ), child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Text</span>(<span class="pl-s">'<span class="pl-s">${<span class="pl-v">_fromDateTime</span>.<span class="pl-en">toString</span>()}</span>'</span>), ), ) ); } }</pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="I/flutter ( 3470): ══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════ I/flutter ( 3470): The following message was thrown during layout: I/flutter ( 3470): A RenderFlex overflowed by 40 pixels on the bottom. I/flutter ( 3470): The overflowing RenderFlex has an orientation of Axis.vertical. I/flutter ( 3470): The edge of the RenderFlex that is overflowing has been marked in the rendering with a yellow and I/flutter ( 3470): black striped pattern. This is usually caused by the contents being too big for the RenderFlex. I/flutter ( 3470): Consider applying a flex factor (e.g. using an Expanded widget) to force the children of the I/flutter ( 3470): RenderFlex to fit within the available space instead of being sized to their natural size. I/flutter ( 3470): This is considered an error condition because it indicates that there is content that cannot be I/flutter ( 3470): seen. If the content is legitimately bigger than the available space, consider clippingit with a I/flutter ( 3470): ClipRect widget before putting it in the flex, or using a scrollable container rather than a Flex, I/flutter ( 3470): like a ListView. I/flutter ( 3470): The specific RenderFlex in question is: I/flutter ( 3470): RenderFlex#ecf38 relayoutBoundary=up7 OVERFLOWING I/flutter ( 3470): creator: Column ← SizedBox ← LayoutBuilder ← OrientationBuilder ← DefaultTextStyle ← I/flutter ( 3470): AnimatedDefaultTextStyle ← _InkFeatures-[GlobalKey#7e953 ink renderer] ← I/flutter ( 3470): NotificationListener&lt;LayoutChangedNotification&gt; ← CustomPaint ← _ShapeBorderPaint ← PhysicalShape I/flutter ( 3470): ← _MaterialInterior ← ⋯ I/flutter ( 3470): parentData: &lt;none&gt; (can use size) I/flutter ( 3470): constraints: BoxConstraints(w=240.0, 0.0&lt;=h&lt;=448.0) I/flutter ( 3470): size: Size(240.0, 448.0) I/flutter ( 3470): direction: vertical I/flutter ( 3470): mainAxisAlignment: start I/flutter ( 3470): mainAxisSize: min I/flutter ( 3470): crossAxisAlignment: stretch I/flutter ( 3470): verticalDirection: down I/flutter ( 3470): ◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤ I/flutter ( 3470): ════════════════════════════════════════════════════════════════════════════════════════════════════ ` ``"><pre class="notranslate"><code class="notranslate">I/flutter ( 3470): ══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════ I/flutter ( 3470): The following message was thrown during layout: I/flutter ( 3470): A RenderFlex overflowed by 40 pixels on the bottom. I/flutter ( 3470): The overflowing RenderFlex has an orientation of Axis.vertical. I/flutter ( 3470): The edge of the RenderFlex that is overflowing has been marked in the rendering with a yellow and I/flutter ( 3470): black striped pattern. This is usually caused by the contents being too big for the RenderFlex. I/flutter ( 3470): Consider applying a flex factor (e.g. using an Expanded widget) to force the children of the I/flutter ( 3470): RenderFlex to fit within the available space instead of being sized to their natural size. I/flutter ( 3470): This is considered an error condition because it indicates that there is content that cannot be I/flutter ( 3470): seen. If the content is legitimately bigger than the available space, consider clippingit with a I/flutter ( 3470): ClipRect widget before putting it in the flex, or using a scrollable container rather than a Flex, I/flutter ( 3470): like a ListView. I/flutter ( 3470): The specific RenderFlex in question is: I/flutter ( 3470): RenderFlex#ecf38 relayoutBoundary=up7 OVERFLOWING I/flutter ( 3470): creator: Column ← SizedBox ← LayoutBuilder ← OrientationBuilder ← DefaultTextStyle ← I/flutter ( 3470): AnimatedDefaultTextStyle ← _InkFeatures-[GlobalKey#7e953 ink renderer] ← I/flutter ( 3470): NotificationListener&lt;LayoutChangedNotification&gt; ← CustomPaint ← _ShapeBorderPaint ← PhysicalShape I/flutter ( 3470): ← _MaterialInterior ← ⋯ I/flutter ( 3470): parentData: &lt;none&gt; (can use size) I/flutter ( 3470): constraints: BoxConstraints(w=240.0, 0.0&lt;=h&lt;=448.0) I/flutter ( 3470): size: Size(240.0, 448.0) I/flutter ( 3470): direction: vertical I/flutter ( 3470): mainAxisAlignment: start I/flutter ( 3470): mainAxisSize: min I/flutter ( 3470): crossAxisAlignment: stretch I/flutter ( 3470): verticalDirection: down I/flutter ( 3470): ◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤ I/flutter ( 3470): ════════════════════════════════════════════════════════════════════════════════════════════════════ ` `` </code></pre></div>
1
<h2 dir="auto">Guidelines</h2> <p dir="auto">Please note that GitHub issues are only meant for bug reports/feature requests.<br> If you have questions on how to use Neo4j, please ask on <a href="http://stackoverflow.com/questions/tagged/neo4j" rel="nofollow">StackOverflow</a> instead of creating an issue here.</p> <p dir="auto">To help us understand your issue, please specify important details, primarily:</p> <ul dir="auto"> <li>Neo4j version: X.Y.Z</li> <li>Operating system: (for example Windows 95/Ubuntu 16.04)</li> <li>API/Driver: (for example Cypher/Java API/Python driver vX.Y.Z)</li> <li><strong>Steps to reproduce</strong></li> <li>Expected behavior</li> <li>Actual behavior</li> </ul> <p dir="auto">Additionally, include (as appropriate) log-files, stacktraces, and other debug output.</p> <h2 dir="auto">Example bug report</h2> <p dir="auto">I discovered that when I mount <code class="notranslate">data/</code> to a volume on my host, and then stop the container, the <code class="notranslate">write.lock</code> is not removed as well as a number of other files not being cleaned up properly.</p> <p dir="auto"><strong>Neo4j Version:</strong> 3.0M03<br> <strong>Operating System:</strong> Ubuntu 15.10<br> <strong>API:</strong> Docker</p> <h3 dir="auto">Steps to reproduce</h3> <ol dir="auto"> <li>Pull the image: <code class="notranslate">docker pull neo4j/neo4j:3.0.0-M03</code></li> <li>Create a directory on the host that will be a mount for the data: <code class="notranslate">mkdir /home/neo4j-data</code></li> <li>Start a new container that mounts to this directory: <code class="notranslate">docker run -d --name neo4j-test -p 7474:7474 -v /home/neo4j:/data neo4j/neo4j:3.0.0-M03</code></li> <li>Navigate to the <code class="notranslate">write.lock</code> file located in the directory: <code class="notranslate">/data/databases/graph.db/schema/label/lucene/labelStore/1/</code></li> <li>Stop the container: <code class="notranslate">docker stop neo4j-test</code></li> </ol> <h3 dir="auto">Expected behavior</h3> <p dir="auto"><code class="notranslate">write.lock</code> should be removed now.</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto"><code class="notranslate">write.lock</code> is still present and preventing access by other programs.</p>
<p dir="auto">The Neo4j server was starting just fine... Then I uninstalled and re-installed Java (to deal with another issue), and now the Neo4j server cannot even start!</p> <ul dir="auto"> <li> <p dir="auto">Neo4j version: Community Edition 3.4.9</p> </li> <li> <p dir="auto">Operating system: Windows 10</p> </li> <li> <p dir="auto"><strong>Steps to reproduce</strong></p> </li> </ul> <ol dir="auto"> <li>Start the Windows10 Power Shell</li> <li>Issue the command <code class="notranslate">D:\neo4j\bin\neo4j console</code> ( D:\neo4j is my Neo4j install directory)</li> </ol> <ul dir="auto"> <li>Expected behavior : start the Neo4j server</li> <li>Actual behavior: error message</li> </ul> <p dir="auto">`</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Invoke-Neo4j : Could not find java at C:\Program Files (x86)\Java\jdk1.8.0_181\bin\java.exe At line:1 char:163 ... ule 'D:\neo4j\bin\Neo4j-Management.psd1'; Exit (Invoke-Neo4j console) ~~~~~~~~~~~~~~~~~~~~ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-Neo4j"><pre class="notranslate"><code class="notranslate">Invoke-Neo4j : Could not find java at C:\Program Files (x86)\Java\jdk1.8.0_181\bin\java.exe At line:1 char:163 ... ule 'D:\neo4j\bin\Neo4j-Management.psd1'; Exit (Invoke-Neo4j console) ~~~~~~~~~~~~~~~~~~~~ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-Neo4j </code></pre></div> <p dir="auto">`</p> <p dir="auto">I don't even know where it's dreaming up the <em>C:\Program Files (x86)\Java</em> part - Java is installed on <code class="notranslate">C:\Program Files\Java</code> (as expected for a 64-bit version)<br> The Windows 10 control panel is showing "<strong>Java SE Development Kit 8 Update 181</strong>" and "**Java SE Development Kit 8 Update 181 (64-bit)<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/41893046/47200312-7f24b780-d32a-11e8-9f37-7897f3c19952.JPG"><img src="https://user-images.githubusercontent.com/41893046/47200312-7f24b780-d32a-11e8-9f37-7897f3c19952.JPG" alt="neo4j startup bug" style="max-width: 100%;"></a><br> **". Note: I just uninstalled and re-installed Java, but it didn't help</p> <p dir="auto">PS: I took a peek at the Windows registry, and didn't notice anything immediately looking abnormal. For example, it shows <code class="notranslate">JavaHome</code> to be set to <code class="notranslate">C:\Program Files\Java\jre1.8.0_181</code> , which looks good. And none of the registry entries under <code class="notranslate">JavaSoft</code> show that mysterious <em>C:\Program Files (x86)</em> folder that shouldn't be there...</p>
1
<p dir="auto">I am working on an app with messaging capability. When the app has been force closed or is running in the background the user receives a push notification. Clicking on the notification opens the app and ideally brings them to the thread of the message they just received. However, currently I am pushing three separate pages onto the stack and therefore one of the pages is shown for a split second before loading the thread. It would be ideal to be able to <strong>push a tree of pages</strong> onto the stack so that only the last page loads and is shown to the user rather than briefly showing all three.</p>
<p dir="auto">We should document how to add deep links to an app. This is the first<br> use case mentioned in the larger discussion mentioned <a href="https://github.com/flutter/flutter/issues/10975#issuecomment-315862405" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/10975/hovercard">in bug 10975</a>, quoted here for easy access:</p> <ul dir="auto"> <li><strong>External URLs:</strong> <em>A movie database app wants to register to take over handling URLs for its website. Now when the user clicks on the URL the details for that movie are shown in the app instead of the browser.</em><br> Android and iOS have mechanisms that allow an app to register as a handler for external URLs. Android uses <a href="https://developer.android.com/training/app-links/index.html#url-handling" rel="nofollow">App Links</a>, and iOS uses <a href="https://developer.apple.com/library/content/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/Inter-AppCommunication/Inter-AppCommunication.html#//apple_ref/doc/uid/TP40007072-CH6-SW1" rel="nofollow">URL Schemes</a>. These mechanisms allow the app to register as a handler for URLs that can be invoked by other applications.</li> </ul> <p dir="auto">From a customer:</p> <p dir="auto">"We need a URL that will 1) take the user to a specific part in our app (a chat, for example) if they have the app installed or 2) take a user to the device specific app store and then do 1) after they install the app. I think this is called Google Play Referrer on Android "</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="233124597" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/10452" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/10452/hovercard" href="https://github.com/flutter/flutter/issues/10452">#10452</a> added engine support for setting an initial route in a Flutter app, which is "deep" in the app (i.e., not the start page of the app) so this should be possible now, we just need some docs.</p>
1
<h3 dir="auto">Bug summary</h3> <p dir="auto">The contour label (clabel) manual mode fails place any labels. When I click the plot I get an error:<br> 'QuadContourSet' object has no attribute 'ax'<br> and no labels are added.<br> I put the Contour Label Demo as an example with clabel option manual=True, but this has happened with different scripts.</p> <h3 dir="auto">Code for reproduction</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np import matplotlib.ticker as ticker import matplotlib.pyplot as plt delta = 0.025 x = np.arange(-3.0, 3.0, delta) y = np.arange(-2.0, 2.0, delta) X, Y = np.meshgrid(x, y) Z1 = np.exp(-X**2 - Y**2) Z2 = np.exp(-(X - 1)**2 - (Y - 1)**2) Z = (Z1 - Z2) * 2 # This custom formatter removes trailing zeros, e.g. &quot;1.0&quot; becomes &quot;1&quot;, and # then adds a percent sign. def fmt(x): s = f&quot;{x:.1f}&quot; if s.endswith(&quot;0&quot;): s = f&quot;{x:.0f}&quot; return rf&quot;{s} \%&quot; if plt.rcParams[&quot;text.usetex&quot;] else f&quot;{s} %&quot; # Basic contour plot fig, ax = plt.subplots() CS = ax.contour(X, Y, Z) ax.clabel(CS, CS.levels, inline=True, fmt=fmt, fontsize=10, manual=True) plt.show()"><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">ticker</span> <span class="pl-k">as</span> <span class="pl-s1">ticker</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-s1">delta</span> <span class="pl-c1">=</span> <span class="pl-c1">0.025</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">-</span><span class="pl-c1">3.0</span>, <span class="pl-c1">3.0</span>, <span class="pl-s1">delta</span>) <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">-</span><span class="pl-c1">2.0</span>, <span class="pl-c1">2.0</span>, <span class="pl-s1">delta</span>) <span class="pl-v">X</span>, <span class="pl-v">Y</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">meshgrid</span>(<span class="pl-s1">x</span>, <span class="pl-s1">y</span>) <span class="pl-v">Z1</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">exp</span>(<span class="pl-c1">-</span><span class="pl-v">X</span><span class="pl-c1">**</span><span class="pl-c1">2</span> <span class="pl-c1">-</span> <span class="pl-v">Y</span><span class="pl-c1">**</span><span class="pl-c1">2</span>) <span class="pl-v">Z2</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">exp</span>(<span class="pl-c1">-</span>(<span class="pl-v">X</span> <span class="pl-c1">-</span> <span class="pl-c1">1</span>)<span class="pl-c1">**</span><span class="pl-c1">2</span> <span class="pl-c1">-</span> (<span class="pl-v">Y</span> <span class="pl-c1">-</span> <span class="pl-c1">1</span>)<span class="pl-c1">**</span><span class="pl-c1">2</span>) <span class="pl-v">Z</span> <span class="pl-c1">=</span> (<span class="pl-v">Z1</span> <span class="pl-c1">-</span> <span class="pl-v">Z2</span>) <span class="pl-c1">*</span> <span class="pl-c1">2</span> <span class="pl-c"># This custom formatter removes trailing zeros, e.g. "1.0" becomes "1", and</span> <span class="pl-c"># then adds a percent sign.</span> <span class="pl-k">def</span> <span class="pl-en">fmt</span>(<span class="pl-s1">x</span>): <span class="pl-s1">s</span> <span class="pl-c1">=</span> <span class="pl-s">f"<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">x</span>:.1f<span class="pl-kos">}</span></span>"</span> <span class="pl-k">if</span> <span class="pl-s1">s</span>.<span class="pl-en">endswith</span>(<span class="pl-s">"0"</span>): <span class="pl-s1">s</span> <span class="pl-c1">=</span> <span class="pl-s">f"<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">x</span>:.0f<span class="pl-kos">}</span></span>"</span> <span class="pl-k">return</span> <span class="pl-s">rf"<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">s</span><span class="pl-kos">}</span></span> \%"</span> <span class="pl-k">if</span> <span class="pl-s1">plt</span>.<span class="pl-s1">rcParams</span>[<span class="pl-s">"text.usetex"</span>] <span class="pl-k">else</span> <span class="pl-s">f"<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">s</span><span class="pl-kos">}</span></span> %"</span> <span class="pl-c"># Basic contour plot</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-v">CS</span> <span class="pl-c1">=</span> <span class="pl-s1">ax</span>.<span class="pl-en">contour</span>(<span class="pl-v">X</span>, <span class="pl-v">Y</span>, <span class="pl-v">Z</span>) <span class="pl-s1">ax</span>.<span class="pl-en">clabel</span>(<span class="pl-v">CS</span>, <span class="pl-v">CS</span>.<span class="pl-s1">levels</span>, <span class="pl-s1">inline</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">fmt</span><span class="pl-c1">=</span><span class="pl-s1">fmt</span>, <span class="pl-s1">fontsize</span><span class="pl-c1">=</span><span class="pl-c1">10</span>, <span class="pl-s1">manual</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div> <h3 dir="auto">Actual outcome</h3> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/102812332/161284744-7b4368e0-bcd5-462c-a26d-a4fd496bc40f.png"><img src="https://user-images.githubusercontent.com/102812332/161284744-7b4368e0-bcd5-462c-a26d-a4fd496bc40f.png" alt="contour" style="max-width: 100%;"></a><br> I get the following error:<br> Traceback (most recent call last):<br> File "/Users/azahel/anaconda3/lib/python3.9/site-packages/matplotlib/cbook/<strong>init</strong>.py", line 287, in process<br> func(*args, **kwargs)<br> File "/Users/azahel/anaconda3/lib/python3.9/site-packages/matplotlib/contour.py", line 70, in _contour_labeler_event_handler<br> if event.inaxes == cs.ax:<br> AttributeError: 'QuadContourSet' object has no attribute 'ax'</p> <h3 dir="auto">Expected outcome</h3> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/102812332/161284456-3f4a173b-fa16-44e6-8e36-f314154a46b6.png"><img src="https://user-images.githubusercontent.com/102812332/161284456-3f4a173b-fa16-44e6-8e36-f314154a46b6.png" alt="image" style="max-width: 100%;"></a></p> <h3 dir="auto">Additional information</h3> <p dir="auto">I recently upgraded matplotlib to 3.5.1, I'm not sure if this was a problem with previous versions.<br> Checking the file contour.py it is clear that ContourSet, and by extension QuadContourSet, do not have the attribute "ax" but rather "axes".<br> Changing line 70 from contour.py<br> " if event.inaxes == cs.ax:"<br> to<br> " if event.inaxes == cs.axes:"<br> resolves the issue.<br> Seeing in the documentation that Contour set is described to have the attribute "ax", perhaps the real fix would be to change ContourSet class.</p> <h3 dir="auto">Operating system</h3> <p dir="auto">OS/X</p> <h3 dir="auto">Matplotlib Version</h3> <p dir="auto">3.5.1</p> <h3 dir="auto">Matplotlib Backend</h3> <p dir="auto">MacOSX</p> <h3 dir="auto">Python version</h3> <p dir="auto">3.9.12</p> <h3 dir="auto">Jupyter version</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Installation</h3> <p dir="auto">conda</p>
<h3 dir="auto">Bug summary</h3> <p dir="auto">I used to be able to use a legend picker as described in this <a href="https://matplotlib.org/stable/gallery/event_handling/legend_picking.html" rel="nofollow">matplotlib tutorial</a>.<br> It doesn't work anymore. I bet it was an up</p> <h3 dir="auto">Code for reproduction</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np import matplotlib.pyplot as plt t = np.linspace(0, 1) y1 = 2 * np.sin(2*np.pi*t) y2 = 4 * np.sin(2*np.pi*2*t) fig, ax = plt.subplots() ax.set_title('Click on legend line to toggle line on/off') line1, = ax.plot(t, y1, lw=2, label='1 Hz') line2, = ax.plot(t, y2, lw=2, label='2 Hz') leg = ax.legend(fancybox=True, shadow=True) lines = [line1, line2] lined = {} # Will map legend lines to original lines. for legline, origline in zip(leg.get_lines(), lines): legline.set_picker(True) # Enable picking on the legend line. lined[legline] = origline def on_pick(event): # On the pick event, find the original line corresponding to the legend # proxy line, and toggle its visibility. legline = event.artist origline = lined[legline] visible = not origline.get_visible() origline.set_visible(visible) # Change the alpha on the line in the legend so we can see what lines # have been toggled. legline.set_alpha(1.0 if visible else 0.2) fig.canvas.draw() fig.canvas.mpl_connect('pick_event', on_pick) plt.show()"><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-s1">t</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">linspace</span>(<span class="pl-c1">0</span>, <span class="pl-c1">1</span>) <span class="pl-s1">y1</span> <span class="pl-c1">=</span> <span class="pl-c1">2</span> <span class="pl-c1">*</span> <span class="pl-s1">np</span>.<span class="pl-en">sin</span>(<span class="pl-c1">2</span><span class="pl-c1">*</span><span class="pl-s1">np</span>.<span class="pl-s1">pi</span><span class="pl-c1">*</span><span class="pl-s1">t</span>) <span class="pl-s1">y2</span> <span class="pl-c1">=</span> <span class="pl-c1">4</span> <span class="pl-c1">*</span> <span class="pl-s1">np</span>.<span class="pl-en">sin</span>(<span class="pl-c1">2</span><span class="pl-c1">*</span><span class="pl-s1">np</span>.<span class="pl-s1">pi</span><span class="pl-c1">*</span><span class="pl-c1">2</span><span class="pl-c1">*</span><span class="pl-s1">t</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">ax</span>.<span class="pl-en">set_title</span>(<span class="pl-s">'Click on legend line to toggle line on/off'</span>) <span class="pl-s1">line1</span>, <span class="pl-c1">=</span> <span class="pl-s1">ax</span>.<span class="pl-en">plot</span>(<span class="pl-s1">t</span>, <span class="pl-s1">y1</span>, <span class="pl-s1">lw</span><span class="pl-c1">=</span><span class="pl-c1">2</span>, <span class="pl-s1">label</span><span class="pl-c1">=</span><span class="pl-s">'1 Hz'</span>) <span class="pl-s1">line2</span>, <span class="pl-c1">=</span> <span class="pl-s1">ax</span>.<span class="pl-en">plot</span>(<span class="pl-s1">t</span>, <span class="pl-s1">y2</span>, <span class="pl-s1">lw</span><span class="pl-c1">=</span><span class="pl-c1">2</span>, <span class="pl-s1">label</span><span class="pl-c1">=</span><span class="pl-s">'2 Hz'</span>) <span class="pl-s1">leg</span> <span class="pl-c1">=</span> <span class="pl-s1">ax</span>.<span class="pl-en">legend</span>(<span class="pl-s1">fancybox</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">shadow</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">lines</span> <span class="pl-c1">=</span> [<span class="pl-s1">line1</span>, <span class="pl-s1">line2</span>] <span class="pl-s1">lined</span> <span class="pl-c1">=</span> {} <span class="pl-c"># Will map legend lines to original lines.</span> <span class="pl-k">for</span> <span class="pl-s1">legline</span>, <span class="pl-s1">origline</span> <span class="pl-c1">in</span> <span class="pl-en">zip</span>(<span class="pl-s1">leg</span>.<span class="pl-en">get_lines</span>(), <span class="pl-s1">lines</span>): <span class="pl-s1">legline</span>.<span class="pl-en">set_picker</span>(<span class="pl-c1">True</span>) <span class="pl-c"># Enable picking on the legend line.</span> <span class="pl-s1">lined</span>[<span class="pl-s1">legline</span>] <span class="pl-c1">=</span> <span class="pl-s1">origline</span> <span class="pl-k">def</span> <span class="pl-en">on_pick</span>(<span class="pl-s1">event</span>): <span class="pl-c"># On the pick event, find the original line corresponding to the legend</span> <span class="pl-c"># proxy line, and toggle its visibility.</span> <span class="pl-s1">legline</span> <span class="pl-c1">=</span> <span class="pl-s1">event</span>.<span class="pl-s1">artist</span> <span class="pl-s1">origline</span> <span class="pl-c1">=</span> <span class="pl-s1">lined</span>[<span class="pl-s1">legline</span>] <span class="pl-s1">visible</span> <span class="pl-c1">=</span> <span class="pl-c1">not</span> <span class="pl-s1">origline</span>.<span class="pl-en">get_visible</span>() <span class="pl-s1">origline</span>.<span class="pl-en">set_visible</span>(<span class="pl-s1">visible</span>) <span class="pl-c"># Change the alpha on the line in the legend so we can see what lines</span> <span class="pl-c"># have been toggled.</span> <span class="pl-s1">legline</span>.<span class="pl-en">set_alpha</span>(<span class="pl-c1">1.0</span> <span class="pl-k">if</span> <span class="pl-s1">visible</span> <span class="pl-k">else</span> <span class="pl-c1">0.2</span>) <span class="pl-s1">fig</span>.<span class="pl-s1">canvas</span>.<span class="pl-en">draw</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">on_pick</span>) <span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div> <h3 dir="auto">Actual outcome</h3> <p dir="auto">It graphs fine, but I can't toggle visibility by clicking the legend.<br> I've tried executing the code from my Mac Terminal and from an IDE (Spyder) with Python 3.8.12 and matplotlib version 3.5.1.</p> <h3 dir="auto">Expected outcome</h3> <p dir="auto">I should be able to click and toggle the visibility.</p> <h3 dir="auto">Additional information</h3> <p dir="auto">Legend picking with this script still works from my other Spyder app, which has python 3.9.2 and matplotlib 3.3.4.</p> <h3 dir="auto">Operating system</h3> <p dir="auto">macOS Monterey</p> <h3 dir="auto">Matplotlib Version</h3> <p dir="auto">3.5.1</p> <h3 dir="auto">Matplotlib Backend</h3> <p dir="auto">MacOSX</p> <h3 dir="auto">Python version</h3> <p dir="auto">3.8.12</p> <h3 dir="auto">Jupyter version</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Installation</h3> <p dir="auto">conda</p>
1
<p dir="auto">Hello,</p> <p dir="auto">I follow the installation steps to use stocks examples which is in examples/stocks folder.</p> <p dir="auto">There, I executed pub get command and it was ok. Then, I tried to launch the sky_tool like said in the steps by steps instructions.</p> <p dir="auto">On examples/stocks folder :</p> <p dir="auto"><code class="notranslate">C:\Users\sylsau\MyDocuments\Android\dart\sky_sdk\examples\stocks&gt;.\packages\sky\sky_tool start --install '.\packages\sky\sky_tool' n'est pas reconnu en tant que commande interne ou externe, un programme exécutable ou un fichier de commandes.</code></p> <p dir="auto">Sorry, message is in french but problem is that sky_tool is not known as an executable. Is it normal ? sky_tool is not supported on Windows 8 ?</p> <p dir="auto">Thanks for your help.</p> <p dir="auto">Sylvain</p>
<p dir="auto">Rough TODO list:</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Make //flutter/snapshotter work on Windows.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Make the <code class="notranslate">flutter</code> command line tool work on Windows. <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Teach the <code class="notranslate">flutter.ps1</code> where to get the Dart SDK and how to bootstrap into Dart.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Teach the tool about Windows as a host platform (e.g., where to find the snapshotter)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Teach the tool how to control Android devices via <code class="notranslate">adb</code> on Windows.</li> </ul> </li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Infrastructure for continuously building and testing the Windows toolchain.</li> </ul> <hr> <p dir="auto"><a href="https://github.com/Scorpiion"><img src="https://avatars.githubusercontent.com/u/1047298?v=3" align="left" width="96" height="96" hspace="10" style="max-width: 100%;"></a> <strong>Issue by <a href="https://github.com/Scorpiion">Scorpiion</a></strong><br> <em>Sunday Aug 23, 2015 at 18:18 GMT</em><br> <em>Originally opened as <a href="https://github.com/flutter/engine/issues/771">https://github.com/flutter/engine/issues/771</a></em></p> <hr> <p dir="auto">I understand that Windows support is not prio 1 atm, but in the future, as a platform for developing Android apps (and maybe iOS apps), would it be possible to add Windows support? I understand that it would be some work, but basically what I'm asking is if it's part of the long term plan or simply ignored on purpose for some reason (other than maybe no devs on the team are using Windows..).</p> <p dir="auto">Even if I myself only use Linux (close to 10 years Linux only) I think it can be good for the project to support Windows in the long run, at Stackoverflow's latest developer survey Windows developers was still a little bit more that 50% (Mac and Linux at ~21% each):<br> <a href="http://stackoverflow.com/research/developer-survey-2015#tech-os" rel="nofollow">http://stackoverflow.com/research/developer-survey-2015#tech-os</a></p> <p dir="auto">The only reference of Windows I could find was this old comment in an old readme:<br> <a href="https://github.com/domokit/sky_engine/pull/165/files#r35055666">https://github.com/domokit/sky_engine/pull/165/files#r35055666</a></p> <p dir="auto"><em>And just to be extra clear and avoid any confusion, this issue is about developing Android and iOS apps on Windows, not deploying Sky to Windows Phone.</em></p>
1
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [Version 10.0.18363.657] PowerToys version: v0.17.0 PowerToy module: Markdown-Preview"><pre class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18363.657] PowerToys version: v0.17.0 PowerToy module: Markdown-Preview </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Open a markdown-file in the preview and try to copy with CTRL+C</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Copied text is in clipboard</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">nothing is in the clipboard</p>
<p dir="auto">As often Markdown files contain technical instructions, it would be nice if the text in Markdown files could be selected and copied.</p> <blockquote> <p dir="auto">Note: I am the author of <a href="https://github.com/Atrejoe/MarkdownPreview">MarkdownPreview</a>, a Windows Explorer preview pane extension looking forward to drop support, already announcing people to switch to Powertoys</p> </blockquote>
1
<p dir="auto">PLEASE INCLUDE REPRO INSTRUCTIONS AND EXAMPLE CODE</p> <hr> <h2 dir="auto">Please do not remove the text below this line</h2> <p dir="auto">DevTools version: 4.0.5-5441b09</p> <p dir="auto">Call stack: at n.value (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:16721)<br> at m (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:51:293849)<br> at Al (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:51:294084)<br> at Ha (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:55890)<br> at bi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:62939)<br> at Xl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:99535)<br> at Hl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:84255)<br> at Fl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:81285)<br> at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:25363<br> at n.unstable_runWithPriority (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:51:4368)</p> <p dir="auto">Component stack: in Al<br> in div<br> in div<br> in Ir<br> in Unknown<br> in n<br> in Unknown<br> in div<br> in div<br> in Wa<br> in ce<br> in be<br> in So<br> in Vl</p>
<p dir="auto">PLEASE INCLUDE REPRO INSTRUCTIONS AND EXAMPLE CODE</p> <hr> <h2 dir="auto">Please do not remove the text below this line</h2> <p dir="auto">DevTools version: 4.0.4-3c6a219</p> <p dir="auto">Call stack: at n.value (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:16721)<br> at m (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:293207)<br> at pl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:293442)<br> at Ha (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:55890)<br> at bi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:62939)<br> at Xl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:99535)<br> at Hl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:84255)<br> at Fl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:81285)<br> at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:25363<br> at n.unstable_runWithPriority (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:4368)</p> <p dir="auto">Component stack: in pl<br> in div<br> in div<br> in Or<br> in Unknown<br> in n<br> in Unknown<br> in div<br> in div<br> in Ha<br> in le<br> in ve<br> in ko<br> in Ul</p>
1
<p dir="auto">In Turkish QWERTY keyboards AltGr + q (right Alt) key combination means @ character. This combination does nothing at all in 1.121. I've also checked the keybindings. There is no keybinding on AltGr + q</p>
<blockquote> <p dir="auto">Atom doesn't handle keyboards with Right Alt (i.e. AltGr). This is a very basic mistake. I have a Hungarian keyboard layout, I can only write specific keys like "|" (pipe) by pressing Right Alt (AltGr) and then W, which Atom doesn't recognize and treat like Alt-W or something?<br> The point is there are some layouts like greek, hungarian, czech with special keys, which an EDITOR should handle the right way!!<br> E.g. I can't write CTRL-", because it writes the number "2" instead. I think this key might be interpreted like CTRL-ALT sequence, but not sure either.<br> Anyway, without it, it's just not an editor.<br> Like Windows Media player; you can't pause a movie with it hitting space bar...</p> </blockquote> <p dir="auto">From: support/9f98abca9f4a11e3955c6445541b1a76</p>
1
<p dir="auto">Even if the beta_distribution of the parameters shouldn't &lt; 0, function rk_beta in distribution.c should check the arguments</p>
<p dir="auto">I'm currently trying to hunt down a <code class="notranslate">SystemError</code>, and could use some help. Basically, it occurs when attempting certain failing conversions from unicode to string arrays:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np CHAR = &quot;\x80&quot; # Anything &gt;= 0x80, so we raise a UnicodeEncodeError. CHAIN = 1 # How many errors will be chained together. ITEMSIZE = 3 # dtype itemsize, anything except 0, 1, 2, or 4. nasty = np.array([CHAR] * (128 * CHAIN + 1), dtype=f&quot;U{ITEMSIZE}&quot;) nasty.astype(&quot;S&quot;)"><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-v">CHAR</span> <span class="pl-c1">=</span> <span class="pl-s">"<span class="pl-cce">\x80</span>"</span> <span class="pl-c"># Anything &gt;= 0x80, so we raise a UnicodeEncodeError.</span> <span class="pl-v">CHAIN</span> <span class="pl-c1">=</span> <span class="pl-c1">1</span> <span class="pl-c"># How many errors will be chained together.</span> <span class="pl-v">ITEMSIZE</span> <span class="pl-c1">=</span> <span class="pl-c1">3</span> <span class="pl-c"># dtype itemsize, anything except 0, 1, 2, or 4.</span> <span class="pl-s1">nasty</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-v">CHAR</span>] <span class="pl-c1">*</span> (<span class="pl-c1">128</span> <span class="pl-c1">*</span> <span class="pl-v">CHAIN</span> <span class="pl-c1">+</span> <span class="pl-c1">1</span>), <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s">f"U<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-v">ITEMSIZE</span><span class="pl-kos">}</span></span>"</span>) <span class="pl-s1">nasty</span>.<span class="pl-en">astype</span>(<span class="pl-s">"S"</span>)</pre></div> <p dir="auto">To recap, the error only happens with:</p> <ul dir="auto"> <li>A total array size of 129 or more (shape doesn't matter). Every additional 128 elements adds a new chained exception.</li> <li>A unicode itemsize not equal to 0, 1, 2, or 4.</li> </ul> <p dir="auto">On CPython 3.9.0a4 and NumPy 1.18.2, the above gives me:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="UnicodeEncodeError: 'ascii' codec can't encode character '\x80' in position 0: ordinal not in range(128) The above exception was the direct cause of the following exception: Traceback (most recent call last): ... SystemError: &lt;class 'UnicodeEncodeError'&gt; returned a result with an error set"><pre class="notranslate"><code class="notranslate">UnicodeEncodeError: 'ascii' codec can't encode character '\x80' in position 0: ordinal not in range(128) The above exception was the direct cause of the following exception: Traceback (most recent call last): ... SystemError: &lt;class 'UnicodeEncodeError'&gt; returned a result with an error set </code></pre></div> <p dir="auto">I've spent quite a while digging around <code class="notranslate">dtype_transfer.c</code>, but I'm afraid that I can't find exactly where this is happening. My hunch is that an error raised during processing of a 128-element block isn't caught until all other blocks are finished as well. If several blocks fail, Python complains that the previous exceptions aren't being handled.</p> <p dir="auto">If somebody could help me figure out exactly what's going on here (or even provide a good guess), I would definitely appreciate it.</p>
0
<h4 dir="auto">Issue Description</h4> <p dir="auto">The new Wiki search does not allow scrolling through the article titles. Only the first title in the list is clickable.</p> <h4 dir="auto">Browser Information</h4> <ul dir="auto"> <li>Browser Name, Version: Chrome, Firefox, Edge</li> <li>Operating System: Windows 10</li> <li>Mobile, Desktop, or Tablet: Desktop</li> </ul>
<p dir="auto">When I mouse over the faded out links, my pointer doesn't turn into the click finger icon. It will for the links that aren't faded, though.</p>
1
<h3 dir="auto">Problem revoking a subfolder</h3> <p dir="auto">Currently you cannot revoke a subfolder permission.<br> <strong>example :</strong></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="///1. Request permissions needed const permStatus_1 = await Deno.permissions.request({ name: &quot;read&quot;, path: &quot;./folderA&quot;}); //Grant //Skipped because folderA was granted const permStatus_2 = await Deno.permissions.request({ name: &quot;read&quot;, path: &quot;./folderA/SubFolderA&quot; }); console.log(permStatus_1); //Granted console.log(permStatus_2); //Granted ///2. Remove unused permissions //Revoke the folderA await Deno.permissions.revoke({ name: &quot;read&quot;, path: &quot;./folderA/SubFolderA&quot; }); const permStatus_3 = await Deno.permissions.query({ name: &quot;read&quot;, path: &quot;./folderA&quot; }); const permStatus_4 = await Deno.permissions.query({ name: &quot;read&quot;, path: &quot;./folderA/SubFolderA&quot; }); console.log(permStatus_3); //Granted console.log(permStatus_4); //Granted [!] The revocation was not taken into account"><pre class="notranslate"><span class="pl-c">///1. Request permissions needed</span> <span class="pl-k">const</span> <span class="pl-s1">permStatus_1</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-smi">Deno</span><span class="pl-kos">.</span><span class="pl-c1">permissions</span><span class="pl-kos">.</span><span class="pl-en">request</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">"read"</span><span class="pl-kos">,</span> <span class="pl-c1">path</span>: <span class="pl-s">"./folderA"</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">//Grant</span> <span class="pl-c">//Skipped because folderA was granted</span> <span class="pl-k">const</span> <span class="pl-s1">permStatus_2</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-smi">Deno</span><span class="pl-kos">.</span><span class="pl-c1">permissions</span><span class="pl-kos">.</span><span class="pl-en">request</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">"read"</span><span class="pl-kos">,</span> <span class="pl-c1">path</span>: <span class="pl-s">"./folderA/SubFolderA"</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">permStatus_1</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">//Granted</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">permStatus_2</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">//Granted</span> <span class="pl-c">///2. Remove unused permissions</span> <span class="pl-c">//Revoke the folderA</span> <span class="pl-k">await</span> <span class="pl-smi">Deno</span><span class="pl-kos">.</span><span class="pl-c1">permissions</span><span class="pl-kos">.</span><span class="pl-en">revoke</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">"read"</span><span class="pl-kos">,</span> <span class="pl-c1">path</span>: <span class="pl-s">"./folderA/SubFolderA"</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">permStatus_3</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-smi">Deno</span><span class="pl-kos">.</span><span class="pl-c1">permissions</span><span class="pl-kos">.</span><span class="pl-en">query</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">"read"</span><span class="pl-kos">,</span> <span class="pl-c1">path</span>: <span class="pl-s">"./folderA"</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">permStatus_4</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-smi">Deno</span><span class="pl-kos">.</span><span class="pl-c1">permissions</span><span class="pl-kos">.</span><span class="pl-en">query</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">"read"</span><span class="pl-kos">,</span> <span class="pl-c1">path</span>: <span class="pl-s">"./folderA/SubFolderA"</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">permStatus_3</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">//Granted</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">permStatus_4</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">//Granted [!] The revocation was not taken into account</span></pre></div> <h3 dir="auto">Proposition : add the <strong><code class="notranslate">recursive</code></strong> optional attribute</h3> <p dir="auto">It's an idea, but I think it might be interesting to consider the permission request of the subfolder, although the permission of parent folder was already granted.<br> Also, when a revocation is called, revoke all children only if the optional <code class="notranslate">recursive</code> parameter has been provided.</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const permStatus_5 = await Deno.permissions.request({ name: &quot;read&quot;, path: &quot;./folderA&quot; }); //Grant //Skipped because folderA was granted, /!\ but add the path to the granted list const permStatus_6 = await Deno.permissions.request({ name: &quot;read&quot;, path: &quot;./folderA/SubFolderA&quot; }); console.log(permStatus_5 ); //Granted console.log(permStatus_6 ); //Granted"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">permStatus_5</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-smi">Deno</span><span class="pl-kos">.</span><span class="pl-c1">permissions</span><span class="pl-kos">.</span><span class="pl-en">request</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">"read"</span><span class="pl-kos">,</span> <span class="pl-c1">path</span>: <span class="pl-s">"./folderA"</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">//Grant</span> <span class="pl-c">//Skipped because folderA was granted, /!\ but add the path to the granted list</span> <span class="pl-k">const</span> <span class="pl-s1">permStatus_6</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-smi">Deno</span><span class="pl-kos">.</span><span class="pl-c1">permissions</span><span class="pl-kos">.</span><span class="pl-en">request</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">"read"</span><span class="pl-kos">,</span> <span class="pl-c1">path</span>: <span class="pl-s">"./folderA/SubFolderA"</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">permStatus_5</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">//Granted</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">permStatus_6</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">//Granted</span></pre></div> <p dir="auto"><strong>without</strong> the <code class="notranslate">recursive</code> attribute :</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="await Deno.permissions.revoke({ name: &quot;read&quot;, path: &quot;./folderA&quot; }); //Revoke the folderA const permStatus_7 = await Deno.permissions.query({ name: &quot;read&quot;, path: &quot;./folderA&quot; }); const permStatus_8 = await Deno.permissions.query({ name: &quot;read&quot;, path: &quot;./folderA/SubFolderA&quot; }); console.log(permStatus_7); //Prompt console.log(permStatus_8); //Granted"><pre class="notranslate"><span class="pl-k">await</span> <span class="pl-smi">Deno</span><span class="pl-kos">.</span><span class="pl-c1">permissions</span><span class="pl-kos">.</span><span class="pl-en">revoke</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">"read"</span><span class="pl-kos">,</span> <span class="pl-c1">path</span>: <span class="pl-s">"./folderA"</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">//Revoke the folderA </span> <span class="pl-k">const</span> <span class="pl-s1">permStatus_7</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-smi">Deno</span><span class="pl-kos">.</span><span class="pl-c1">permissions</span><span class="pl-kos">.</span><span class="pl-en">query</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">"read"</span><span class="pl-kos">,</span> <span class="pl-c1">path</span>: <span class="pl-s">"./folderA"</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">permStatus_8</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-smi">Deno</span><span class="pl-kos">.</span><span class="pl-c1">permissions</span><span class="pl-kos">.</span><span class="pl-en">query</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">"read"</span><span class="pl-kos">,</span> <span class="pl-c1">path</span>: <span class="pl-s">"./folderA/SubFolderA"</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">permStatus_7</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">//Prompt</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">permStatus_8</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">//Granted</span></pre></div> <p dir="auto"><strong>with</strong> the <code class="notranslate">recursive</code> attribute :</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="await Deno.permissions.revoke({ name: &quot;read&quot;, path: &quot;./folderA&quot;, recursive: true }); //Revoke the folderA recursively const permStatus_9 = await Deno.permissions.query({ name: &quot;read&quot;, path: &quot;./folderA&quot; }); const permStatus_10 = await Deno.permissions.query({ name: &quot;read&quot;, path: &quot;./folderA/SubFolderA&quot; }); console.log(permStatus_9); //Prompt console.log(permStatus_10); //Prompt"><pre class="notranslate"><span class="pl-k">await</span> <span class="pl-smi">Deno</span><span class="pl-kos">.</span><span class="pl-c1">permissions</span><span class="pl-kos">.</span><span class="pl-en">revoke</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">"read"</span><span class="pl-kos">,</span> <span class="pl-c1">path</span>: <span class="pl-s">"./folderA"</span><span class="pl-kos">,</span> <span class="pl-c1">recursive</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">//Revoke the folderA recursively</span> <span class="pl-k">const</span> <span class="pl-s1">permStatus_9</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-smi">Deno</span><span class="pl-kos">.</span><span class="pl-c1">permissions</span><span class="pl-kos">.</span><span class="pl-en">query</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">"read"</span><span class="pl-kos">,</span> <span class="pl-c1">path</span>: <span class="pl-s">"./folderA"</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">permStatus_10</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-smi">Deno</span><span class="pl-kos">.</span><span class="pl-c1">permissions</span><span class="pl-kos">.</span><span class="pl-en">query</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">"read"</span><span class="pl-kos">,</span> <span class="pl-c1">path</span>: <span class="pl-s">"./folderA/SubFolderA"</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">permStatus_9</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">//Prompt</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">permStatus_10</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">//Prompt</span></pre></div>
<p dir="auto">I'm experiencing a strange bug with <code class="notranslate">Deno</code>.</p> <p dir="auto">When a exception is thrown the main process panics. This is the trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', cli\fmt_errors.rs:86:8 stack backtrace: 0: 0x7ff7af88a45b - &lt;unknown&gt; 1: 0x7ff7af53cecc - &lt;unknown&gt; 2: 0x7ff7af889483 - &lt;unknown&gt; 3: 0x7ff7af888bb8 - &lt;unknown&gt; 4: 0x7ff7af887d2e - &lt;unknown&gt; 5: 0x7ff7af88efe5 - &lt;unknown&gt; 6: 0x7ff7af53a4b0 - &lt;unknown&gt; 7: 0x7ff7af53a2cc - &lt;unknown&gt; 8: 0x7ff7af36cbf2 - &lt;unknown&gt; 9: 0x7ff7af48ada8 - &lt;unknown&gt; 10: 0x7ff7af48b345 - &lt;unknown&gt; 11: 0x7ff7af53cecc - &lt;unknown&gt; 12: 0x7ff7af751885 - &lt;unknown&gt; 13: 0x7ff7af349c1d - &lt;unknown&gt; 14: 0x7ff7af4daf6f - &lt;unknown&gt; 15: 0x7ff7af8aa3f6 - &lt;unknown&gt; 16: 0x7ff7af4ea67e - &lt;unknown&gt; 17: 0x7ff7b048bf10 - CrashForExceptionInNonABICompliantCodeRange 18: 0x7ff8e9777bd4 - BaseThreadInitThunk 19: 0x7ff8ea16ce51 - RtlUserThreadStart"><pre class="notranslate"><code class="notranslate">thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', cli\fmt_errors.rs:86:8 stack backtrace: 0: 0x7ff7af88a45b - &lt;unknown&gt; 1: 0x7ff7af53cecc - &lt;unknown&gt; 2: 0x7ff7af889483 - &lt;unknown&gt; 3: 0x7ff7af888bb8 - &lt;unknown&gt; 4: 0x7ff7af887d2e - &lt;unknown&gt; 5: 0x7ff7af88efe5 - &lt;unknown&gt; 6: 0x7ff7af53a4b0 - &lt;unknown&gt; 7: 0x7ff7af53a2cc - &lt;unknown&gt; 8: 0x7ff7af36cbf2 - &lt;unknown&gt; 9: 0x7ff7af48ada8 - &lt;unknown&gt; 10: 0x7ff7af48b345 - &lt;unknown&gt; 11: 0x7ff7af53cecc - &lt;unknown&gt; 12: 0x7ff7af751885 - &lt;unknown&gt; 13: 0x7ff7af349c1d - &lt;unknown&gt; 14: 0x7ff7af4daf6f - &lt;unknown&gt; 15: 0x7ff7af8aa3f6 - &lt;unknown&gt; 16: 0x7ff7af4ea67e - &lt;unknown&gt; 17: 0x7ff7b048bf10 - CrashForExceptionInNonABICompliantCodeRange 18: 0x7ff8e9777bd4 - BaseThreadInitThunk 19: 0x7ff8ea16ce51 - RtlUserThreadStart </code></pre></div> <p dir="auto">I don't know how to reproduce the bug but it happened in my project so I tried to isolate it in a separated branch:<br> <a href="https://github.com/AndreJesusBrito/WebAssembly-Language-Compiler/tree/rust-exception-bug-isolation">https://github.com/AndreJesusBrito/WebAssembly-Language-Compiler/tree/rust-exception-bug-isolation</a></p> <p dir="auto">The bug happens in file <code class="notranslate">src/SyntaxAnalysis/SyntaxRule.ts</code> at line 25 when I throw an exception.</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="... public getDerivation(terminal: string): RuleDerivation { const derivation = this.derivations.get(terminal); if (derivation) { return { derivationSymbols: [...derivation.derivationSymbols].reverse(), actions: derivation.actions, }; } else { throw SyntaxError(&quot;Unexpected token '&quot; + terminal + &quot;' at rule &quot; + this._name); // THIS IS LINE 25 } } public setDerivation(rule: SyntaxSymbol[], actions: ActionObj[], ...terminals: string[]): void { for (const terminal of terminals) { if (this.derivations.get(terminal) instanceof Array) { console.warn(&quot;'&quot; + terminal + &quot;' repeated terminal for rule &quot; + this._name); ..."><pre class="notranslate">... <span class="pl-k">public</span> <span class="pl-en">getDerivation</span><span class="pl-kos">(</span><span class="pl-s1">terminal</span>: string<span class="pl-kos">)</span>: <span class="pl-smi">RuleDerivation</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">derivation</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">derivations</span><span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s1">terminal</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">derivation</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-c1">derivationSymbols</span>: <span class="pl-kos">[</span>...<span class="pl-s1">derivation</span><span class="pl-kos">.</span><span class="pl-c1">derivationSymbols</span><span class="pl-kos">]</span><span class="pl-kos">.</span><span class="pl-en">reverse</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-c1">actions</span>: <span class="pl-s1">derivation</span><span class="pl-kos">.</span><span class="pl-c1">actions</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">else</span> <span class="pl-kos">{</span> <span class="pl-k">throw</span> <span class="pl-smi">SyntaxError</span><span class="pl-kos">(</span><span class="pl-s">"Unexpected token '"</span> <span class="pl-c1">+</span> <span class="pl-s1">terminal</span> <span class="pl-c1">+</span> <span class="pl-s">"' at rule "</span> <span class="pl-c1">+</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">_name</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// THIS IS LINE 25</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-s1">public</span><span class="pl-kos"></span> <span class="pl-en">setDerivation</span><span class="pl-kos">(</span><span class="pl-s1">rule</span>: <span class="pl-smi">SyntaxSymbol</span><span class="pl-kos">[</span><span class="pl-s1"></span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-s1">actions</span>: <span class="pl-smi">ActionObj</span><span class="pl-kos">[</span><span class="pl-s1"></span><span class="pl-kos">]</span><span class="pl-kos">,</span> ...<span class="pl-s1">terminals</span>: string<span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">)</span>: <span class="pl-k">void</span> <span class="pl-kos">{</span> <span class="pl-k">for</span> <span class="pl-kos">(</span><span class="pl-k">const</span> <span class="pl-s1">terminal</span> <span class="pl-k">of</span> <span class="pl-s1">terminals</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">this</span><span class="pl-kos">.</span><span class="pl-c1">derivations</span><span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s1">terminal</span><span class="pl-kos">)</span> <span class="pl-k">instanceof</span> <span class="pl-smi">Array</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">warn</span><span class="pl-kos">(</span><span class="pl-s">"'"</span> <span class="pl-c1">+</span> <span class="pl-s1">terminal</span> <span class="pl-c1">+</span> <span class="pl-s">"' repeated terminal for rule "</span> <span class="pl-c1">+</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">_name</span><span class="pl-kos">)</span><span class="pl-kos">;</span> ...</pre></div> <p dir="auto">Even though I'm using a SyntaxError (that is not a very good idea and will change later) it seems to happen for any error including the base Error class.</p> <p dir="auto">The most strange thing to me is that by changing the white space on this file it can work correctly.<br> For example, when I remove line 28 it works fine:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: Uncaught SyntaxError: Unexpected token '' at rule none public setDerivation(rule: SyntaxSymbol[], actions: ActionObj[], ...terminals: string[]): void { ^ at SyntaxRule.getDerivation (file:///C:/Users/Andr%C3%A9%20Brito/Documents/GitHub/WebAssembly-Language-Compiler/src/SyntaxAnalysis/SyntaxRule.ts:28:13) at file:///C:/Users/Andr%C3%A9%20Brito/Documents/GitHub/WebAssembly-Language-Compiler/src/main.ts:4:1"><pre class="notranslate"><code class="notranslate">error: Uncaught SyntaxError: Unexpected token '' at rule none public setDerivation(rule: SyntaxSymbol[], actions: ActionObj[], ...terminals: string[]): void { ^ at SyntaxRule.getDerivation (file:///C:/Users/Andr%C3%A9%20Brito/Documents/GitHub/WebAssembly-Language-Compiler/src/SyntaxAnalysis/SyntaxRule.ts:28:13) at file:///C:/Users/Andr%C3%A9%20Brito/Documents/GitHub/WebAssembly-Language-Compiler/src/main.ts:4:1 </code></pre></div> <p dir="auto">I'm running using the command:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="deno run src\main.ts"><pre class="notranslate"><code class="notranslate">deno run src\main.ts </code></pre></div> <p dir="auto">and my specs are:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="deno 1.2.2 v8 8.5.216 typescript 3.9.2 OS: Windows_NT x64 10.0.18362"><pre class="notranslate"><code class="notranslate">deno 1.2.2 v8 8.5.216 typescript 3.9.2 OS: Windows_NT x64 10.0.18362 </code></pre></div> <p dir="auto">Hope this helps! :)</p>
0
<h3 dir="auto">Bug report</h3> <p dir="auto"><strong>Bug summary</strong></p> <p dir="auto"><code class="notranslate">Path.intersects_path</code> returns <code class="notranslate">True</code> for the following paths, when they don't intersect at all (as shown by Shapely). This is a simplified <code class="notranslate">outline_path</code> from Cartopy. The trigger seems to be the duplicate point at the end of <code class="notranslate">outline_path</code>; if removed, it works as expected.</p> <p dir="auto">A bisect says this broke in <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/matplotlib/matplotlib/commit/bd3fd8f46a08269be715afc715344dd5719183ac/hovercard" href="https://github.com/matplotlib/matplotlib/commit/bd3fd8f46a08269be715afc715344dd5719183ac"><tt>bd3fd8f</tt></a>, which is a backport of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="337597320" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/11553" data-hovercard-type="pull_request" data-hovercard-url="/matplotlib/matplotlib/pull/11553/hovercard" href="https://github.com/matplotlib/matplotlib/pull/11553">#11553</a> to 3.1.0. cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/TarasKuzyo/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/TarasKuzyo">@TarasKuzyo</a></p> <p dir="auto"><strong>Code for reproduction</strong></p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np import matplotlib as mpl from matplotlib.path import Path from shapely.geometry import LinearRing this_path = Path( np.array([ [824.85064295, 2056.26489203], [861.69033931, 2041.00539016], [868.57864109, 2057.63522175], [831.73894473, 2072.89472361], [824.85064295, 2056.26489203]]), np.array([1, 2, 2, 2, 79], dtype=Path.code_type)) this_ring = LinearRing(this_path.vertices) outline_path = Path( np.array([ [859.91051028, 2165.38461538], [859.06772495, 2149.30331334], [859.06772495, 2181.46591743], [859.91051028, 2165.38461538], [859.91051028, 2165.38461538]]), np.array([1, 2, 2, 2, 2], dtype=Path.code_type)) outline_ring = LinearRing(outline_path.vertices) print(mpl.__version__, outline_path.intersects_path(this_path), outline_ring.intersects(this_ring))"><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-k">as</span> <span class="pl-s1">mpl</span> <span class="pl-k">from</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">path</span> <span class="pl-k">import</span> <span class="pl-v">Path</span> <span class="pl-k">from</span> <span class="pl-s1">shapely</span>.<span class="pl-s1">geometry</span> <span class="pl-k">import</span> <span class="pl-v">LinearRing</span> <span class="pl-s1">this_path</span> <span class="pl-c1">=</span> <span class="pl-v">Path</span>( <span class="pl-s1">np</span>.<span class="pl-en">array</span>([ [<span class="pl-c1">824.85064295</span>, <span class="pl-c1">2056.26489203</span>], [<span class="pl-c1">861.69033931</span>, <span class="pl-c1">2041.00539016</span>], [<span class="pl-c1">868.57864109</span>, <span class="pl-c1">2057.63522175</span>], [<span class="pl-c1">831.73894473</span>, <span class="pl-c1">2072.89472361</span>], [<span class="pl-c1">824.85064295</span>, <span class="pl-c1">2056.26489203</span>]]), <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">2</span>, <span class="pl-c1">2</span>, <span class="pl-c1">79</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-v">Path</span>.<span class="pl-s1">code_type</span>)) <span class="pl-s1">this_ring</span> <span class="pl-c1">=</span> <span class="pl-v">LinearRing</span>(<span class="pl-s1">this_path</span>.<span class="pl-s1">vertices</span>) <span class="pl-s1">outline_path</span> <span class="pl-c1">=</span> <span class="pl-v">Path</span>( <span class="pl-s1">np</span>.<span class="pl-en">array</span>([ [<span class="pl-c1">859.91051028</span>, <span class="pl-c1">2165.38461538</span>], [<span class="pl-c1">859.06772495</span>, <span class="pl-c1">2149.30331334</span>], [<span class="pl-c1">859.06772495</span>, <span class="pl-c1">2181.46591743</span>], [<span class="pl-c1">859.91051028</span>, <span class="pl-c1">2165.38461538</span>], [<span class="pl-c1">859.91051028</span>, <span class="pl-c1">2165.38461538</span>]]), <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">2</span>, <span class="pl-c1">2</span>, <span class="pl-c1">2</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-v">Path</span>.<span class="pl-s1">code_type</span>)) <span class="pl-s1">outline_ring</span> <span class="pl-c1">=</span> <span class="pl-v">LinearRing</span>(<span class="pl-s1">outline_path</span>.<span class="pl-s1">vertices</span>) <span class="pl-en">print</span>(<span class="pl-s1">mpl</span>.<span class="pl-s1">__version__</span>, <span class="pl-s1">outline_path</span>.<span class="pl-en">intersects_path</span>(<span class="pl-s1">this_path</span>), <span class="pl-s1">outline_ring</span>.<span class="pl-en">intersects</span>(<span class="pl-s1">this_ring</span>))</pre></div> <p dir="auto"><strong>Actual outcome</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="3.1.2 True False"><pre class="notranslate"><code class="notranslate">3.1.2 True False </code></pre></div> <p dir="auto"><strong>Expected outcome</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="3.1.2 False False"><pre class="notranslate"><code class="notranslate">3.1.2 False False </code></pre></div> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Operating system: Fedora 30</li> <li>Matplotlib version: 3.1.2</li> <li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): N/A</li> <li>Python version: 3.7</li> <li>Jupyter version (if applicable): N/A</li> <li>Other libraries: N/A</li> </ul>
<p dir="auto">This no longer works:</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 cycler import cycler plt.rc('axes', prop_cycle=( cycler('dashes', [(None, None), (None, None), (6, 6), (3, 3), (1.5, 1.5)])))"><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">cycler</span> <span class="pl-k">import</span> <span class="pl-s1">cycler</span> <span class="pl-s1">plt</span>.<span class="pl-en">rc</span>(<span class="pl-s">'axes'</span>, <span class="pl-s1">prop_cycle</span><span class="pl-c1">=</span>( <span class="pl-en">cycler</span>(<span class="pl-s">'dashes'</span>, [(<span class="pl-c1">None</span>, <span class="pl-c1">None</span>), (<span class="pl-c1">None</span>, <span class="pl-c1">None</span>), (<span class="pl-c1">6</span>, <span class="pl-c1">6</span>), (<span class="pl-c1">3</span>, <span class="pl-c1">3</span>), (<span class="pl-c1">1.5</span>, <span class="pl-c1">1.5</span>)])))</pre></div> <p dir="auto">but it used to work in 1.5.</p> <p dir="auto">Now it yields</p> <blockquote> <p dir="auto">TypeError: float() argument must be a string or a number, not 'NoneType'</p> </blockquote>
0
<p dir="auto">by <strong><a href="mailto:r@rcrowley.org">r@rcrowley.org</a></strong>:</p> <pre class="notranslate">What steps will reproduce the problem? 1. `8g fence.go &amp;&amp; 8l fence.8 &amp;&amp; ./8.out` 2. In another terminal, send SIGUSR2 to the 8.out process. What is the expected output? 18:49:05.074168 fence.go:16: (open a file descriptor and do work) 18:49:27.745035 fence.go:37: SIGUSR2: user-defined signal 2 18:49:27.745898 fence.go:80: p.Pid: 12823 18:49:27.746709 fence.go:18: (do work with an inherited file descriptor) The child process whose PID is printed delivers SIGQUIT to its parent, which exits gracefully by returning from main.main, and then should remain running as a child of init. Delivering SIGUSR2 to the child repeats the process, leaving its child behind, and so on. What do you see instead? The expected output plus a panic. See attached panic.txt. The child does remain as a child of init and the process can be repeated. The parent consistently panics instead of successfully handling the SIGQUIT and returning from main.main. Which compiler are you using (5g, 6g, 8g, gccgo)? 8g version weekly.2011-08-17 9460 Which operating system are you using? Ubuntu 11.04 on i386. I have additionally tested in Ubuntu 10.04 and 11.04 on amd64. Which revision are you using? (hg identify) c62cf48b7dc4 tip Please provide any additional information below. Without a call to os.StartProcess or syscall.ForkExec, any number of signals may be handled by &lt;-signal.Incoming. It additionally doesn't matter... * which of os.StartProcess or syscall.ForkExec is used. * that the same program is being executed. * what's passed in the *os.ProcAttr. * that exec.LookPath, os.Setenv, are os.Getpid are called in this code path. * whether the architecture is i386 or amd64. * whether the hypervisor is VirtualBox or Xen. * whether the child or an unrelated process delivers the SIGQUIT. * whether signals are recieved indirectly by &lt;-signal.Incoming or directly in the main goroutine by runtime.Sigrecv().</pre> <p dir="auto">Attachments:</p> <ol dir="auto"> <li><a href="https://storage.googleapis.com/go-attachment/2161/0/panic.txt" rel="nofollow">panic.txt</a> (2366 bytes)</li> <li><a href="https://storage.googleapis.com/go-attachment/2161/0/fence.go" rel="nofollow">fence.go</a> (1735 bytes)</li> </ol>
<p dir="auto">by <strong>aka.spin</strong>:</p> <pre class="notranslate">It would be nice to set additional library path to gotest. Like "-L" in *l.</pre>
0
<h4 dir="auto">Description</h4> <p dir="auto">Enter into the doc directory and try to make and generate pdf manual file, failed.</p> <h4 dir="auto">Steps/Code to Reproduce</h4> <ol dir="auto"> <li>Update the codebase to the latest version.</li> <li>Enter into the "doc" directory, and type the cmd: make latexpdf</li> <li>Wait after a while, errors will appear.</li> </ol> <h4 dir="auto">Expected Results</h4> <p dir="auto">PDF file should be generated, at least should not be interrupted by the exceptions.</p> <h4 dir="auto">Actual Results</h4> <p dir="auto">The build process has been interrupted by the errors, following is the details:<br> Traceback (most recent call last):<br> File "/usr/local/lib/python2.7/dist-packages/sphinx/cmdline.py", line 306, in main<br> app.build(opts.force_all, filenames)<br> File "/usr/local/lib/python2.7/dist-packages/sphinx/application.py", line 357, in build<br> self.emit('build-finished', None)<br> File "/usr/local/lib/python2.7/dist-packages/sphinx/application.py", line 489, in emit<br> return self.events.emit(event, self, *args)<br> File "/usr/local/lib/python2.7/dist-packages/sphinx/events.py", line 79, in emit<br> results.append(callback(*args))<br> File "/usr/local/lib/python2.7/dist-packages/sphinx_gallery/gen_gallery.py", line 329, in sumarize_failing_examples<br> "\n" + "-" * 79)<br> ValueError: Here is a summary of the problems encountered when running the examples</p> <p dir="auto">Unexpected failing examples:<br> /home/kevin/research/openSource/scikit-learn-fork/examples/ensemble/plot_feature_transformation.py failed leaving traceb<br> ack:<br> Traceback (most recent call last):<br> File "/home/kevin/research/openSource/scikit-learn-fork/examples/ensemble/plot_feature_transformation.py", line 37, in<br> <br> from sklearn.preprocessing import CategoricalEncoder<br> ImportError: cannot import name CategoricalEncoder</p> <p dir="auto">/home/kevin/research/openSource/scikit-learn-fork/examples/applications/plot_out_of_core_classification.py failed leavin<br> g traceback:<br> Traceback (most recent call last):<br> File "/home/kevin/research/openSource/scikit-learn-fork/examples/applications/plot_out_of_core_classification.py", lin<br> e 111<br> end='')<br> ^<br> SyntaxError: invalid syntax<br> <a href="https://github.com/scikit-learn/scikit-learn/files/1515684/sphinx-err-M9XrCr.log">sphinx-err-M9XrCr.log</a></p> <h4 dir="auto">Versions</h4> <p dir="auto">Linux-4.4.0-43-Microsoft-x86_64-with-Ubuntu-16.04-xenial<br> ('Python', '2.7.12 (default, Nov 20 2017, 18:23:56) \n[GCC 5.4.0 20160609]')<br> ('NumPy', '1.13.3')<br> ('SciPy', '0.16.0')<br> ('Scikit-Learn', '0.20.dev0')</p>
<p dir="auto">We currently use Travis to run unit tests with various versions of dependencies, including python 2. But we only run the examples when building the docs in python 3 with Circle CI. <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="265913081" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/9936" data-hovercard-type="issue" data-hovercard-url="/scikit-learn/scikit-learn/issues/9936/hovercard" href="https://github.com/scikit-learn/scikit-learn/issues/9936">#9936</a> shows that this allows incompatible example code to be introduced, and I expect this to increase as more developers use python 3 though we still support python 2. Perhaps we should add a Travis run that builds the examples, whether or not it compiles the rest of the documentation.</p>
1
<h1 dir="auto">Description of the new feature/enhancement</h1> <p dir="auto">In Windows 10, whenever Windows Terminal is launched it automatically launches as the Powershell profile even when opening a new terminal tab. The user should have free control on which profile they wish to use as default.</p> <h1 dir="auto">Proposed technical implementation details (optional)</h1> <p dir="auto">This can be done by adding an attribute (setDefault or some other) to each profile and whichever is selected as "true" the rest are automatically set to "false" and if the user does not do this then the default profile set during install is used.</p>
<p dir="auto"><code class="notranslate">right click </code>position the cursor somewhere on the text displaying on the console, and while holding <code class="notranslate">shift button</code> move the cursor somewhere else and then <code class="notranslate">right click</code> to select the text between the 2 positions of the cursor.</p>
0
<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] bug report "><pre class="notranslate"><code class="notranslate">[x] bug report </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> When using the following...</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="styles: [` :host-context(body) { background: red; } `]"><pre class="notranslate"><code class="notranslate">styles: [` :host-context(body) { background: red; } `] </code></pre></div> <p dir="auto">Angular converts this to...</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[_nghost-ytw-1]body, body [_nghost-ytw-1] { background: red; }"><pre class="notranslate"><code class="notranslate">[_nghost-ytw-1]body, body [_nghost-ytw-1] { background: red; } </code></pre></div> <p dir="auto">the problem here is this...</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[_nghost-ytw-1]body"><pre class="notranslate"><code class="notranslate">[_nghost-ytw-1]body </code></pre></div> <p dir="auto">it's causing the whole rule to fail so even <code class="notranslate">body [_nghost-ytw-1]</code> will not receive the red background.</p> <p dir="auto"><strong>Expected behavior</strong><br> If angular instead wrote the first selector out like the following swapping the order of "body" and "[_nghost-ytw-1]"...</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="body[_nghost-ytw-1]"><pre class="notranslate"><code class="notranslate">body[_nghost-ytw-1] </code></pre></div> <p dir="auto">the CSS would no longer fail and would be properly applied.</p> <p dir="auto">So if, the final CSS looked like this...</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="body[_nghost-ytw-1], body [_nghost-ytw-1] { background: red; }"><pre class="notranslate"><code class="notranslate">body[_nghost-ytw-1], body [_nghost-ytw-1] { background: red; } </code></pre></div> <p dir="auto">the issue would be resolved.</p> <p dir="auto"><strong>Reproduction of the problem</strong><br> Here is a working example of the issue: <a href="https://plnkr.co/edit/JTFhSPxZDt869RMwkNuC?p=preview" rel="nofollow">https://plnkr.co/edit/JTFhSPxZDt869RMwkNuC?p=preview</a></p> <p dir="auto"><strong>Please tell us about your environment:</strong></p> <ul dir="auto"> <li><strong>Angular version:</strong> 2.0.0-rc.5</li> <li><strong>Browser:</strong> [all]</li> </ul>
<p dir="auto">UPD: Given discussion below, apparently the behavior is what it supposed to be. I am not closing, as there might be some more discussion.</p> <p dir="auto"><strong>I'm submitting a ...</strong> [x ] bug report</p> <p dir="auto"><strong>Current behavior</strong><br> I created a couple of routes with data which I want to use when a router link is clicked:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const routes: Routes = [ {path: 'run', data: {title: &quot;Runner&quot;}, component: RunComponent}, {path: 'walk', data: {title: &quot;Walker&quot;}, component: WalkComponent} ];"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">routes</span>: <span class="pl-v">Routes</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span> <span class="pl-kos">{</span><span class="pl-c1">path</span>: <span class="pl-s">'run'</span><span class="pl-kos">,</span> <span class="pl-c1">data</span>: <span class="pl-kos">{</span><span class="pl-c1">title</span>: <span class="pl-s">"Runner"</span><span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">component</span>: <span class="pl-v">RunComponent</span><span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-c1">path</span>: <span class="pl-s">'walk'</span><span class="pl-kos">,</span> <span class="pl-c1">data</span>: <span class="pl-kos">{</span><span class="pl-c1">title</span>: <span class="pl-s">"Walker"</span><span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">component</span>: <span class="pl-v">WalkComponent</span><span class="pl-kos">}</span> <span class="pl-kos">]</span><span class="pl-kos">;</span></pre></div> <p dir="auto">Then in my app I subscribed for ActivatedRoute data to extract the data defined on each route:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" constructor(private route: ActivatedRoute) { } public ngOnInit() { this.routeData= this.route.data.subscribe((data) =&gt; { this.name = data.title; }); }"><pre class="notranslate"> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-s1">private</span> <span class="pl-s1">route</span>: <span class="pl-v">ActivatedRoute</span><span class="pl-kos">)</span><span class="pl-kos"></span> <span class="pl-kos">{</span> <span class="pl-kos">}</span> <span class="pl-en">public</span> <span class="pl-s1">ngOnInit</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">routeData</span><span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">route</span><span class="pl-kos">.</span><span class="pl-c1">data</span><span class="pl-kos">.</span><span class="pl-en">subscribe</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">data</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">name</span> <span class="pl-c1">=</span> <span class="pl-s1">data</span><span class="pl-kos">.</span><span class="pl-c1">title</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">When I click on the link the data object is empty</p> <p dir="auto"><strong>Expected behavior</strong><br> I expect the ActivatedRoute to provide data that is defined on the currently active link</p> <p dir="auto"><strong>Reproduction of the problem</strong><br> See Plunker <a href="http://plnkr.co/edit/I62gnvThO0nGN2jk9xhX?p=preview" rel="nofollow">http://plnkr.co/edit/I62gnvThO0nGN2jk9xhX?p=preview</a></p> <ul dir="auto"> <li><strong>Angular version:</strong> 2.0.0</li> <li><strong>Router version:</strong> 3.0.0</li> </ul>
0
<p dir="auto">Flow now has <a href="https://medium.com/flow-type/even-better-support-for-react-in-flow-25b0a3485627" rel="nofollow">better support for React</a>. We should upgrade the <code class="notranslate">with-flow</code> example to use the new version of flow.</p> <p dir="auto">Also, I don't know much about adding flow type support to libraries, but it doesn't seem like Next JS has flow types built in... would this be something worth adding?</p> <ul dir="auto"> <li>[ x] I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">In <code class="notranslate">examples/with-flow/components/layout.js</code>, we can change the children prop to be a required property, and change the value to React.Node. There are likely other changes that could be made - we can run flow-upgrade as described <a href="https://medium.com/flow-type/even-better-support-for-react-in-flow-25b0a3485627" rel="nofollow">here</a> to see what changes need to be made.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto"><code class="notranslate">with-flow</code> example uses old flow version.</p>
<h1 dir="auto">Bug report</h1> <h2 dir="auto">Describe the bug</h2> <p dir="auto">Page open from Link not use assetPrefix to load chunked js when using granularChunks</p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">Steps to reproduce the behavior, please provide code snippets or a repository:</p> <p dir="auto">Let's say we have a site with <a href="http://www.example.com" rel="nofollow">www.example.com</a></p> <ol dir="auto"> <li>add granularChunks in next.config.js</li> <li>set an assetPrefix in next.config.js, like static.example.com</li> <li>build and run in production mode</li> <li>click link implemented by (e.g. <code class="notranslate">&lt;Link href={{pathname: '/index'}} as="/"&gt;link&lt;/Link&gt;</code>)</li> <li>index.js will load from static.example.com and other js will load from <a href="http://www.example.com" rel="nofollow">www.example.com</a></li> </ol> <h2 dir="auto">Expected behavior</h2> <p dir="auto">All js should be loaded from static.example.com</p> <h2 dir="auto">System information</h2> <ul dir="auto"> <li>OS: [Linux]</li> <li>Browser (if applies) [chrome]</li> <li>Version of Next.js: [9.1.1]</li> </ul>
0
<p dir="auto">Currently there is no User feedback when a user attempts to verify that a challenge is complete. The change from a tick to an X is very subtle and I would suggest implementing a screen flash. This would be especially helpful with people with slow/unreliable internet connections where it may take a while for the answer to verify.</p>
<p dir="auto">The <code class="notranslate">Run tests (ctrl + enter)</code> button in waypoints doesn’t give any visual feedback when the wrong code is submitted.</p> <p dir="auto">It would be nice to have this, especially useful to a novice <code class="notranslate">Camper</code>.</p>
1
<p dir="auto">I started trying to use VSCode with ES6 and I'm running into this. Changing the declaration to <code class="notranslate">import * as path from 'path'</code> for example works for intellisense, but then babel's transpiled output is invalid. Is there a plan to switch to the current syntax? If not, could anyone point me to some instructions on how to modify the d.ts files to work in this case?</p>
<p dir="auto">I try to do this:<br> <code class="notranslate">import React, {Component} from 'react';</code></p> <p dir="auto">But I don't know how to define the <code class="notranslate">react.d.ts</code> to support this valid ES6 behavior.</p> <p dir="auto">The compiler produces this error:<br> <code class="notranslate">error TS1192: Module '"react"' has no default export.</code></p>
1
<p dir="auto">alpine 3.5 python 2.7<br> Installing tensorflow using pip succesfully, but after <code class="notranslate">import</code> tensorflow` I got this</p> <blockquote> <p dir="auto">ImportError: Error relocating /usr/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal<br> .so: __sprintf_chk: symbol not found</p> </blockquote>
<h1 dir="auto">OS</h1> <p dir="auto">Host: Windows 10 Professional 64bit<br> Docker container : Alpine<br> <code class="notranslate">/ # cat /etc/issue</code><br> Welcome to Alpine Linux 3.6<br> Kernel \r on an \m (\l)</p> <p dir="auto"><code class="notranslate">/ # uname -a</code><br> Linux 3b851449cb60 4.9.27-moby <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="115886302" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/1" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/1/hovercard" href="https://github.com/tensorflow/tensorflow/issues/1">#1</a> SMP Thu May 11 04:01:18 UTC 2017 x86_64 Linux</p> <h1 dir="auto">Installation</h1> <ul dir="auto"> <li>Part of my dockerfile</li> </ul> <p dir="auto"><code class="notranslate">FROM frolvlad/alpine-glibc</code><br> <code class="notranslate">RUN apk update &amp;&amp; apk add --no-cache \ wget ca-certificates unzip vim git \ gcc g++ python python-dev py-numpy-dev &amp;&amp; \ apk add --no-cache --virtual=build-dependencies \ libffi-dev libressl-dev zlib-dev jpeg-dev freetype-dev libpng-dev </code></p> <p dir="auto"><code class="notranslate">RUN wget https://bootstrap.pypa.io/get-pip.py &amp;&amp; \ python get-pip.py &amp;&amp; rm get-pip.py &amp;&amp; \ ln -s /usr/include/locale.h /usr/include/xlocale.h &amp;&amp; \ pip --no-cache-dir install requests[security] ipykernel jupyter matplotlib scipy scikit-learn pandas seaborn \ https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.2.0rc1-cp27-none-linux_x86_64.whl &amp;&amp; \ python -m ipykernel.kernelspec </code></p> <p dir="auto">The dockerfile was built successfully. But when <code class="notranslate">import tensorflow</code> in a container , the following happened</p> <blockquote> <p dir="auto">Traceback (most recent call last):<br> File "", line 1, in <br> File "/usr/lib/python2.7/site-packages/tensorflow/<strong>init</strong>.py", line 24, in <br> from tensorflow.python import *<br> File "/usr/lib/python2.7/site-packages/tensorflow/python/<strong>init</strong>.py", line 49, in <br> from tensorflow.python import pywrap_tensorflow<br> File "/usr/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 52, in <br> raise ImportError(msg)<br> ImportError: Traceback (most recent call last):<br> File "/usr/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 41, in <br> from tensorflow.python.pywrap_tensorflow_internal import *<br> File "/usr/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <br> _pywrap_tensorflow_internal = swig_import_helper()<br> File "/usr/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)<br> ImportError: Error relocating /usr/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so: __sprintf_chk: symbol<br> not found<br> Failed to load the native TensorFlow runtime.</p> </blockquote>
1
<h4 dir="auto">Challenge Name</h4> <p dir="auto">All challenges in which there is a lot of code<br> For example Warn your Users of a Dangerous Action</p> <h4 dir="auto">Issue Description</h4> <p dir="auto">Sometime when I go to next challenge something strange occurs. I'm pointing to one place, but it seems that in fact cursor is on other line that I want. The everything become normal after I press something.<br> Please look at video for more details.</p> <h4 dir="auto">Video</h4> <p dir="auto"><a href="http://screencast.com/t/EdA4BFQBfEm0" rel="nofollow">http://screencast.com/t/EdA4BFQBfEm0</a></p> <h4 dir="auto">Browser Information</h4> <ul dir="auto"> <li>Browser Name, Version: Google Chrome Canary 52.0.2743.0 (64-bit)</li> <li>Operating System: Windows 10</li> <li>Mobile, Desktop, or Tablet: Desktop</li> </ul>
<p dir="auto">Style Text Inputs as Form Controls<br> <a href="https://www.freecodecamp.com/challenges/style-text-inputs-as-form-controls" rel="nofollow">https://www.freecodecamp.com/challenges/style-text-inputs-as-form-controls</a></p> <h4 dir="auto">Issue Description</h4> <p dir="auto">My cursor will not move through the code editor properly. I will try to select a spot in the code and I just can't. This has been an issue through multiple challenges. A hard refresh fixes it some of the time but it just keeps happening. It isn't my equipment either. I have tried restarting my computer. I have a mouse, touchscreen, and keyboard and none of them work properly while trying to move through.</p> <h4 dir="auto">Browser Information</h4> <ul dir="auto"> <li>Browser Name, Version: Firefox, 45.0.2</li> <li>Operating System: Windows !0</li> <li>Mobile, Desktop, or Tablet: Desktop.</li> </ul>
1
<h3 dir="auto">Website or app</h3> <p dir="auto">It's empty project creating with 'react-native init'</p> <h3 dir="auto">Repro steps</h3> <ol dir="auto"> <li>Start rn app in debug mode</li> </ol> <h3 dir="auto">How often does this bug happen?</h3> <p dir="auto">Every time</p> <h3 dir="auto">DevTools package (automated)</h3> <p dir="auto">react-devtools-core</p> <h3 dir="auto">DevTools version (automated)</h3> <p dir="auto">4.14.0-d0ec283819</p> <h3 dir="auto">Error message (automated)</h3> <p dir="auto">Cannot add node "1" because a node with that id is already in the Store.</p> <h3 dir="auto">Error call stack (automated)</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="at /Applications/React Native Debugger.app/Contents/Resources/app.asar/node_modules/react-devtools-core/dist/standalone.js:48:140545 at c.emit (/Applications/React Native Debugger.app/Contents/Resources/app.asar/node_modules/react-devtools-core/dist/standalone.js:48:89515) at /Applications/React Native Debugger.app/Contents/Resources/app.asar/node_modules/react-devtools-core/dist/standalone.js:48:90986 at /Applications/React Native Debugger.app/Contents/Resources/app.asar/node_modules/react-devtools-core/dist/standalone.js:48:347787 at Array.forEach (&lt;anonymous&gt;) at S.Gc.e.onmessage (/Applications/React Native Debugger.app/Contents/Resources/app.asar/node_modules/react-devtools-core/dist/standalone.js:48:347771) at S.n (/Applications/React Native Debugger.app/Contents/Resources/app.asar/node_modules/react-devtools-core/dist/standalone.js:40:3009) at S.emit (events.js:315:20) at e.exports.P (/Applications/React Native Debugger.app/Contents/Resources/app.asar/node_modules/react-devtools-core/dist/standalone.js:8:9318) at e.exports.emit (events.js:315:20) at e.exports.dataMessage (/Applications/React Native Debugger.app/Contents/Resources/app.asar/node_modules/react-devtools-core/dist/standalone.js:8:15409) at e.exports.getData (/Applications/React Native Debugger.app/Contents/Resources/app.asar/node_modules/react-devtools-core/dist/standalone.js:8:14651) at e.exports.startLoop (/Applications/React Native Debugger.app/Contents/Resources/app.asar/node_modules/react-devtools-core/dist/standalone.js:8:12066) at e.exports._write (/Applications/React Native Debugger.app/Contents/Resources/app.asar/node_modules/react-devtools-core/dist/standalone.js:8:11421) at doWrite (_stream_writable.js:403:12) at writeOrBuffer (_stream_writable.js:387:5)"><pre lang="text" class="notranslate"><code class="notranslate">at /Applications/React Native Debugger.app/Contents/Resources/app.asar/node_modules/react-devtools-core/dist/standalone.js:48:140545 at c.emit (/Applications/React Native Debugger.app/Contents/Resources/app.asar/node_modules/react-devtools-core/dist/standalone.js:48:89515) at /Applications/React Native Debugger.app/Contents/Resources/app.asar/node_modules/react-devtools-core/dist/standalone.js:48:90986 at /Applications/React Native Debugger.app/Contents/Resources/app.asar/node_modules/react-devtools-core/dist/standalone.js:48:347787 at Array.forEach (&lt;anonymous&gt;) at S.Gc.e.onmessage (/Applications/React Native Debugger.app/Contents/Resources/app.asar/node_modules/react-devtools-core/dist/standalone.js:48:347771) at S.n (/Applications/React Native Debugger.app/Contents/Resources/app.asar/node_modules/react-devtools-core/dist/standalone.js:40:3009) at S.emit (events.js:315:20) at e.exports.P (/Applications/React Native Debugger.app/Contents/Resources/app.asar/node_modules/react-devtools-core/dist/standalone.js:8:9318) at e.exports.emit (events.js:315:20) at e.exports.dataMessage (/Applications/React Native Debugger.app/Contents/Resources/app.asar/node_modules/react-devtools-core/dist/standalone.js:8:15409) at e.exports.getData (/Applications/React Native Debugger.app/Contents/Resources/app.asar/node_modules/react-devtools-core/dist/standalone.js:8:14651) at e.exports.startLoop (/Applications/React Native Debugger.app/Contents/Resources/app.asar/node_modules/react-devtools-core/dist/standalone.js:8:12066) at e.exports._write (/Applications/React Native Debugger.app/Contents/Resources/app.asar/node_modules/react-devtools-core/dist/standalone.js:8:11421) at doWrite (_stream_writable.js:403:12) at writeOrBuffer (_stream_writable.js:387:5) </code></pre></div> <h3 dir="auto">Error component stack (automated)</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">GitHub query string (automated)</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="https://api.github.com/search/issues?q=Cannot add node because a node with that id is already in the Store. in:title is:issue is:open is:public label:&quot;Component: Developer Tools&quot; repo:facebook/react"><pre lang="text" class="notranslate"><code class="notranslate">https://api.github.com/search/issues?q=Cannot add node because a node with that id is already in the Store. in:title is:issue is:open is:public label:"Component: Developer Tools" repo:facebook/react </code></pre></div>
<p dir="auto">The following code generates two <code class="notranslate">&lt;button&gt;</code>'s and an <code class="notranslate">&lt;input&gt;</code> field whose type changes respective to the type of button clicked (or dependent on the component <code class="notranslate">state</code>).</p> <p dir="auto">So, if my rendered field is type <code class="notranslate">number</code> and it has the value <code class="notranslate">42</code> and I tap the <code class="notranslate">&lt;button&gt;</code> to change the field type to <code class="notranslate">text</code> with new value <code class="notranslate">hello world!</code>, react tries to set <code class="notranslate">&lt;input type='number' /&gt;</code>'s value to <code class="notranslate">'hello world!'</code> before changing field type to <code class="notranslate">text</code>, which generates a warning in the console as show below:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/3400083/14933814/8c7e3af2-0e4f-11e6-92ee-c9aef99dd2ab.png"><img src="https://cloud.githubusercontent.com/assets/3400083/14933814/8c7e3af2-0e4f-11e6-92ee-c9aef99dd2ab.png" alt="screen shot 2016-04-29 at 9 06 45 pm" style="max-width: 100%;"></a></p> <p dir="auto">The value definitely set's once the <code class="notranslate">type</code> changes, which is after the <code class="notranslate">value</code>, however the warning is generated.</p> <p dir="auto"><strong>The code is below:</strong></p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta charset=&quot;utf-8&quot;&gt; &lt;title&gt;React Re-Render Warning Example&lt;/title&gt; &lt;link rel=&quot;stylesheet&quot; href=&quot;../shared/css/base.css&quot; /&gt; &lt;/head&gt; &lt;body&gt; &lt;h1&gt;React Re-Render Warning Example&lt;/h1&gt; &lt;div id=&quot;container&quot;&gt; Loading... &lt;/div&gt; &lt;script src=&quot;../../build/react.js&quot;&gt;&lt;/script&gt; &lt;script src=&quot;../../build/react-dom.js&quot;&gt;&lt;/script&gt; &lt;script src=&quot;https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.24/browser.min.js&quot;&gt;&lt;/script&gt; &lt;script type=&quot;text/babel&quot;&gt; var InnerApp = React.createClass({ getInitialState: function() { return { type: '', val: '' } }, componentWillMount: function() { this.setState({ type: this.props.type, val: this.props.val }); }, componentWillReceiveProps: function(nextProps) { this.setState({ type: nextProps.type, val: nextProps.val }); }, onChange: function(event) { this.setState({ val: event.target.value }) }, render: function() { var renderInput; if (this.state.type === 'text') { renderInput = (&lt;input type='text' value={this.state.val} onChange={this.onChange} /&gt;); } else { renderInput = (&lt;input type='number' value={this.state.val} onChange={this.onChange} /&gt;); } return ( &lt;div&gt; {renderInput} &lt;/div&gt; ); } }); var App = React.createClass({ getInitialState: function() { return { type: 'text', val: '' } }, changeType: function(itype) { this.setState({ type: itype, val: itype === 'text' ? 'randomstring' : 32 }); }, render: function() { return ( &lt;div&gt; &lt;button onClick={this.changeType.bind(null, 'text')}&gt;Text&lt;/button&gt; &lt;button onClick={this.changeType.bind(null, 'number')}&gt;Number&lt;/button&gt; &lt;InnerApp val={this.state.val} type={this.state.type} /&gt; &lt;/div&gt; ); } }); ReactDOM.render(&lt;App /&gt;, document.getElementById('container')); &lt;/script&gt; &lt;/body&gt; &lt;/html&gt;"><pre class="notranslate"><span class="pl-c1">&lt;!DOCTYPE html<span class="pl-kos">&gt;</span></span> <span class="pl-kos">&lt;</span><span class="pl-ent">html</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">head</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">meta</span> <span class="pl-c1">charset</span>="<span class="pl-s">utf-8</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">title</span><span class="pl-kos">&gt;</span>React Re-Render Warning Example<span class="pl-kos">&lt;/</span><span class="pl-ent">title</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">link</span> <span class="pl-c1">rel</span>="<span class="pl-s">stylesheet</span>" <span class="pl-c1">href</span>="<span class="pl-s">../shared/css/base.css</span>" /&gt; <span class="pl-kos">&lt;/</span><span class="pl-ent">head</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">body</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h1</span><span class="pl-kos">&gt;</span>React Re-Render Warning Example<span class="pl-kos">&lt;/</span><span class="pl-ent">h1</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">id</span>="<span class="pl-s">container</span>"<span class="pl-kos">&gt;</span> Loading... <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">script</span> <span class="pl-c1">src</span>="<span class="pl-s">../../build/react.js</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">script</span> <span class="pl-c1">src</span>="<span class="pl-s">../../build/react-dom.js</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">script</span> <span class="pl-c1">src</span>="<span class="pl-s">https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.24/browser.min.js</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">script</span> <span class="pl-c1">type</span>="<span class="pl-s">text/babel</span>"<span class="pl-kos">&gt;</span> <span class="pl-k">var</span> <span class="pl-v">InnerApp</span> <span class="pl-c1">=</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-en">createClass</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-en">getInitialState</span>: <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-kos">{</span> <span class="pl-c1">type</span>: <span class="pl-s">''</span><span class="pl-kos">,</span> <span class="pl-c1">val</span>: <span class="pl-s">''</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-en">componentWillMount</span>: <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">setState</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">type</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-c1">type</span><span class="pl-kos">,</span> <span class="pl-c1">val</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-c1">val</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-en">componentWillReceiveProps</span>: <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">nextProps</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-en">setState</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">type</span>: <span class="pl-s1">nextProps</span><span class="pl-kos">.</span><span class="pl-c1">type</span><span class="pl-kos">,</span> <span class="pl-c1">val</span>: <span class="pl-s1">nextProps</span><span class="pl-kos">.</span><span class="pl-c1">val</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-en">onChange</span>: <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">event</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">setState</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">val</span>: <span class="pl-s1">event</span><span class="pl-kos">.</span><span class="pl-c1">target</span><span class="pl-kos">.</span><span class="pl-c1">value</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-en">render</span>: <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">renderInput</span><span class="pl-kos">;</span> <span class="pl-k">if</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">type</span> <span class="pl-c1">===</span> <span class="pl-s">'text'</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">renderInput</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-c1">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span><span class="pl-c1">=</span><span class="pl-s">'text'</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">val</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">onChange</span><span class="pl-kos">}</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">else</span> <span class="pl-kos">{</span> <span class="pl-s1">renderInput</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-c1">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span><span class="pl-c1">=</span><span class="pl-s">'number'</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">val</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">onChange</span><span class="pl-kos">}</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">return</span> <span class="pl-kos">(</span> <span class="pl-c1">&lt;</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-kos">{</span><span class="pl-s1">renderInput</span><span class="pl-kos">}</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-v">App</span> <span class="pl-c1">=</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-en">createClass</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-en">getInitialState</span>: <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-kos">{</span> <span class="pl-c1">type</span>: <span class="pl-s">'text'</span><span class="pl-kos">,</span> <span class="pl-c1">val</span>: <span class="pl-s">''</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-en">changeType</span>: <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">itype</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-en">setState</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">type</span>: <span class="pl-s1">itype</span><span class="pl-kos">,</span> <span class="pl-c1">val</span>: <span class="pl-s1">itype</span> <span class="pl-c1">===</span> <span class="pl-s">'text'</span> ? <span class="pl-s">'randomstring'</span> : <span class="pl-c1">32</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-en">render</span>: <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-kos">(</span> <span class="pl-c1">&lt;</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">onClick</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">changeType</span><span class="pl-kos">.</span><span class="pl-en">bind</span><span class="pl-kos">(</span><span class="pl-c1">null</span><span class="pl-kos">,</span> <span class="pl-s">'text'</span><span class="pl-kos">)</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span>Text<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">button</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">onClick</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">changeType</span><span class="pl-kos">.</span><span class="pl-en">bind</span><span class="pl-kos">(</span><span class="pl-c1">null</span><span class="pl-kos">,</span> <span class="pl-s">'number'</span><span class="pl-kos">)</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span>Number<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">button</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-v">InnerApp</span> <span class="pl-c1">val</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">val</span><span class="pl-kos">}</span> <span class="pl-c1">type</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">type</span><span class="pl-kos">}</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-v">ReactDOM</span><span class="pl-kos">.</span><span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-c1">&lt;</span><span class="pl-v">App</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span><span class="pl-kos">,</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-en">getElementById</span><span class="pl-kos">(</span><span class="pl-s">'container'</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">body</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">html</span><span class="pl-kos">&gt;</span></pre></div>
0
<p dir="auto">Describe what you were doing when the bug occurred:</p> <ol dir="auto"> <li>Profiling my react web page</li> <li></li> <li></li> </ol> <hr> <h2 dir="auto">Please do not remove the text below this line</h2> <p dir="auto">DevTools version: 4.1.2-5184346da</p> <p dir="auto">Call stack: at Map.has ()<br> at I (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:150140)<br> at I (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:150791)<br> at I (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:150791)<br> at I (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:150791)<br> at I (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:150791)<br> at I (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:150791)<br> at I (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:150791)<br> at I (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:150791)<br> at I (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:150791)</p> <p dir="auto">Component stack: in dl<br> in div<br> in div<br> in div<br> in _o<br> in Unknown<br> in n<br> in Unknown<br> in div<br> in div<br> in zi<br> in Ge<br> in un<br> in ba<br> in Rc</p>
<p dir="auto">With 10,000 item nesting in <code class="notranslate">DeeplyNestedComponents</code> case:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/810438/55670638-f3bec480-587e-11e9-850d-8a247aa42f7c.png"><img width="432" alt="Screen Shot 2019-04-06 at 15 16 02" src="https://user-images.githubusercontent.com/810438/55670638-f3bec480-587e-11e9-850d-8a247aa42f7c.png" style="max-width: 100%;"></a></p> <p dir="auto">Not super realistic but we could fix this by avoiding recursion in the traversal.</p> <hr> <p dir="auto">Originally reported by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gaearon/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gaearon">@gaearon</a> via <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="430038062" data-permission-text="Title is private" data-url="https://github.com/bvaughn/react-devtools-experimental/issues/76" data-hovercard-type="issue" data-hovercard-url="/bvaughn/react-devtools-experimental/issues/76/hovercard" href="https://github.com/bvaughn/react-devtools-experimental/issues/76">bvaughn/react-devtools-experimental#76</a></p>
1
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report [ ] feature request [ ] support request"><pre class="notranslate"><code class="notranslate">[x] bug report [ ] feature request [ ] support request </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> A change of value of a date input control (that is created using ngFor and that is bound to an item in an array) modifies the value of the succeeding control.</p> <p dir="auto"><strong>Expected behavior</strong><br> A modification of date input control value should only be applied to the selected date input control.</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br> <a href="http://plnkr.co/edit/5ZdUsGolUk5AAYgJ9qgP?p=preview" rel="nofollow">http://plnkr.co/edit/5ZdUsGolUk5AAYgJ9qgP?p=preview</a></p> <ul dir="auto"> <li>Steps to reproduce -<br> (Chrome)</li> </ul> <ol dir="auto"> <li>Use plnkr link, and wait for the app to load.</li> <li>Click on the up button next to the first date input control to modify it.</li> <li>Notice that both first and second date input control values have changed. Also notice that the focus has changed to the second date input control.</li> <li>Click once again on the up button next to the first date input control.</li> <li>Notice that this time only first date input control value has changed.</li> </ol> <p dir="auto">(Firefox)</p> <ol dir="auto"> <li>Use plnkr link, and wait for the app to load.</li> <li>Click the first date input control to set focus, and press Backspace key.</li> <li>Notice that both first and second date input control value have changed. Also notice that the focus has changed to the second date input control.</li> <li>Click once again on the first date input control to set focus, and press Backspace key.</li> <li>Notice that this time only first date input control value has changed.</li> </ol> <p dir="auto">(Edge)</p> <ol dir="auto"> <li>Use plnkr link, and wait for the app to load.</li> <li>Click the first date input control to select new date value, and press check-mark button to apply.</li> <li>Notice that both first and second date input control value have changed.</li> <li>Click once again on the first date input control to select new date value, and press check-mark button to apply.</li> <li>Notice that this time only first date input control value has changed.</li> </ol> <p dir="auto"><strong>Please tell us about your environment:</strong><br> Windows 10</p> <ul dir="auto"> <li> <p dir="auto"><strong>Angular version:</strong> 2.2.3</p> </li> <li> <p dir="auto"><strong>Browser:</strong> Chrome 54, Edge 38/14, Edge 39/15, Firefox 50</p> </li> <li> <p dir="auto"><strong>Language:</strong> TypeScript 2.0.3</p> </li> <li> <p dir="auto"><strong>Node (for AoT issues):</strong> 6.6.0</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="[ ] bug report =&gt; search github for a similar issue or PR before submitting [ x ] feature request [ x ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[ ] bug report =&gt; search github for a similar issue or PR before submitting [ x ] feature request [ x ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong></p> <p dir="auto">I'm using <code class="notranslate">Router.navigate([], {queryParams:{foo:'bar'}})</code> for updating Query Params for the current Route (couldn't find any other way to do this).<br> When I call <code class="notranslate">navigate</code> twice with the same queryParams the returned Promise resolves to <code class="notranslate">null</code>. Documentation only tell's about <code class="notranslate">true</code> and <code class="notranslate">false</code>.</p> <p dir="auto"><strong>Expected behavior</strong></p> <p dir="auto">This should be part of the official docs, because this seems to be the only way to see if the queryParams have changed. <code class="notranslate">ActivatedRoute.queryParams</code> will not get triggered on <code class="notranslate">Router.navigate</code> if the queryParams don't change. Or is there any other way?</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="constructor(route: ActivatedRoute, router: Router) { route.queryParams.subscribe(val =&gt; console.log(&quot;Query Params: &quot;, val)); router.navigate([], {queryParams:{foo:'bar'}}).then(val =&gt; console.log(&quot;Navigate: &quot; + val)); router.navigate([], {queryParams:{foo:'bar'}}).then(val =&gt; console.log(&quot;Navigate: &quot; + val)); }"><pre class="notranslate"><code class="notranslate">constructor(route: ActivatedRoute, router: Router) { route.queryParams.subscribe(val =&gt; console.log("Query Params: ", val)); router.navigate([], {queryParams:{foo:'bar'}}).then(val =&gt; console.log("Navigate: " + val)); router.navigate([], {queryParams:{foo:'bar'}}).then(val =&gt; console.log("Navigate: " + val)); } </code></pre></div> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p> <p dir="auto">I want to call a method each time the queryParams change (either because of <code class="notranslate">Router.navigate</code> or because the user edited the URL manually). And each queryParams change will update a form. And each form update will set the new queryParams and trigger the method call. And there's also a button inside the form that will re-execute the method.<br> Though I need a reliable way to find out if queryParams changed.</p> <p dir="auto"><strong>Please tell us about your environment:</strong></p> <p dir="auto">macOS Sierra, VS Code, npm, webpack, webpack-dev-server</p> <ul dir="auto"> <li><strong>Angular version:</strong> 2.4.1 and 4.0.0-beta.1</li> </ul> <p dir="auto">Tested with 2.4.1 and 4.0.0-beta.1</p> <ul dir="auto"> <li><strong>Browser:</strong> [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]</li> </ul> <p dir="auto">Chrome 55</p> <ul dir="auto"> <li> <p dir="auto"><strong>Language:</strong> [all | TypeScript X.X | ES6/7 | ES5]<br> Typescript 2.0.10</p> </li> <li> <p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> =<br> 7.3.0</p> </li> </ul>
0
<p dir="auto">When trying out the standard lineplot example on my machine, the code stops with an error in algorithm.py line 85:</p> <p dir="auto"><code class="notranslate">TypeError: Cannot cast array data from dtype('int64') to dtype('int32') according to the rule 'safe'</code></p> <p dir="auto">line 85 is: <code class="notranslate">sample = [a.take(resampler, axis=0) for a in args]</code></p> <p dir="auto">where <code class="notranslate">resampler</code> comes from the previous line <code class="notranslate">resampler = integers(0, n, n)</code></p> <p dir="auto">and <a href="https://docs.scipy.org/doc/numpy/reference/random/generated/numpy.random.Generator.integers.html" rel="nofollow"><code class="notranslate">integers</code></a> is <code class="notranslate">np.random.default_rng().integers</code> which default returns an array of int64.</p> <p dir="auto">Probably a recent change to <a href="https://docs.scipy.org/doc/numpy/reference/generated/numpy.take.html" rel="nofollow"><code class="notranslate">np.take</code></a> now checks the type of its first parameter (<code class="notranslate">indices</code>).<br> An obvious solution seems to be changing line 84 to <code class="notranslate">resampler = integers(0, n, n, dtype=np.int32)</code>.</p> <p dir="auto">numpy version 1.18.1<br> seaborn version 0.10.0</p> <p dir="auto">Just running the default example caused the crash:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import seaborn as sns import numpy as np fmri = sns.load_dataset(&quot;fmri&quot;) ax = sns.lineplot(x=&quot;timepoint&quot;, y=&quot;signal&quot;, data=fmri)"><pre class="notranslate"><code class="notranslate">import seaborn as sns import numpy as np fmri = sns.load_dataset("fmri") ax = sns.lineplot(x="timepoint", y="signal", data=fmri) </code></pre></div>
<p dir="auto">Using the latest commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/mwaskom/seaborn/commit/74ca1908ff88383a722df51b4adfed4e3e84a83b/hovercard" href="https://github.com/mwaskom/seaborn/commit/74ca1908ff88383a722df51b4adfed4e3e84a83b"><tt>74ca190</tt></a>, it appears as if you can no longer pass the <code class="notranslate">xticklabels</code> and <code class="notranslate">yticklabels</code> through <code class="notranslate">clustermap</code> to <code class="notranslate">heatmap</code> since those kwargs are present in <code class="notranslate">heatmap</code>, thus resulting in a duplicate argument error. This was not the case previously in 0.5.1, I believe. See <a class="commit-link" href="https://github.com/mwaskom/seaborn/commit/e5684e3f7748e23b15437a2e66cccb9eef19a7d1#diff-33635340559df70c3277d4c8a87885e1R169"><tt>e5684e3</tt>#diff-33635340559df70c3277d4c8a87885e1R169</a></p>
0
<p dir="auto">Currently hydration warnings only appear in the console and can be easy to miss. Since hydration errors can have very bad effects we should trigger the dev-error-overlay to make sure the user is aware of them</p>
<h1 dir="auto">Feature request</h1> <p dir="auto">When a hydration error occurs, Next.js should open the error overlay since this is considered a fatal event.</p> <p dir="auto">The code should be hot-linked so users can click-to-open in their editor.</p> <p dir="auto">We did not implement this previously because React did not give you a way to track it down.</p> <p dir="auto">React 16.13 finally added support for component stack traces:<br> <a href="https://reactjs.org/blog/2020/02/26/react-v16.13.0.html#component-stacks-in-hydration-warnings" rel="nofollow">https://reactjs.org/blog/2020/02/26/react-v16.13.0.html#component-stacks-in-hydration-warnings</a></p> <p dir="auto"><strong>Old</strong><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/616428/84171057-5b0a7280-aa48-11ea-9e66-1868bbec8684.png"><img src="https://user-images.githubusercontent.com/616428/84171057-5b0a7280-aa48-11ea-9e66-1868bbec8684.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto"><strong>New</strong><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/616428/84171066-5e9df980-aa48-11ea-8d5b-669c72241bd9.png"><img src="https://user-images.githubusercontent.com/616428/84171066-5e9df980-aa48-11ea-8d5b-669c72241bd9.png" alt="image" style="max-width: 100%;"></a></p>
1
<p dir="auto">Test case: <a href="http://play.golang.org/p/9oz7e7AKzd" rel="nofollow">http://play.golang.org/p/9oz7e7AKzd</a></p> <p dir="auto">In the example above A embeds b which embeds c. There are public functions on b, which is shown correctly in godoc as belonging to A. However, it seems like godoc only searches 1 level deep, and functions on c are not shown even though they are valid for calls by the compiler.</p> <p dir="auto">Reproducible on 1.4.1 and 1.3.3.</p> <p dir="auto">Real life example: <a href="https://github.com/klauspost/dawa/blob/master/query.go">source</a> / <a href="https://godoc.org/github.com/klauspost/dawa#PostnrQuery" rel="nofollow">godoc</a>. A specific query type includes "geoJSONQuery" which includes "query", and I would like to have the functions on "query" to show up. I would however prefer not to expose any of the internal types since they aren't useful themselves.</p>
<pre class="notranslate">Fix the cmd/godoc side of issue <a href="https://code.google.com/p/go/source/detail?r=f5b37c93e4c5bb2962c" rel="nofollow">https://code.google.com/p/go/source/detail?r=f5b37c93e4c5bb2962c</a> added some methods to go1.txt that were always there, but neither cmd/godoc nor cmd/api (both with their own bad embedding rules) detected. Robert's rewrite of cmd/api to use go/types fixed cmd/api, but cmd/godoc is still broken. This bug is about making those methods (like <a href="https://golang.org/issue/6125" rel="nofollow">issue #6125</a> -- xml.Encoder.Reset / Available / etc) show up, if they're actually there. (But <a href="https://golang.org/issue/6125" rel="nofollow">issue #6125</a> should remove them)</pre>
1
<p dir="auto">API Routes should emulate lambdas with run-to-completion semantics. This behavior should ensure API routes don't misbehave when deployed to production.</p> <p dir="auto">Closes <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="5820" data-permission-text="Title is private" data-url="https://github.com/vercel/next.js/discussions/8000" data-hovercard-type="discussion" data-hovercard-url="/vercel/next.js/discussions/8000/hovercard" href="https://github.com/vercel/next.js/discussions/8000">#8000</a></p>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Context</h2> <p dir="auto">I'm tying to get multiple query data. I came up with this before redirect:</p> <p dir="auto"><code class="notranslate">Router.push('/acceptance/procurement/RejectedInfo?procurementUUID=0ae56414-0699-4866-898d-be41ab146523?acceptanceUUID=24ecb437-8e52-48f1-82f8-d5d7fb1d22b7');</code></p> <p dir="auto">which mean there is 2 query param:<br> <code class="notranslate">procurementUUID=0ae56414-0699-4866-898d-be41ab146523</code> and<br> <code class="notranslate">acceptanceUUID=24ecb437-8e52-48f1-82f8-d5d7fb1d22b7'</code></p> <p dir="auto">but in my props, both query is merged with <code class="notranslate">procurementUUID</code><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/14165645/28398611-94a6546c-6d3a-11e7-864e-643af5799759.png"><img src="https://user-images.githubusercontent.com/14165645/28398611-94a6546c-6d3a-11e7-864e-643af5799759.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">How can I separate <code class="notranslate">procurementUUID</code> and <code class="notranslate">acceptanceUUID</code> value?</p> <p dir="auto">Thanks in advance.</p>
0
<blockquote> <p dir="auto">Issue originally made by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/FranzPoize/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/FranzPoize">@FranzPoize</a></p> </blockquote> <h3 dir="auto">Bug information</h3> <ul dir="auto"> <li><strong>Babel version:</strong> 6.4.0</li> <li><strong>Node version:</strong> 4.2.3</li> <li><strong>npm version:</strong> 2.14.7</li> </ul> <h3 dir="auto">Options</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;presets&quot;: [ &quot;es2015&quot;, &quot;react&quot; ], &quot;ignore&quot;: &quot;/node_modules/&quot;, &quot;plugins&quot;: [ &quot;transform-class-properties&quot;, &quot;syntax-async-functions&quot;, [&quot;transform-async-to-module-method&quot;, { &quot;module&quot;: &quot;bluebird&quot;, &quot;method&quot;: &quot;coroutine&quot; }] ] }"><pre class="notranslate"><code class="notranslate">{ "presets": [ "es2015", "react" ], "ignore": "/node_modules/", "plugins": [ "transform-class-properties", "syntax-async-functions", ["transform-async-to-module-method", { "module": "bluebird", "method": "coroutine" }] ] } </code></pre></div> <h3 dir="auto">Input code</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class stuff { async yo() { const ouais = something(); } }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-s1">stuff</span> <span class="pl-kos">{</span> <span class="pl-k">async</span> <span class="pl-en">yo</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">ouais</span> <span class="pl-c1">=</span> <span class="pl-en">something</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> <h3 dir="auto">Description</h3> <p dir="auto">When using <code class="notranslate">transform-async-to-module-method</code> this is the error we get</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="SyntaxError: test-babel.js: &quot;ouais&quot; is read-only (This is an error on an internal node. Probably an internal error. Location has been estimated.)"><pre class="notranslate"><code class="notranslate">SyntaxError: test-babel.js: "ouais" is read-only (This is an error on an internal node. Probably an internal error. Location has been estimated.) </code></pre></div> <p dir="auto">When using <code class="notranslate">transform-regenerator</code> it works as it should.</p>
<h2 dir="auto">Bug Report</h2> <p dir="auto"><strong>Current Behavior</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt; babel . --out-dir dist SyntaxError: Expected atom at position 2 \p{Script_Ex ^ at bail (/home/shm/dpp-query-ws/node_modules/regjsparser/parser.js:1093:13) at parseTerm (/home/shm/dpp-query-ws/node_modules/regjsparser/parser.js:486:9) at parseAlternative (/home/shm/dpp-query-ws/node_modules/regjsparser/parser.js:457:21) at parseDisjunction (/home/shm/dpp-query-ws/node_modules/regjsparser/parser.js:437:16) at parse (/home/shm/dpp-query-ws/node_modules/regjsparser/parser.js:1108:18) at rewritePattern (/home/shm/dpp-query-ws/node_modules/regexpu-core/rewrite-pattern.js:324:15) at PluginPass.RegExpLiteral (/home/shm/dpp-query-ws/node_modules/@babel/plugin-transform-unicode-regex/lib/index.js:50:51) at newFn (/home/shm/dpp-query-ws/node_modules/@babel/traverse/lib/visitors.js:193:21) at NodePath._call (/home/shm/dpp-query-ws/node_modules/@babel/traverse/lib/path/context.js:53:20) at NodePath.call (/home/shm/dpp-query-ws/node_modules/@babel/traverse/lib/path/context.js:40:17)"><pre class="notranslate"><code class="notranslate">&gt; babel . --out-dir dist SyntaxError: Expected atom at position 2 \p{Script_Ex ^ at bail (/home/shm/dpp-query-ws/node_modules/regjsparser/parser.js:1093:13) at parseTerm (/home/shm/dpp-query-ws/node_modules/regjsparser/parser.js:486:9) at parseAlternative (/home/shm/dpp-query-ws/node_modules/regjsparser/parser.js:457:21) at parseDisjunction (/home/shm/dpp-query-ws/node_modules/regjsparser/parser.js:437:16) at parse (/home/shm/dpp-query-ws/node_modules/regjsparser/parser.js:1108:18) at rewritePattern (/home/shm/dpp-query-ws/node_modules/regexpu-core/rewrite-pattern.js:324:15) at PluginPass.RegExpLiteral (/home/shm/dpp-query-ws/node_modules/@babel/plugin-transform-unicode-regex/lib/index.js:50:51) at newFn (/home/shm/dpp-query-ws/node_modules/@babel/traverse/lib/visitors.js:193:21) at NodePath._call (/home/shm/dpp-query-ws/node_modules/@babel/traverse/lib/path/context.js:53:20) at NodePath.call (/home/shm/dpp-query-ws/node_modules/@babel/traverse/lib/path/context.js:40:17) </code></pre></div> <p dir="auto"><strong>Input Code</strong></p> <ul dir="auto"> <li>REPL or Repo link if applicable:</li> </ul> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var your =&gt; (code) =&gt; here;"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">your</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">(</span><span class="pl-s1">code</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-s1">here</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Expected behavior/code</strong><br> Successful transpiled code</p> <p dir="auto"><strong>Babel Configuration (.babelrc, package.json, cli command)</strong><br> package.json</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&quot;devDependencies&quot;: { &quot;@babel/cli&quot;: &quot;^7.1.2&quot;, &quot;@babel/core&quot;: &quot;^7.1.2&quot;, &quot;@babel/node&quot;: &quot;^7.0.0&quot;, &quot;@babel/plugin-proposal-object-rest-spread&quot;: &quot;^7.0.0&quot;, &quot;@babel/preset-env&quot;: &quot;^7.1.0&quot;, &quot;@babel/preset-flow&quot;: &quot;^7.0.0&quot;, &quot;nodemon&quot;: &quot;^1.18.4&quot; }"><pre class="notranslate"><span class="pl-s">"devDependencies"</span>: <span class="pl-kos">{</span> <span class="pl-s">"@babel/cli"</span>: <span class="pl-s">"^7.1.2"</span><span class="pl-kos">,</span> <span class="pl-s">"@babel/core"</span>: <span class="pl-s">"^7.1.2"</span><span class="pl-kos">,</span> <span class="pl-s">"@babel/node"</span>: <span class="pl-s">"^7.0.0"</span><span class="pl-kos">,</span> <span class="pl-s">"@babel/plugin-proposal-object-rest-spread"</span>: <span class="pl-s">"^7.0.0"</span><span class="pl-kos">,</span> <span class="pl-s">"@babel/preset-env"</span>: <span class="pl-s">"^7.1.0"</span><span class="pl-kos">,</span> <span class="pl-s">"@babel/preset-flow"</span>: <span class="pl-s">"^7.0.0"</span><span class="pl-kos">,</span> <span class="pl-s">"nodemon"</span>: <span class="pl-s">"^1.18.4"</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">babel.config.js</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="module.exports = { &quot;presets&quot;: [&quot;@babel/preset-env&quot;,&quot;@babel/preset-flow&quot;], &quot;plugins&quot;: [ &quot;@babel/plugin-proposal-object-rest-spread&quot; ] }"><pre class="notranslate"><span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-c1">exports</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-s">"presets"</span>: <span class="pl-kos">[</span><span class="pl-s">"@babel/preset-env"</span><span class="pl-kos">,</span><span class="pl-s">"@babel/preset-flow"</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-s">"plugins"</span>: <span class="pl-kos">[</span> <span class="pl-s">"@babel/plugin-proposal-object-rest-spread"</span> <span class="pl-kos">]</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><strong>Environment</strong></p> <ul dir="auto"> <li>Babel version(s): [e.g. v6.0.0, v7.0.0-beta.34]</li> <li>Node/npm version: Node 8.12.0/npm 6.4.1</li> <li>OS: Ubuntu 16.04.4 LTS</li> <li>Monorepo</li> <li>How you are using Babel: [e.g. <code class="notranslate">cli</code>, <code class="notranslate">register</code>, <code class="notranslate">loader</code>]<br> cli <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&quot;build&quot;: &quot;babel . --out-dir dist&quot;"><pre class="notranslate"><code class="notranslate">"build": "babel . --out-dir dist" </code></pre></div> </li> </ul>
0
<p dir="auto">I am having a confusing problem. It does look like a bug and hence I am reporting here, not sure if duplicate.</p> <p dir="auto">I am using ansible version 2.0.0 locally on OSX El Capitan, to run a series of steps which sets up my machine for development for my project. The last step here is to add a few lines to <code class="notranslate">/etc/hosts</code> (~15 lines)<br> I am using <code class="notranslate">lineinfile</code> to add these lines in a loop.</p> <p dir="auto">I have tried <code class="notranslate">become: root</code> with <code class="notranslate">become_ask_pass=True</code> in the cfg file. This does nothing. It does not ask my password and once it hits that task, I get <code class="notranslate">The destination directory (/private/etc) is not writable by the current user.</code>. If I try <code class="notranslate">sudo: yes</code> and <code class="notranslate">ask_sudo_pass=True</code> then I get <code class="notranslate">fatal: [localhost]: FAILED! =&gt; {"failed": true, "msg": "ERROR! privilege output closed while waiting for password prompt:\nBECOME-SUCCESS-jpibjiakmfjdrjafspqizphqotvhjikm\n{\"msg\": \"line added\", \"changed\": true, \"backup\": \"\"}\n"}</code>. But infact If i check now, <code class="notranslate">/etc/hosts</code> file now has the first 2 lines of the list of lines I had to add. Running the playbook now doesnt help me at all.. but even more oddly, If i remove the config option to ask for password and run the play it works fully....</p>
<p dir="auto">Ansible crashes when creating links with_items and using <code class="notranslate">ansible_connection=local</code>. Here an example playbook for reproducing the behavior:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- name: the last task will throw an error hosts: localhost gather_facts: no tasks: - name: create files - that will work copy: content: &quot;test&quot; dest: &quot;/tmp/{{ item }}&quot; with_items: - testfile1 - testfile2 - name: create links - that will crash become: yes file: src: &quot;/tmp/{{ item }}&quot; dest: &quot;/tmp/{{ item }}link&quot; state: link with_items: - testfile1 - testfile2"><pre class="notranslate"><code class="notranslate">- name: the last task will throw an error hosts: localhost gather_facts: no tasks: - name: create files - that will work copy: content: "test" dest: "/tmp/{{ item }}" with_items: - testfile1 - testfile2 - name: create links - that will crash become: yes file: src: "/tmp/{{ item }}" dest: "/tmp/{{ item }}link" state: link with_items: - testfile1 - testfile2 </code></pre></div> <p dir="auto">The output is:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY [the last task will throw an error] *********************************** TASK [create files - that will work] ************************************************************* ok: [localhost] =&gt; (item=testfile1) ok: [localhost] =&gt; (item=testfile2) TASK [create links - that will crash] ************************************************************* fatal: [localhost]: FAILED! =&gt; {&quot;failed&quot;: true, &quot;msg&quot;: &quot;ERROR! privilege output closed while waiting for password prompt:\nBECOME-SUCCESS-smnurvzoeqwqcapbnmmyrhlaautxdumn\n{\&quot;src\&quot;: \&quot;/tmp/testfile2\&quot;, \&quot;group\&quot;: \&quot;root\&quot;, \&quot;uid\&quot;: 0, \&quot;dest\&quot;: \&quot;/tmp/testfile2link\&quot;, \&quot;changed\&quot;: false, \&quot;owner\&quot;: \&quot;root\&quot;, \&quot;state\&quot;: \&quot;link\&quot;, \&quot;gid\&quot;: 0, \&quot;mode\&quot;: \&quot;0777\&quot;, \&quot;invocation\&quot;: {\&quot;directory_mode\&quot;: null, \&quot;force\&quot;: false, \&quot;remote_src\&quot;: null, \&quot;path\&quot;: \&quot;/tmp/testfile2link\&quot;, \&quot;owner\&quot;: null, \&quot;follow\&quot;: false, \&quot;group\&quot;: null, \&quot;state\&quot;: \&quot;link\&quot;, \&quot;content\&quot;: null, \&quot;serole\&quot;: null, \&quot;diff_peek\&quot;: null, \&quot;setype\&quot;: null, \&quot;dest\&quot;: \&quot;/tmp/testfile2link\&quot;, \&quot;selevel\&quot;: null, \&quot;original_basename\&quot;: null, \&quot;regexp\&quot;: null, \&quot;validate\&quot;: null, \&quot;src\&quot;: \&quot;/tmp/testfile2\&quot;, \&quot;seuser\&quot;: null, \&quot;recurse\&quot;: false, \&quot;delimiter\&quot;: null, \&quot;mode\&quot;: null, \&quot;backup\&quot;: null}, \&quot;size\&quot;: 14}\n&quot;} PLAY RECAP ********************************************************************* localhost : ok=1 changed=0 unreachable=0 failed=1 "><pre class="notranslate"><code class="notranslate">PLAY [the last task will throw an error] *********************************** TASK [create files - that will work] ************************************************************* ok: [localhost] =&gt; (item=testfile1) ok: [localhost] =&gt; (item=testfile2) TASK [create links - that will crash] ************************************************************* fatal: [localhost]: FAILED! =&gt; {"failed": true, "msg": "ERROR! privilege output closed while waiting for password prompt:\nBECOME-SUCCESS-smnurvzoeqwqcapbnmmyrhlaautxdumn\n{\"src\": \"/tmp/testfile2\", \"group\": \"root\", \"uid\": 0, \"dest\": \"/tmp/testfile2link\", \"changed\": false, \"owner\": \"root\", \"state\": \"link\", \"gid\": 0, \"mode\": \"0777\", \"invocation\": {\"directory_mode\": null, \"force\": false, \"remote_src\": null, \"path\": \"/tmp/testfile2link\", \"owner\": null, \"follow\": false, \"group\": null, \"state\": \"link\", \"content\": null, \"serole\": null, \"diff_peek\": null, \"setype\": null, \"dest\": \"/tmp/testfile2link\", \"selevel\": null, \"original_basename\": null, \"regexp\": null, \"validate\": null, \"src\": \"/tmp/testfile2\", \"seuser\": null, \"recurse\": false, \"delimiter\": null, \"mode\": null, \"backup\": null}, \"size\": 14}\n"} PLAY RECAP ********************************************************************* localhost : ok=1 changed=0 unreachable=0 failed=1 </code></pre></div> <p dir="auto">I think the local connector misbehaves with more then just the <em>file</em> module, when using <code class="notranslate">with_items</code>. I have another issue open (<a href="https://github.com/ansible/ansible-modules-core/issues/2552" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible-modules-core/issues/2552/hovercard">pip module does not work with_items in Ansible 2.0 #2552</a>) where i suspected the <em>pip</em> module having problems <code class="notranslate">with_items</code>. However, the general error remains the same in both issues:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR! privilege output closed while waiting for password prompt"><pre class="notranslate"><code class="notranslate">ERROR! privilege output closed while waiting for password prompt </code></pre></div> <p dir="auto">During the investigation of the other issue, I found out that the error for it was introduced with commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/ansible/ansible/commit/53e86f3130145ce40606cec32aef2858756a20ab/hovercard" href="https://github.com/ansible/ansible/commit/53e86f3130145ce40606cec32aef2858756a20ab"><tt>53e86f3</tt></a>, which was merged with PR <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="118424201" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible/issues/13261" data-hovercard-type="pull_request" data-hovercard-url="/ansible/ansible/pull/13261/hovercard" href="https://github.com/ansible/ansible/pull/13261">#13261</a>. I haven't checked if it is the same for this issue, but it could be a first trace.</p>
1
<p dir="auto">I was designing my app using the <code class="notranslate">Layout</code> features provided by <a href="https://material-ui-1dab0.firebaseapp.com/layout/grid" rel="nofollow">material-ui@next</a>, I had some trouble du to the fact that <code class="notranslate">gutter</code> properties makes grow my container by <a href="https://github.com/callemall/material-ui/blob/v1-beta/src/Grid/Grid.js#L74">gutter/2</a> with the extra margin applied. now after reading the code, I came to conclusion that it was intentional.</p> <p dir="auto">But i found it counterintuitive, I would rather have the <code class="notranslate">gutter/2</code> applied to the <code class="notranslate">padding</code> properties than to the <code class="notranslate">margin</code> properties of the <code class="notranslate">container</code></p> <p dir="auto">What to do you think?</p> <h3 dir="auto">Versions</h3> <ul dir="auto"> <li>Material-UI: next</li> </ul>
<p dir="auto">The <code class="notranslate">&lt;Grid container&gt;</code> extends beyond its parent, with half of spacing size.<br> I have marked the extra width in red, also setting spacing to zero fixes the problem.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/3260363/28355346-338983fc-6c81-11e7-9f67-fb33c7758283.png"><img src="https://user-images.githubusercontent.com/3260363/28355346-338983fc-6c81-11e7-9f67-fb33c7758283.png" alt="mobile-padding" style="max-width: 100%;"></a></p> <p dir="auto">Here is a working example: <a href="https://codesandbox.io/s/Y8nzGm5W" rel="nofollow">https://codesandbox.io/s/Y8nzGm5W</a>.<br> Similar code with a zero spacing works as expected: <a href="https://codesandbox.io/s/NxvYxvQpL" rel="nofollow">https://codesandbox.io/s/NxvYxvQpL</a>.</p>
1
<p dir="auto">I just updated npm<br> in the message I see<br> run <code class="notranslate">npm fund</code> for details</p> <p dir="auto">I ran npm fund and got<br> npm WARN config global <code class="notranslate">--global</code>, <code class="notranslate">--local</code> are deprecated. Use <code class="notranslate">--location=global</code> instead.</p>
<h3 dir="auto">Is there an existing issue for this?</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the existing issues</li> </ul> <h3 dir="auto">Current Behavior</h3> <p dir="auto">CI failure can be seen here (scroll down) when running npm install:<br> <a href="https://ci.appveyor.com/project/IsraelHikingHost/site/builds/40938498" rel="nofollow">https://ci.appveyor.com/project/IsraelHikingHost/site/builds/40938498</a></p> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">It shouldn't fail as this sha512 was generated just before this run on my machine.</p> <h3 dir="auto">Steps To Reproduce</h3> <ol dir="auto"> <li>The following is the relevant project: <a href="https://github.com/IsraelHikingMap/Site/tree/0d479d3018db9a5bb478c243d0a3929f91151c8e/IsraelHiking.Web">https://github.com/IsraelHikingMap/Site/tree/0d479d3018db9a5bb478c243d0a3929f91151c8e/IsraelHiking.Web</a></li> <li>On MacOS</li> <li>Delete package.lock file</li> <li>Run npm install</li> <li>Check-in lock-file</li> <li>On the CI (windows machine)</li> <li>run npm install</li> <li>---&gt; failure due to different integrity sha signature.</li> </ol> <p dir="auto">I've downgraded to version 6 where this doesn't happen as it seems that the git repo don't have the integrity value in the lock file...</p> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>OS: MacOS 11.5.2 and Windows image of appveyor</li> <li>Node: 14.17</li> <li>npm: 7.24</li> </ul>
0
<p dir="auto">FAILED! =&gt; {"changed": false, "error_record": {"CategoryInfo": {"Activity": "", "Category": 14, "Reason": "RuntimeException", "TargetName": "Timed out waiting for scheduled task to start", "TargetType": "String"}, "ErrorDetails": null, "Exception": {"Data": {}, "ErrorRecord": {"CategoryInfo": "NotSpecified: (:) [], ParentContainsErrorRecordException", "ErrorDetails": null, "Exception": "System.Management.Automation.ParentContainsErrorRecordException: Timed out waiting for scheduled task to start", "FullyQualifiedErrorId": "RuntimeException", "InvocationInfo": null, "PipelineIterationInfo": "", "ScriptStackTrace": null, "TargetObject": null}, "HResult": -2146233087, "HelpLink": null, "InnerException": null, "Message": "Timed out waiting for scheduled task to start", "Source": null, "StackTrace": null, "TargetSite": null, "WasThrownFromThrowStatement": true}, "FullyQualifiedErrorId": "Timed out waiting for scheduled task to start", "InvocationInfo": {"BoundParameters": {}, "CommandOrigin": 1, "DisplayScriptPosition": null, "ExpectingInput": false, "HistoryId": -1, "InvocationName": "", "Line": " Throw "Timed out waiting for scheduled task to start"\n", "MyCommand": null, "OffsetInLine": 9, "PSCommandPath": "C:\Users\Administrator\AppData\Local\Temp\ansible-tmp-1498743415.94-145663458112566\win_updates.ps1", "PSScriptRoot": "C:\Users\Administrator\AppData\Local\Temp\ansible-tmp-1498743415.94-145663458112566", "PipelineLength": 0, "PipelinePosition": 0, "PositionMessage": "At C:\Users\Administrator\AppData\Local\Temp\ansible-tmp-1498743415.94-145663458112566\win_updates.ps1:560 char:9\r\n+ Throw "Timed out waiting for scheduled task to start"\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "ScriptLineNumber": 560, "ScriptName": "C:\Users\Administrator\AppData\Local\Temp\ansible-tmp-1498743415.94-145663458112566\win_updates.ps1", "UnboundArguments": []}, "PSMessageDetails": null, "PipelineIterationInfo": [], "ScriptStackTrace": "at RunAsScheduledJob, C:\Users\Administrator\AppData\Local\Temp\ansible-tmp-1498743415.94-145663458112566\win_updates.ps1: line 560\r\nat , C:\Users\Administrator\AppData\Local\Temp\ansible-tmp-1498743415.94-145663458112566\win_updates.ps1: line 646\r\nat , : line 4", "TargetObject": "Timed out waiting for scheduled task to start"}, "failed": true, "msg": "Timed out waiting for scheduled task to start"}</p> <h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> <li>Feature Idea</li> <li>Documentation Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"> </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <h5 dir="auto">OS / ENVIRONMENT</h5> <h5 dir="auto">SUMMARY</h5> <h5 dir="auto">STEPS TO REPRODUCE</h5> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <h5 dir="auto">ACTUAL RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"> </code></pre></div>
<p dir="auto"><em>From @autogun on September 19, 2016 13:44</em></p> <h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">win_updates</p> <h5 dir="auto">ANSIBLE VERSION</h5> <p dir="auto">ansible 2.1.1.0<br> config file = /etc/ansible/ansible.cfg<br> configured module search path = Default w/o overrides</p> <h5 dir="auto">CONFIGURATION</h5> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">Linux 3.10.0-327.28.3.el7.x86_64 <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="3525390" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible/issues/1" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible/issues/1/hovercard" href="https://github.com/ansible/ansible/issues/1">#1</a> SMP Thu Aug 18 19:05:49 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux<br> CentOS Linux release 7.2.1511 (Core)</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">Testing around win_updates module, have two Windows servers in hosts file.<br> One is 2008R2 (Physical), the other one is 2012R2 (VM).<br> Both servers ping'ing successfully.</p> <p dir="auto">While trying to play the following playbook, I recieve a timeout</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- name: Windows Updates hosts: windows gather_facts: yes tasks: - name: Search Windows Updates win_updates: category_names=SecurityUpdates state=searched log_path=c:/ansible_wu.txt"><pre class="notranslate">- <span class="pl-ent">name</span>: <span class="pl-s">Windows Updates</span> <span class="pl-ent">hosts</span>: <span class="pl-s">windows</span> <span class="pl-ent">gather_facts</span>: <span class="pl-s">yes</span> <span class="pl-ent">tasks</span>: - <span class="pl-ent">name</span>: <span class="pl-s">Search Windows Updates</span> <span class="pl-ent">win_updates</span>: <span class="pl-s">category_names=SecurityUpdates state=searched log_path=c:/ansible_wu.txt</span></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY [Windows Updates] ********************************************************* TASK [setup] ******************************************************************* ok: [2012R2] ok: [2008R2] TASK [Search Windows Updates] ************************************************** An exception occurred during task execution. To see the full traceback, use -vvv. The error was: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fatal: [2012R2]: FAILED! =&gt; {&quot;changed&quot;: false, &quot;error_record&quot;: {&quot;CategoryInfo&quot;: {&quot;Activity&quot;: &quot;&quot;, &quot;Category&quot;: 14, &quot;Reason&quot;: &quot;RuntimeException&quot;, &quot;TargetName&quot;: &quot;Timed out waiting for scheduled task to start&quot;, &quot;TargetType&quot;: &quot;String&quot;}, &quot;ErrorDetails&quot;: null, &quot;Exception&quot;: {&quot;Data&quot;: {}, &quot;ErrorRecord&quot;: {&quot;CategoryInfo&quot;: &quot;NotSpecified: (:) [], ParentContainsErrorRecordException&quot;, &quot;ErrorDetails&quot;: null, &quot;Exception&quot;: &quot;System.Management.Automation.ParentContainsErrorRecordException: Timed out waiting for scheduled task to start&quot;, &quot;FullyQualifiedErrorId&quot;: &quot;RuntimeException&quot;, &quot;InvocationInfo&quot;: null, &quot;PipelineIterationInfo&quot;: &quot;&quot;, &quot;ScriptStackTrace&quot;: null, &quot;TargetObject&quot;: null}, &quot;HResult&quot;: -2146233087, &quot;HelpLink&quot;: null, &quot;InnerException&quot;: null, &quot;Message&quot;: &quot;Timed out waiting for scheduled task to start&quot;, &quot;Source&quot;: null, &quot;StackTrace&quot;: null, &quot;TargetSite&quot;: null, &quot;WasThrownFromThrowStatement&quot;: true}, &quot;FullyQualifiedErrorId&quot;: &quot;Timed out waiting for scheduled task to start&quot;, &quot;InvocationInfo&quot;: {&quot;BoundParameters&quot;: {}, &quot;CommandOrigin&quot;: 1, &quot;DisplayScriptPosition&quot;: null, &quot;ExpectingInput&quot;: false, &quot;HistoryId&quot;: -1, &quot;InvocationName&quot;: &quot;&quot;, &quot;Line&quot;: &quot; Throw \&quot;Timed out waiting for scheduled task to start\&quot;\n&quot;, &quot;MyCommand&quot;: null, &quot;OffsetInLine&quot;: 9, &quot;PSCommandPath&quot;: &quot;C:\Users\user\AppData\Local\Temp\ansible-tmp-1474289964.85-222578704616986\win_updates.ps1&quot;, &quot;PSScriptRoot&quot;: &quot;C:\Users\user\AppData\Local\Temp\ansible-tmp-1474289964.85-222578704616986&quot;, &quot;PipelineLength&quot;: 0, &quot;PipelinePosition&quot;: 0, &quot;PositionMessage&quot;: &quot;At C:\Users\user\AppData\Local\Temp\ansible-tmp-1474289964.85-222578704616986\win_updates.ps1:560 char:9\r\n+ Throw \&quot;Timed out waiting for scheduled task to start\&quot;\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&quot;, &quot;ScriptLineNumber&quot;: 560, &quot;ScriptName&quot;: &quot;C:\Users\user\AppData\Local\Temp\ansible-tmp-1474289964.85-222578704616986\win_updates.ps1&quot;, &quot;UnboundArguments&quot;: []}, &quot;PSMessageDetails&quot;: null, &quot;PipelineIterationInfo&quot;: [], &quot;ScriptStackTrace&quot;: &quot;at RunAsScheduledJob, C:\Users\user\AppData\Local\Temp\ansible-tmp-1474289964.85-222578704616986\win_updates.ps1: line 560\r\nat &lt;ScriptBlock&gt;, C:\Users\user\AppData\Local\Temp\ansible-tmp-1474289964.85-222578704616986\win_updates.ps1: line 646\r\nat &lt;ScriptBlock&gt;, &lt;No file&gt;: line 4&quot;, &quot;TargetObject&quot;: &quot;Timed out waiting for scheduled task to start&quot;}, &quot;failed&quot;: true, &quot;msg&quot;: &quot;Timed out waiting for scheduled task to start&quot;} ok: [2008R2] NO MORE HOSTS LEFT ************************************************************* to retry, use: --limit @playbooks/WindowsUpdates.retry PLAY RECAP ********************************************************************* WIN2012R2 : ok=1 changed=0 unreachable=0 failed=1 WIN2008R2 : ok=2 changed=0 unreachable=0 failed=0"><pre class="notranslate"><code class="notranslate">PLAY [Windows Updates] ********************************************************* TASK [setup] ******************************************************************* ok: [2012R2] ok: [2008R2] TASK [Search Windows Updates] ************************************************** An exception occurred during task execution. To see the full traceback, use -vvv. The error was: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fatal: [2012R2]: FAILED! =&gt; {"changed": false, "error_record": {"CategoryInfo": {"Activity": "", "Category": 14, "Reason": "RuntimeException", "TargetName": "Timed out waiting for scheduled task to start", "TargetType": "String"}, "ErrorDetails": null, "Exception": {"Data": {}, "ErrorRecord": {"CategoryInfo": "NotSpecified: (:) [], ParentContainsErrorRecordException", "ErrorDetails": null, "Exception": "System.Management.Automation.ParentContainsErrorRecordException: Timed out waiting for scheduled task to start", "FullyQualifiedErrorId": "RuntimeException", "InvocationInfo": null, "PipelineIterationInfo": "", "ScriptStackTrace": null, "TargetObject": null}, "HResult": -2146233087, "HelpLink": null, "InnerException": null, "Message": "Timed out waiting for scheduled task to start", "Source": null, "StackTrace": null, "TargetSite": null, "WasThrownFromThrowStatement": true}, "FullyQualifiedErrorId": "Timed out waiting for scheduled task to start", "InvocationInfo": {"BoundParameters": {}, "CommandOrigin": 1, "DisplayScriptPosition": null, "ExpectingInput": false, "HistoryId": -1, "InvocationName": "", "Line": " Throw \"Timed out waiting for scheduled task to start\"\n", "MyCommand": null, "OffsetInLine": 9, "PSCommandPath": "C:\Users\user\AppData\Local\Temp\ansible-tmp-1474289964.85-222578704616986\win_updates.ps1", "PSScriptRoot": "C:\Users\user\AppData\Local\Temp\ansible-tmp-1474289964.85-222578704616986", "PipelineLength": 0, "PipelinePosition": 0, "PositionMessage": "At C:\Users\user\AppData\Local\Temp\ansible-tmp-1474289964.85-222578704616986\win_updates.ps1:560 char:9\r\n+ Throw \"Timed out waiting for scheduled task to start\"\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "ScriptLineNumber": 560, "ScriptName": "C:\Users\user\AppData\Local\Temp\ansible-tmp-1474289964.85-222578704616986\win_updates.ps1", "UnboundArguments": []}, "PSMessageDetails": null, "PipelineIterationInfo": [], "ScriptStackTrace": "at RunAsScheduledJob, C:\Users\user\AppData\Local\Temp\ansible-tmp-1474289964.85-222578704616986\win_updates.ps1: line 560\r\nat &lt;ScriptBlock&gt;, C:\Users\user\AppData\Local\Temp\ansible-tmp-1474289964.85-222578704616986\win_updates.ps1: line 646\r\nat &lt;ScriptBlock&gt;, &lt;No file&gt;: line 4", "TargetObject": "Timed out waiting for scheduled task to start"}, "failed": true, "msg": "Timed out waiting for scheduled task to start"} ok: [2008R2] NO MORE HOSTS LEFT ************************************************************* to retry, use: --limit @playbooks/WindowsUpdates.retry PLAY RECAP ********************************************************************* WIN2012R2 : ok=1 changed=0 unreachable=0 failed=1 WIN2008R2 : ok=2 changed=0 unreachable=0 failed=0 </code></pre></div> <p dir="auto"><em>Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="177788425" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible-modules-extras/issues/2960" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible-modules-extras/issues/2960/hovercard" href="https://github.com/ansible/ansible-modules-extras/issues/2960">ansible/ansible-modules-extras#2960</a></em></p>
1
<p dir="auto">Do not be imported to the mainstream?</p> <p dir="auto"><code class="notranslate"> input::-ms-clear {display: none;} </code></p> <blockquote> <p dir="auto">・Text in right aligned input gets cuts off when using -ms-clear<br> <a href="http://connect.microsoft.com/IE/feedback/details/776537" rel="nofollow">http://connect.microsoft.com/IE/feedback/details/776537</a><br> <a href="http://jsfiddle.net/qukFh/1/" rel="nofollow">http://jsfiddle.net/qukFh/1/</a></p> <p dir="auto">・Issue with right alignment in text inputs in IE10<br> <a href="http://connect.microsoft.com/IE/feedback/details/788605" rel="nofollow">http://connect.microsoft.com/IE/feedback/details/788605</a></p> </blockquote>
<p dir="auto">When you add <code class="notranslate">text-align: right;</code> to a textbox (<code class="notranslate">&lt;input type="text" /&gt;</code>) the last part of the text inside the textbox isn't displayed completely in Internet Explorer 10 as soon as the textbox loses focus.</p> <p dir="auto">As long as the textbox has focus, or when a textbox has an initial value, the text is displayed correctly. As soon you click inside the textbox and then outside of it (even without editing the text), the same problem occurs.</p> <p dir="auto">I have created this jsFiddle with the 3.0.0 styling (version of 2013-05-08, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/twbs/bootstrap/commit/f03d3371513640724a88febc531f790947f68cf3/hovercard" href="https://github.com/twbs/bootstrap/commit/f03d3371513640724a88febc531f790947f68cf3"><tt>f03d337</tt></a>) to illustrate the problem: <a href="http://jsfiddle.net/a26cg/1/" rel="nofollow">http://jsfiddle.net/a26cg/1/</a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/f50d62bd673d0a016cba4088ceb74278a56e0051f0b5767c74c17607e0d5e3d3/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3538383834342f3338353338342f64373037306664342d613638302d313165322d386465352d3365323866613762633434372e706e67"><img src="https://camo.githubusercontent.com/f50d62bd673d0a016cba4088ceb74278a56e0051f0b5767c74c17607e0d5e3d3/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3538383834342f3338353338342f64373037306664342d613638302d313165322d386465352d3365323866613762633434372e706e67" alt="image" data-canonical-src="https://f.cloud.github.com/assets/588844/385384/d7070fd4-a680-11e2-8de5-3e28fa7bc447.png" style="max-width: 100%;"></a></p> <p dir="auto">This problem is caused by the clear-icon that Internet Explorer 10 adds to a texbox when it has focus. Simply adding more <code class="notranslate">padding-right</code> to the textbox doesn't help. A hacky (but undesirable) workaround is to prevent the clear-icon from being used:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="::-ms-clear { display: none; }"><pre class="notranslate"><code class="notranslate">::-ms-clear { display: none; } </code></pre></div> <p dir="auto">This issue is the same as <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="13239964" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/7580" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/7580/hovercard" href="https://github.com/twbs/bootstrap/issues/7580">#7580</a>. A new issue was opened because the problem remains in 3.0.0.</p>
1
<p dir="auto">I'm currently attempting to compile a library called nalgebra (<a href="https://github.com/sebcrozet/nalgebra">https://github.com/sebcrozet/nalgebra</a>), but I am met with the following ICE each time I try to compile the project:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Compiling nalgebra v0.2.2 (https://github.com/sebcrozet/nalgebra#39fd7c1a) /home/abass/.cargo/git/checkouts/nalgebra-38f5c573aa675d18/master/src/lib.rs:612:7: 612:19 error: internal compiler error: coherence failed to report ambiguity: cannot locate the impl of the trait `traits::structure::Mat&lt;N, LV, LV&gt;` for the type `&lt;R as traits::geometry::RotationMatrix&lt;N, LV, AV&gt;&gt;::Output` /home/abass/.cargo/git/checkouts/nalgebra-38f5c573aa675d18/master/src/lib.rs:612 r.to_rot_mat() ^~~~~~~~~~~~ note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html note: run with `RUST_BACKTRACE=1` for a backtrace thread 'rustc' panicked at 'Box&lt;Any&gt;', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libsyntax/diagnostic.rs:129 stack backtrace: 1: 0x7fe43b75ae80 - sys::backtrace::write::h84a1347ec8a3d425Aru 2: 0x7fe43b77e4a0 - failure::on_fail::h1cb2299eb5e255ae9GB 3: 0x7fe43b6e92d0 - rt::unwind::begin_unwind_inner::ha34a1c7f0630f466IlB 4: 0x7fe438aeabf0 - rt::unwind::begin_unwind::h12804436560652988965 5: 0x7fe438aeab80 - diagnostic::SpanHandler::span_bug::h7782d96edbc369daAME 6: 0x7fe439831890 - middle::traits::error_reporting::report_fulfillment_errors::h9d98ce1dd7e3fcdeGnN 7: 0x7fe43ae2ea20 - check::vtable::select_all_fcx_obligations_or_error::hc5e5e8e652f479efRvb 8: 0x7fe43aede680 - check::check_bare_fn::h306f8ecc226858bctAm 9: 0x7fe43aed5e70 - check::check_item::h7d555ba822408851KTm 10: 0x7fe43afa4d10 - check_crate::closure.34569 11: 0x7fe43af9f850 - check_crate::h2469153404b647bauEA 12: 0x7fe43bceb710 - driver::phase_3_run_analysis_passes::h198ed79d6101094dtGa 13: 0x7fe43bcd22b0 - driver::compile_input::h08caf95be513bd6bBba 14: 0x7fe43bd9cdd0 - run_compiler::hf1a36c26381910e09ac 15: 0x7fe43bd9b460 - thunk::F.Invoke&lt;A, R&gt;::invoke::h6996223324138754953 16: 0x7fe43bd9a390 - rt::unwind::try::try_fn::h16059966258548481805 17: 0x7fe43b7e9910 - rust_try_inner 18: 0x7fe43b7e9900 - rust_try 19: 0x7fe43bd9a640 - thunk::F.Invoke&lt;A, R&gt;::invoke::h12998514134271589737 20: 0x7fe43b76aca0 - sys::thread::thread_start::h756cedb2df1b4200Pnx 21: 0x7fe435970460 - start_thread 22: 0x7fe43b379769 - clone 23: 0x0 - &lt;unknown&gt; Could not compile `nalgebra`. To learn more, run the command again with --verbose."><pre class="notranslate"><code class="notranslate">Compiling nalgebra v0.2.2 (https://github.com/sebcrozet/nalgebra#39fd7c1a) /home/abass/.cargo/git/checkouts/nalgebra-38f5c573aa675d18/master/src/lib.rs:612:7: 612:19 error: internal compiler error: coherence failed to report ambiguity: cannot locate the impl of the trait `traits::structure::Mat&lt;N, LV, LV&gt;` for the type `&lt;R as traits::geometry::RotationMatrix&lt;N, LV, AV&gt;&gt;::Output` /home/abass/.cargo/git/checkouts/nalgebra-38f5c573aa675d18/master/src/lib.rs:612 r.to_rot_mat() ^~~~~~~~~~~~ note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html note: run with `RUST_BACKTRACE=1` for a backtrace thread 'rustc' panicked at 'Box&lt;Any&gt;', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libsyntax/diagnostic.rs:129 stack backtrace: 1: 0x7fe43b75ae80 - sys::backtrace::write::h84a1347ec8a3d425Aru 2: 0x7fe43b77e4a0 - failure::on_fail::h1cb2299eb5e255ae9GB 3: 0x7fe43b6e92d0 - rt::unwind::begin_unwind_inner::ha34a1c7f0630f466IlB 4: 0x7fe438aeabf0 - rt::unwind::begin_unwind::h12804436560652988965 5: 0x7fe438aeab80 - diagnostic::SpanHandler::span_bug::h7782d96edbc369daAME 6: 0x7fe439831890 - middle::traits::error_reporting::report_fulfillment_errors::h9d98ce1dd7e3fcdeGnN 7: 0x7fe43ae2ea20 - check::vtable::select_all_fcx_obligations_or_error::hc5e5e8e652f479efRvb 8: 0x7fe43aede680 - check::check_bare_fn::h306f8ecc226858bctAm 9: 0x7fe43aed5e70 - check::check_item::h7d555ba822408851KTm 10: 0x7fe43afa4d10 - check_crate::closure.34569 11: 0x7fe43af9f850 - check_crate::h2469153404b647bauEA 12: 0x7fe43bceb710 - driver::phase_3_run_analysis_passes::h198ed79d6101094dtGa 13: 0x7fe43bcd22b0 - driver::compile_input::h08caf95be513bd6bBba 14: 0x7fe43bd9cdd0 - run_compiler::hf1a36c26381910e09ac 15: 0x7fe43bd9b460 - thunk::F.Invoke&lt;A, R&gt;::invoke::h6996223324138754953 16: 0x7fe43bd9a390 - rt::unwind::try::try_fn::h16059966258548481805 17: 0x7fe43b7e9910 - rust_try_inner 18: 0x7fe43b7e9900 - rust_try 19: 0x7fe43bd9a640 - thunk::F.Invoke&lt;A, R&gt;::invoke::h12998514134271589737 20: 0x7fe43b76aca0 - sys::thread::thread_start::h756cedb2df1b4200Pnx 21: 0x7fe435970460 - start_thread 22: 0x7fe43b379769 - clone 23: 0x0 - &lt;unknown&gt; Could not compile `nalgebra`. To learn more, run the command again with --verbose. </code></pre></div> <p dir="auto">Here is the code for the trait definition of RotationMatrix, if it helps:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" pub trait RotationMatrix&lt;N, LV, AV&gt; : Rotation&lt;AV&gt; { type Output: Mat&lt;N, LV, LV&gt; + Rotation&lt;AV&gt;; /// Gets the rotation matrix represented by `self`. fn to_rot_mat(&amp;self) -&gt; Self::Output; 149 }"><pre class="notranslate"><code class="notranslate"> pub trait RotationMatrix&lt;N, LV, AV&gt; : Rotation&lt;AV&gt; { type Output: Mat&lt;N, LV, LV&gt; + Rotation&lt;AV&gt;; /// Gets the rotation matrix represented by `self`. fn to_rot_mat(&amp;self) -&gt; Self::Output; 149 } </code></pre></div> <p dir="auto">And lastly, here's what rustc gave me when I ran it with --version and --verbose:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rustc 1.0.0-nightly (eaf4c5c78 2015-02-02 15:04:54 +0000) binary: rustc commit-hash: eaf4c5c784637f3df8bdebc6ec21dbd4bc69420a commit-date: 2015-02-02 15:04:54 +0000 host: x86_64-unknown-linux-gnu release: 1.0.0-nightly"><pre class="notranslate"><code class="notranslate">rustc 1.0.0-nightly (eaf4c5c78 2015-02-02 15:04:54 +0000) binary: rustc commit-hash: eaf4c5c784637f3df8bdebc6ec21dbd4bc69420a commit-date: 2015-02-02 15:04:54 +0000 host: x86_64-unknown-linux-gnu release: 1.0.0-nightly </code></pre></div> <p dir="auto">I'm pretty new to Rust, so if the issue is with the code and I do not realize it, then I apologize in advance.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="% uname -a Darwin pair 14.1.0 Darwin Kernel Version 14.1.0: Mon Dec 22 23:10:38 PST 2014; root:xnu-2782.10.72~2/RELEASE_X86_64 x86_64 % rustc --version --verbose rustc 1.0.0-dev (a45e11773 2015-01-28 11:01:36 +0000) binary: rustc commit-hash: a45e117733b866302fa99390553d1c548508dcca commit-date: 2015-01-28 11:01:36 +0000 host: x86_64-apple-darwin release: 1.0.0-dev % RUST_BACKTRACE=1 rustc --cfg=test rs_ffi_utils.rs rs_ffi_utils.rs:236:1: 248:2 error: internal compiler error: coherence failed to report ambiguity: cannot locate the impl of the trait `MemWrite` for the type `Seq&lt;&amp;'o T&gt;` rs_ffi_utils.rs:236 impl&lt;'o, T&gt; MemWrite for Seq&lt;&amp;'o T&gt; where T: Blob, &amp;'o T: MemWrite { rs_ffi_utils.rs:237 fn write_to_mem&lt;'a&gt;(&amp;self, dst: &amp;'a mut [u8]) -&gt; Result&lt;&amp;'a [u8], MemAreaError&gt; { rs_ffi_utils.rs:238 Ok(dst) rs_ffi_utils.rs:239 } rs_ffi_utils.rs:240 rs_ffi_utils.rs:241 fn size_required(&amp;self) -&gt; usize { ... note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html note: run with `RUST_BACKTRACE=1` for a backtrace thread 'rustc' panicked at 'Box&lt;Any&gt;', /Users/swizard/distr/rust/src/libsyntax/diagnostic.rs:130 stack backtrace: 1: 0x10dda37a7 - sys::backtrace::write::ha7c2a314980a2c9fvbu 2: 0x10ddc9c5c - failure::on_fail::h6e454f5b61899a9aqbB 3: 0x10dd2b068 - rt::unwind::begin_unwind_inner::h197e2c88eee2bed0mTA 4: 0x10d4b2897 - rt::unwind::begin_unwind::h2026034157403174692 5: 0x10d4b282c - diagnostic::SpanHandler::span_bug::hd1799d165b9b1455PGE 6: 0x10aff6d1a - middle::traits::error_reporting::report_fulfillment_errors::hea46febf461f61d7YHN 7: 0x10a95ed38 - check::vtable::select_all_fcx_obligations_or_error::h76d8a7711ec3b289Upb 8: 0x10a9da0ae - check::wf::CheckTypeWellFormedVisitor&lt;'ccx, 'tcx&gt;::check_item_well_formed::h1acd04dfde9bfc73a7i 9: 0x10aac784e - check_crate::closure.32081 10: 0x10aac2e0f - check_crate::haecc3fe6465ec7b6ZNy 11: 0x10a48c8eb - driver::phase_3_run_analysis_passes::h79664d81b6b5b4e4NFa 12: 0x10a472e5c - driver::compile_input::hec1fc484fb82a3b3Bba 13: 0x10a53b50e - run_compiler::hc5f9e0285db79a55n9b 14: 0x10a53862f - thunk::F.Invoke&lt;A, R&gt;::invoke::h4736678281155978274 15: 0x10a5372c0 - rt::unwind::try::try_fn::h3346791736825056138 16: 0x10de42a09 - rust_try_inner 17: 0x10de429f6 - rust_try 18: 0x10a537984 - thunk::F.Invoke&lt;A, R&gt;::invoke::h14937575134341006880 19: 0x10ddb4313 - sys::thread::thread_start::hd065b218eff37dc2J3w 20: 0x7fff87bec268 - _pthread_body 21: 0x7fff87bec1e5 - _pthread_body"><pre class="notranslate"><code class="notranslate">% uname -a Darwin pair 14.1.0 Darwin Kernel Version 14.1.0: Mon Dec 22 23:10:38 PST 2014; root:xnu-2782.10.72~2/RELEASE_X86_64 x86_64 % rustc --version --verbose rustc 1.0.0-dev (a45e11773 2015-01-28 11:01:36 +0000) binary: rustc commit-hash: a45e117733b866302fa99390553d1c548508dcca commit-date: 2015-01-28 11:01:36 +0000 host: x86_64-apple-darwin release: 1.0.0-dev % RUST_BACKTRACE=1 rustc --cfg=test rs_ffi_utils.rs rs_ffi_utils.rs:236:1: 248:2 error: internal compiler error: coherence failed to report ambiguity: cannot locate the impl of the trait `MemWrite` for the type `Seq&lt;&amp;'o T&gt;` rs_ffi_utils.rs:236 impl&lt;'o, T&gt; MemWrite for Seq&lt;&amp;'o T&gt; where T: Blob, &amp;'o T: MemWrite { rs_ffi_utils.rs:237 fn write_to_mem&lt;'a&gt;(&amp;self, dst: &amp;'a mut [u8]) -&gt; Result&lt;&amp;'a [u8], MemAreaError&gt; { rs_ffi_utils.rs:238 Ok(dst) rs_ffi_utils.rs:239 } rs_ffi_utils.rs:240 rs_ffi_utils.rs:241 fn size_required(&amp;self) -&gt; usize { ... note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html note: run with `RUST_BACKTRACE=1` for a backtrace thread 'rustc' panicked at 'Box&lt;Any&gt;', /Users/swizard/distr/rust/src/libsyntax/diagnostic.rs:130 stack backtrace: 1: 0x10dda37a7 - sys::backtrace::write::ha7c2a314980a2c9fvbu 2: 0x10ddc9c5c - failure::on_fail::h6e454f5b61899a9aqbB 3: 0x10dd2b068 - rt::unwind::begin_unwind_inner::h197e2c88eee2bed0mTA 4: 0x10d4b2897 - rt::unwind::begin_unwind::h2026034157403174692 5: 0x10d4b282c - diagnostic::SpanHandler::span_bug::hd1799d165b9b1455PGE 6: 0x10aff6d1a - middle::traits::error_reporting::report_fulfillment_errors::hea46febf461f61d7YHN 7: 0x10a95ed38 - check::vtable::select_all_fcx_obligations_or_error::h76d8a7711ec3b289Upb 8: 0x10a9da0ae - check::wf::CheckTypeWellFormedVisitor&lt;'ccx, 'tcx&gt;::check_item_well_formed::h1acd04dfde9bfc73a7i 9: 0x10aac784e - check_crate::closure.32081 10: 0x10aac2e0f - check_crate::haecc3fe6465ec7b6ZNy 11: 0x10a48c8eb - driver::phase_3_run_analysis_passes::h79664d81b6b5b4e4NFa 12: 0x10a472e5c - driver::compile_input::hec1fc484fb82a3b3Bba 13: 0x10a53b50e - run_compiler::hc5f9e0285db79a55n9b 14: 0x10a53862f - thunk::F.Invoke&lt;A, R&gt;::invoke::h4736678281155978274 15: 0x10a5372c0 - rt::unwind::try::try_fn::h3346791736825056138 16: 0x10de42a09 - rust_try_inner 17: 0x10de429f6 - rust_try 18: 0x10a537984 - thunk::F.Invoke&lt;A, R&gt;::invoke::h14937575134341006880 19: 0x10ddb4313 - sys::thread::thread_start::hd065b218eff37dc2J3w 20: 0x7fff87bec268 - _pthread_body 21: 0x7fff87bec1e5 - _pthread_body </code></pre></div>
1
<p dir="auto">I just noticed after I update to version alpha <code class="notranslate">27</code> that if I have the following <code class="notranslate">@RouteConfig</code>:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@RouteConfig([{ component: Test, path: '/', as: 'test' }])"><pre class="notranslate">@<span class="pl-v">RouteConfig</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-kos">{</span> <span class="pl-c1">component</span>: <span class="pl-v">Test</span><span class="pl-kos">,</span> <span class="pl-c1">path</span>: <span class="pl-s">'/'</span><span class="pl-kos">,</span> <span class="pl-c1">as</span>: <span class="pl-s">'test'</span> <span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">)</span></pre></div> <p dir="auto">I will see two of the same component, but if I change the path to anything else I do not get the same behaviour.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class MyClass { constructor(@Attributes() atts: Map&lt;string, string&gt;) }"><pre class="notranslate"><code class="notranslate">class MyClass { constructor(@Attributes() atts: Map&lt;string, string&gt;) } </code></pre></div>
0
<p dir="auto">Playpen link: <a href="http://is.gd/LITiE8" rel="nofollow">http://is.gd/LITiE8</a><br> Example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="use std::collections::HashSet; fn main() { let mut v = Vec::new(); foo(&amp;mut v); } fn foo(h: &amp;mut HashSet&lt;u32&gt;) { }"><pre class="notranslate"><code class="notranslate">use std::collections::HashSet; fn main() { let mut v = Vec::new(); foo(&amp;mut v); } fn foo(h: &amp;mut HashSet&lt;u32&gt;) { } </code></pre></div> <p dir="auto">Output from playpen:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;anon&gt;:5:9: 5:15 error: mismatched types: expected `&amp;mut std::collections::hash::set::HashSet&lt;u32&gt;`, found `&amp;mut collections::vec::Vec&lt;_&gt;` (expected struct `std::collections::hash::set::HashSet`, found struct `collections::vec::Vec`) [E0308] &lt;anon&gt;:5 foo(&amp;mut v); ^~~~~~ error: internal compiler error: unexpected panic note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports note: run with `RUST_BACKTRACE=1` for a backtrace thread 'rustc' panicked at 'index out of bounds: the len is 3 but the index is 3', /home/rustbuild/src/rust-buildbot/slave/beta-dist-rustc-linux/build/src/libcollections/vec.rs:1358 playpen: application terminated with error code 101 Program ended."><pre class="notranslate"><code class="notranslate">&lt;anon&gt;:5:9: 5:15 error: mismatched types: expected `&amp;mut std::collections::hash::set::HashSet&lt;u32&gt;`, found `&amp;mut collections::vec::Vec&lt;_&gt;` (expected struct `std::collections::hash::set::HashSet`, found struct `collections::vec::Vec`) [E0308] &lt;anon&gt;:5 foo(&amp;mut v); ^~~~~~ error: internal compiler error: unexpected panic note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports note: run with `RUST_BACKTRACE=1` for a backtrace thread 'rustc' panicked at 'index out of bounds: the len is 3 but the index is 3', /home/rustbuild/src/rust-buildbot/slave/beta-dist-rustc-linux/build/src/libcollections/vec.rs:1358 playpen: application terminated with error code 101 Program ended. </code></pre></div> <p dir="auto">Happens for me on <code class="notranslate">rustc 1.1.0-nightly (f9e53c7f2 2015-04-24) (built 2015-04-25)</code>, and playpen is using beta, so it happens on that as well.</p>
<p dir="auto"><a href="https://github.com/Ms2ger/servo/tree/ICE-reftests">https://github.com/Ms2ger/servo/tree/ICE-reftests</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="../../tests/reftest.rs:116:53: 116:64 error: mismatched types: expected `&amp;mut collections::string::String`, found `&amp;mut collections::vec::Vec&lt;_&gt;` (expected struct `collections::string::String`, found struct `collections::vec::Vec`) [E0308] ../../tests/reftest.rs:116 command.stderr.as_mut().unwrap().read_to_string(&amp;mut stderr).unwrap(); ^~~~~~~~~~~ error: internal compiler error: unexpected panic note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports note: run with `RUST_BACKTRACE=1` for a backtrace thread 'rustc' panicked at 'index out of bounds: the len is 41 but the index is 41', /home/larsberg/rust/src/libcollections/vec.rs:1324 stack backtrace: 1: 0x7fb42bc07eb2 - sys::backtrace::write::h754dbf5d2d3172ebPBA 2: 0x7fb42bc2df32 - panicking::on_panic::hdb9e837ac064f8afiHJ 3: 0x7fb42bb74649 - rt::unwind::begin_unwind_inner::h488386ed3236ccf5lnJ 4: 0x7fb42bb749f1 - rt::unwind::begin_unwind_fmt::hac94a0d8ab692f55WlJ 5: 0x7fb42bc2dab7 - rust_begin_unwind 6: 0x7fb42bc76724 - panicking::panic_fmt::hf7c6f0a83af17872HZs 7: 0x7fb42bc7fbdc - panicking::panic_bounds_check::h2968f098aca43b6fNYs 8: 0x7fb429ca94fb - middle::infer::freshen::TypeFreshener&lt;'a, 'tcx&gt;.TypeFolder&lt;'tcx&gt;::fold_ty::h1a5e0cb5684c2ad9Yrx 9: 0x7fb429caaadc - middle::ty_fold::TypeFolder::fold_substs::h5300398158458947227 10: 0x7fb429d2a501 - middle::traits::select::SelectionContext&lt;'cx, 'tcx&gt;::push_stack::had62c407aaefff1fFoT 11: 0x7fb429d11b63 - middle::traits::select::SelectionContext&lt;'cx, 'tcx&gt;::select::h1778a209ec242fabPwQ 12: 0x7fb429d0fded - middle::traits::fulfill::FulfillmentContext&lt;'tcx&gt;::select::hff3b9d362aa095f0SjO 13: 0x7fb429d0f2d7 - middle::traits::fulfill::FulfillmentContext&lt;'tcx&gt;::select_where_possible::h6e2dcbb7c4c56c766iO 14: 0x7fb42a97afec - check::vtable::select_fcx_obligations_where_possible::h210813ce3575885aUYb 15: 0x7fb42a9a800a - check::FnCtxt&lt;'a, 'tcx&gt;::resolve_type_vars_if_possible::h83e338cecf621f9eflo 16: 0x7fb42a96b537 - check::structurally_resolved_type::hd58cd7726b9b557ecit 17: 0x7fb42aa2e0b5 - check::check_expr_with_unifier::check_method_call::h60e5d1f84dfc769ex6p 18: 0x7fb42aa528e8 - check::check_expr_with_unifier::h14659721660305131284 19: 0x7fb42aa2e075 - check::check_expr_with_unifier::check_method_call::h60e5d1f84dfc769ex6p 20: 0x7fb42aa323a1 - check::check_expr_with_unifier::h3179221947634355639 21: 0x7fb42aa2db88 - check::check_expr_with_unifier::check_then_else::he1899ac58e1eb65cs9p 22: 0x7fb42aa32635 - check::check_expr_with_unifier::h3179221947634355639 23: 0x7fb42aa12d13 - check::check_block_with_expected::h0c9c1f0763267624T2r 24: 0x7fb42a9faea2 - check::check_fn::h6775964a9a773f5ejmn 25: 0x7fb42aa104f3 - check::check_bare_fn::h0968defbfcb2f081Zbn 26: 0x7fb42aa08b4f - check::check_item::hff51cb213b03de05Dun 27: 0x7fb42aac9273 - check_crate::closure.35767 28: 0x7fb42aac4d27 - check_crate::hf060d56f18b25f0cjiC 29: 0x7fb42c22052e - driver::phase_3_run_analysis_passes::h8f28299939675af3mGa 30: 0x7fb42c205375 - driver::compile_input::h45a329886a3876b7Nba 31: 0x7fb42c2c9abd - run_compiler::h72656e661c6301b4N6b 32: 0x7fb42c2c782c - thunk::F.Invoke&lt;A, R&gt;::invoke::h5918203416757842695 33: 0x7fb42c2c6480 - rt::unwind::try::try_fn::h14589295297083973913 34: 0x7fb42bc98fd8 - rust_try_inner 35: 0x7fb42bc98fc5 - rust_try 36: 0x7fb42c2c6c0b - thunk::F.Invoke&lt;A, R&gt;::invoke::h2343472488528142949 37: 0x7fb42bc1b735 - sys::thread::thread_start::h04d056c6180f4496s8E 38: 0x7fb4264a3e99 - start_thread 39: 0x7fb42b7eb2ec - &lt;unknown&gt;"><pre class="notranslate"><code class="notranslate">../../tests/reftest.rs:116:53: 116:64 error: mismatched types: expected `&amp;mut collections::string::String`, found `&amp;mut collections::vec::Vec&lt;_&gt;` (expected struct `collections::string::String`, found struct `collections::vec::Vec`) [E0308] ../../tests/reftest.rs:116 command.stderr.as_mut().unwrap().read_to_string(&amp;mut stderr).unwrap(); ^~~~~~~~~~~ error: internal compiler error: unexpected panic note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports note: run with `RUST_BACKTRACE=1` for a backtrace thread 'rustc' panicked at 'index out of bounds: the len is 41 but the index is 41', /home/larsberg/rust/src/libcollections/vec.rs:1324 stack backtrace: 1: 0x7fb42bc07eb2 - sys::backtrace::write::h754dbf5d2d3172ebPBA 2: 0x7fb42bc2df32 - panicking::on_panic::hdb9e837ac064f8afiHJ 3: 0x7fb42bb74649 - rt::unwind::begin_unwind_inner::h488386ed3236ccf5lnJ 4: 0x7fb42bb749f1 - rt::unwind::begin_unwind_fmt::hac94a0d8ab692f55WlJ 5: 0x7fb42bc2dab7 - rust_begin_unwind 6: 0x7fb42bc76724 - panicking::panic_fmt::hf7c6f0a83af17872HZs 7: 0x7fb42bc7fbdc - panicking::panic_bounds_check::h2968f098aca43b6fNYs 8: 0x7fb429ca94fb - middle::infer::freshen::TypeFreshener&lt;'a, 'tcx&gt;.TypeFolder&lt;'tcx&gt;::fold_ty::h1a5e0cb5684c2ad9Yrx 9: 0x7fb429caaadc - middle::ty_fold::TypeFolder::fold_substs::h5300398158458947227 10: 0x7fb429d2a501 - middle::traits::select::SelectionContext&lt;'cx, 'tcx&gt;::push_stack::had62c407aaefff1fFoT 11: 0x7fb429d11b63 - middle::traits::select::SelectionContext&lt;'cx, 'tcx&gt;::select::h1778a209ec242fabPwQ 12: 0x7fb429d0fded - middle::traits::fulfill::FulfillmentContext&lt;'tcx&gt;::select::hff3b9d362aa095f0SjO 13: 0x7fb429d0f2d7 - middle::traits::fulfill::FulfillmentContext&lt;'tcx&gt;::select_where_possible::h6e2dcbb7c4c56c766iO 14: 0x7fb42a97afec - check::vtable::select_fcx_obligations_where_possible::h210813ce3575885aUYb 15: 0x7fb42a9a800a - check::FnCtxt&lt;'a, 'tcx&gt;::resolve_type_vars_if_possible::h83e338cecf621f9eflo 16: 0x7fb42a96b537 - check::structurally_resolved_type::hd58cd7726b9b557ecit 17: 0x7fb42aa2e0b5 - check::check_expr_with_unifier::check_method_call::h60e5d1f84dfc769ex6p 18: 0x7fb42aa528e8 - check::check_expr_with_unifier::h14659721660305131284 19: 0x7fb42aa2e075 - check::check_expr_with_unifier::check_method_call::h60e5d1f84dfc769ex6p 20: 0x7fb42aa323a1 - check::check_expr_with_unifier::h3179221947634355639 21: 0x7fb42aa2db88 - check::check_expr_with_unifier::check_then_else::he1899ac58e1eb65cs9p 22: 0x7fb42aa32635 - check::check_expr_with_unifier::h3179221947634355639 23: 0x7fb42aa12d13 - check::check_block_with_expected::h0c9c1f0763267624T2r 24: 0x7fb42a9faea2 - check::check_fn::h6775964a9a773f5ejmn 25: 0x7fb42aa104f3 - check::check_bare_fn::h0968defbfcb2f081Zbn 26: 0x7fb42aa08b4f - check::check_item::hff51cb213b03de05Dun 27: 0x7fb42aac9273 - check_crate::closure.35767 28: 0x7fb42aac4d27 - check_crate::hf060d56f18b25f0cjiC 29: 0x7fb42c22052e - driver::phase_3_run_analysis_passes::h8f28299939675af3mGa 30: 0x7fb42c205375 - driver::compile_input::h45a329886a3876b7Nba 31: 0x7fb42c2c9abd - run_compiler::h72656e661c6301b4N6b 32: 0x7fb42c2c782c - thunk::F.Invoke&lt;A, R&gt;::invoke::h5918203416757842695 33: 0x7fb42c2c6480 - rt::unwind::try::try_fn::h14589295297083973913 34: 0x7fb42bc98fd8 - rust_try_inner 35: 0x7fb42bc98fc5 - rust_try 36: 0x7fb42c2c6c0b - thunk::F.Invoke&lt;A, R&gt;::invoke::h2343472488528142949 37: 0x7fb42bc1b735 - sys::thread::thread_start::h04d056c6180f4496s8E 38: 0x7fb4264a3e99 - start_thread 39: 0x7fb42b7eb2ec - &lt;unknown&gt; </code></pre></div>
1
<h4 dir="auto">Python Code</h4> <ul dir="auto"> <li><strong>Before pd.melt</strong></li> </ul> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd df = pd.DataFrame({'A': {0: 'a', 1: 'b', 2: 'c'}, 'B': {0: 1, 1: 3, 2: 5}, 'C': {0: 2, 1: 4, 2: 6}}) df['A'] = df.A.astype('category') df"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>({<span class="pl-s">'A'</span>: {<span class="pl-c1">0</span>: <span class="pl-s">'a'</span>, <span class="pl-c1">1</span>: <span class="pl-s">'b'</span>, <span class="pl-c1">2</span>: <span class="pl-s">'c'</span>}, <span class="pl-s">'B'</span>: {<span class="pl-c1">0</span>: <span class="pl-c1">1</span>, <span class="pl-c1">1</span>: <span class="pl-c1">3</span>, <span class="pl-c1">2</span>: <span class="pl-c1">5</span>}, <span class="pl-s">'C'</span>: {<span class="pl-c1">0</span>: <span class="pl-c1">2</span>, <span class="pl-c1">1</span>: <span class="pl-c1">4</span>, <span class="pl-c1">2</span>: <span class="pl-c1">6</span>}}) <span class="pl-s1">df</span>[<span class="pl-s">'A'</span>] <span class="pl-c1">=</span> <span class="pl-s1">df</span>.<span class="pl-v">A</span>.<span class="pl-en">astype</span>(<span class="pl-s">'category'</span>) <span class="pl-s1">df</span></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/32193271/34827065-e751911e-f713-11e7-8306-d68fba62d12d.png"><img src="https://user-images.githubusercontent.com/32193271/34827065-e751911e-f713-11e7-8306-d68fba62d12d.png" alt="image" style="max-width: 100%;"></a></p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="df.A.dtype"><pre class="notranslate"><span class="pl-s1">df</span>.<span class="pl-v">A</span>.<span class="pl-s1">dtype</span></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/32193271/34827604-a8323d06-f715-11e7-80d6-d7d07a6be5e5.png"><img src="https://user-images.githubusercontent.com/32193271/34827604-a8323d06-f715-11e7-80d6-d7d07a6be5e5.png" alt="image" style="max-width: 100%;"></a></p> <ul dir="auto"> <li><strong>After pd.melt</strong></li> </ul> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="pd.melt(df, id_vars=['A'], value_vars=['B', 'C'])"><pre class="notranslate"><span class="pl-s1">pd</span>.<span class="pl-en">melt</span>(<span class="pl-s1">df</span>, <span class="pl-s1">id_vars</span><span class="pl-c1">=</span>[<span class="pl-s">'A'</span>], <span class="pl-s1">value_vars</span><span class="pl-c1">=</span>[<span class="pl-s">'B'</span>, <span class="pl-s">'C'</span>])</pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/32193271/34827660-e2112ac8-f715-11e7-97ab-e60d5880376d.png"><img src="https://user-images.githubusercontent.com/32193271/34827660-e2112ac8-f715-11e7-97ab-e60d5880376d.png" alt="image" style="max-width: 100%;"></a></p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="df.A.dtype"><pre class="notranslate"><span class="pl-s1">df</span>.<span class="pl-v">A</span>.<span class="pl-s1">dtype</span></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/32193271/34827628-c240e42c-f715-11e7-95d0-443aac91ebf6.png"><img src="https://user-images.githubusercontent.com/32193271/34827628-c240e42c-f715-11e7-95d0-443aac91ebf6.png" alt="image" style="max-width: 100%;"></a></p> <h4 dir="auto">Problem description</h4> <p dir="auto">As the example above. column A is category dtype before pd.melt.<br> However, the category dtype lost after pd.melt.</p> <h4 dir="auto">Expected Output</h4> <p dir="auto">Expected consistence before and after pd.melt</p> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> <h2 dir="auto">INSTALLED VERSIONS</h2> <p dir="auto">commit: None<br> python: 3.6.3.final.0<br> python-bits: 64<br> OS: Windows<br> OS-release: 7<br> machine: AMD64<br> processor: Intel64 Family 6 Model 69 Stepping 1, GenuineIntel<br> byteorder: little<br> LC_ALL: None<br> LANG: None<br> LOCALE: None.None</p> <p dir="auto">pandas: 0.21.1<br> pytest: 3.2.1<br> pip: 9.0.1<br> setuptools: 36.5.0.post20170921<br> Cython: 0.26.1<br> numpy: 1.13.3<br> scipy: 0.19.1<br> pyarrow: None<br> xarray: None<br> IPython: 6.1.0<br> sphinx: 1.6.3<br> patsy: 0.4.1<br> dateutil: 2.6.1<br> pytz: 2017.3<br> blosc: None<br> bottleneck: 1.2.1<br> tables: 3.4.2<br> numexpr: 2.6.2<br> feather: None<br> matplotlib: 2.1.0<br> openpyxl: 2.4.8<br> xlrd: 1.1.0<br> xlwt: 1.3.0<br> xlsxwriter: 1.0.2<br> lxml: 4.1.0<br> bs4: 4.6.0<br> html5lib: 0.999999999<br> sqlalchemy: 1.1.13<br> pymysql: None<br> psycopg2: None<br> jinja2: 2.9.6<br> s3fs: None<br> fastparquet: None<br> pandas_gbq: None<br> pandas_datareader: None</p> </details>
<p dir="auto">When using <code class="notranslate">melt</code>, I'd expect the type of the columns specified as <code class="notranslate">id_vars</code> to be preserved.<br> Categorical types seem to be lost in the process:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd data = pd.DataFrame({'A': [1,2], 'B': pd.Categorical(['X', 'Y'])}) print(data) print(data.info()) melted = pd.melt(data, ['B'], ['A']) print(melted) print(melted.info())"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-s1">data</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>({<span class="pl-s">'A'</span>: [<span class="pl-c1">1</span>,<span class="pl-c1">2</span>], <span class="pl-s">'B'</span>: <span class="pl-s1">pd</span>.<span class="pl-v">Categorical</span>([<span class="pl-s">'X'</span>, <span class="pl-s">'Y'</span>])}) <span class="pl-en">print</span>(<span class="pl-s1">data</span>) <span class="pl-en">print</span>(<span class="pl-s1">data</span>.<span class="pl-en">info</span>()) <span class="pl-s1">melted</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">melt</span>(<span class="pl-s1">data</span>, [<span class="pl-s">'B'</span>], [<span class="pl-s">'A'</span>]) <span class="pl-en">print</span>(<span class="pl-s1">melted</span>) <span class="pl-en">print</span>(<span class="pl-s1">melted</span>.<span class="pl-en">info</span>())</pre></div> <p dir="auto">shows:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="None B variable value 0 X A 1 1 Y A 2 &lt;class 'pandas.core.frame.DataFrame'&gt; RangeIndex: 2 entries, 0 to 1 Data columns (total 3 columns): B 2 non-null object variable 2 non-null object value 2 non-null int64 dtypes: int64(1), object(2)"><pre class="notranslate"><code class="notranslate">None B variable value 0 X A 1 1 Y A 2 &lt;class 'pandas.core.frame.DataFrame'&gt; RangeIndex: 2 entries, 0 to 1 Data columns (total 3 columns): B 2 non-null object variable 2 non-null object value 2 non-null int64 dtypes: int64(1), object(2) </code></pre></div> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> INSTALLED VERSIONS ------------------ commit: None python: 3.5.3.final.0 python-bits: 64 OS: Linux OS-release: 4.9.0-2-amd64 machine: x86_64 processor: byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 <p dir="auto">pandas: 0.19.2<br> nose: 1.3.7<br> pip: None<br> setuptools: 33.1.1<br> Cython: 0.25.2<br> numpy: 1.12.0<br> scipy: 0.18.1<br> statsmodels: 0.8.0.dev0+c906881<br> xarray: None<br> IPython: 5.1.0<br> sphinx: 1.4.9<br> patsy: 0.4.1+dev<br> dateutil: 2.5.3<br> pytz: 2016.7<br> blosc: None<br> bottleneck: None<br> tables: 3.3.0<br> numexpr: 2.6.1<br> matplotlib: 2.0.0<br> openpyxl: 2.3.0<br> xlrd: 1.0.0<br> xlwt: None<br> xlsxwriter: None<br> lxml: 3.7.3<br> bs4: None<br> html5lib: None<br> httplib2: 0.9.2<br> apiclient: None<br> sqlalchemy: 1.1.6<br> pymysql: None<br> psycopg2: None<br> jinja2: 2.9.5<br> boto: None<br> pandas_datareader: None</p> </details>
1
<p dir="auto">In Symfony <code class="notranslate">2.3.24</code> I'm receiving an PHP Fatal error while trying to throw 404 Exception with <code class="notranslate">createNotFoundException</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PHP Fatal error: Cannot redeclare class Symfony\\Component\\Debug\\Exception\\FlattenException in vendor/symfony/symfony/src/Symfony/Component/Debug/Exception/FlattenException.php on line 25"><pre class="notranslate"><code class="notranslate">PHP Fatal error: Cannot redeclare class Symfony\\Component\\Debug\\Exception\\FlattenException in vendor/symfony/symfony/src/Symfony/Component/Debug/Exception/FlattenException.php on line 25 </code></pre></div> <p dir="auto">I've checked the file <code class="notranslate">FlattenException.php</code> and noticed that there is a second definition of the <code class="notranslate">FlattenException</code> class (<a href="https://github.com/symfony/symfony/blob/2.3/src/Symfony/Component/Debug/Exception/FlattenException.php#L283">https://github.com/symfony/symfony/blob/2.3/src/Symfony/Component/Debug/Exception/FlattenException.php#L283</a>). It seems that part of the code was added accidentally during the commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/symfony/symfony/commit/1d68ad326548b7f8fd991cdbb126961cd26310be/hovercard" href="https://github.com/symfony/symfony/commit/1d68ad326548b7f8fd991cdbb126961cd26310be"><tt>1d68ad3</tt></a></p>
<p dir="auto">In Symfony 2.7, we made it possible to use most features of Symfony without enabling the templating component (assuming you don't use a bundle relying on them of course).<br> However, we have 3 shortcut methods in the base controller which are not compatible with such setup and force the usage of the templating component:</p> <ul dir="auto"> <li><code class="notranslate">render</code></li> <li><code class="notranslate">renderView</code></li> <li><code class="notranslate">stream</code></li> </ul> <p dir="auto">Most projects based on Symfony are probably relying on them, as this is the documented way to render templates.</p> <p dir="auto">All of them can be implemented on top of Twig directly quite easily. I suggest doing this in 2.8 in case the templating component is not available.</p>
0
<p dir="auto">I keep failing to make defaults paramaters for my annotation routes.</p> <p dir="auto">Look my routing.yml:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="some_route: resource: &quot;@CoreBundle/Controller/&quot; type: annotation prefix: /{slug} defaults: {'slug': 'pouet'}"><pre class="notranslate"><span class="pl-ent">some_route</span>: <span class="pl-ent">resource</span>: <span class="pl-s"><span class="pl-pds">"</span>@CoreBundle/Controller/<span class="pl-pds">"</span></span> <span class="pl-ent">type</span>: <span class="pl-s">annotation</span> <span class="pl-ent">prefix</span>: <span class="pl-s">/{slug}</span> <span class="pl-ent">defaults</span>: <span class="pl-s">{'slug': 'pouet'}</span></pre></div> <p dir="auto">My controller look like this:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;?php namespace Namespace\CoreBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter; use Namespace\ShopBundle\Model; class FrontController extends Controller { /** * @Route(&quot;/&quot;) * @Template */ public function indexAction(Model\Shop $shop = null) { return array('shop' =&gt; $shop); } } "><pre class="notranslate"><span class="pl-ent">&lt;?php</span> <span class="pl-k">namespace</span> <span class="pl-v">Namespace</span>\<span class="pl-v">CoreBundle</span>\<span class="pl-v">Controller</span>; <span class="pl-k">use</span> <span class="pl-v">Symfony</span>\<span class="pl-v">Bundle</span>\<span class="pl-v">FrameworkBundle</span>\<span class="pl-v">Controller</span>\<span class="pl-v">Controller</span>; <span class="pl-k">use</span> <span class="pl-v">Sensio</span>\<span class="pl-v">Bundle</span>\<span class="pl-v">FrameworkExtraBundle</span>\<span class="pl-v">Configuration</span>\<span class="pl-v">Route</span>; <span class="pl-k">use</span> <span class="pl-v">Sensio</span>\<span class="pl-v">Bundle</span>\<span class="pl-v">FrameworkExtraBundle</span>\<span class="pl-v">Configuration</span>\<span class="pl-v">Template</span>; <span class="pl-k">use</span> <span class="pl-v">Sensio</span>\<span class="pl-v">Bundle</span>\<span class="pl-v">FrameworkExtraBundle</span>\<span class="pl-v">Configuration</span>\<span class="pl-v">ParamConverter</span>; <span class="pl-k">use</span> <span class="pl-k">Namespace</span>\<span class="pl-v">ShopBundle</span>\<span class="pl-v">Model</span>; <span class="pl-k">class</span> <span class="pl-v">FrontController</span> <span class="pl-k">extends</span> <span class="pl-v">Controller</span> { <span class="pl-c">/**</span> <span class="pl-c"> * @Route("/")</span> <span class="pl-c"> * @Template</span> <span class="pl-c"> */</span> <span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">indexAction</span>(<span class="pl-smi"><span class="pl-smi"><span class="pl-v">Model</span>\<span class="pl-v">Shop</span></span></span> <span class="pl-s1"><span class="pl-c1">$</span>shop</span> = <span class="pl-c1">null</span>) { <span class="pl-k">return</span> <span class="pl-en">array</span>(<span class="pl-s">'shop'</span> =&gt; <span class="pl-s1"><span class="pl-c1">$</span>shop</span>); } }</pre></div> <p dir="auto">If I'm not wrong I must be able to access <strong>/</strong>, slug value will be 'pouet', and <strong>/foo</strong>, slug value will be 'foo'.<br> But I can't access the <strong>/</strong> route because it says</p> <blockquote> <p dir="auto">No route found for "GET /"</p> </blockquote> <p dir="auto">Am I doing it right?</p>
<p dir="auto">Say I import the following route:</p> <p dir="auto">app/config/routing.yml</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="AcmeBusinessBundle_client: resource: &quot;@AcmeBusinessBundle/Resources/config/routing/client.yml&quot; prefix: /clients"><pre class="notranslate"><span class="pl-ent">AcmeBusinessBundle_client</span>: <span class="pl-ent">resource</span>: <span class="pl-s"><span class="pl-pds">"</span>@AcmeBusinessBundle/Resources/config/routing/client.yml<span class="pl-pds">"</span></span> <span class="pl-ent">prefix</span>: <span class="pl-s">/clients</span></pre></div> <p dir="auto">...Resources/config/routing/client.yml</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="acme_business_client_list: pattern: / defaults: { _controller: AcmeBusinessBundle:Client:list } acme_business_client_create: pattern: create defaults: { _controller: AcmeBusinessBundle:Client:create }"><pre class="notranslate"><span class="pl-ent">acme_business_client_list</span>: <span class="pl-ent">pattern</span>: <span class="pl-s">/</span> <span class="pl-ent">defaults</span>: <span class="pl-s">{ _controller: AcmeBusinessBundle:Client:list }</span> <span class="pl-ent">acme_business_client_create</span>: <span class="pl-ent">pattern</span>: <span class="pl-s">create</span> <span class="pl-ent">defaults</span>: <span class="pl-s">{ _controller: AcmeBusinessBundle:Client:create }</span></pre></div> <p dir="auto">The route comes through as follows:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="php app/console router:debug acme_business_client_list ANY /clients/ acme_business_client_create ANY /clients/create"><pre class="notranslate"><code class="notranslate">php app/console router:debug acme_business_client_list ANY /clients/ acme_business_client_create ANY /clients/create </code></pre></div> <p dir="auto">Which means there is no way to make the route just /clients for the list page.</p> <p dir="auto">This also creates an issue when adding a _format requirement.</p> <p dir="auto">Take the following for example:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="acme_business_client_list: pattern: /.{_format} defaults: { _controller: AcmeBusinessBundle:Client:list } acme_business_client_create: pattern: create defaults: { _controller: AcmeBusinessBundle:Client:create }"><pre class="notranslate"><span class="pl-ent">acme_business_client_list</span>: <span class="pl-ent">pattern</span>: <span class="pl-s">/.{_format}</span> <span class="pl-ent">defaults</span>: <span class="pl-s">{ _controller: AcmeBusinessBundle:Client:list }</span> <span class="pl-ent">acme_business_client_create</span>: <span class="pl-ent">pattern</span>: <span class="pl-s">create</span> <span class="pl-ent">defaults</span>: <span class="pl-s">{ _controller: AcmeBusinessBundle:Client:create }</span></pre></div> <p dir="auto">Now it comes through as:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="php app/console router:debug acme_business_client_list ANY /clients/.json acme_business_client_create ANY /clients/create"><pre class="notranslate"><code class="notranslate">php app/console router:debug acme_business_client_list ANY /clients/.json acme_business_client_create ANY /clients/create </code></pre></div> <p dir="auto">Is there any kind of work around for this besides importing the list route on its own?</p>
1
<p dir="auto">Currently with the mysql_db module state=import tries to import the database again, thus making it non-idempotent. This is the error i'm getting; msg: ERROR 1062 (23000) at line 30: Duplicate entry '1' for key 'PRIMARY'</p> <p dir="auto">With this playbook:</p> <ul dir="auto"> <li>name: create website database<br> mysql_db: name=dbname<br> login_user={{ mysql_root_user }}<br> login_password={{ mysql_root_password }}<br> state=present</li> <li>name: copy website database<br> copy: src=database.sql<br> dest=/home/user/database.sql</li> <li>name: import website database<br> mysql_db: name=dbname<br> login_user={{ mysql_root_user }}<br> login_password={{ mysql_root_password }}<br> target=/home/user/database.sql<br> state=import</li> </ul> <p dir="auto">Just a heads up for a potential improvement, currently I'm commenting the last task everytime I run the playbook again for idempotency.</p>
<p dir="auto">This happened in my last run, I can't get it to happen again. But it asked to be reported so here it is.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" [WARNING]: Calculating checksum failed unusually, please report this to the list so it can be fixed command: rc=flag; [ -r /usr/share/nginx/html/global_error_pages/416.html ] || rc=2; [ -f /usr/share/nginx/html/global_error_pages/416.html ] || rc=1; [ -d /usr/share/nginx/html/global_error_pages/416.html ] &amp;&amp; rc=3; python -V 2&gt;/dev/null || rc=4; [ x&quot;$rc&quot; != &quot;xflag&quot; ] &amp;&amp; echo &quot;${rc} &quot;/usr/share/nginx/html/global_error_pages/416.html &amp;&amp; exit 0; (python -c 'import hashlib; BLOCKSIZE = 65536; hasher = hashlib.sha1(); afile = open(&quot;'/usr/share/nginx/html/global_error_pages/416.html'&quot;, &quot;rb&quot;) buf = afile.read(BLOCKSIZE) while len(buf) &gt; 0: hasher.update(buf) buf = afile.read(BLOCKSIZE) afile.close() print(hasher.hexdigest())' 2&gt;/dev/null) || (python -c 'import sha; BLOCKSIZE = 65536; hasher = sha.sha(); afile = open(&quot;'/usr/share/nginx/html/global_error_pages/416.html'&quot;, &quot;rb&quot;) buf = afile.read(BLOCKSIZE) while len(buf) &gt; 0: hasher.update(buf) buf = afile.read(BLOCKSIZE) afile.close() print(hasher.hexdigest())' 2&gt;/dev/null) || (echo '0 '/usr/share/nginx/html/global_error_pages/416.html) ---- output: {'stdout_lines': [u''], 'stdout': u'\r\n', 'stderr': u'', 'rc': 0} ---- "><pre class="notranslate"><code class="notranslate"> [WARNING]: Calculating checksum failed unusually, please report this to the list so it can be fixed command: rc=flag; [ -r /usr/share/nginx/html/global_error_pages/416.html ] || rc=2; [ -f /usr/share/nginx/html/global_error_pages/416.html ] || rc=1; [ -d /usr/share/nginx/html/global_error_pages/416.html ] &amp;&amp; rc=3; python -V 2&gt;/dev/null || rc=4; [ x"$rc" != "xflag" ] &amp;&amp; echo "${rc} "/usr/share/nginx/html/global_error_pages/416.html &amp;&amp; exit 0; (python -c 'import hashlib; BLOCKSIZE = 65536; hasher = hashlib.sha1(); afile = open("'/usr/share/nginx/html/global_error_pages/416.html'", "rb") buf = afile.read(BLOCKSIZE) while len(buf) &gt; 0: hasher.update(buf) buf = afile.read(BLOCKSIZE) afile.close() print(hasher.hexdigest())' 2&gt;/dev/null) || (python -c 'import sha; BLOCKSIZE = 65536; hasher = sha.sha(); afile = open("'/usr/share/nginx/html/global_error_pages/416.html'", "rb") buf = afile.read(BLOCKSIZE) while len(buf) &gt; 0: hasher.update(buf) buf = afile.read(BLOCKSIZE) afile.close() print(hasher.hexdigest())' 2&gt;/dev/null) || (echo '0 '/usr/share/nginx/html/global_error_pages/416.html) ---- output: {'stdout_lines': [u''], 'stdout': u'\r\n', 'stderr': u'', 'rc': 0} ---- </code></pre></div>
0
<p dir="auto">I am trying to run a python script from power BI, I have installed all the modules and dependencies but still get this error. I have uninstall and reinstall numpy but still not working. I installed python 3.8 and I am using windows 10. I do not think I have multiple python versions of python installed</p> <h3 dir="auto">Reproducing code example:</h3> <p dir="auto">This is the code I ran<br> from pycaret.clustering import *<br> dataset = get_clusters(data = dataset)</p> <h3 dir="auto">Error message:</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="DataSource.Error: ADO.NET: Python script error. C:\Users\Wale\Anaconda3\envs\pyhon=3.8\lib\site-packages\numpy\__init__.py:140: UserWarning: mkl-service package failed to import, therefore Intel(R) MKL initialization ensuring its correct out-of-the box operation under condition when Gnu OpenMP had already been loaded by Python process is not assured. Please install mkl-service package, see http://github.com/IntelPython/mkl-service from . import _distributor_init Traceback (most recent call last): File &quot;PythonScriptWrapper.PY&quot;, line 2, in &lt;module&gt; import os, pandas, matplotlib File &quot;C:\Users\Wale\Anaconda3\envs\pyhon=3.8\lib\site-packages\pandas\__init__.py&quot;, line 16, in &lt;module&gt; raise ImportError( ImportError: Unable to import required dependencies: numpy: Importing the numpy c-extensions failed. - Try uninstalling and reinstalling numpy. - If you have already done that, then: 1. Check that you expected to use Python3.8 from &quot;C:\Use... ErrorCode=-2147467259 ExceptionType=Microsoft.PowerBI.Scripting.Python.Exceptions.PythonScriptRuntimeException"><pre class="notranslate"><code class="notranslate">DataSource.Error: ADO.NET: Python script error. C:\Users\Wale\Anaconda3\envs\pyhon=3.8\lib\site-packages\numpy\__init__.py:140: UserWarning: mkl-service package failed to import, therefore Intel(R) MKL initialization ensuring its correct out-of-the box operation under condition when Gnu OpenMP had already been loaded by Python process is not assured. Please install mkl-service package, see http://github.com/IntelPython/mkl-service from . import _distributor_init Traceback (most recent call last): File "PythonScriptWrapper.PY", line 2, in &lt;module&gt; import os, pandas, matplotlib File "C:\Users\Wale\Anaconda3\envs\pyhon=3.8\lib\site-packages\pandas\__init__.py", line 16, in &lt;module&gt; raise ImportError( ImportError: Unable to import required dependencies: numpy: Importing the numpy c-extensions failed. - Try uninstalling and reinstalling numpy. - If you have already done that, then: 1. Check that you expected to use Python3.8 from "C:\Use... ErrorCode=-2147467259 ExceptionType=Microsoft.PowerBI.Scripting.Python.Exceptions.PythonScriptRuntimeException </code></pre></div> <h3 dir="auto">Numpy/Python version information:</h3> <p dir="auto">python 3.8 and numpy version "1.18.1"</p>
<ul dir="auto"> <li> <p dir="auto">how you installed Python - installed from this link <a href="https://www.python.org/ftp/python/3.8.3/python-3.8.3-amd64.exe" rel="nofollow">https://www.python.org/ftp/python/3.8.3/python-3.8.3-amd64.exe</a></p> </li> <li> <p dir="auto">how you installed numpy - opened a notebook and wrote:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import numpy numpy.__version__"><pre class="notranslate"><code class="notranslate">import numpy numpy.__version__ </code></pre></div> <p dir="auto">received the version back that I have installed ('1.18.1')</p> </li> <li> <p dir="auto">your operating system<br> Windows 10 Enterprise</p> </li> <li> <p dir="auto">whether or not you have multiple versions of Python installed<br> I did yesterday. I uninstalled all of them yesterday and reinstalled just one version today. I now have the following:</p> </li> </ul> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/66383468/83672343-18f2b400-a5a4-11ea-9915-9ba9a033fe65.png"><img src="https://user-images.githubusercontent.com/66383468/83672343-18f2b400-a5a4-11ea-9915-9ba9a033fe65.png" alt="image" style="max-width: 100%;"></a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" - if you built from source, your compiler versions and ideally a build log. I did not build the script, it was sent to me by someone else. I can run it successfully in jupyter notebook but get this error when running it in Power BI"><pre class="notranslate"><code class="notranslate"> - if you built from source, your compiler versions and ideally a build log. I did not build the script, it was sent to me by someone else. I can run it successfully in jupyter notebook but get this error when running it in Power BI </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Details: &quot;ADO.NET: Python script error. C:\USERS\AAA0QGV\ANACONDA3\lib\site-packages\numpy\__init__.py:140: UserWarning: mkl-service package failed to import, therefore Intel(R) MKL initialization ensuring its correct out-of-the box operation under condition when Gnu OpenMP had already been loaded by Python process is not assured. Please install mkl-service package, see http://github.com/IntelPython/mkl-service from . import _distributor_init Traceback (most recent call last): File &quot;PythonScriptWrapper.PY&quot;, line 2, in &lt;module&gt; import os, pandas, matplotlib File &quot;C:\USERS\AAA0QGV\ANACONDA3\lib\site-packages\pandas\__init__.py&quot;, line 17, in &lt;module&gt; &quot;Unable to import required dependencies:\n&quot; + &quot;\n&quot;.join(missing_dependencies) ImportError: Unable to import required dependencies: numpy: IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! Importing the numpy c-extensions failed. - Try uninstalling and reinstalling numpy. - If you have already done that, then: 1. Check that you expected to use Python3.7 from &quot;C:\USERS\AAA0QGV\ANACONDA3\python.exe&quot;, and that you have no directories in your PATH or PYTHONPATH that can interfere with the Python and numpy version &quot;1.18.1&quot; you're trying to use. 2. If (1) looks fine, you can open a new issue at https://github.com/numpy/numpy/issues. Please include details on: - how you installed Python - how you installed numpy - your operating system - whether or not you have multiple versions of Python installed - if you built from source, your compiler versions and ideally a build log - If you're working with a numpy git repository, try `git clean -xdf` (removes all files not under version control) and rebuild numpy. Note: this error has many possible causes, so please don't comment on an existing issue about this - open a new one instead. Original error was: DLL load failed: The specified module could not be found."><pre class="notranslate"><code class="notranslate">Details: "ADO.NET: Python script error. C:\USERS\AAA0QGV\ANACONDA3\lib\site-packages\numpy\__init__.py:140: UserWarning: mkl-service package failed to import, therefore Intel(R) MKL initialization ensuring its correct out-of-the box operation under condition when Gnu OpenMP had already been loaded by Python process is not assured. Please install mkl-service package, see http://github.com/IntelPython/mkl-service from . import _distributor_init Traceback (most recent call last): File "PythonScriptWrapper.PY", line 2, in &lt;module&gt; import os, pandas, matplotlib File "C:\USERS\AAA0QGV\ANACONDA3\lib\site-packages\pandas\__init__.py", line 17, in &lt;module&gt; "Unable to import required dependencies:\n" + "\n".join(missing_dependencies) ImportError: Unable to import required dependencies: numpy: IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! Importing the numpy c-extensions failed. - Try uninstalling and reinstalling numpy. - If you have already done that, then: 1. Check that you expected to use Python3.7 from "C:\USERS\AAA0QGV\ANACONDA3\python.exe", and that you have no directories in your PATH or PYTHONPATH that can interfere with the Python and numpy version "1.18.1" you're trying to use. 2. If (1) looks fine, you can open a new issue at https://github.com/numpy/numpy/issues. Please include details on: - how you installed Python - how you installed numpy - your operating system - whether or not you have multiple versions of Python installed - if you built from source, your compiler versions and ideally a build log - If you're working with a numpy git repository, try `git clean -xdf` (removes all files not under version control) and rebuild numpy. Note: this error has many possible causes, so please don't comment on an existing issue about this - open a new one instead. Original error was: DLL load failed: The specified module could not be found. </code></pre></div>
1
<p dir="auto">I add class 'ng-animate' to a component, but when route changed, ng-enter and ng-leave was not added to the component.</p>
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> feature request</li> </ul> <p dir="auto"><strong>Current behavior</strong><br> Router replaces the component that is being shown.</p> <p dir="auto"><strong>Expected/desired behavior</strong><br> Allow for keeping the current component for a configurable ammount of time and instantiating the next component just under so we can animate the transition between those routes.</p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br> Allowing to transition between routes with animations is just fancy but allows for smoother transitions between pages, it feels bad when your app needs to change a lot of pages or routes and it does it instantly, is unpleasant to the eye.</p> <ul dir="auto"> <li><strong>Angular version:</strong> 2.0.0-rc.4</li> <li><strong>Browser:</strong> all</li> <li><strong>Language:</strong> TypeScript</li> </ul>
1
<p dir="auto">In my application users have localized usernames.<br> So user switch functionality doesn't work for russian usernames (maybe because browser change urls to something like <a href="http://domain.com/?_switch_user=%CF%F3%F5" rel="nofollow">http://domain.com/?_switch_user=%CF%F3%F5</a></p>
<p dir="auto">As a reminder, the Routing component is not fully unicode aware. There are cases that work and some don't work.</p> <p dir="auto">Using a unicode string as content for a routing variable works currently, e.g. <code class="notranslate">/{var}</code> with <code class="notranslate">var='€1'</code> works as expected (except normalization, see below).<br> Unicode text inside the static route pattern can have some undefined behavior. So <code class="notranslate">/€/{var}</code> might work but <code class="notranslate">/€{var}</code> definitely doesn't work (as the <code class="notranslate">€</code> character is considered as seperator and then mangled by non-multibyte functions).</p> <p dir="auto">For reference, a first, unfinished attempt at fixing this was made at <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="3696397" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/3629" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/3629/hovercard" href="https://github.com/symfony/symfony/pull/3629">#3629</a>.</p> <p dir="auto">Implementing this would require some heavy research as to which byte functions (<code class="notranslate">substr</code> etc.) need to be replaced by their multibyte variants in the Compiler, Generator, Matcher, Dumper. And by doing so, not to decrease performance if possible.</p> <p dir="auto">Working with unicode, also requires to normalize the representation. So it generates/matches the same URL that only differs by unicode composition. See <a href="http://php.net/manual/de/class.normalizer.php" rel="nofollow">http://php.net/manual/de/class.normalizer.php</a></p> <p dir="auto">Other helpful resource: <a href="http://www.phpwact.org/php/i18n/utf-8" rel="nofollow">http://www.phpwact.org/php/i18n/utf-8</a></p>
1
<blockquote> <p dir="auto">The editor is not responding. Would you like to force close it or just keep waiting?</p> </blockquote> <p dir="auto">This is the message I keep getting sometimes when I try and close tabs or windows. Specifically, when I try to close a window that has the settings tab opened.</p>
<p dir="auto">This happens every time I quit atom now. I just pulled and built 10 seconds before this issue was created.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/69169/2612103/3096e72a-bbb8-11e3-9727-8bd7b3a08809.png"><img src="https://cloud.githubusercontent.com/assets/69169/2612103/3096e72a-bbb8-11e3-9727-8bd7b3a08809.png" alt="screen shot 2014-04-03 at 10 15 28 pm" style="max-width: 100%;"></a></p>
1
<p dir="auto">clicking one or multiple task instances from /taskinstance/list/ view and choosing any new state, results in error screen</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/4283/96177660-3180bc80-0efc-11eb-8056-c9e3303b81a6.png"><img width="1177" alt="Screen Shot 2020-10-15 at 3 34 54 PM" src="https://user-images.githubusercontent.com/4283/96177660-3180bc80-0efc-11eb-8056-c9e3303b81a6.png" style="max-width: 100%;"></a></p>
<p dir="auto">As part of the work on AIP-39 we want to make it so that <em>every</em> TaskInstance in the DB has DagRun.</p> <p dir="auto">Now at "run time" this is already the case (baring the case where someone might delete a DagRun. Rare, now only possible by direct DB? I can't remember if Browse -&gt; DagRuns allows deleting anymore or not) but in our tests this is far from the case</p> <p dir="auto">There are countless examples of where the tests just directly create TaskInstances, without a matching DagRun.</p> <p dir="auto">We need to fix that so that the tests reflect reality.</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="939996671" data-permission-text="Title is private" data-url="https://github.com/apache/airflow/issues/16889" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/16889/hovercard" href="https://github.com/apache/airflow/pull/16889">#16889</a> is part of this -- creating a pytest fixture to reduce amount of duplication in tests</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="967189556" data-permission-text="Title is private" data-url="https://github.com/apache/airflow/issues/17556" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/17556/hovercard" href="https://github.com/apache/airflow/pull/17556">#17556</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> We probably also want to enforce foreign key constraints between DagRun and TaskInstance once we've done this (see also <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="945406015" data-permission-text="Title is private" data-url="https://github.com/apache/airflow/issues/17030" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/17030/hovercard" href="https://github.com/apache/airflow/pull/17030">#17030</a>)</li> </ul>
0
<p dir="auto">While working on a webhook auth server, I've found that the <code class="notranslate">kube-apiserver</code> logs don't include useful info when the API server fails to parse the response from the auth server. For example, the following response looks okay (the problem was the missing Content-Type header), but then returns a 403 to the client with no explanation. This was captured with <code class="notranslate">--v=8</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="I0927 01:59:54.425034 1 round_trippers.go:296] POST https://127.0.0.1:4000/ I0927 01:59:54.425043 1 round_trippers.go:303] Request Headers: I0927 01:59:54.425048 1 round_trippers.go:306] Accept: application/json, */* I0927 01:59:54.425053 1 round_trippers.go:306] Content-Type: application/json I0927 01:59:54.439002 1 round_trippers.go:321] Response Status: 200 OK in 13 milliseconds I0927 01:59:54.439020 1 round_trippers.go:324] Response Headers: I0927 01:59:54.439026 1 round_trippers.go:327] Server: WEBrick/1.3.1 (Ruby/2.3.1/2016-04-26) OpenSSL/1.0.2h I0927 01:59:54.439031 1 round_trippers.go:327] Date: Tue, 27 Sep 2016 01:59:54 GMT I0927 01:59:54.439036 1 round_trippers.go:327] Content-Length: 211 I0927 01:59:54.439040 1 round_trippers.go:327] Connection: Keep-Alive I0927 01:59:54.477173 1 request.go:891] Response Body: {&quot;kind&quot;:&quot;SubjectAccessReview&quot;,&quot;apiVersion&quot;:&quot;authorization.k8s.io/v1beta1&quot;,&quot;spec&quot;:{&quot;nonResourceAttributes&quot;:{&quot;path&quot;:&quot;/api&quot;,&quot;verb&quot;:&quot;get&quot;},&quot;user&quot;:&quot;kevin.burk@k8sdev&quot;},&quot;status&quot;:{&quot;allowed&quot;:true,&quot;reason&quot;:&quot;Allow all.&quot;}} I0927 01:59:54.477443 1 handlers.go:165] GET /api: (53.098111ms) 403 [[kubectl/v1.3.0+2831379 (darwin/amd64) kubernetes/2831379] 10.52.9.58:51513] I0927 01:59:54.500444 1 request.go:558] Request Body: {&quot;kind&quot;:&quot;SubjectAccessReview&quot;,&quot;apiVersion&quot;:&quot;authorization.k8s.io/v1beta1&quot;,&quot;spec&quot;:{&quot;nonResourceAttributes&quot;:{&quot;path&quot;:&quot;/apis&quot;,&quot;verb&quot;:&quot;get&quot;},&quot;user&quot;:&quot;kevin.burk@k8sdev&quot;},&quot;status&quot;:{&quot;allowed&quot;:false}}"><pre class="notranslate"><code class="notranslate">I0927 01:59:54.425034 1 round_trippers.go:296] POST https://127.0.0.1:4000/ I0927 01:59:54.425043 1 round_trippers.go:303] Request Headers: I0927 01:59:54.425048 1 round_trippers.go:306] Accept: application/json, */* I0927 01:59:54.425053 1 round_trippers.go:306] Content-Type: application/json I0927 01:59:54.439002 1 round_trippers.go:321] Response Status: 200 OK in 13 milliseconds I0927 01:59:54.439020 1 round_trippers.go:324] Response Headers: I0927 01:59:54.439026 1 round_trippers.go:327] Server: WEBrick/1.3.1 (Ruby/2.3.1/2016-04-26) OpenSSL/1.0.2h I0927 01:59:54.439031 1 round_trippers.go:327] Date: Tue, 27 Sep 2016 01:59:54 GMT I0927 01:59:54.439036 1 round_trippers.go:327] Content-Length: 211 I0927 01:59:54.439040 1 round_trippers.go:327] Connection: Keep-Alive I0927 01:59:54.477173 1 request.go:891] Response Body: {"kind":"SubjectAccessReview","apiVersion":"authorization.k8s.io/v1beta1","spec":{"nonResourceAttributes":{"path":"/api","verb":"get"},"user":"kevin.burk@k8sdev"},"status":{"allowed":true,"reason":"Allow all."}} I0927 01:59:54.477443 1 handlers.go:165] GET /api: (53.098111ms) 403 [[kubectl/v1.3.0+2831379 (darwin/amd64) kubernetes/2831379] 10.52.9.58:51513] I0927 01:59:54.500444 1 request.go:558] Request Body: {"kind":"SubjectAccessReview","apiVersion":"authorization.k8s.io/v1beta1","spec":{"nonResourceAttributes":{"path":"/apis","verb":"get"},"user":"kevin.burk@k8sdev"},"status":{"allowed":false}} </code></pre></div> <p dir="auto">Better logs would be very nice to have!</p> <p dir="auto">My best guess is that it's happening <a href="https://github.com/kubernetes/kubernetes/blob/5f9447a91a8ed9286026d9c112aee541167603c3/plugin/pkg/auth/authorizer/webhook/webhook.go#L178">here</a>, but I'm not familiar enough with the codebase to say for sure.</p> <p dir="auto">And my system info (OSX local; CoreOS server):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Client Version: version.Info{Major:&quot;1&quot;, Minor:&quot;3&quot;, GitVersion:&quot;v1.3.0+2831379&quot;, GitCommit:&quot;283137936a498aed572ee22af6774b6fb6e9fd94&quot;, GitTreeState:&quot;not a git tree&quot;, BuildDate:&quot;2016-07-05T15:40:13Z&quot;, GoVersion:&quot;go1.6.2&quot;, Compiler:&quot;gc&quot;, Platform:&quot;darwin/amd64&quot;} Server Version: version.Info{Major:&quot;1&quot;, Minor:&quot;3&quot;, GitVersion:&quot;v1.3.5+coreos.1&quot;, GitCommit:&quot;4fc64a21f8a593d97b75296acd1e979391518b28&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2016-08-22T17:15:28Z&quot;, GoVersion:&quot;go1.6.2&quot;, Compiler:&quot;gc&quot;, Platform:&quot;linux/amd64&quot;}"><pre class="notranslate"><code class="notranslate">Client Version: version.Info{Major:"1", Minor:"3", GitVersion:"v1.3.0+2831379", GitCommit:"283137936a498aed572ee22af6774b6fb6e9fd94", GitTreeState:"not a git tree", BuildDate:"2016-07-05T15:40:13Z", GoVersion:"go1.6.2", Compiler:"gc", Platform:"darwin/amd64"} Server Version: version.Info{Major:"1", Minor:"3", GitVersion:"v1.3.5+coreos.1", GitCommit:"4fc64a21f8a593d97b75296acd1e979391518b28", GitTreeState:"clean", BuildDate:"2016-08-22T17:15:28Z", GoVersion:"go1.6.2", Compiler:"gc", Platform:"linux/amd64"} </code></pre></div>
<p dir="auto">Today I set up an apiserver with <code class="notranslate">--authorization-mode=Webhook,ABAC</code> and (accidentally) pointed the webhook at an endpoint that did not return a proper <code class="notranslate">SubjectAccessReview</code> object. The apiserver seemed to send the request payload to the server, ignore the incorrect response then move on to the ABAC authorizer. I would expect to see an error in the apiserver logs about this, but I did not see one.</p> <p dir="auto">There should be an error logged each time the Webhook endpoint does not return a proper JSON response.</p>
1
<h3 dir="auto">Vue.js version</h3> <p dir="auto">1.0.23</p> <h3 dir="auto">Reproduction Link</h3> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;div id=&quot;currencies&quot;&gt; &lt;br /&gt;{{currencies[0] | currency}} &lt;br /&gt;{{currencies[1] | currency}} &lt;br /&gt;{{currencies[2] | currency}} &lt;br /&gt;{{currencies[0] | currency '&amp;#8377;' 0}} &lt;br /&gt;{{currencies[1] | currency '&amp;#8377;' 0}} &lt;br /&gt;{{currencies[2] | currency '&amp;#8377;' 0}} &lt;br /&gt;{{currencies[0] | currency '&amp;#8364;'}} &lt;br /&gt;{{currencies[1] | currency '&amp;#8364;'}} &lt;br /&gt;{{currencies[2] | currency '&amp;#8364;'}} &lt;br /&gt;{{currencies[0] | currency '&amp;#8364;'}} &lt;br /&gt;{{currencies[1] | currency '&amp;#8364;'}} &lt;br /&gt;{{currencies[2] | currency '&amp;#8364;'}} &lt;/div&gt; &lt;script type=&quot;text/javascript&quot;&gt; var app = new Vue({ el: '#currencies', data: { currencies: [10, 1000, 10000000] } }); &lt;/script&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">id</span>="<span class="pl-s">currencies</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">br</span> /&gt;{{currencies[0] | currency}} <span class="pl-kos">&lt;</span><span class="pl-ent">br</span> /&gt;{{currencies[1] | currency}} <span class="pl-kos">&lt;</span><span class="pl-ent">br</span> /&gt;{{currencies[2] | currency}} <span class="pl-kos">&lt;</span><span class="pl-ent">br</span> /&gt;{{currencies[0] | currency '&amp;#8377;' 0}} <span class="pl-kos">&lt;</span><span class="pl-ent">br</span> /&gt;{{currencies[1] | currency '&amp;#8377;' 0}} <span class="pl-kos">&lt;</span><span class="pl-ent">br</span> /&gt;{{currencies[2] | currency '&amp;#8377;' 0}} <span class="pl-kos">&lt;</span><span class="pl-ent">br</span> /&gt;{{currencies[0] | currency '&amp;#8364;'}} <span class="pl-kos">&lt;</span><span class="pl-ent">br</span> /&gt;{{currencies[1] | currency '&amp;#8364;'}} <span class="pl-kos">&lt;</span><span class="pl-ent">br</span> /&gt;{{currencies[2] | currency '&amp;#8364;'}} <span class="pl-kos">&lt;</span><span class="pl-ent">br</span> /&gt;{{currencies[0] | currency '&amp;#8364;'}} <span class="pl-kos">&lt;</span><span class="pl-ent">br</span> /&gt;{{currencies[1] | currency '&amp;#8364;'}} <span class="pl-kos">&lt;</span><span class="pl-ent">br</span> /&gt;{{currencies[2] | currency '&amp;#8364;'}} <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">script</span> <span class="pl-c1">type</span>="<span class="pl-s">text/javascript</span>"<span class="pl-kos">&gt;</span> <span class="pl-k">var</span> <span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">Vue</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">el</span>: <span class="pl-s">'#currencies'</span><span class="pl-kos">,</span> <span class="pl-c1">data</span>: <span class="pl-kos">{</span> <span class="pl-c1">currencies</span>: <span class="pl-kos">[</span><span class="pl-c1">10</span><span class="pl-kos">,</span> <span class="pl-c1">1000</span><span class="pl-kos">,</span> <span class="pl-c1">10000000</span><span class="pl-kos">]</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span></pre></div> <h3 dir="auto">Steps to reproduce</h3> <h3 dir="auto">What is Expected?</h3> <p dir="auto">Indian numbering (as well as several other Asian countries) don't use the same number separations as western countries. They place the first comma after three digits, and the rest every two digits, so large numbers like currencies become:</p> <p dir="auto"><code class="notranslate">₹1,00,000</code></p> <p dir="auto">Instead of:</p> <p dir="auto"><code class="notranslate">₹100,000</code></p> <p dir="auto">Further, many (but not all) European countries have a "decimal comma" and use a dot to separate thousands groups, so the equivalent large amount would become:</p> <p dir="auto"><code class="notranslate">€100.000,00</code></p> <p dir="auto">I'm aware (from reading previous discussions on the <code class="notranslate">| currency</code> directive) that inferring settings from the currency marker is not desired, but there should be a way to specify the following outputs:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$10.00 $1,000.00 $10,000,000.00 ₹10 ₹1,000 ₹1,00,00,000 €10.00 €1,000.00 €10,000,000.00 €10,00 €1.000,00 €10.000.000,00"><pre class="notranslate"><code class="notranslate">$10.00 $1,000.00 $10,000,000.00 ₹10 ₹1,000 ₹1,00,00,000 €10.00 €1,000.00 €10,000,000.00 €10,00 €1.000,00 €10.000.000,00 </code></pre></div> <p dir="auto">Note the two different euro variants.</p> <h3 dir="auto">What is actually happening?</h3> <p dir="auto">Currently, all the outputs are:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$10.00 $1,000.00 $10,000,000.00 ₹10 ₹1,000 ₹10,000,000 €10.00 €1,000.00 €10,000,000.00 €10.00 €1,000.00 €10,000,000.00"><pre class="notranslate"><code class="notranslate">$10.00 $1,000.00 $10,000,000.00 ₹10 ₹1,000 ₹10,000,000 €10.00 €1,000.00 €10,000,000.00 €10.00 €1,000.00 €10,000,000.00 </code></pre></div>
<h3 dir="auto">Version</h3> <p dir="auto">2.6.14</p> <h3 dir="auto">Reproduction link</h3> <p dir="auto"><a href="http://microseeds.com/vue-bug.html" rel="nofollow">http://microseeds.com/vue-bug.html</a></p> <h3 dir="auto">Steps to reproduce</h3> <ul dir="auto"> <li>use Chrome to load <a href="http://microseeds.com/vue-bug.html" rel="nofollow">http://microseeds.com/vue-bug.html</a></li> <li>select Two</li> <li>click Submit</li> <li>click Chrome's Back button</li> </ul> <h3 dir="auto">What is expected?</h3> <p dir="auto">The value displayed should agree with the selected radio button</p> <h3 dir="auto">What is actually happening?</h3> <p dir="auto">The value displayed is "One" but the "Two" radio button is selected</p> <hr> <p dir="auto">The problem shows up in Chrome and Edge, but works as expected in Firefox.</p>
0
<p dir="auto">The markdown editor very nicely supports nested language syntax highlighting which is awesome. One small addition to make things easier is adding a autocomplete list of standard language names used in markdown. Cursor after three ticks ``` would list the languages.</p> <p dir="auto">Optionally showing a symbol next to languages with syntax highlighting support would be kind of cool, but not needed.</p> <p dir="auto">To see a list of the languages that could be included:<br> <a href="https://github.com/github/linguist/blob/master/lib/linguist/languages.yml">https://github.com/github/linguist/blob/master/lib/linguist/languages.yml</a></p>
<ul dir="auto"> <li>VSCode Version: 1.2.0</li> <li>OS Version: OS X 10.11.5</li> </ul> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>Open VSCode</li> <li>Open any folders</li> <li>Browse some code (eg. c++, ts, php). Loading speed should be normal at this point.</li> <li>Leave VSCode alone and do step 3 every 10min. At 30min the opening time of file should be noticeable slower. After 1hr, VSCode will take 3-4 sec to load a 1KB c++ file.</li> </ol> <p dir="auto">Additionally, I notice one of the VSCode process is using a lot of cpu time even I just let it stay in the background. I highlighted it below:</p> <blockquote> <p dir="auto">ps -ef|grep Studio<br> 501 553 1 0 10:16AM ?? 0:26.77 /Applications/Visual Studio Code.app/Contents/MacOS/Electron<br> 501 554 553 0 10:16AM ?? 0:08.45 /Applications/Visual Studio Code.app/Contents/Frameworks/Electron Helper.app/Contents/MacOS/Electron Helper --type=gpu-process --channel=553.0.727979350 --no-sandbox --supports-dual-gpus=false --gpu-driver-bug-workarounds=16,17,31,36,40,50,54,61,67,70 --gpu-vendor-id=0x8086 --gpu-device-id=0x0166 --gpu-driver-vendor --gpu-driver-version<br> 501 669 553 0 10:16AM ?? 0:01.60 /Applications/Visual Studio Code.app/Contents/Frameworks/Electron Helper.app/Contents/MacOS/Electron Helper /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap --type=SharedProcess<br> 501 679 1 0 10:16AM ?? 0:00.01 /Applications/Visual Studio Code.app/Contents/Frameworks/Electron Framework.framework/Resources/crashpad_handler --database=/tmp/VSCode Crashes --url=<a href="https://ticinocrashreporter.azurewebsites.net/crash" rel="nofollow">https://ticinocrashreporter.azurewebsites.net/crash</a> --handshake-fd=61<br> 501 698 1 0 10:16AM ?? 0:09.87 /Applications/Visual Studio Code.app/Contents/Frameworks/Electron Helper.app/Contents/MacOS/Electron Helper /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap /usr/bin/git /Volumes/HD2/JS/Documents/code/JSDS/Test/angularjs2/qs utf8 /Applications/Visual Studio Code.app/Contents/MacOS/Electron 2.7.4 (Apple Git-66)<br> 501 1117 1 0 11:28AM ?? 0:06.76 /Applications/Visual Studio Code.app/Contents/Frameworks/Electron Helper.app/Contents/MacOS/Electron Helper /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap /usr/bin/git /Volumes/HD2/JS/Documents/code/JSDS/Test/c utf8 /Applications/Visual Studio Code.app/Contents/MacOS/Electron 2.7.4 (Apple Git-66)<br> <strong>501 1196 553 0 12:06PM ?? 1:08.19 /Applications/Visual Studio Code.app/Contents/Frameworks/Electron Helper.app/Contents/MacOS/Electron Helper --type=renderer --no-sandbox --lang=en-US --node-integration=true --background-color=<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="976132417" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/131313" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/131313/hovercard" href="https://github.com/microsoft/vscode/issues/131313">#131313</a> --num-raster-threads=4 --enable-zero-copy --enable-gpu-memory-buffer-compositor-resources --content-image-texture-target=3553,3553,3553,3553,3553,34037,3553,3553,3553,3553,34037,3553,34037,34037 --video-image-texture-target=34037 --channel=553.7.1240100061</strong><br> 501 1198 1196 0 12:06PM ?? 0:00.42 /Applications/Visual Studio Code.app/Contents/Frameworks/Electron Helper.app/Contents/MacOS/Electron Helper /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap --type=extensionHost<br> 501 1199 1196 0 12:06PM ?? 0:00.35 /Applications/Visual Studio Code.app/Contents/Frameworks/Electron Helper.app/Contents/MacOS/Electron Helper /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap --type=watcherService<br> 501 1203 1196 0 12:06PM ?? 0:03.30 /Applications/Visual Studio Code.app/Contents/Frameworks/Electron Helper.app/Contents/MacOS/Electron Helper /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap /usr/bin/git /Volumes/HD2/JS/Documents/code/JSDS/Test/c utf8 /Applications/Visual Studio Code.app/Contents/MacOS/Electron 2.7.4 (Apple Git-66)<br> 501 1219 783 0 12:08PM ttys000 0:00.00 grep --color=auto Studio</p> </blockquote>
0
<h4 dir="auto">Describe the workflow you want to enable</h4> <p dir="auto">As a continuation to <a href="https://github.com/scikit-learn/scikit-learn/issues/18105" data-hovercard-type="issue" data-hovercard-url="/scikit-learn/scikit-learn/issues/18105/hovercard">18105</a>, I would like to propose a feature addition to Decision Tree to enable them to handle categorical variables.</p> <h4 dir="auto">Describe your proposed solution</h4> <p dir="auto">The solution will be to update <code class="notranslate">fit</code> and <code class="notranslate">predict</code> method of <code class="notranslate">BaseDecisionTree</code> class in <a href="https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/tree/_classes.py">_classes.py</a>. As mentioned in <a href="https://github.com/scikit-learn/scikit-learn/issues/18105" data-hovercard-type="issue" data-hovercard-url="/scikit-learn/scikit-learn/issues/18105/hovercard">18105</a> <code class="notranslate">OrdinalEncoder</code> will be used to encoded categorical variables.</p> <h4 dir="auto">Describe alternatives you've considered, if relevant</h4> <p dir="auto">Althernatives were <code class="notranslate">OneHotEncoder</code> or <code class="notranslate">Dummy</code> variables but they will make the algorithm slower</p>
<p dir="auto">I propose a <code class="notranslate">__sk_clone__</code> method that <code class="notranslate">clone</code> calls (if the method exist). This way arbitrary objects can define how they want to be cloned. This is similar to mechanism behind <code class="notranslate">__sk_is_fitted__</code> + <code class="notranslate">check_is_fitted</code>.</p> <h3 dir="auto">Purpose</h3> <p dir="auto">There are PR that run into issues with <code class="notranslate">clone</code>, and it would be nice to allow the <code class="notranslate">estimator</code> to define how it wants to be cloned.</p> <ol dir="auto"> <li>Metadata routing: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1021222017" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/21284" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/21284/hovercard" href="https://github.com/scikit-learn/scikit-learn/pull/21284">#21284</a> Needed to change <code class="notranslate">clone</code> to copy an private attribute that is configured outside of <code class="notranslate">__init__</code></li> <li>Search spaces in estimator: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1063020130" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/21784" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/21784/hovercard?comment_id=979284821&amp;comment_type=issue_comment" href="https://github.com/scikit-learn/scikit-learn/pull/21784#issuecomment-979284821">#21784 (comment)</a> the search space itself needs to be copied over when <code class="notranslate">clone</code> gets called.</li> <li>Ability to customize cloning: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="512892023" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/15371" data-hovercard-type="issue" data-hovercard-url="/scikit-learn/scikit-learn/issues/15371/hovercard?comment_id=546655096&amp;comment_type=issue_comment" href="https://github.com/scikit-learn/scikit-learn/issues/15371#issuecomment-546655096">#15371 (comment)</a></li> </ol>
0
<p dir="auto">Hi,</p> <p dir="auto">For a project, I have created a Wizard plugin (the breacrumber is inspired from <a href="http://jsfiddle.net/weswinham/ySfN6/" rel="nofollow">http://jsfiddle.net/weswinham/ySfN6/</a>).</p> <p dir="auto">If you want, you can integrate it.</p> <p dir="auto">Cheers</p> <hr> <p dir="auto">CSS:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" @CHARSET &quot;UTF-8&quot;; .wizard { background-color: white; } .wizard-header a { padding: 10px 12px 10px; margin-right: 5px; background: #efefef; position: relative; display: inline-block; } .wizard-header a:before { width: 0; height: 0; border-top: 20px inset transparent; border-bottom: 20px inset transparent; border-left: 20px solid #fff; position: absolute; content: &quot;&quot;; top: 0; left: 0; } .wizard-header a:after { width: 0; height: 0; border-top: 20px inset transparent; border-bottom: 20px inset transparent; border-left: 20px solid #efefef; position: absolute; content: &quot;&quot;; top: 0; right: -20px; z-index: 2; } .wizard-header a:first-child:before, .wizard-header a:last-child:after { border: none; } .wizard-header a:first-child { -webkit-border-radius: 4px 0 0 4px; -moz-border-radius: 4px 0 0 4px; border-radius: 4px 0 0 4px; } .wizard-header a:last-child { -webkit-border-radius: 0 4px 4px 0; -moz-border-radius: 0 4px 4px 0; border-radius: 0 4px 4px 0; } .wizard-header .badge { margin: 0 5px 0 18px; position: relative; top: -1px; } .wizard-header a:first-child .badge { margin-left: 0; } .wizard-header .active { background: #007ACC; color: #fff; } .wizard-header .active:after { border-left-color: #007ACC; }"><pre class="notranslate"><code class="notranslate"> @CHARSET "UTF-8"; .wizard { background-color: white; } .wizard-header a { padding: 10px 12px 10px; margin-right: 5px; background: #efefef; position: relative; display: inline-block; } .wizard-header a:before { width: 0; height: 0; border-top: 20px inset transparent; border-bottom: 20px inset transparent; border-left: 20px solid #fff; position: absolute; content: ""; top: 0; left: 0; } .wizard-header a:after { width: 0; height: 0; border-top: 20px inset transparent; border-bottom: 20px inset transparent; border-left: 20px solid #efefef; position: absolute; content: ""; top: 0; right: -20px; z-index: 2; } .wizard-header a:first-child:before, .wizard-header a:last-child:after { border: none; } .wizard-header a:first-child { -webkit-border-radius: 4px 0 0 4px; -moz-border-radius: 4px 0 0 4px; border-radius: 4px 0 0 4px; } .wizard-header a:last-child { -webkit-border-radius: 0 4px 4px 0; -moz-border-radius: 0 4px 4px 0; border-radius: 0 4px 4px 0; } .wizard-header .badge { margin: 0 5px 0 18px; position: relative; top: -1px; } .wizard-header a:first-child .badge { margin-left: 0; } .wizard-header .active { background: #007ACC; color: #fff; } .wizard-header .active:after { border-left-color: #007ACC; } </code></pre></div> <hr> <p dir="auto">JS:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" /** * Wizard plugin for Boostrap * Require the carousel plugin * * An example of HTML to use it: * &lt;div id=&quot;wizard&quot; data-role=&quot;wizard&quot;&gt; &lt;div class=&quot;active&quot; data-title=&quot;step 1&quot;&gt; Your content &lt;/div&gt; &lt;div data-title=&quot;step 2&quot;&gt; Your content &lt;/div&gt; &lt;/div&gt; * * Another one: * &lt;div id=&quot;wizard&quot; data-role=&quot;wizard&quot;&gt; &lt;div class=&quot;active&quot; data-title=&quot;step 1&quot;&gt; Your content &lt;/div&gt; &lt;div data-title=&quot;step 2&quot;&gt; Your content &lt;/div&gt; &lt;/div&gt; * * And an example of JavaScript: $(&quot;#wizard&quot;).wizard({ validNextStep: function(index) { return true; }, changeStep: function(index) { alert(&quot;Step &quot; + (index + 1)) }, finish: function(event) { event.preventDefault(); alert(&quot;Finished !&quot;) } }); */ !function($) { &quot;use strict&quot;; /* WIZARD PUBLIC CLASS DEFINITION * ============================== */ var Wizard = function(element, options) { var self = this; // Base this.$element = $(element); this.options = $.extend({}, $.fn.wizard.defaults, options); this.idx = 0; this.maxIdx = 0; // Get some informations this.$items = $(&quot;&gt; div[data-title]&quot;, this.$element); this.maxIdx = this.$items.length - 1; // Initialization this.$element.find(&quot;&gt; *&quot;).wrapAll(&quot;&lt;div class='carousel slide' data-interval='false'&gt;&lt;/div&gt;&quot;); this.$element.addClass(&quot;wizard thumbnail&quot;); this.$base = this.$element.find(&quot;&gt; div.carousel&quot;); this.$base.carousel({ interval: false }); if(this.$element.attr(&quot;id&quot;)){ this.$base.attr(&quot;id&quot;, &quot;wizard-&quot; + this.$element.attr(&quot;id&quot;)); } else { this.$base.attr(&quot;id&quot;, &quot;wizard-&quot; + new Date().getTime() + &quot;-&quot; + window.parseInt((Math.random() * 1000))); } // Wizard header this.$wizardHeader = $(&quot;&lt;div class='wizard-header'&gt;&lt;/div&gt;&quot;); this.$items.each(function(index, item){ var $item = $(item), active = index == 0; $item.addClass(&quot;item&quot;); active &amp;&amp; $item.addClass(&quot;active&quot;); self.$wizardHeader.append(&quot;&lt;a href='#'&quot; + (active ? &quot; class='active'&quot; : &quot;&quot;) + &quot; data-index='&quot; + index + &quot;'&gt;&lt;span class='badge&quot; + (active ? &quot;&quot; : &quot; badge-inverse&quot;) + &quot;'&gt;&quot; + (index + 1) + &quot;&lt;/span&gt; &quot; + $item.data(&quot;title&quot;) + &quot;&lt;/a&gt;&quot;); }); this.$base.before(this.$wizardHeader); this.$base.before(&quot;&lt;br /&gt;&quot;); // Wizard core this.$items.wrapAll(&quot;&lt;div class='carousel-inner'&gt;&lt;/div&gt;&quot;); this.$base.append(&quot;&lt;br /&gt;&quot;); this.$previous = $(&quot;&lt;a class='btn btn-inverse' data-slide='prev'&gt;&lt;i class='icon-chevron-left icon-white'&gt;&lt;/i&gt; &quot; + this.options.previousText + &quot;&lt;/a&gt;&quot;); this.$previous.attr(&quot;href&quot;, &quot;#&quot; + this.$base.attr(&quot;id&quot;)); this.$previous.css(&quot;visibility&quot;, &quot;hidden&quot;); this.$base.append(this.$previous); this.$next = $(&quot;&lt;a class='btn btn-inverse' data-slide='next'&gt;&lt;i class='icon-chevron-right icon-white'&gt;&lt;/i&gt; &quot; + this.options.nextText + &quot;&lt;/a&gt;&quot;); this.$next.attr(&quot;href&quot;, &quot;#&quot; + this.$base.attr(&quot;id&quot;)); this.$base.append(this.$next); this.$finish = $(&quot;&lt;button type='submit' class='btn btn-primary'&gt;&quot; + this.options.finishText + &quot;&lt;/button&gt;&quot;); this.$finish.css(&quot;visibility&quot;, &quot;hidden&quot;); this.$finish.on(&quot;click&quot;, this.options.finish); this.$base.append(this.$finish); // Listeners this.$wizardHeader.on(&quot;click&quot;, &quot;&gt; a&quot;, function(event){ event.preventDefault(); self.index($(this).data(&quot;index&quot;)); }); this.$base.on(&quot;click&quot;, &quot;&gt; a&quot;, function(event){ event.preventDefault(); $(this).data(&quot;slide&quot;) == &quot;next&quot; ? self.next() : self.prev(); }); }; Wizard.prototype.index = function(index){ if(index != null &amp;&amp; index &gt;= 0 &amp;&amp; index &lt;= this.maxIdx){ this.$base.carousel(index); this.idx = index; this.update(); $.isFunction(this.options.changeStep) &amp;&amp; this.options.changeStep(this.idx); } return this.idx; }; Wizard.prototype.update = function() { if(this.idx == 0){ this.$previous.css(&quot;visibility&quot;, &quot;hidden&quot;); this.$next.css(&quot;visibility&quot;, &quot;visible&quot;); this.$finish.css(&quot;visibility&quot;, &quot;hidden&quot;); } else if(this.idx == this.maxIdx){ this.$previous.css(&quot;visibility&quot;, &quot;visible&quot;); this.$next.css(&quot;visibility&quot;, &quot;hidden&quot;); this.$finish.css(&quot;visibility&quot;, &quot;visible&quot;); } else { this.$previous.css(&quot;visibility&quot;, &quot;visible&quot;); this.$next.css(&quot;visibility&quot;, &quot;visible&quot;); this.$finish.css(&quot;visibility&quot;, &quot;hidden&quot;); } $(&quot;.active&quot;, this.$wizardHeader).removeClass(&quot;active&quot;); $(&quot;a:eq(&quot; + this.idx + &quot;)&quot;, this.$wizardHeader).addClass(&quot;active&quot;); }; Wizard.prototype.prev = function() { if(this.idx &gt; 0){ this.$base.carousel(&quot;prev&quot;); this.idx--; this.update(); $.isFunction(this.options.changeStep) &amp;&amp; this.options.changeStep(this.idx); } }; Wizard.prototype.next = function() { if(this.idx &lt;= this.maxIdx &amp;&amp; this.options.validNextStep(this.idx)){ this.$base.carousel(&quot;next&quot;); this.idx++; this.update(); $.isFunction(this.options.changeStep) &amp;&amp; this.options.changeStep(this.idx); } }; Wizard.prototype.option = function(options){ for(var i in options) { switch(i){ case &quot;nextText&quot;: this.$next.text(options[i]); case &quot;previousText&quot;: this.$previous.text(options[i]); case &quot;finishText&quot;: this.$finish.text(options[i]); case &quot;finish&quot;: this.$finish.off(&quot;click&quot;, this.options.finish); this.$finish.on(&quot;click&quot;, options[i]); default: this.options[i] = options[i]; break; } } }; /* WIZARD PLUGIN DEFINITION * ======================== */ $.fn.wizard = function(opts) { return this.each(function() { var $this = $(this), data = $this.data(&quot;wizard&quot;), options = typeof opts == &quot;object&quot; &amp;&amp; opts; if(data){ data.option(options) } else { $this.data(&quot;wizard&quot;, new $.fn.wizard.Constructor(this, options)); } }); }; $.fn.wizard.defaults = { nextText: &quot;Next&quot;, previousText: &quot;Previous&quot;, finishText: &quot;Finish&quot;, validNextStep: function(index) { return true; }, changeStep: function(index) {}, finish: function(event) {} }; $.fn.wizard.Constructor = Wizard; /* WIZARD DATA-API * =============== */ $(function() { $(&quot;body&quot;).find(&quot;div[data-role=wizard], div.wizard&quot;).wizard(); }); }(window.jQuery);"><pre class="notranslate"><code class="notranslate"> /** * Wizard plugin for Boostrap * Require the carousel plugin * * An example of HTML to use it: * &lt;div id="wizard" data-role="wizard"&gt; &lt;div class="active" data-title="step 1"&gt; Your content &lt;/div&gt; &lt;div data-title="step 2"&gt; Your content &lt;/div&gt; &lt;/div&gt; * * Another one: * &lt;div id="wizard" data-role="wizard"&gt; &lt;div class="active" data-title="step 1"&gt; Your content &lt;/div&gt; &lt;div data-title="step 2"&gt; Your content &lt;/div&gt; &lt;/div&gt; * * And an example of JavaScript: $("#wizard").wizard({ validNextStep: function(index) { return true; }, changeStep: function(index) { alert("Step " + (index + 1)) }, finish: function(event) { event.preventDefault(); alert("Finished !") } }); */ !function($) { "use strict"; /* WIZARD PUBLIC CLASS DEFINITION * ============================== */ var Wizard = function(element, options) { var self = this; // Base this.$element = $(element); this.options = $.extend({}, $.fn.wizard.defaults, options); this.idx = 0; this.maxIdx = 0; // Get some informations this.$items = $("&gt; div[data-title]", this.$element); this.maxIdx = this.$items.length - 1; // Initialization this.$element.find("&gt; *").wrapAll("&lt;div class='carousel slide' data-interval='false'&gt;&lt;/div&gt;"); this.$element.addClass("wizard thumbnail"); this.$base = this.$element.find("&gt; div.carousel"); this.$base.carousel({ interval: false }); if(this.$element.attr("id")){ this.$base.attr("id", "wizard-" + this.$element.attr("id")); } else { this.$base.attr("id", "wizard-" + new Date().getTime() + "-" + window.parseInt((Math.random() * 1000))); } // Wizard header this.$wizardHeader = $("&lt;div class='wizard-header'&gt;&lt;/div&gt;"); this.$items.each(function(index, item){ var $item = $(item), active = index == 0; $item.addClass("item"); active &amp;&amp; $item.addClass("active"); self.$wizardHeader.append("&lt;a href='#'" + (active ? " class='active'" : "") + " data-index='" + index + "'&gt;&lt;span class='badge" + (active ? "" : " badge-inverse") + "'&gt;" + (index + 1) + "&lt;/span&gt; " + $item.data("title") + "&lt;/a&gt;"); }); this.$base.before(this.$wizardHeader); this.$base.before("&lt;br /&gt;"); // Wizard core this.$items.wrapAll("&lt;div class='carousel-inner'&gt;&lt;/div&gt;"); this.$base.append("&lt;br /&gt;"); this.$previous = $("&lt;a class='btn btn-inverse' data-slide='prev'&gt;&lt;i class='icon-chevron-left icon-white'&gt;&lt;/i&gt; " + this.options.previousText + "&lt;/a&gt;"); this.$previous.attr("href", "#" + this.$base.attr("id")); this.$previous.css("visibility", "hidden"); this.$base.append(this.$previous); this.$next = $("&lt;a class='btn btn-inverse' data-slide='next'&gt;&lt;i class='icon-chevron-right icon-white'&gt;&lt;/i&gt; " + this.options.nextText + "&lt;/a&gt;"); this.$next.attr("href", "#" + this.$base.attr("id")); this.$base.append(this.$next); this.$finish = $("&lt;button type='submit' class='btn btn-primary'&gt;" + this.options.finishText + "&lt;/button&gt;"); this.$finish.css("visibility", "hidden"); this.$finish.on("click", this.options.finish); this.$base.append(this.$finish); // Listeners this.$wizardHeader.on("click", "&gt; a", function(event){ event.preventDefault(); self.index($(this).data("index")); }); this.$base.on("click", "&gt; a", function(event){ event.preventDefault(); $(this).data("slide") == "next" ? self.next() : self.prev(); }); }; Wizard.prototype.index = function(index){ if(index != null &amp;&amp; index &gt;= 0 &amp;&amp; index &lt;= this.maxIdx){ this.$base.carousel(index); this.idx = index; this.update(); $.isFunction(this.options.changeStep) &amp;&amp; this.options.changeStep(this.idx); } return this.idx; }; Wizard.prototype.update = function() { if(this.idx == 0){ this.$previous.css("visibility", "hidden"); this.$next.css("visibility", "visible"); this.$finish.css("visibility", "hidden"); } else if(this.idx == this.maxIdx){ this.$previous.css("visibility", "visible"); this.$next.css("visibility", "hidden"); this.$finish.css("visibility", "visible"); } else { this.$previous.css("visibility", "visible"); this.$next.css("visibility", "visible"); this.$finish.css("visibility", "hidden"); } $(".active", this.$wizardHeader).removeClass("active"); $("a:eq(" + this.idx + ")", this.$wizardHeader).addClass("active"); }; Wizard.prototype.prev = function() { if(this.idx &gt; 0){ this.$base.carousel("prev"); this.idx--; this.update(); $.isFunction(this.options.changeStep) &amp;&amp; this.options.changeStep(this.idx); } }; Wizard.prototype.next = function() { if(this.idx &lt;= this.maxIdx &amp;&amp; this.options.validNextStep(this.idx)){ this.$base.carousel("next"); this.idx++; this.update(); $.isFunction(this.options.changeStep) &amp;&amp; this.options.changeStep(this.idx); } }; Wizard.prototype.option = function(options){ for(var i in options) { switch(i){ case "nextText": this.$next.text(options[i]); case "previousText": this.$previous.text(options[i]); case "finishText": this.$finish.text(options[i]); case "finish": this.$finish.off("click", this.options.finish); this.$finish.on("click", options[i]); default: this.options[i] = options[i]; break; } } }; /* WIZARD PLUGIN DEFINITION * ======================== */ $.fn.wizard = function(opts) { return this.each(function() { var $this = $(this), data = $this.data("wizard"), options = typeof opts == "object" &amp;&amp; opts; if(data){ data.option(options) } else { $this.data("wizard", new $.fn.wizard.Constructor(this, options)); } }); }; $.fn.wizard.defaults = { nextText: "Next", previousText: "Previous", finishText: "Finish", validNextStep: function(index) { return true; }, changeStep: function(index) {}, finish: function(event) {} }; $.fn.wizard.Constructor = Wizard; /* WIZARD DATA-API * =============== */ $(function() { $("body").find("div[data-role=wizard], div.wizard").wizard(); }); }(window.jQuery); </code></pre></div>
<p dir="auto">It would be great if you could add a progress tracker navigation device to your supported styles / examples.</p> <p dir="auto">These are now pretty common place navigation items and I would think that other people would want this too.</p> <p dir="auto">I've subverted a 'pager' for this purpose with some custom styles. But it still doesn't feel right.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/fed69020a338f7b7b1d9c74418f4c2116afc4b88c8f2915173324b1a0297648e/687474703a2f2f696d67686f7374722e6d652f696d616765732f4e6879624b2e706e67"><img src="https://camo.githubusercontent.com/fed69020a338f7b7b1d9c74418f4c2116afc4b88c8f2915173324b1a0297648e/687474703a2f2f696d67686f7374722e6d652f696d616765732f4e6879624b2e706e67" alt="Progress Tracker" data-canonical-src="http://imghostr.me/images/NhybK.png" style="max-width: 100%;"></a></p> <p dir="auto">NB Some more examples</p> <p dir="auto"><a href="http://www.smashingmagazine.com/2010/01/15/progress-trackers-in-web-design-examples-and-best-design-practices/" rel="nofollow">http://www.smashingmagazine.com/2010/01/15/progress-trackers-in-web-design-examples-and-best-design-practices/</a></p>
1
<p dir="auto">It would be great to have a way to access the values in:</p> <p dir="auto"><code class="notranslate">#[link(name = "blob", vers = "1.0", author = "foo")];</code></p> <p dir="auto">To print usage info in executables without duplicating this info.</p>
<p dir="auto">I'm going to naively suggest this because it seems like a better idea than making a copy of the whole <code class="notranslate">str</code> library for things that return <code class="notranslate">@str</code>. Now people can tell me why that's a bad idea :-)</p>
0
<p dir="auto">It seems like <code class="notranslate">google/roberta2roberta_L-24_wikisplit</code> should be pre-processed differently than originally thought:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained(&quot;google/roberta2roberta_L-24_wikisplit&quot;) model = AutoModelForSeq2SeqLM.from_pretrained(&quot;google/roberta2roberta_L-24_wikisplit&quot;) long_sentence = &quot;&quot;&quot;Due to the hurricane, Lobsterfest has been canceled, making Bob very happy about it and he decides to open Bob 's Burgers for customers who were planning on going to Lobsterfest.&quot;&quot;&quot; input_ids = tokenizer(long_sentence, return_tensors=&quot;pt&quot;).input_ids output_ids = model.generate(input_ids)[0] print(tokenizer.decode(output_ids, skip_special_tokens=True)) # should output # Due Due hurricane, Lobsterfest has been canceled, making Bob very happy about it. He decides to open B # ob's Burgers for customers who were planning on going to Lobsterfest.com."><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">transformers</span> <span class="pl-k">import</span> <span class="pl-v">AutoTokenizer</span>, <span class="pl-v">AutoModelForSeq2SeqLM</span> <span class="pl-s1">tokenizer</span> <span class="pl-c1">=</span> <span class="pl-v">AutoTokenizer</span>.<span class="pl-en">from_pretrained</span>(<span class="pl-s">"google/roberta2roberta_L-24_wikisplit"</span>) <span class="pl-s1">model</span> <span class="pl-c1">=</span> <span class="pl-v">AutoModelForSeq2SeqLM</span>.<span class="pl-en">from_pretrained</span>(<span class="pl-s">"google/roberta2roberta_L-24_wikisplit"</span>) <span class="pl-s1">long_sentence</span> <span class="pl-c1">=</span> <span class="pl-s">"""Due to the hurricane, Lobsterfest has been canceled, making Bob very happy about it and he decides to open Bob 's Burgers for customers who were planning on going to Lobsterfest."""</span> <span class="pl-s1">input_ids</span> <span class="pl-c1">=</span> <span class="pl-en">tokenizer</span>(<span class="pl-s1">long_sentence</span>, <span class="pl-s1">return_tensors</span><span class="pl-c1">=</span><span class="pl-s">"pt"</span>).<span class="pl-s1">input_ids</span> <span class="pl-s1">output_ids</span> <span class="pl-c1">=</span> <span class="pl-s1">model</span>.<span class="pl-en">generate</span>(<span class="pl-s1">input_ids</span>)[<span class="pl-c1">0</span>] <span class="pl-en">print</span>(<span class="pl-s1">tokenizer</span>.<span class="pl-en">decode</span>(<span class="pl-s1">output_ids</span>, <span class="pl-s1">skip_special_tokens</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)) <span class="pl-c"># should output</span> <span class="pl-c"># Due Due hurricane, Lobsterfest has been canceled, making Bob very happy about it. He decides to open B</span> <span class="pl-c"># ob's Burgers for customers who were planning on going to Lobsterfest.com.</span></pre></div> <p dir="auto">yields a weird word duplication bug, whereas:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained(&quot;google/roberta2roberta_L-24_wikisplit&quot;) model = AutoModelForSeq2SeqLM.from_pretrained(&quot;google/roberta2roberta_L-24_wikisplit&quot;) long_sentence = &quot;&quot;&quot;Due to the hurricane, Lobsterfest has been canceled, making Bob very happy about it and he decides to open Bob 's Burgers for customers who were planning on going to Lobsterfest.&quot;&quot;&quot; input_ids = tokenizer(tokenizer.bos_token + long_sentence + tokenizer.eos_token, return_tensors=&quot;pt&quot;).input_ids output_ids = model.generate(input_ids)[0] print(tokenizer.decode(output_ids, skip_special_tokens=True)) # should output # Due to the hurricane, Lobsterfest has been canceled, making Bob very happy about it. He decides to open Bob's Burgers for customers who were planning on going to Lobsterfest. "><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">transformers</span> <span class="pl-k">import</span> <span class="pl-v">AutoTokenizer</span>, <span class="pl-v">AutoModelForSeq2SeqLM</span> <span class="pl-s1">tokenizer</span> <span class="pl-c1">=</span> <span class="pl-v">AutoTokenizer</span>.<span class="pl-en">from_pretrained</span>(<span class="pl-s">"google/roberta2roberta_L-24_wikisplit"</span>) <span class="pl-s1">model</span> <span class="pl-c1">=</span> <span class="pl-v">AutoModelForSeq2SeqLM</span>.<span class="pl-en">from_pretrained</span>(<span class="pl-s">"google/roberta2roberta_L-24_wikisplit"</span>) <span class="pl-s1">long_sentence</span> <span class="pl-c1">=</span> <span class="pl-s">"""Due to the hurricane, Lobsterfest has been canceled, making Bob very happy about it and he decides to open Bob 's Burgers for customers who were planning on going to Lobsterfest."""</span> <span class="pl-s1">input_ids</span> <span class="pl-c1">=</span> <span class="pl-en">tokenizer</span>(<span class="pl-s1">tokenizer</span>.<span class="pl-s1">bos_token</span> <span class="pl-c1">+</span> <span class="pl-s1">long_sentence</span> <span class="pl-c1">+</span> <span class="pl-s1">tokenizer</span>.<span class="pl-s1">eos_token</span>, <span class="pl-s1">return_tensors</span><span class="pl-c1">=</span><span class="pl-s">"pt"</span>).<span class="pl-s1">input_ids</span> <span class="pl-s1">output_ids</span> <span class="pl-c1">=</span> <span class="pl-s1">model</span>.<span class="pl-en">generate</span>(<span class="pl-s1">input_ids</span>)[<span class="pl-c1">0</span>] <span class="pl-en">print</span>(<span class="pl-s1">tokenizer</span>.<span class="pl-en">decode</span>(<span class="pl-s1">output_ids</span>, <span class="pl-s1">skip_special_tokens</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)) <span class="pl-c"># should output</span> <span class="pl-c"># Due to the hurricane, Lobsterfest has been canceled, making Bob very happy about it. He decides to open Bob's Burgers for customers who were planning on going to Lobsterfest. </span></pre></div> <p dir="auto">yields good results.<br> Notice the difference of<br> <code class="notranslate">input_ids = tokenizer(tokenizer.bos_token + long_sentence + tokenizer.eos_token, return_tensors="pt").input_ids</code> between code sample 1 and 2.</p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/patrickvonplaten/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/patrickvonplaten">@patrickvonplaten</a></p> <p dir="auto">Wait for author's (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/shashiongithub/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/shashiongithub">@shashiongithub</a>) answer before changing code example.</p>
<h3 dir="auto">System Info</h3> <ul dir="auto"> <li><code class="notranslate">transformers</code> version: 4.28.0.dev0</li> <li>Platform: Linux-4.15.0-175-generic-x86_64-with-glibc2.27</li> <li>Python version: 3.10.10</li> <li>Huggingface_hub version: 0.13.4</li> <li>Safetensors version: not installed</li> <li>PyTorch version (GPU?): 1.12.0 (True)</li> <li>Tensorflow version (GPU?): not installed (NA)</li> <li>Flax version (CPU?/GPU?/TPU?): not installed (NA)</li> <li>Jax version: not installed</li> <li>JaxLib version: not installed</li> <li>Using GPU in script?: </li> <li>Using distributed or parallel set-up in script?: </li> </ul> <h3 dir="auto">Who can help?</h3> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/sgugger/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/sgugger">@sgugger</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/stas00/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/stas00">@stas00</a></p> <h3 dir="auto">Information</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> The official example scripts</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> My own modified scripts</li> </ul> <h3 dir="auto">Tasks</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> An officially supported task in the <code class="notranslate">examples</code> folder (such as GLUE/SQuAD, ...)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> My own task or dataset (give details below)</li> </ul> <h3 dir="auto">Reproduction</h3> <p dir="auto">I am training GPT on 2 nodes, each with 8 GPUs currently. I used the <code class="notranslate">Trainer</code> API provided by huggingface for training. In addition, I used Deepspeed's <code class="notranslate">ZeRO3</code> strategy. I have successfully start training, but there are the following issues in the output log:</p> <ol dir="auto"> <li>Due to the presence of two nodes, there will be two rows of output at a time, each from a different node. I observed that the output of two nodes is the same, and the following is an example. Do I only need to focus on one line of output?(in other words, one of these two lines is redundant.) Or do these two lines mean that two machines have fed the same data and print the same output? <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="node1: {'loss': 1.4406, 'learning_rate': 2e-05, 'epoch': 0.17} node2: {'loss': 1.4406, 'learning_rate': 2e-05, 'epoch': 0.17} node1: {'loss': 1.4457, 'learning_rate': 2e-05, 'epoch': 0.18} node2: {'loss': 1.4457, 'learning_rate': 2e-05, 'epoch': 0.18}"><pre class="notranslate">node1: {<span class="pl-s"><span class="pl-pds">'</span>loss<span class="pl-pds">'</span></span>: 1.4406, <span class="pl-s"><span class="pl-pds">'</span>learning_rate<span class="pl-pds">'</span></span>: 2e-05, <span class="pl-s"><span class="pl-pds">'</span>epoch<span class="pl-pds">'</span></span>: 0.17} node2: {<span class="pl-s"><span class="pl-pds">'</span>loss<span class="pl-pds">'</span></span>: 1.4406, <span class="pl-s"><span class="pl-pds">'</span>learning_rate<span class="pl-pds">'</span></span>: 2e-05, <span class="pl-s"><span class="pl-pds">'</span>epoch<span class="pl-pds">'</span></span>: 0.17} node1: {<span class="pl-s"><span class="pl-pds">'</span>loss<span class="pl-pds">'</span></span>: 1.4457, <span class="pl-s"><span class="pl-pds">'</span>learning_rate<span class="pl-pds">'</span></span>: 2e-05, <span class="pl-s"><span class="pl-pds">'</span>epoch<span class="pl-pds">'</span></span>: 0.18} node2: {<span class="pl-s"><span class="pl-pds">'</span>loss<span class="pl-pds">'</span></span>: 1.4457, <span class="pl-s"><span class="pl-pds">'</span>learning_rate<span class="pl-pds">'</span></span>: 2e-05, <span class="pl-s"><span class="pl-pds">'</span>epoch<span class="pl-pds">'</span></span>: 0.18}</pre></div> </li> <li>There will be a progress bar during single node training, which should be performed using <code class="notranslate">tqdm</code>. However, there is no progress bar during the training.</li> <li>In the training command, I used <code class="notranslate">--report_to "tensorboard"</code>, but I did not find any output in <code class="notranslate">tensorboard</code>.</li> </ol> <p dir="auto">Here is my command to start training.</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="deepspeed --num_gpus 8 --num_nodes 2 --hostfile=host.txt train.py \ --model_name_or_path /path/to/model \ --data_path /path/to/data \ --output_dir /path/to/output \ --num_train_epochs 1 \ --per_device_train_batch_size 32 \ --per_device_eval_batch_size 1 \ --gradient_accumulation_steps 1 \ --evaluation_strategy &quot;no&quot; \ --save_strategy &quot;steps&quot; \ --save_steps 100 \ --save_total_limit 2 \ --learning_rate 2e-5 \ --logging_steps 1 \ --report_to &quot;tensorboard&quot; \ --gradient_checkpointing True \ --deepspeed configs/deepspeed_config.json \ --fp16 True"><pre class="notranslate">deepspeed --num_gpus 8 --num_nodes 2 --hostfile=host.txt train.py \ --model_name_or_path /path/to/model \ --data_path /path/to/data \ --output_dir /path/to/output \ --num_train_epochs 1 \ --per_device_train_batch_size 32 \ --per_device_eval_batch_size 1 \ --gradient_accumulation_steps 1 \ --evaluation_strategy <span class="pl-s"><span class="pl-pds">"</span>no<span class="pl-pds">"</span></span> \ --save_strategy <span class="pl-s"><span class="pl-pds">"</span>steps<span class="pl-pds">"</span></span> \ --save_steps 100 \ --save_total_limit 2 \ --learning_rate 2e-5 \ --logging_steps 1 \ --report_to <span class="pl-s"><span class="pl-pds">"</span>tensorboard<span class="pl-pds">"</span></span> \ --gradient_checkpointing True \ --deepspeed configs/deepspeed_config.json \ --fp16 True</pre></div> <h3 dir="auto">Expected behavior</h3> <p dir="auto">I hope you can provide answers to the above three questions. Thanks!</p>
0
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=hanswesterbeek" rel="nofollow">Hans Westerbeek</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-4335?redirect=false" rel="nofollow">SPR-4335</a></strong> and commented</p> <p dir="auto">This issue is identical to: <a href="http://jira.springframework.org/browse/SPR-4235" rel="nofollow">http://jira.springframework.org/browse/SPR-4235</a> except the fix has not been propagated to portlet-mvc.</p> <p dir="auto">The problem finally affects the user by making it impossible to let SimpleMappingingExceptionResolver map the configurated error view. Instead it falls back to the default error view.</p> <p dir="auto">Stacktrace:</p> <p dir="auto">2008-01-15 10:18:24,646 WARN [org.springframework.web.portlet.DispatcherPortlet] - &lt;Handler execution resulted in exception - forwarding to resolved error view&gt;<br> java.lang.IllegalStateException: Unexpected exception thrown<br> at org.springframework.util.ReflectionUtils.handleUnexpectedException(ReflectionUtils.java:290)<br> at org.springframework.util.ReflectionUtils.rethrowRuntimeException(ReflectionUtils.java:260)<br> at org.springframework.util.ReflectionUtils.handleInvocationTargetException(ReflectionUtils.java:239)<br> at org.springframework.web.portlet.mvc.annotation.AnnotationMethodHandlerAdapter.doHandle(AnnotationMethodHandlerAdapter.java:233)<br> at org.springframework.web.portlet.mvc.annotation.AnnotationMethodHandlerAdapter.handleAction(AnnotationMethodHandlerAdapter.java:148)<br> at org.springframework.web.portlet.DispatcherPortlet.doActionService(DispatcherPortlet.java:694)<br> at org.springframework.web.portlet.FrameworkPortlet.processRequest(FrameworkPortlet.java:484)<br> at org.springframework.web.portlet.FrameworkPortlet.processAction(FrameworkPortlet.java:466)<br> at org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.java:218)<br> at org.apache.pluto.core.PortletServlet.doGet(PortletServlet.java:139)<br> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)<br> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)<br> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)<br> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)<br> at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)<br> at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)<br> at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)<br> at org.apache.pluto.core.DefaultPortletInvokerService.invoke(DefaultPortletInvokerService.java:167)<br> at org.apache.pluto.core.DefaultPortletInvokerService.action(DefaultPortletInvokerService.java:85)<br> at org.apache.pluto.core.PortletContainerImpl.doAction(PortletContainerImpl.java:219)<br> at org.apache.pluto.driver.PortalDriverServlet.doGet(PortalDriverServlet.java:112)<br> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)<br> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)<br> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)<br> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)<br> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)<br> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)<br> at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)<br> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)<br> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)<br> at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:419)<br> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)<br> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)<br> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)<br> at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)<br> at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)<br> at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)<br> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)<br> at java.lang.Thread.run(Thread.java:619)<br> Caused by: nl.neteffect.dtg.datafabriek.service.NoMoreContactsLeftException<br> at nl.neteffect.dtg.datafabriek.service.CustomerServiceImpl.popContact(CustomerServiceImpl.java:199)<br> at sun.reflect.GeneratedMethodAccessor248.invoke(Unknown Source)<br> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br> at java.lang.reflect.Method.invoke(Method.java:597)<br> at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:301)<br> at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)<br> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)<br> at org.springframework.remoting.support.RemoteInvocationTraceInterceptor.invoke(RemoteInvocationTraceInterceptor.java:70)<br> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)<br> at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)<br> at $Proxy18.popContact(Unknown Source)<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:597)<br> at org.springframework.remoting.support.RemoteInvocation.invoke(RemoteInvocation.java:205)<br> at org.springframework.remoting.support.DefaultRemoteInvocationExecutor.invoke(DefaultRemoteInvocationExecutor.java:38)<br> at org.springframework.remoting.support.RemoteInvocationBasedExporter.invoke(RemoteInvocationBasedExporter.java:78)<br> at org.springframework.remoting.support.RemoteInvocationBasedExporter.invokeAndCreateResult(RemoteInvocationBasedExporter.java:114)<br> at org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter.handleRequest(HttpInvokerServiceExporter.java:74)<br> at org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter.handle(HttpRequestHandlerAdapter.java:49)<br> at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:874)<br> at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:808)<br> at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:476)<br> at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:441)<br> at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)<br> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)<br> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)<br> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)<br> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)<br> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)<br> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)<br> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)<br> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)<br> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)<br> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)<br> at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)<br> at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)<br> at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)<br> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)<br> at java.lang.Thread.run(Thread.java:619)<br> at org.springframework.remoting.support.RemoteInvocationUtils.fillInClientStackTraceIfPossible(RemoteInvocationUtils.java:47)<br> at org.springframework.remoting.support.RemoteInvocationResult.recreate(RemoteInvocationResult.java:115)<br> at org.springframework.remoting.support.RemoteInvocationBasedAccessor.recreateRemoteInvocationResult(RemoteInvocationBasedAccessor.java:85)<br> at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.invoke(HttpInvokerClientInterceptor.java:163)<br> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)<br> at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)<br> at $Proxy4.popContact(Unknown Source)<br> at nl.neteffect.dtg.promopages.backend.controller.DataEntryController.selectContact(DataEntryController.java:115)<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:597)<br> at org.springframework.web.portlet.mvc.annotation.AnnotationMethodHandlerAdapter.doHandle(AnnotationMethodHandlerAdapter.java:230)<br> ... 35 more</p> <hr> <p dir="auto"><strong>Affects:</strong> 2.5.1</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="398083721" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8913" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8913/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8913">#8913</a> [AnnotationMethodHandlerAdapter] Improve handling of InvocationTargetExceptions (<em><strong>"duplicates"</strong></em>)</li> </ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=jtuchscherer" rel="nofollow">Johannes Tuchscherer</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8319?redirect=false" rel="nofollow">SPR-8319</a></strong> and commented</p> <p dir="auto">When there are a lot of requests hitting a request method with parameter annotations we occasionally get a deadlock in the jvm (see below for stack trace). I think this could be easily fixed in the org.springframework.core.HandlerMethodInvoker, if - instead of creating a new instance of MethodParameter every time (line 243) - the methodParameters and their annotations would be cached. This would also give us a nice performance gain, since we don't need to lookup annotations every time the request method is called.</p> <p dir="auto">java.lang.Thread.State: BLOCKED (on object monitor)<br> at java.lang.reflect.Proxy.getProxyClass(Proxy.java:417) - waiting to lock &lt;0x00000000ac1166d0&gt; (a java.util.HashMap)<br> at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)<br> at sun.reflect.annotation.AnnotationParser.annotationForMap(AnnotationParser.java:239)<br> at sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:229)<br> at sun.reflect.annotation.AnnotationParser.parseParameterAnnotations2(AnnotationParser.java:133)<br> at sun.reflect.annotation.AnnotationParser.parseParameterAnnotations(AnnotationParser.java:110)<br> at java.lang.reflect.Method.getParameterAnnotations(Method.java:751)<br> at org.springframework.core.MethodParameter.getParameterAnnotations(MethodParameter.java:232)<br> at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.resolveHandlerArguments(HandlerMethodInvoker.java:246)<br> at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:169)<br> at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:421)<br> at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:409)<br> at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:771)<br> at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)<br> at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)<br> at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)<br> at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)</p> <p dir="auto">Blocked by:</p> <p dir="auto">java.lang.Thread.State: BLOCKED (on object monitor)<br> at java.util.AbstractList.iterator(AbstractList.java:273)<br> at java.util.AbstractList.hashCode(AbstractList.java:524)<br> at java.util.HashMap.get(HashMap.java:300)<br> at java.lang.reflect.Proxy.getProxyClass(Proxy.java:426) - locked &lt;0x00000000ac1166d0&gt; (a java.util.HashMap)<br> at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)<br> at sun.reflect.annotation.AnnotationParser.annotationForMap(AnnotationParser.java:239)<br> at sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:229)<br> at sun.reflect.annotation.AnnotationParser.parseParameterAnnotations2(AnnotationParser.java:133)<br> at sun.reflect.annotation.AnnotationParser.parseParameterAnnotations(AnnotationParser.java:110)<br> at java.lang.reflect.Method.getParameterAnnotations(Method.java:751)<br> at org.springframework.core.MethodParameter.getParameterAnnotations(MethodParameter.java:232)<br> at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.resolveHandlerArguments(HandlerMethodInvoker.java:246)<br> at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:169)<br> at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:421)<br> at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:409)<br> at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:771)<br> at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)<br> at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)<br> at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)<br> at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.0.2</p> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398118478" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13936" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13936/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13936">#13936</a> monitor contention at org.springframework.core.MethodParameter.getParameterAnnotations() (<em><strong>"duplicates"</strong></em>)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398153280" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14429" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14429/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14429">#14429</a> Develop ConcurrentReferenceHashMap</li> </ul> <p dir="auto">1 votes, 2 watchers</p>
0
<p dir="auto">For the keyboard manager on remaping shortscuts, it would be really help full if I didn't have to have a modifer key along with another key. For example i'm attempting to remap Alt + Left to F2 however I can't do that as it require a modifer key so I would have to do Alt + F2.</p> <p dir="auto">I did a search the issues and didn't see this so hopefully i'm not opening up a duplicate.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/12942530/88813670-748d8800-d176-11ea-87fb-9e276010de16.png"><img src="https://user-images.githubusercontent.com/12942530/88813670-748d8800-d176-11ea-87fb-9e276010de16.png" alt="image" style="max-width: 100%;"></a></p>
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">Ability to remap a single key (² for example, sleeping in the top left corner of my KB), and assign it for example to alt+space, in order to open powertoys run, or to "open a new terminal", or whatever</p>
1
<p dir="auto"><strong>Describe the bug</strong></p> <p dir="auto">A specific test file (for color space testing) is causing threejs to become unresponsive and take the entire browser with it.</p> <p dir="auto"><strong>To Reproduce</strong></p> <p dir="auto">Steps to reproduce the behavior:</p> <ol dir="auto"> <li>download the attached file<br> <a href="https://github.com/mrdoob/three.js/files/7478938/unlit.color.zip">unlit=color.zip</a></li> <li>open the file in <a href="https://threejs.org/editor/" rel="nofollow">https://threejs.org/editor/</a></li> <li>zoom out until you can see the content</li> <li>note browser is hanging, changing tabs doesn't change that, have to kill browser</li> </ol> <p dir="auto"><strong>Expected behavior</strong></p> <p dir="auto">File loads and displays fast, it's pretty small.</p> <p dir="auto"><strong>Screenshots</strong><br> The file is a test case for textures/colors/vertex colors. It has many small meshes and materials but loads very fast in other systems (e.g. Babylon Sandbox or gltf.report)<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/2693840/140424265-d1a5fda4-43ea-4a37-ac00-32bf45d95e0b.png"><img src="https://user-images.githubusercontent.com/2693840/140424265-d1a5fda4-43ea-4a37-ac00-32bf45d95e0b.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto"><strong>Platform:</strong></p> <ul dir="auto"> <li>Device: Desktop</li> <li>OS: Windows 10</li> <li>Browser: Chrome 95.0.4638.69</li> </ul>
<p dir="auto"><strong>Describe the bug</strong></p> <p dir="auto">This appears to be the core issue behind <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1034512293" data-permission-text="Title is private" data-url="https://github.com/google/model-viewer/issues/2915" data-hovercard-type="issue" data-hovercard-url="/google/model-viewer/issues/2915/hovercard" href="https://github.com/google/model-viewer/issues/2915">google/model-viewer#2915</a></p> <p dir="auto">It seems that something about a recent materials change has caused shader compilation on my PC to take ~10x(!) longer than it used to. If I were to guess at why I'd say that it's probably the DirectX shader compiler hitting a pathological case that wasn't there before and trying to do an insane loop unroll or something of that nature.</p> <p dir="auto"><strong>To Reproduce</strong></p> <p dir="auto">Steps to reproduce the behavior:</p> <ol dir="auto"> <li>git checkout r132</li> <li>Open examples/webgl_animation_keyframes.html</li> <li>Observe load time</li> <li>git checkout r133</li> <li>Refresh examples/webgl_animation_keyframes.html</li> <li>Observe (much longer) load time</li> </ol> <p dir="auto">With r132 I get the following recording from the performance tab in Chrome dev tools (though it's worth noting the same regression is also observable when using Firefox):</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/805273/139484874-de26dba4-16ab-4794-bd41-9c9b328d0201.png"><img width="884" alt="Screenshot 2021-10-29 113147" src="https://user-images.githubusercontent.com/805273/139484874-de26dba4-16ab-4794-bd41-9c9b328d0201.png" style="max-width: 100%;"></a></p> <p dir="auto">You can see that the largest block of work on the main thread takes ~500ms. It bottoms out at a bunch of getProgramInfoLog calls and a couple of texImage2D calls that all take about 20-50ms.</p> <p dir="auto">With r133 the recording looks significantly different. There are multiple calls to getProgramInfoLog that take ~150ms each and one particularly long one that takes 3+ seconds! In total, the block of work that represents to model's upload to the GPU takes nearly 5 seconds to complete, a 10x increase between versions (and consistent with what was seeing.)</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/805273/139485848-3c228c54-2038-4cc2-bf63-b5834814e413.png"><img width="884" alt="Screenshot 2021-10-29 113654" src="https://user-images.githubusercontent.com/805273/139485848-3c228c54-2038-4cc2-bf63-b5834814e413.png" style="max-width: 100%;"></a></p> <p dir="auto"><strong>Platform:</strong></p> <ul dir="auto"> <li>Device: Desktop, Intel Core i7-10700K, Nvidia GTX 1660 Super</li> <li>OS: Windows 11</li> <li>Browser: Chrome Canary 97.0.4685.2, Firefox Nightly 95.0a1</li> <li>Three.js version: r133</li> </ul>
1
<h2 dir="auto">Steps to Reproduce</h2> <p dir="auto">I'm trying to use tabs to navigate between multiple forms, at my first program I used the example at the cookbook, using the default controller. The problem occurs if I tap at the TextField on the first tab, then I go to the last tab and when I return to the first tab my program crashes, showing only a white screen, at my console I receive an huge exception stack.</p> <p dir="auto">The only way I find to solve this problem was create a custom controller with a listener that remove the focus from the forms when navigating between tabs.</p> <h2 dir="auto">My code</h2> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import 'package:dnd_cs/tabs/charInfo.dart'; import 'package:dnd_cs/tabs/charSkills.dart'; import 'package:dnd_cs/tabs/charEquip.dart'; class NewSheetForm extends StatefulWidget { @override _NewSheetFormState createState() =&gt; new _NewSheetFormState(); } class _NewSheetFormState extends State&lt;NewSheetForm&gt; { CharInfo charInfoTab = new CharInfo(); CharSkills charSkillsTab = new CharSkills(); CharEquip charEquipTab = new CharEquip(); @override Widget build(BuildContext context) { return new DefaultTabController( length: 3, child: new Scaffold( appBar: new AppBar( title: new Text('Dados do personagem'), bottom: new TabBar( tabs: [ new Tab( icon: new Icon(Icons.perm_identity), ), new Tab( icon: new Icon(Icons.description), ), new Tab( icon: new Icon(Icons.work), ), ], ), ), body: TabBarView( physics: new NeverScrollableScrollPhysics(), children: [charInfoTab, charSkillsTab, charEquipTab]), ), ); } }"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s">'package:dnd_cs/tabs/charInfo.dart'</span>; <span class="pl-k">import</span> <span class="pl-s">'package:dnd_cs/tabs/charSkills.dart'</span>; <span class="pl-k">import</span> <span class="pl-s">'package:dnd_cs/tabs/charEquip.dart'</span>; <span class="pl-k">class</span> <span class="pl-c1">NewSheetForm</span> <span class="pl-k">extends</span> <span class="pl-c1">StatefulWidget</span> { <span class="pl-k">@override</span> <span class="pl-c1">_NewSheetFormState</span> <span class="pl-en">createState</span>() <span class="pl-k">=&gt;</span> <span class="pl-k">new</span> <span class="pl-c1">_NewSheetFormState</span>(); } <span class="pl-k">class</span> <span class="pl-c1">_NewSheetFormState</span> <span class="pl-k">extends</span> <span class="pl-c1">State</span>&lt;<span class="pl-c1">NewSheetForm</span>&gt; { <span class="pl-c1">CharInfo</span> charInfoTab <span class="pl-k">=</span> <span class="pl-k">new</span> <span class="pl-c1">CharInfo</span>(); <span class="pl-c1">CharSkills</span> charSkillsTab <span class="pl-k">=</span> <span class="pl-k">new</span> <span class="pl-c1">CharSkills</span>(); <span class="pl-c1">CharEquip</span> charEquipTab <span class="pl-k">=</span> <span class="pl-k">new</span> <span class="pl-c1">CharEquip</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">DefaultTabController</span>( length<span class="pl-k">:</span> <span class="pl-c1">3</span>, child<span class="pl-k">:</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>(<span class="pl-s">'Dados do personagem'</span>), bottom<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">TabBar</span>( tabs<span class="pl-k">:</span> [ <span class="pl-k">new</span> <span class="pl-c1">Tab</span>( icon<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Icon</span>(<span class="pl-c1">Icons</span>.perm_identity), ), <span class="pl-k">new</span> <span class="pl-c1">Tab</span>( icon<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Icon</span>(<span class="pl-c1">Icons</span>.description), ), <span class="pl-k">new</span> <span class="pl-c1">Tab</span>( icon<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Icon</span>(<span class="pl-c1">Icons</span>.work), ), ], ), ), body<span class="pl-k">:</span> <span class="pl-c1">TabBarView</span>( physics<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">NeverScrollableScrollPhysics</span>(), children<span class="pl-k">:</span> [charInfoTab, charSkillsTab, charEquipTab]), ), ); } }</pre></div> <p dir="auto">First tab</p> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import 'package:flutter/material.dart'; class CharInfo extends StatefulWidget { @override _CharInfoState createState() =&gt; new _CharInfoState(); } class _CharInfoState extends State&lt;CharInfo&gt;{ GlobalKey&lt;FormState&gt; _formKey = new GlobalKey&lt;FormState&gt;(); @override Widget build(BuildContext context) { return new Container( child: new SafeArea( top: false, bottom: false, child: new Form( key: _formKey, autovalidate: true, child: new ListView( padding: const EdgeInsets.symmetric(horizontal: 20.0), children: &lt;Widget&gt;[ new TextFormField( decoration: const InputDecoration( icon: const Icon(Icons.person), hintText: 'Seu nome', labelText: 'Nome', ), ), new TextFormField( decoration: const InputDecoration( icon: const Icon(Icons.whatshot), hintText: 'Neutro', labelText: 'Alinhamento', ), ), new TextFormField( decoration: const InputDecoration( icon: const Icon(Icons.translate), hintText: 'Idioma comum', labelText: 'Idiomas', ), ), new TextFormField( keyboardType: TextInputType.number, decoration: const InputDecoration( icon: const Icon(Icons.trending_up), //hintText: 'Idioma comum', labelText: 'Nível', ), ), ], ), ), ), ); } }"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s">'package:flutter/material.dart'</span>; <span class="pl-k">class</span> <span class="pl-c1">CharInfo</span> <span class="pl-k">extends</span> <span class="pl-c1">StatefulWidget</span> { <span class="pl-k">@override</span> <span class="pl-c1">_CharInfoState</span> <span class="pl-en">createState</span>() <span class="pl-k">=&gt;</span> <span class="pl-k">new</span> <span class="pl-c1">_CharInfoState</span>(); } <span class="pl-k">class</span> <span class="pl-c1">_CharInfoState</span> <span class="pl-k">extends</span> <span class="pl-c1">State</span>&lt;<span class="pl-c1">CharInfo</span>&gt;{ <span class="pl-c1">GlobalKey</span>&lt;<span class="pl-c1">FormState</span>&gt; _formKey <span class="pl-k">=</span> <span class="pl-k">new</span> <span class="pl-c1">GlobalKey</span>&lt;<span class="pl-c1">FormState</span>&gt;(); <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">Container</span>( child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">SafeArea</span>( top<span class="pl-k">:</span> <span class="pl-c1">false</span>, bottom<span class="pl-k">:</span> <span class="pl-c1">false</span>, child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Form</span>( key<span class="pl-k">:</span> _formKey, autovalidate<span class="pl-k">:</span> <span class="pl-c1">true</span>, child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">ListView</span>( padding<span class="pl-k">:</span> <span class="pl-k">const</span> <span class="pl-c1">EdgeInsets</span>.<span class="pl-en">symmetric</span>(horizontal<span class="pl-k">:</span> <span class="pl-c1">20.0</span>), children<span class="pl-k">:</span> <span class="pl-k">&lt;</span><span class="pl-c1">Widget</span><span class="pl-k">&gt;</span>[ <span class="pl-k">new</span> <span class="pl-c1">TextFormField</span>( decoration<span class="pl-k">:</span> <span class="pl-k">const</span> <span class="pl-c1">InputDecoration</span>( icon<span class="pl-k">:</span> <span class="pl-k">const</span> <span class="pl-c1">Icon</span>(<span class="pl-c1">Icons</span>.person), hintText<span class="pl-k">:</span> <span class="pl-s">'Seu nome'</span>, labelText<span class="pl-k">:</span> <span class="pl-s">'Nome'</span>, ), ), <span class="pl-k">new</span> <span class="pl-c1">TextFormField</span>( decoration<span class="pl-k">:</span> <span class="pl-k">const</span> <span class="pl-c1">InputDecoration</span>( icon<span class="pl-k">:</span> <span class="pl-k">const</span> <span class="pl-c1">Icon</span>(<span class="pl-c1">Icons</span>.whatshot), hintText<span class="pl-k">:</span> <span class="pl-s">'Neutro'</span>, labelText<span class="pl-k">:</span> <span class="pl-s">'Alinhamento'</span>, ), ), <span class="pl-k">new</span> <span class="pl-c1">TextFormField</span>( decoration<span class="pl-k">:</span> <span class="pl-k">const</span> <span class="pl-c1">InputDecoration</span>( icon<span class="pl-k">:</span> <span class="pl-k">const</span> <span class="pl-c1">Icon</span>(<span class="pl-c1">Icons</span>.translate), hintText<span class="pl-k">:</span> <span class="pl-s">'Idioma comum'</span>, labelText<span class="pl-k">:</span> <span class="pl-s">'Idiomas'</span>, ), ), <span class="pl-k">new</span> <span class="pl-c1">TextFormField</span>( keyboardType<span class="pl-k">:</span> <span class="pl-c1">TextInputType</span>.number, decoration<span class="pl-k">:</span> <span class="pl-k">const</span> <span class="pl-c1">InputDecoration</span>( icon<span class="pl-k">:</span> <span class="pl-k">const</span> <span class="pl-c1">Icon</span>(<span class="pl-c1">Icons</span>.trending_up), <span class="pl-c">//hintText: 'Idioma comum',</span> labelText<span class="pl-k">:</span> <span class="pl-s">'Nível'</span>, ), ), ], ), ), ), ); } }</pre></div> <p dir="auto">Second and third tabs</p> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import 'package:flutter/material.dart'; class CharSkills extends StatelessWidget { @override Widget build(BuildContext context) { return new Container( child: new Center( child: new Column( mainAxisAlignment: MainAxisAlignment.center, children: &lt;Widget&gt;[ new Icon( Icons.business_center, size: 160.0, color: Colors.red, ), new Text('Second Tab'), ], ), ), ); } }"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s">'package:flutter/material.dart'</span>; <span class="pl-k">class</span> <span class="pl-c1">CharSkills</span> <span class="pl-k">extends</span> <span class="pl-c1">StatelessWidget</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">Container</span>( child<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">&lt;</span><span class="pl-c1">Widget</span><span class="pl-k">&gt;</span>[ <span class="pl-k">new</span> <span class="pl-c1">Icon</span>( <span class="pl-c1">Icons</span>.business_center, size<span class="pl-k">:</span> <span class="pl-c1">160.0</span>, color<span class="pl-k">:</span> <span class="pl-c1">Colors</span>.red, ), <span class="pl-k">new</span> <span class="pl-c1">Text</span>(<span class="pl-s">'Second Tab'</span>), ], ), ), ); } }</pre></div> <h2 dir="auto">Logs</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Showing Moto G 4 logs: I/flutter ( 2926): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════ I/flutter ( 2926): The following assertion was thrown building NotificationListener&lt;KeepAliveNotification&gt;: I/flutter ( 2926): 'package:flutter/src/rendering/object.dart': Failed assertion: line 2775 pos 14: I/flutter ( 2926): '_debugUltimatePreviousSiblingOf(after, equals: _firstChild)': is not true. I/flutter ( 2926): I/flutter ( 2926): Either the assertion indicates an error in the framework itself, or we should provide substantially I/flutter ( 2926): more information in this error message to help you determine and fix the underlying cause. I/flutter ( 2926): In either case, please report this assertion by filing a bug on GitHub: I/flutter ( 2926): https://github.com/flutter/flutter/issues/new I/flutter ( 2926): I/flutter ( 2926): When the exception was thrown, this was the stack: I/flutter ( 2926): #2 _RenderSliverMultiBoxAdaptor&amp;RenderSliver&amp;ContainerRenderObjectMixin._insertIntoChildList (package:flutter/src/rendering/object.dart) I/flutter ( 2926): #3 _RenderSliverMultiBoxAdaptor&amp;RenderSliver&amp;ContainerRenderObjectMixin.insert (package:flutter/src/rendering/object.dart:2809:5) I/flutter ( 2926): #4 RenderSliverMultiBoxAdaptor.insert (package:flutter/src/rendering/sliver_multi_box_adaptor.dart:209:11) I/flutter ( 2926): #5 SliverMultiBoxAdaptorElement.insertChildRenderObject (package:flutter/src/widgets/sliver.dart:865:18) I/flutter ( 2926): #6 RenderObjectElement.attachRenderObject (package:flutter/src/widgets/framework.dart:4513:35) I/flutter ( 2926): #7 RenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4279:5) I/flutter ( 2926): #8 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4653:11) I/flutter ( 2926): #9 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2907:14) I/flutter ( 2926): #10 Element.updateChild (package:flutter/src/widgets/framework.dart:2710:12) I/flutter ( 2926): #11 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) I/flutter ( 2926): #12 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) I/flutter ( 2926): #13 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3622:5) I/flutter ( 2926): #14 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3617:5) I/flutter ( 2926): #15 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2907:14) I/flutter ( 2926): #16 Element.updateChild (package:flutter/src/widgets/framework.dart:2710:12) I/flutter ( 2926): #17 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) I/flutter ( 2926): #18 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) I/flutter ( 2926): #19 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3622:5) I/flutter ( 2926): #20 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3617:5) I/flutter ( 2926): #21 ParentDataElement.mount (package:flutter/src/widgets/framework.dart:3955:11) I/flutter ( 2926): #22 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2907:14) I/flutter ( 2926): #23 Element.updateChild (package:flutter/src/widgets/framework.dart:2710:12) I/flutter ( 2926): #24 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) I/flutter ( 2926): #25 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) I/flutter ( 2926): #26 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3622:5) I/flutter ( 2926): #27 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3769:11) I/flutter ( 2926): #28 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3617:5) I/flutter ( 2926): #29 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2907:14) I/flutter ( 2926): #30 Element.updateChild (package:flutter/src/widgets/framework.dart:2710:12) I/flutter ( 2926): #31 SliverMultiBoxAdaptorElement.updateChild (package:flutter/src/widgets/sliver.dart:744:36) I/flutter ( 2926): #32 SliverMultiBoxAdaptorElement.performRebuild (package:flutter/src/widgets/sliver.dart:702:34) I/flutter ( 2926): #33 SliverMultiBoxAdaptorElement.update (package:flutter/src/widgets/sliver.dart:671:7) I/flutter ( 2926): #34 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) I/flutter ( 2926): #35 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:4379:32) I/flutter ( 2926): #36 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4769:17) I/flutter ( 2926): #37 _ViewportElement.update (package:flutter/src/widgets/viewport.dart:192:11) I/flutter ( 2926): #38 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) I/flutter ( 2926): #39 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) I/flutter ( 2926): #40 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) I/flutter ( 2926): #41 ProxyElement.update (package:flutter/src/widgets/framework.dart:3909:5) I/flutter ( 2926): #42 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) I/flutter ( 2926): #43 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14) I/flutter ( 2926): #44 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) I/flutter ( 2926): #45 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14) I/flutter ( 2926): #46 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) I/flutter ( 2926): #47 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14) I/flutter ( 2926): #48 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) I/flutter ( 2926): #49 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14) I/flutter ( 2926): #50 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) I/flutter ( 2926): #51 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) I/flutter ( 2926): #52 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) I/flutter ( 2926): #53 StatefulElement.update (package:flutter/src/widgets/framework.dart:3799:5) I/flutter ( 2926): #54 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) I/flutter ( 2926): #55 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14) I/flutter ( 2926): #56 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) I/flutter ( 2926): #57 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14) I/flutter ( 2926): #58 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) I/flutter ( 2926): #59 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14) I/flutter ( 2926): #60 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) I/flutter ( 2926): #61 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14) I/flutter ( 2926): #62 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) I/flutter ( 2926): #63 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) I/flutter ( 2926): #64 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) I/flutter ( 2926): #65 StatelessElement.update (package:flutter/src/widgets/framework.dart:3702:5) I/flutter ( 2926): #66 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) I/flutter ( 2926): #67 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) I/flutter ( 2926): #68 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) I/flutter ( 2926): #69 StatefulElement.update (package:flutter/src/widgets/framework.dart:3799:5) I/flutter ( 2926): #70 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) I/flutter ( 2926): #71 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) I/flutter ( 2926): #72 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) I/flutter ( 2926): #73 StatefulElement.update (package:flutter/src/widgets/framework.dart:3799:5) I/flutter ( 2926): #74 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) I/flutter ( 2926): #75 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) I/flutter ( 2926): #76 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) I/flutter ( 2926): #77 StatelessElement.update (package:flutter/src/widgets/framework.dart:3702:5) I/flutter ( 2926): #78 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) I/flutter ( 2926): #79 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) I/flutter ( 2926): #80 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) I/flutter ( 2926): #81 StatefulElement.update (package:flutter/src/widgets/framework.dart:3799:5) I/flutter ( 2926): #82 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) I/flutter ( 2926): #83 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) I/flutter ( 2926): #84 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) I/flutter ( 2926): #85 StatelessElement.update (package:flutter/src/widgets/framework.dart:3702:5) I/flutter ( 2926): #86 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) I/flutter ( 2926): #87 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) I/flutter ( 2926): #88 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) I/flutter ( 2926): #89 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2242:33) I/flutter ( 2926): #90 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding&amp;PaintingBinding&amp;RendererBinding&amp;WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:626:20) I/flutter ( 2926): #91 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding&amp;PaintingBinding&amp;RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:208:5) I/flutter ( 2926): #92 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15) I/flutter ( 2926): #93 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9) I/flutter ( 2926): #94 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:842:5) I/flutter ( 2926): #95 _invoke (dart:ui/hooks.dart:120:13) I/flutter ( 2926): #96 _drawFrame (dart:ui/hooks.dart:109:3) I/flutter ( 2926): (elided 2 frames from class _AssertionError) I/flutter ( 2926): ════════════════════════════════════════════════════════════════════════════════════════════════════ I/flutter ( 2926): Another exception was thrown: 'package:flutter/src/rendering/object.dart': Failed assertion: line 2775 pos 14: '_debugUltimatePreviousSiblingOf(after, equals: _firstChild)': is not true. I/flutter ( 2926): Another exception was thrown: 'package:flutter/src/rendering/object.dart': Failed assertion: line 2775 pos 14: '_debugUltimatePreviousSiblingOf(after, equals: _firstChild)': is not true. I/flutter ( 2926): Another exception was thrown: 'package:flutter/src/rendering/object.dart': Failed assertion: line 2775 pos 14: '_debugUltimatePreviousSiblingOf(after, equals: _firstChild)': is not true. I/flutter ( 2926): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3497 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. I/flutter ( 2926): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3497 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. I/flutter ( 2926): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3497 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. I/flutter ( 2926): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3497 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. I/flutter ( 2926): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3497 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. I/flutter ( 2926): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3497 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. I/flutter ( 2926): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3497 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. I/flutter ( 2926): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3497 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. I/flutter ( 2926): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3497 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. I/flutter ( 2926): Another exception was thrown: The _ScaffoldLayout custom multichild layout delegate forgot to lay out the following children: I/flutter ( 2926): Another exception was thrown: type 'RenderErrorBox' is not a subtype of type 'RenderSemanticsGestureHandler' I/flutter ( 2926): Another exception was thrown: The _ScaffoldLayout custom multichild layout delegate forgot to lay out the following children: I/flutter ( 2926): Another exception was thrown: RenderBox was not laid out: RenderRepaintBoundary#1290f NEEDS-LAYOUT NEEDS-PAINT I/flutter ( 2926): Another exception was thrown: The _ScaffoldLayout custom multichild layout delegate forgot to lay out the following children: I/flutter ( 2926): Another exception was thrown: RenderBox was not laid out: RenderRepaintBoundary#1290f NEEDS-LAYOUT NEEDS-PAINT I/flutter ( 2926): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 4039 pos 14: '_dependents.isEmpty': is not true. I/flutter ( 2926): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 2240 pos 16: '!_dirtyElements[index]._active || _dirtyElements[index]._debugIsInScope(context)': is not true."><pre class="notranslate"><code class="notranslate">Showing Moto G 4 logs: I/flutter ( 2926): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════ I/flutter ( 2926): The following assertion was thrown building NotificationListener&lt;KeepAliveNotification&gt;: I/flutter ( 2926): 'package:flutter/src/rendering/object.dart': Failed assertion: line 2775 pos 14: I/flutter ( 2926): '_debugUltimatePreviousSiblingOf(after, equals: _firstChild)': is not true. I/flutter ( 2926): I/flutter ( 2926): Either the assertion indicates an error in the framework itself, or we should provide substantially I/flutter ( 2926): more information in this error message to help you determine and fix the underlying cause. I/flutter ( 2926): In either case, please report this assertion by filing a bug on GitHub: I/flutter ( 2926): https://github.com/flutter/flutter/issues/new I/flutter ( 2926): I/flutter ( 2926): When the exception was thrown, this was the stack: I/flutter ( 2926): #2 _RenderSliverMultiBoxAdaptor&amp;RenderSliver&amp;ContainerRenderObjectMixin._insertIntoChildList (package:flutter/src/rendering/object.dart) I/flutter ( 2926): #3 _RenderSliverMultiBoxAdaptor&amp;RenderSliver&amp;ContainerRenderObjectMixin.insert (package:flutter/src/rendering/object.dart:2809:5) I/flutter ( 2926): #4 RenderSliverMultiBoxAdaptor.insert (package:flutter/src/rendering/sliver_multi_box_adaptor.dart:209:11) I/flutter ( 2926): #5 SliverMultiBoxAdaptorElement.insertChildRenderObject (package:flutter/src/widgets/sliver.dart:865:18) I/flutter ( 2926): #6 RenderObjectElement.attachRenderObject (package:flutter/src/widgets/framework.dart:4513:35) I/flutter ( 2926): #7 RenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4279:5) I/flutter ( 2926): #8 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4653:11) I/flutter ( 2926): #9 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2907:14) I/flutter ( 2926): #10 Element.updateChild (package:flutter/src/widgets/framework.dart:2710:12) I/flutter ( 2926): #11 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) I/flutter ( 2926): #12 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) I/flutter ( 2926): #13 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3622:5) I/flutter ( 2926): #14 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3617:5) I/flutter ( 2926): #15 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2907:14) I/flutter ( 2926): #16 Element.updateChild (package:flutter/src/widgets/framework.dart:2710:12) I/flutter ( 2926): #17 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) I/flutter ( 2926): #18 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) I/flutter ( 2926): #19 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3622:5) I/flutter ( 2926): #20 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3617:5) I/flutter ( 2926): #21 ParentDataElement.mount (package:flutter/src/widgets/framework.dart:3955:11) I/flutter ( 2926): #22 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2907:14) I/flutter ( 2926): #23 Element.updateChild (package:flutter/src/widgets/framework.dart:2710:12) I/flutter ( 2926): #24 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) I/flutter ( 2926): #25 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) I/flutter ( 2926): #26 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3622:5) I/flutter ( 2926): #27 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3769:11) I/flutter ( 2926): #28 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3617:5) I/flutter ( 2926): #29 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2907:14) I/flutter ( 2926): #30 Element.updateChild (package:flutter/src/widgets/framework.dart:2710:12) I/flutter ( 2926): #31 SliverMultiBoxAdaptorElement.updateChild (package:flutter/src/widgets/sliver.dart:744:36) I/flutter ( 2926): #32 SliverMultiBoxAdaptorElement.performRebuild (package:flutter/src/widgets/sliver.dart:702:34) I/flutter ( 2926): #33 SliverMultiBoxAdaptorElement.update (package:flutter/src/widgets/sliver.dart:671:7) I/flutter ( 2926): #34 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) I/flutter ( 2926): #35 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:4379:32) I/flutter ( 2926): #36 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4769:17) I/flutter ( 2926): #37 _ViewportElement.update (package:flutter/src/widgets/viewport.dart:192:11) I/flutter ( 2926): #38 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) I/flutter ( 2926): #39 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) I/flutter ( 2926): #40 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) I/flutter ( 2926): #41 ProxyElement.update (package:flutter/src/widgets/framework.dart:3909:5) I/flutter ( 2926): #42 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) I/flutter ( 2926): #43 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14) I/flutter ( 2926): #44 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) I/flutter ( 2926): #45 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14) I/flutter ( 2926): #46 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) I/flutter ( 2926): #47 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14) I/flutter ( 2926): #48 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) I/flutter ( 2926): #49 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14) I/flutter ( 2926): #50 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) I/flutter ( 2926): #51 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) I/flutter ( 2926): #52 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) I/flutter ( 2926): #53 StatefulElement.update (package:flutter/src/widgets/framework.dart:3799:5) I/flutter ( 2926): #54 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) I/flutter ( 2926): #55 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14) I/flutter ( 2926): #56 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) I/flutter ( 2926): #57 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14) I/flutter ( 2926): #58 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) I/flutter ( 2926): #59 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14) I/flutter ( 2926): #60 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) I/flutter ( 2926): #61 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14) I/flutter ( 2926): #62 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) I/flutter ( 2926): #63 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) I/flutter ( 2926): #64 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) I/flutter ( 2926): #65 StatelessElement.update (package:flutter/src/widgets/framework.dart:3702:5) I/flutter ( 2926): #66 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) I/flutter ( 2926): #67 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) I/flutter ( 2926): #68 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) I/flutter ( 2926): #69 StatefulElement.update (package:flutter/src/widgets/framework.dart:3799:5) I/flutter ( 2926): #70 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) I/flutter ( 2926): #71 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) I/flutter ( 2926): #72 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) I/flutter ( 2926): #73 StatefulElement.update (package:flutter/src/widgets/framework.dart:3799:5) I/flutter ( 2926): #74 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) I/flutter ( 2926): #75 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) I/flutter ( 2926): #76 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) I/flutter ( 2926): #77 StatelessElement.update (package:flutter/src/widgets/framework.dart:3702:5) I/flutter ( 2926): #78 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) I/flutter ( 2926): #79 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) I/flutter ( 2926): #80 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) I/flutter ( 2926): #81 StatefulElement.update (package:flutter/src/widgets/framework.dart:3799:5) I/flutter ( 2926): #82 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) I/flutter ( 2926): #83 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) I/flutter ( 2926): #84 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) I/flutter ( 2926): #85 StatelessElement.update (package:flutter/src/widgets/framework.dart:3702:5) I/flutter ( 2926): #86 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15) I/flutter ( 2926): #87 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16) I/flutter ( 2926): #88 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5) I/flutter ( 2926): #89 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2242:33) I/flutter ( 2926): #90 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding&amp;PaintingBinding&amp;RendererBinding&amp;WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:626:20) I/flutter ( 2926): #91 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding&amp;PaintingBinding&amp;RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:208:5) I/flutter ( 2926): #92 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15) I/flutter ( 2926): #93 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9) I/flutter ( 2926): #94 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:842:5) I/flutter ( 2926): #95 _invoke (dart:ui/hooks.dart:120:13) I/flutter ( 2926): #96 _drawFrame (dart:ui/hooks.dart:109:3) I/flutter ( 2926): (elided 2 frames from class _AssertionError) I/flutter ( 2926): ════════════════════════════════════════════════════════════════════════════════════════════════════ I/flutter ( 2926): Another exception was thrown: 'package:flutter/src/rendering/object.dart': Failed assertion: line 2775 pos 14: '_debugUltimatePreviousSiblingOf(after, equals: _firstChild)': is not true. I/flutter ( 2926): Another exception was thrown: 'package:flutter/src/rendering/object.dart': Failed assertion: line 2775 pos 14: '_debugUltimatePreviousSiblingOf(after, equals: _firstChild)': is not true. I/flutter ( 2926): Another exception was thrown: 'package:flutter/src/rendering/object.dart': Failed assertion: line 2775 pos 14: '_debugUltimatePreviousSiblingOf(after, equals: _firstChild)': is not true. I/flutter ( 2926): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3497 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. I/flutter ( 2926): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3497 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. I/flutter ( 2926): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3497 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. I/flutter ( 2926): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3497 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. I/flutter ( 2926): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3497 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. I/flutter ( 2926): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3497 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. I/flutter ( 2926): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3497 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. I/flutter ( 2926): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3497 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. I/flutter ( 2926): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3497 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. I/flutter ( 2926): Another exception was thrown: The _ScaffoldLayout custom multichild layout delegate forgot to lay out the following children: I/flutter ( 2926): Another exception was thrown: type 'RenderErrorBox' is not a subtype of type 'RenderSemanticsGestureHandler' I/flutter ( 2926): Another exception was thrown: The _ScaffoldLayout custom multichild layout delegate forgot to lay out the following children: I/flutter ( 2926): Another exception was thrown: RenderBox was not laid out: RenderRepaintBoundary#1290f NEEDS-LAYOUT NEEDS-PAINT I/flutter ( 2926): Another exception was thrown: The _ScaffoldLayout custom multichild layout delegate forgot to lay out the following children: I/flutter ( 2926): Another exception was thrown: RenderBox was not laid out: RenderRepaintBoundary#1290f NEEDS-LAYOUT NEEDS-PAINT I/flutter ( 2926): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 4039 pos 14: '_dependents.isEmpty': is not true. I/flutter ( 2926): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 2240 pos 16: '!_dirtyElements[index]._active || _dirtyElements[index]._debugIsInScope(context)': is not true. </code></pre></div>
<h2 dir="auto">Steps to Reproduce</h2> <p dir="auto">I have a PageView that contains the top level widgets for my app, with switching between them controlled by a BottomNavBar. As per <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 advice in the chat, I am adding <code class="notranslate">AutomaticKeepAliveClientMixin</code> to these top level widgets so the PageView won't recycle them and will preserve state. After I added this to the main widget that contains a network loaded ListView, on occasion when switching back to this ListView from another tab I get this failed assertion in the framework.</p> <h2 dir="auto">Logs</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════ The following assertion was thrown building NotificationListener&lt;KeepAliveNotification&gt;: 'package:flutter/src/rendering/object.dart': Failed assertion: line 3031 pos 14: '_debugUltimatePreviousSiblingOf(after, equals: _firstChild)': is not true. 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: #2 RenderSliver&amp;ContainerRenderObjectMixin._insertIntoChildList (package:flutter/src/rendering/object.dart:3031:14) #3 RenderSliver&amp;ContainerRenderObjectMixin.insert (package:flutter/src/rendering/object.dart:3065:5) #4 RenderSliverMultiBoxAdaptor.insert (package:flutter/src/rendering/sliver_multi_box_adaptor.dart:193:17) #5 SliverMultiBoxAdaptorElement.insertChildRenderObject (package:flutter/src/widgets/sliver.dart:840:18) #6 RenderObjectElement.attachRenderObject (package:flutter/src/widgets/framework.dart:4380:35) #7 RenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4151:5) #8 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4515:16) #9 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2882:14) #10 Element.updateChild (package:flutter/src/widgets/framework.dart:2685:12) #11 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #12 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #13 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3514:5) #14 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3509:5) #15 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2882:14) #16 Element.updateChild (package:flutter/src/widgets/framework.dart:2685:12) #17 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #18 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #19 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3514:5) #20 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3509:5) #21 ParentDataElement.mount (package:flutter/src/widgets/framework.dart:3827:16) #22 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2882:14) #23 Element.updateChild (package:flutter/src/widgets/framework.dart:2685:12) #24 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #25 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #26 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3514:5) #27 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3652:22) #28 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3509:5) #29 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2882:14) #30 Element.updateChild (package:flutter/src/widgets/framework.dart:2685:12) #31 SliverMultiBoxAdaptorElement.performRebuild (package:flutter/src/widgets/sliver.dart:696:34) #32 SliverMultiBoxAdaptorElement.update (package:flutter/src/widgets/sliver.dart:665:7) #33 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #34 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:4250:32) #35 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4631:17) #36 _ViewportElement.update (package:flutter/src/widgets/viewport.dart:150:17) #37 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #38 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #39 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #40 ProxyElement.update (package:flutter/src/widgets/framework.dart:3781:5) #41 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #42 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4523:14) #43 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #44 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4523:14) #45 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #46 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4523:14) #47 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #48 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #49 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #50 StatefulElement.update (package:flutter/src/widgets/framework.dart:3671:5) #51 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #52 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #53 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #54 StatefulElement.update (package:flutter/src/widgets/framework.dart:3671:5) #55 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #56 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #57 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #58 StatelessElement.update (package:flutter/src/widgets/framework.dart:3596:5) #59 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #60 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #61 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #62 StatefulElement.update (package:flutter/src/widgets/framework.dart:3671:5) #63 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #64 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #65 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #66 ProxyElement.update (package:flutter/src/widgets/framework.dart:3781:5) #67 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #68 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:4250:32) #69 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4631:17) #70 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #71 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #72 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #73 ProxyElement.update (package:flutter/src/widgets/framework.dart:3781:5) #74 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #75 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #76 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #77 StatefulElement.update (package:flutter/src/widgets/framework.dart:3671:5) #78 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #79 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4523:14) #80 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #81 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #82 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #83 StatelessElement.update (package:flutter/src/widgets/framework.dart:3596:5) #84 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #85 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4523:14) #86 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #87 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #88 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #89 StatefulElement.update (package:flutter/src/widgets/framework.dart:3671:5) #90 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #91 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #92 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #93 StatefulElement.update (package:flutter/src/widgets/framework.dart:3671:5) #94 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #95 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #96 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #97 ProxyElement.update (package:flutter/src/widgets/framework.dart:3781:5) #98 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #99 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #100 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #101 ProxyElement.update (package:flutter/src/widgets/framework.dart:3781:5) #102 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #103 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #104 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #105 StatefulElement.update (package:flutter/src/widgets/framework.dart:3671:5) #106 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #107 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #108 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #109 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2260:33) #110 BindingBase&amp;SchedulerBinding&amp;GestureBinding&amp;ServicesBinding&amp;RendererBinding&amp;WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:503:20) #111 BindingBase&amp;SchedulerBinding&amp;GestureBinding&amp;ServicesBinding&amp;RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:189:5) #112 BindingBase&amp;SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:695:15) #113 BindingBase&amp;SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:643:9) #114 _invoke (file:///b/build/slave/Mac_Engine/build/src/flutter/lib/ui/hooks.dart:86) #115 _drawFrame (file:///b/build/slave/Mac_Engine/build/src/flutter/lib/ui/hooks.dart:75) (elided 2 frames from class _AssertionError) ════════════════════════════════════════════════════════════════════════════════════════════════════ Another exception was thrown: 'package:flutter/src/rendering/object.dart': Failed assertion: line 3031 pos 14: '_debugUltimatePreviousSiblingOf(after, equals: _firstChild)': is not true. Another exception was thrown: 'package:flutter/src/rendering/object.dart': Failed assertion: line 3031 pos 14: '_debugUltimatePreviousSiblingOf(after, equals: _firstChild)': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true."><pre class="notranslate"><code class="notranslate">══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════ The following assertion was thrown building NotificationListener&lt;KeepAliveNotification&gt;: 'package:flutter/src/rendering/object.dart': Failed assertion: line 3031 pos 14: '_debugUltimatePreviousSiblingOf(after, equals: _firstChild)': is not true. 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: #2 RenderSliver&amp;ContainerRenderObjectMixin._insertIntoChildList (package:flutter/src/rendering/object.dart:3031:14) #3 RenderSliver&amp;ContainerRenderObjectMixin.insert (package:flutter/src/rendering/object.dart:3065:5) #4 RenderSliverMultiBoxAdaptor.insert (package:flutter/src/rendering/sliver_multi_box_adaptor.dart:193:17) #5 SliverMultiBoxAdaptorElement.insertChildRenderObject (package:flutter/src/widgets/sliver.dart:840:18) #6 RenderObjectElement.attachRenderObject (package:flutter/src/widgets/framework.dart:4380:35) #7 RenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4151:5) #8 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4515:16) #9 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2882:14) #10 Element.updateChild (package:flutter/src/widgets/framework.dart:2685:12) #11 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #12 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #13 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3514:5) #14 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3509:5) #15 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2882:14) #16 Element.updateChild (package:flutter/src/widgets/framework.dart:2685:12) #17 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #18 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #19 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3514:5) #20 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3509:5) #21 ParentDataElement.mount (package:flutter/src/widgets/framework.dart:3827:16) #22 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2882:14) #23 Element.updateChild (package:flutter/src/widgets/framework.dart:2685:12) #24 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #25 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #26 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3514:5) #27 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3652:22) #28 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3509:5) #29 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2882:14) #30 Element.updateChild (package:flutter/src/widgets/framework.dart:2685:12) #31 SliverMultiBoxAdaptorElement.performRebuild (package:flutter/src/widgets/sliver.dart:696:34) #32 SliverMultiBoxAdaptorElement.update (package:flutter/src/widgets/sliver.dart:665:7) #33 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #34 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:4250:32) #35 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4631:17) #36 _ViewportElement.update (package:flutter/src/widgets/viewport.dart:150:17) #37 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #38 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #39 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #40 ProxyElement.update (package:flutter/src/widgets/framework.dart:3781:5) #41 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #42 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4523:14) #43 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #44 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4523:14) #45 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #46 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4523:14) #47 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #48 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #49 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #50 StatefulElement.update (package:flutter/src/widgets/framework.dart:3671:5) #51 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #52 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #53 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #54 StatefulElement.update (package:flutter/src/widgets/framework.dart:3671:5) #55 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #56 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #57 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #58 StatelessElement.update (package:flutter/src/widgets/framework.dart:3596:5) #59 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #60 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #61 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #62 StatefulElement.update (package:flutter/src/widgets/framework.dart:3671:5) #63 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #64 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #65 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #66 ProxyElement.update (package:flutter/src/widgets/framework.dart:3781:5) #67 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #68 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:4250:32) #69 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4631:17) #70 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #71 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #72 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #73 ProxyElement.update (package:flutter/src/widgets/framework.dart:3781:5) #74 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #75 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #76 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #77 StatefulElement.update (package:flutter/src/widgets/framework.dart:3671:5) #78 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #79 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4523:14) #80 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #81 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #82 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #83 StatelessElement.update (package:flutter/src/widgets/framework.dart:3596:5) #84 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #85 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4523:14) #86 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #87 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #88 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #89 StatefulElement.update (package:flutter/src/widgets/framework.dart:3671:5) #90 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #91 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #92 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #93 StatefulElement.update (package:flutter/src/widgets/framework.dart:3671:5) #94 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #95 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #96 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #97 ProxyElement.update (package:flutter/src/widgets/framework.dart:3781:5) #98 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #99 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #100 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #101 ProxyElement.update (package:flutter/src/widgets/framework.dart:3781:5) #102 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #103 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #104 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #105 StatefulElement.update (package:flutter/src/widgets/framework.dart:3671:5) #106 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #107 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #108 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #109 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2260:33) #110 BindingBase&amp;SchedulerBinding&amp;GestureBinding&amp;ServicesBinding&amp;RendererBinding&amp;WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:503:20) #111 BindingBase&amp;SchedulerBinding&amp;GestureBinding&amp;ServicesBinding&amp;RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:189:5) #112 BindingBase&amp;SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:695:15) #113 BindingBase&amp;SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:643:9) #114 _invoke (file:///b/build/slave/Mac_Engine/build/src/flutter/lib/ui/hooks.dart:86) #115 _drawFrame (file:///b/build/slave/Mac_Engine/build/src/flutter/lib/ui/hooks.dart:75) (elided 2 frames from class _AssertionError) ════════════════════════════════════════════════════════════════════════════════════════════════════ Another exception was thrown: 'package:flutter/src/rendering/object.dart': Failed assertion: line 3031 pos 14: '_debugUltimatePreviousSiblingOf(after, equals: _firstChild)': is not true. Another exception was thrown: 'package:flutter/src/rendering/object.dart': Failed assertion: line 3031 pos 14: '_debugUltimatePreviousSiblingOf(after, equals: _firstChild)': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Analyzing /Users/matt/code/flutter/kudos... lint • Don't import implementation files from another package at lib/feed.dart:5:8 • implementation_imports lint • Close instances of `dart.core.Sink` at lib/feed.dart:26:26 • close_sinks lint • Don't explicitly initialize variables to null at lib/loading_list_view.dart:23:5 • avoid_init_to_null lint • Don't import implementation files from another package at lib/post.dart:3:8 • implementation_imports hint • Unused import at lib/application.dart:4:8 • unused_import hint • Unused import at lib/feed.dart:2:8 • unused_import hint • Unused import at lib/feed.dart:5:8 • unused_import hint • Unused import at lib/feed.dart:7:8 • unused_import hint • Unused import at lib/feed.dart:12:8 • unused_import hint • Unused import at lib/feed.dart:13:8 • unused_import hint • This method overrides a method annotated as @mustCallSuper in 'State', but does not invoke the overridden method at lib/feed.dart:29:8 • must_call_super hint • This method overrides a method annotated as @mustCallSuper in 'State', but does not invoke the overridden method at lib/feed.dart:40:8 • must_call_super hint • The type parameter 'widgetAdapter' is annotated with @required but only named parameters without default value can be annotated with it at lib/loading_list_view.dart:23:5 • invalid_required_param hint • Unused import at lib/main.dart:6:8 • unused_import hint • The value of the field '_counter' isn't used at lib/main.dart:56:7 • unused_field hint • This method overrides a method annotated as @mustCallSuper in 'State', but does not invoke the overridden method at lib/main.dart:63:8 • must_call_super hint • This method overrides a method annotated as @mustCallSuper in 'State', but does not invoke the overridden method at lib/main.dart:71:8 • must_call_super hint • The method '_incrementCounter' isn't used at lib/main.dart:76:8 • unused_element hint • Unused import at lib/post.dart:7:8 • unused_import hint • This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) at lib/post.dart:10:7 • must_be_immutable hint • This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) at lib/post.dart:34:7 • must_be_immutable hint • The value of the local variable 'plainText' isn't used at lib/post.dart:71:10 • unused_local_variable hint • This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) at lib/post.dart:112:7 • must_be_immutable hint • This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) at lib/post.dart:160:7 • must_be_immutable hint • This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) at lib/profile.dart:10:7 • must_be_immutable hint • This method overrides a method annotated as @mustCallSuper in 'State', but does not invoke the overridden method at lib/profile.dart:27:10 • must_call_super hint • This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) at lib/profile.dart:145:7 • must_be_immutable hint • The class '_KudosEarned' isn't used at lib/profile.dart:218:7 • unused_element hint • Unused import at lib/send_photo.dart:5:8 • unused_import hint • Unused import at lib/usersearch.dart:6:8 • unused_import hint • Unused import at lib/usersearch.dart:7:8 • unused_import hint • This method overrides a method annotated as @mustCallSuper in 'State', but does not invoke the overridden method at lib/usersearch.dart:25:10 • must_call_super 32 issues found."><pre class="notranslate"><code class="notranslate">Analyzing /Users/matt/code/flutter/kudos... lint • Don't import implementation files from another package at lib/feed.dart:5:8 • implementation_imports lint • Close instances of `dart.core.Sink` at lib/feed.dart:26:26 • close_sinks lint • Don't explicitly initialize variables to null at lib/loading_list_view.dart:23:5 • avoid_init_to_null lint • Don't import implementation files from another package at lib/post.dart:3:8 • implementation_imports hint • Unused import at lib/application.dart:4:8 • unused_import hint • Unused import at lib/feed.dart:2:8 • unused_import hint • Unused import at lib/feed.dart:5:8 • unused_import hint • Unused import at lib/feed.dart:7:8 • unused_import hint • Unused import at lib/feed.dart:12:8 • unused_import hint • Unused import at lib/feed.dart:13:8 • unused_import hint • This method overrides a method annotated as @mustCallSuper in 'State', but does not invoke the overridden method at lib/feed.dart:29:8 • must_call_super hint • This method overrides a method annotated as @mustCallSuper in 'State', but does not invoke the overridden method at lib/feed.dart:40:8 • must_call_super hint • The type parameter 'widgetAdapter' is annotated with @required but only named parameters without default value can be annotated with it at lib/loading_list_view.dart:23:5 • invalid_required_param hint • Unused import at lib/main.dart:6:8 • unused_import hint • The value of the field '_counter' isn't used at lib/main.dart:56:7 • unused_field hint • This method overrides a method annotated as @mustCallSuper in 'State', but does not invoke the overridden method at lib/main.dart:63:8 • must_call_super hint • This method overrides a method annotated as @mustCallSuper in 'State', but does not invoke the overridden method at lib/main.dart:71:8 • must_call_super hint • The method '_incrementCounter' isn't used at lib/main.dart:76:8 • unused_element hint • Unused import at lib/post.dart:7:8 • unused_import hint • This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) at lib/post.dart:10:7 • must_be_immutable hint • This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) at lib/post.dart:34:7 • must_be_immutable hint • The value of the local variable 'plainText' isn't used at lib/post.dart:71:10 • unused_local_variable hint • This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) at lib/post.dart:112:7 • must_be_immutable hint • This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) at lib/post.dart:160:7 • must_be_immutable hint • This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) at lib/profile.dart:10:7 • must_be_immutable hint • This method overrides a method annotated as @mustCallSuper in 'State', but does not invoke the overridden method at lib/profile.dart:27:10 • must_call_super hint • This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) at lib/profile.dart:145:7 • must_be_immutable hint • The class '_KudosEarned' isn't used at lib/profile.dart:218:7 • unused_element hint • Unused import at lib/send_photo.dart:5:8 • unused_import hint • Unused import at lib/usersearch.dart:6:8 • unused_import hint • Unused import at lib/usersearch.dart:7:8 • unused_import hint • This method overrides a method annotated as @mustCallSuper in 'State', but does not invoke the overridden method at lib/usersearch.dart:25:10 • must_call_super 32 issues found. </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 (on Mac OS X 10.12.6 16G29, locale en-US, channel alpha) • Flutter at /Users/matt/code/flutter/flutter • Framework revision b156a0f054 (3 weeks ago), 2017-08-11 22:01:40 -0700 • Engine revision fef7d827d6 • Tools Dart version 1.25.0-dev.9.0 [✓] Android toolchain - develop for Android devices (Android SDK 25.0.3) • Android SDK at /Users/matt/code/android/android • 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 8.3.3) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 8.3.3, Build version 8E3004b • ios-deploy 1.9.1 • CocoaPods version 1.3.1 [✓] 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) [✓] IntelliJ IDEA Ultimate Edition (version 2017.2.2) • Flutter plugin version 16.0 • Dart plugin version 172.3757.55 [✓] Connected devices • iPhone 6s • 3DF999CB-1CD6-4649-8187-DDEFBDB14DFA • ios • iOS 10.3 (simulator) "><pre class="notranslate"><code class="notranslate">[✓] Flutter (on Mac OS X 10.12.6 16G29, locale en-US, channel alpha) • Flutter at /Users/matt/code/flutter/flutter • Framework revision b156a0f054 (3 weeks ago), 2017-08-11 22:01:40 -0700 • Engine revision fef7d827d6 • Tools Dart version 1.25.0-dev.9.0 [✓] Android toolchain - develop for Android devices (Android SDK 25.0.3) • Android SDK at /Users/matt/code/android/android • 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 8.3.3) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 8.3.3, Build version 8E3004b • ios-deploy 1.9.1 • CocoaPods version 1.3.1 [✓] 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) [✓] IntelliJ IDEA Ultimate Edition (version 2017.2.2) • Flutter plugin version 16.0 • Dart plugin version 172.3757.55 [✓] Connected devices • iPhone 6s • 3DF999CB-1CD6-4649-8187-DDEFBDB14DFA • ios • iOS 10.3 (simulator) </code></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>
1
<p dir="auto"><code class="notranslate">fetch('https://httpbin.org/cookies/set?foo=bar', cookies={'foo1':'bar1'}, meta={'dont_merge_cookies': True}, headers={'Cookie':'foor2=bar2'})</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="request.cookies request.headers['cookie']"><pre class="notranslate"><code class="notranslate">request.cookies request.headers['cookie'] </code></pre></div> <p dir="auto">is:<br> {'foo1': 'bar1'}<br> b'foor2=bar2'</p> <p dir="auto">but <code class="notranslate">response.text</code>:<br> {\n "cookies": {\n "foor2": "bar2"\n }\n}\n</p> <p dir="auto">shouldn't request.cookies been sent with the <code class="notranslate">fetch</code> request?</p>
<p dir="auto">This example is <a href="http://doc.scrapy.org/en/latest/topics/request-response.html#request-objects" rel="nofollow">straight from the documentation</a>, and does not work because if dont_merge_cookies is set on the request, then the cookie middleware skips all cookie processing and no cookies are ever set.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Request(url=&quot;http://www.example.com&quot;, cookies={'currency': 'USD', 'country': 'UY'}, meta={'dont_merge_cookies': True})"><pre class="notranslate"><span class="pl-v">Request</span>(<span class="pl-s1">url</span><span class="pl-c1">=</span><span class="pl-s">"http://www.example.com"</span>, <span class="pl-s1">cookies</span><span class="pl-c1">=</span>{<span class="pl-s">'currency'</span>: <span class="pl-s">'USD'</span>, <span class="pl-s">'country'</span>: <span class="pl-s">'UY'</span>}, <span class="pl-s1">meta</span><span class="pl-c1">=</span>{<span class="pl-s">'dont_merge_cookies'</span>: <span class="pl-c1">True</span>})</pre></div> <p dir="auto">Does not work, however, this does:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Request(url=&quot;http://www.example.com&quot;, cookies={'currency': 'USD', 'country': 'UY'})"><pre class="notranslate"><span class="pl-v">Request</span>(<span class="pl-s1">url</span><span class="pl-c1">=</span><span class="pl-s">"http://www.example.com"</span>, <span class="pl-s1">cookies</span><span class="pl-c1">=</span>{<span class="pl-s">'currency'</span>: <span class="pl-s">'USD'</span>, <span class="pl-s">'country'</span>: <span class="pl-s">'UY'</span>})</pre></div>
1
<h1 dir="auto">Examples bug report</h1> <h2 dir="auto">Describe the bug</h2> <p dir="auto">When using a complete copy of with-ant-design-less sample, styles are loaded after an initial page render when nextjs is built to production</p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">Steps to reproduce the behavior, please provide code snippets or a repository:</p> <ol dir="auto"> <li>Go to <a href="https://github.com/zeit/next.js/tree/canary/examples/with-ant-design-less">https://github.com/zeit/next.js/tree/canary/examples/with-ant-design-less</a></li> <li>Clone the repository</li> <li>Install dependencies and build in production mode</li> <li>Start in production mode</li> </ol> <h2 dir="auto">Expected behavior</h2> <p dir="auto">Styles should be loaded before initial render</p> <h2 dir="auto">Screenshots</h2> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/23209488/65394427-38d3a600-dd8e-11e9-8867-960666893757.gif"><img src="https://user-images.githubusercontent.com/23209488/65394427-38d3a600-dd8e-11e9-8867-960666893757.gif" alt="65225171-edd33d80-dac4-11e9-84d2-9d5f0fb7903d" data-animated-image="" style="max-width: 100%;"></a></p> <h2 dir="auto">System information</h2> <ul dir="auto"> <li>OS: macOS</li> <li>Browser (if applies) chrome</li> <li>Version of Next.js: latest</li> </ul> <h2 dir="auto">Additional context</h2> <p dir="auto">I tried to deploy using my nextjs app using now and same issue is happening.</p>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">A mailto link should open the email client of the user, regardless if the recipient is present or not.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">When the recipient is missing, isLocal in returns true. Leading to 'Cannot read property replace of null' further down the road.</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li><a href="mailto:jonas@example.com">mailto:jonas@example.com</a>?subject=Next.js%20rocks works as intended</li> <li>mailto:?subject=Next.js%20rocks does not work</li> <li></li> <li></li> </ol> <h2 dir="auto">Context</h2> <p dir="auto">One of the ways our users can recommend an article to a friend, is to email a link. This is handled by providing a mailto link without recipient, but with information in the subject and body field. Then the users only need to fill in a recipient, and the mail will be sent from his own email client.</p> <p dir="auto">This issue is of course avoidable by using a form, but the project owner is currently insisting on keeping this how it is today. So we were hoping this could be fixed.</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.0.3</td> </tr> <tr> <td>node</td> <td>6.11.3</td> </tr> <tr> <td>OS</td> <td>macOS 10.13</td> </tr> <tr> <td>browser</td> <td>Safari, Chrome</td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">I just want to add the CircularProgress component to my app.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">I have an error : "Element ref was specified as a string (wrapper) but no owner was set. You may have multiple copies of React loaded. (details: <a href="https://fb.me/react-refs-must-have-owner" rel="nofollow">https://fb.me/react-refs-must-have-owner</a>)."<br> Replacing by another component like LinearProgress, is working fine.</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <p dir="auto">I have an another error trying to reproduce the bug<br> <a href="https://codesandbox.io/s/pw5klx47v7" rel="nofollow">https://codesandbox.io/s/pw5klx47v7</a></p> <h2 dir="auto">Context</h2> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>0.20.0</td> </tr> <tr> <td>React</td> <td>16.0.0</td> </tr> <tr> <td>browser</td> <td>Chrome 63.0.3239.84</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">At mobile breakpoints, a <code class="notranslate">&lt;Snackbar /&gt;</code> positioned bottom-center should span the whole width of the window.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">At mobile breakpoints, a <code class="notranslate">&lt;Snackbar /&gt;</code> positioned bottom-center takes up at maximum the center 50% of the window. If the message is shorter than ~50% of the window, the snackbar will be smaller.</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <p dir="auto">This bug is visible in the demo site under the "Positioned" section: <a href="https://material-ui-1dab0.firebaseapp.com/demos/snackbars/#positioned" rel="nofollow">https://material-ui-1dab0.firebaseapp.com/demos/snackbars/#positioned</a></p> <ol dir="auto"> <li>Click "Bottom-Center".</li> <li>Observe that the Snackbar is centered and not full width.</li> <li>Click "Bottom-Left".</li> <li>Observe that the Snackbar is full width.</li> </ol> <h2 dir="auto">Context</h2> <p dir="auto">This bug is especially a problem when there are more than 8 or 9 words in the message, along with an action, and the snackbar looks oddly tall.</p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>v1.0.0-beta.15</td> </tr> <tr> <td>React</td> <td>v16.0.0</td> </tr> <tr> <td>browser</td> <td>Chrome</td> </tr> </tbody> </table>
0
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">dependency</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.1.3.0 config file = configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">ansible 2.1.3.0 config file = configured module search path = Default w/o overrides </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <p dir="auto">default configuration without any changes</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">N/A (tested on Mac and Windows)</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">Variables that get available by using dependencies in <code class="notranslate">meta</code>-information of a role do not propagate their variables correctly if they got set during inclusion of the role.</p> <p dir="auto">I have not found anything in the changelog or documentation stating that this is now changed and correct behaviour, so I assume that it is a bug.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">One has two roles, one base-role and one role that will be used as a dependency role in the base role:</p> <h6 dir="auto">example-role</h6> <p dir="auto"><code class="notranslate">meta/main.yml</code></p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="--- dependencies: - role: dependency-role base_path: &quot;/another/base&quot;"><pre class="notranslate">--- <span class="pl-ent">dependencies</span>: - <span class="pl-ent">role</span>: <span class="pl-s">dependency-role</span> <span class="pl-ent">base_path</span>: <span class="pl-s"><span class="pl-pds">"</span>/another/base<span class="pl-pds">"</span></span></pre></div> <p dir="auto"><code class="notranslate">tasks/main.yml</code></p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="--- - name: show example role ouput debug: msg: &quot;base_path={{ base_path }}, detailled_path={{ detailled_path }}&quot;"><pre class="notranslate">--- - <span class="pl-ent">name</span>: <span class="pl-s">show example role ouput</span> <span class="pl-ent">debug</span>: <span class="pl-ent">msg</span>: <span class="pl-s"><span class="pl-pds">"</span>base_path={{ base_path }}, detailled_path={{ detailled_path }}<span class="pl-pds">"</span></span></pre></div> <h6 dir="auto">dependency-role</h6> <p dir="auto"><code class="notranslate">vars/main.yml</code></p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="--- base_path: &quot;/some/base/path&quot; detailled_path: &quot;{{ base_path }}/detailed&quot;"><pre class="notranslate">--- <span class="pl-ent">base_path</span>: <span class="pl-s"><span class="pl-pds">"</span>/some/base/path<span class="pl-pds">"</span></span> <span class="pl-ent">detailled_path</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ base_path }}/detailed<span class="pl-pds">"</span></span></pre></div> <p dir="auto"><code class="notranslate">tasks/main.yml</code></p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="--- - name: show example role ouput debug: msg: &quot;base_path={{ base_path }}, detailled_path={{ detailled_path }}&quot;"><pre class="notranslate">--- - <span class="pl-ent">name</span>: <span class="pl-s">show example role ouput</span> <span class="pl-ent">debug</span>: <span class="pl-ent">msg</span>: <span class="pl-s"><span class="pl-pds">"</span>base_path={{ base_path }}, detailled_path={{ detailled_path }}<span class="pl-pds">"</span></span></pre></div> <h6 dir="auto">playbook</h6> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="--- - hosts: localhost gather_facts: no connection: local become: no roles: - dependency-role - example-role"><pre class="notranslate">--- - <span class="pl-ent">hosts</span>: <span class="pl-s">localhost</span> <span class="pl-ent">gather_facts</span>: <span class="pl-s">no</span> <span class="pl-ent">connection</span>: <span class="pl-s">local</span> <span class="pl-ent">become</span>: <span class="pl-s">no</span> <span class="pl-ent">roles</span>: - <span class="pl-s">dependency-role</span> - <span class="pl-s">example-role</span></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">As of Ansible 2.0.2.0, the variable adjusted by including the dependency-role is available in the example-role after solving the dependency:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="No config file found; using defaults PLAYBOOK: play.yml ************************************************************* 1 plays in play.yml PLAY [localhost] *************************************************************** TASK [dependency-role : Show dependency debut output] ************************** task path: /Users/stli/projects/ansible-test/roles/dependency-role/tasks/main.yml:3 ok: [localhost] =&gt; { &quot;msg&quot;: &quot;base_path=/some/base/path, detailled_path=/some/base/path/detailed&quot; } TASK [dependency-role : Show dependency debut output] ************************** task path: /Users/stli/projects/ansible-test/roles/dependency-role/tasks/main.yml:3 ok: [localhost] =&gt; { &quot;msg&quot;: &quot;base_path=/another/base, detailled_path=/another/base/detailed&quot; } TASK [example-role : show example role ouput] ********************************** task path: /Users/stli/projects/ansible-test/roles/example-role/tasks/main.yml:3 ok: [localhost] =&gt; { &quot;msg&quot;: &quot;base_path=/another/base, detailled_path=/another/base/detailed&quot; } PLAY RECAP ********************************************************************* localhost : ok=3 changed=0 unreachable=0 failed=0 "><pre class="notranslate"><code class="notranslate">No config file found; using defaults PLAYBOOK: play.yml ************************************************************* 1 plays in play.yml PLAY [localhost] *************************************************************** TASK [dependency-role : Show dependency debut output] ************************** task path: /Users/stli/projects/ansible-test/roles/dependency-role/tasks/main.yml:3 ok: [localhost] =&gt; { "msg": "base_path=/some/base/path, detailled_path=/some/base/path/detailed" } TASK [dependency-role : Show dependency debut output] ************************** task path: /Users/stli/projects/ansible-test/roles/dependency-role/tasks/main.yml:3 ok: [localhost] =&gt; { "msg": "base_path=/another/base, detailled_path=/another/base/detailed" } TASK [example-role : show example role ouput] ********************************** task path: /Users/stli/projects/ansible-test/roles/example-role/tasks/main.yml:3 ok: [localhost] =&gt; { "msg": "base_path=/another/base, detailled_path=/another/base/detailed" } PLAY RECAP ********************************************************************* localhost : ok=3 changed=0 unreachable=0 failed=0 </code></pre></div> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">In Ansible 2.1.3.0 (also tested in 2.1.0.0 - 2.1.2.0), the variable will use its defaults afterwards, without taking the included variable in account</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="No config file found; using defaults PLAYBOOK: play.yml ************************************************************* 1 plays in play.yml PLAY [localhost] *************************************************************** TASK [dependency-role : Show dependency debut output] ************************** task path: /Users/stli/projects/ansible-test/roles/dependency-role/tasks/main.yml:3 ok: [localhost] =&gt; { &quot;msg&quot;: &quot;base_path=/some/base/path, detailled_path=/some/base/path/detailed&quot; } TASK [dependency-role : Show dependency debut output] ************************** task path: /Users/stli/projects/ansible-test/roles/dependency-role/tasks/main.yml:3 ok: [localhost] =&gt; { &quot;msg&quot;: &quot;base_path=/another/base, detailled_path=/another/base/detailed&quot; } TASK [example-role : show example role ouput] ********************************** task path: /Users/stli/projects/ansible-test/roles/example-role/tasks/main.yml:3 ok: [localhost] =&gt; { &quot;msg&quot;: &quot;base_path=/some/base/path, detailled_path=/some/base/path/detailed&quot; } PLAY RECAP ********************************************************************* localhost : ok=3 changed=0 unreachable=0 failed=0 "><pre class="notranslate"><code class="notranslate">No config file found; using defaults PLAYBOOK: play.yml ************************************************************* 1 plays in play.yml PLAY [localhost] *************************************************************** TASK [dependency-role : Show dependency debut output] ************************** task path: /Users/stli/projects/ansible-test/roles/dependency-role/tasks/main.yml:3 ok: [localhost] =&gt; { "msg": "base_path=/some/base/path, detailled_path=/some/base/path/detailed" } TASK [dependency-role : Show dependency debut output] ************************** task path: /Users/stli/projects/ansible-test/roles/dependency-role/tasks/main.yml:3 ok: [localhost] =&gt; { "msg": "base_path=/another/base, detailled_path=/another/base/detailed" } TASK [example-role : show example role ouput] ********************************** task path: /Users/stli/projects/ansible-test/roles/example-role/tasks/main.yml:3 ok: [localhost] =&gt; { "msg": "base_path=/some/base/path, detailled_path=/some/base/path/detailed" } PLAY RECAP ********************************************************************* localhost : ok=3 changed=0 unreachable=0 failed=0 </code></pre></div> <p dir="auto">The whole test can be found in a <a href="https://github.com/stehefan/ansible-dependency-bug-report">repo of mine</a>, including the output of the different versions I tried this with.</p>
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Commit 3b69ef7e8b34d736770aed8f2b31cfec522ed2d8"><pre class="notranslate"><code class="notranslate">Commit 3b69ef7e8b34d736770aed8f2b31cfec522ed2d8 </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <p dir="auto">Ansible from Source (since commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/ansible/ansible/commit/33de7707c9027ace26ec62bff8f58717f4080538/hovercard" href="https://github.com/ansible/ansible/commit/33de7707c9027ace26ec62bff8f58717f4080538"><tt>33de770</tt></a> ) and dependencies with pip</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">Docker Image library/jenkins:1.651.1 with Ansible from Source</p> <p dir="auto">Also Ubuntu 16.04</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">Ansible is confused by passing dictionaries through nested role dependencie calls. See steps to reproduce and expected/actual results for explanation.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">The following files will demonstrate the bug and are also available for download at <a href="https://github.com/ThomasSteinbach/ansible_bug_15996">https://github.com/ThomasSteinbach/ansible_bug_15996</a></p> <p dir="auto">Playbooks <code class="notranslate">site.yml</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="roles: - role: testone onevar: onevarcontent"><pre class="notranslate"><code class="notranslate">roles: - role: testone onevar: onevarcontent </code></pre></div> <p dir="auto"><code class="notranslate">testone/meta/main.yml</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="dependencies: - role: testtwo initial: ONE: &quot;{{ onevar }}&quot; TWO: zwei"><pre class="notranslate"><code class="notranslate">dependencies: - role: testtwo initial: ONE: "{{ onevar }}" TWO: zwei </code></pre></div> <p dir="auto"><code class="notranslate">testtwo/meta/main.yml</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="dependencies: - role: testthree inside_var: &quot;{{ initial.ONE }}&quot;"><pre class="notranslate"><code class="notranslate">dependencies: - role: testthree inside_var: "{{ initial.ONE }}" </code></pre></div> <p dir="auto"><code class="notranslate">testthree/tasks/main.yml</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- include: test.yml"><pre class="notranslate"><code class="notranslate">- include: test.yml </code></pre></div> <p dir="auto"><code class="notranslate">testthree/tasks/test.yml</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- debug: msg=&quot;everythingsfine&quot; when: &quot;{{ inside_var == 'onevarcontent' }}&quot;"><pre class="notranslate"><code class="notranslate">- debug: msg="everythingsfine" when: "{{ inside_var == 'onevarcontent' }}" </code></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">Ansible 2.0.2.0 installed with pip behaves like expected:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY [this playbook is for testing purposes] *********************************** TASK [testthree : include] ***************************************************** included: /home/uid1000/ansible/ansible_playbooks/test/roles/testthree/tasks/test.yml for localhost TASK [testthree : debug] ******************************************************* ok: [localhost] =&gt; { &quot;msg&quot;: &quot;everythingsfine&quot; }"><pre class="notranslate"><code class="notranslate">PLAY [this playbook is for testing purposes] *********************************** TASK [testthree : include] ***************************************************** included: /home/uid1000/ansible/ansible_playbooks/test/roles/testthree/tasks/test.yml for localhost TASK [testthree : debug] ******************************************************* ok: [localhost] =&gt; { "msg": "everythingsfine" } </code></pre></div> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">The latest Ansible version from source seems to be broken and leads to following result:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY [this playbook is for testing purposes] *********************************** TASK [testthree : include] ***************************************************** included: /var/jenkins_home/workspace/develop/xarifP/test/roles/testthree/tasks/test.yml for acia.vm TASK [testthree : debug] ******************************************************* fatal: [acia.vm]: FAILED! =&gt; {&quot;failed&quot;: true, &quot;msg&quot;: &quot;The conditional check '{{ inside_var == 'onevarcontent' }}' failed. The error was: error while evaluating conditional ({{ inside_var == 'onevarcontent' }}): {{ initial.ONE }}: 'initial' is undefined\n\nThe error appears to have been in '/var/jenkins_home/workspace/develop/xarifP/test/roles/testthree/tasks/test.yml': line 2, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n---\n- debug: msg=\&quot;everythingsfine\&quot;\n ^ here\n&quot;}"><pre class="notranslate"><code class="notranslate">PLAY [this playbook is for testing purposes] *********************************** TASK [testthree : include] ***************************************************** included: /var/jenkins_home/workspace/develop/xarifP/test/roles/testthree/tasks/test.yml for acia.vm TASK [testthree : debug] ******************************************************* fatal: [acia.vm]: FAILED! =&gt; {"failed": true, "msg": "The conditional check '{{ inside_var == 'onevarcontent' }}' failed. The error was: error while evaluating conditional ({{ inside_var == 'onevarcontent' }}): {{ initial.ONE }}: 'initial' is undefined\n\nThe error appears to have been in '/var/jenkins_home/workspace/develop/xarifP/test/roles/testthree/tasks/test.yml': line 2, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n---\n- debug: msg=\"everythingsfine\"\n ^ here\n"} </code></pre></div>
1
<p dir="auto">Hi guys.<br> I'm working in project that's support Angular 2 and I want to upload images directly to API.<br> How could I use Angular to do similar job ?<br> I tried using [(ng-model)] with input type file. and I get path look like <code class="notranslate">C:/fakepath/imagename.png</code>.</p>
<p dir="auto"><strong>I'm submitting a ...</strong></p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> bug report</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> feature request</li> </ul> <p dir="auto"><strong>Current behavior</strong></p> <p dir="auto">In the old router, the new router and the very new router querystring parameters always are accessible as <code class="notranslate">{[k:string]:string}</code>. To pass an array of values via the querystring we have to rely on encoding within the application to serialize and then deserialize the array. We <em>should</em> be able to simply rely on existing URL standard behavior.</p> <p dir="auto">Adding to my frustration, there is already a class, <code class="notranslate">URLSearchParams</code> that fully models the querystring but seems unused when retrieving url search params from the router.<br> <a href="https://angular.io/docs/ts/latest/api/http/URLSearchParams-class.html" rel="nofollow">https://angular.io/docs/ts/latest/api/http/URLSearchParams-class.html</a></p> <p dir="auto"><strong>Expected/desired behavior</strong></p> <p dir="auto">When retrieving data parsed from a querystring it should be presented either in a datastructure that supports the standard or in a class that models it properly.</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const q: Observable&lt;URLSearchParams&gt; = r.routerState.queryParams;"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">q</span>: <span class="pl-smi">Observable</span><span class="pl-kos">&lt;</span><span class="pl-smi">URLSearchParams</span><span class="pl-kos">&gt;</span> <span class="pl-c1">=</span> <span class="pl-s1">r</span><span class="pl-kos">.</span><span class="pl-c1">routerState</span><span class="pl-kos">.</span><span class="pl-c1">queryParams</span><span class="pl-kos">;</span></pre></div> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const q: Observable&lt;{[k:string]:string[]}&gt; = r.routerState.queryParams;"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">q</span>: <span class="pl-smi">Observable</span><span class="pl-kos">&lt;</span><span class="pl-kos">{</span><span class="pl-kos">[</span><span class="pl-s1">k</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-kos">]</span><span class="pl-kos">}</span><span class="pl-kos">&gt;</span> <span class="pl-c1">=</span> <span class="pl-s1">r</span><span class="pl-kos">.</span><span class="pl-c1">routerState</span><span class="pl-kos">.</span><span class="pl-c1">queryParams</span><span class="pl-kos">;</span></pre></div> <p dir="auto">My vote is for the URLSearchParams version of course.</p>
0
<h4 dir="auto">Code Sample, a copy-pastable example if possible</h4> <p dir="auto">Executing</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd df = pd.DataFrame({'a':[pd.Timestamp('2010-02-01'), pd.Timestamp('2010-02-04'), pd.Timestamp('2010-02-05'), pd.Timestamp('2010-02-06')], 'b':[9,5,4,3], 'c':[5,3,4,2], 'd':[1,2,3,4]}) def fun(x): return (1,2) df.apply(fun, axis=1)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>({<span class="pl-s">'a'</span>:[<span class="pl-s1">pd</span>.<span class="pl-v">Timestamp</span>(<span class="pl-s">'2010-02-01'</span>), <span class="pl-s1">pd</span>.<span class="pl-v">Timestamp</span>(<span class="pl-s">'2010-02-04'</span>), <span class="pl-s1">pd</span>.<span class="pl-v">Timestamp</span>(<span class="pl-s">'2010-02-05'</span>), <span class="pl-s1">pd</span>.<span class="pl-v">Timestamp</span>(<span class="pl-s">'2010-02-06'</span>)], <span class="pl-s">'b'</span>:[<span class="pl-c1">9</span>,<span class="pl-c1">5</span>,<span class="pl-c1">4</span>,<span class="pl-c1">3</span>], <span class="pl-s">'c'</span>:[<span class="pl-c1">5</span>,<span class="pl-c1">3</span>,<span class="pl-c1">4</span>,<span class="pl-c1">2</span>], <span class="pl-s">'d'</span>:[<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>,<span class="pl-c1">4</span>]}) <span class="pl-k">def</span> <span class="pl-en">fun</span>(<span class="pl-s1">x</span>): <span class="pl-k">return</span> (<span class="pl-c1">1</span>,<span class="pl-c1">2</span>) <span class="pl-s1">df</span>.<span class="pl-en">apply</span>(<span class="pl-s1">fun</span>, <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">1</span>)</pre></div> <p dir="auto">raises an exception</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--------------------------------------------------------------------------- ValueError Traceback (most recent call last) /Users/wilmat01/anaconda/lib/python3.6/site-packages/pandas/core/internals.py in create_block_manager_from_arrays(arrays, names, axes) 4309 blocks = form_blocks(arrays, names, axes) -&gt; 4310 mgr = BlockManager(blocks, axes) 4311 mgr._consolidate_inplace() /Users/wilmat01/anaconda/lib/python3.6/site-packages/pandas/core/internals.py in __init__(self, blocks, axes, do_integrity_check, fastpath) 2794 if do_integrity_check: -&gt; 2795 self._verify_integrity() 2796 /Users/wilmat01/anaconda/lib/python3.6/site-packages/pandas/core/internals.py in _verify_integrity(self) 3005 if block._verify_integrity and block.shape[1:] != mgr_shape[1:]: -&gt; 3006 construction_error(tot_items, block.shape[1:], self.axes) 3007 if len(self.items) != tot_items: /Users/wilmat01/anaconda/lib/python3.6/site-packages/pandas/core/internals.py in construction_error(tot_items, block_shape, axes, e) 4279 raise ValueError(&quot;Shape of passed values is {0}, indices imply {1}&quot;.format( -&gt; 4280 passed, implied)) 4281 ValueError: Shape of passed values is (4, 2), indices imply (4, 4) During handling of the above exception, another exception occurred: ValueError Traceback (most recent call last) &lt;ipython-input-26-7b305f7b3474&gt; in &lt;module&gt;() 8 return (1,2) 9 ---&gt; 10 df.apply(fun, axis=1) /Users/wilmat01/anaconda/lib/python3.6/site-packages/pandas/core/frame.py in apply(self, func, axis, broadcast, raw, reduce, args, **kwds) 4260 f, axis, 4261 reduce=reduce, -&gt; 4262 ignore_failures=ignore_failures) 4263 else: 4264 return self._apply_broadcast(f, axis) /Users/wilmat01/anaconda/lib/python3.6/site-packages/pandas/core/frame.py in _apply_standard(self, func, axis, ignore_failures, reduce) 4373 index = None 4374 -&gt; 4375 result = self._constructor(data=results, index=index) 4376 result.columns = res_index 4377 /Users/wilmat01/anaconda/lib/python3.6/site-packages/pandas/core/frame.py in __init__(self, data, index, columns, dtype, copy) 273 dtype=dtype, copy=copy) 274 elif isinstance(data, dict): --&gt; 275 mgr = self._init_dict(data, index, columns, dtype=dtype) 276 elif isinstance(data, ma.MaskedArray): 277 import numpy.ma.mrecords as mrecords /Users/wilmat01/anaconda/lib/python3.6/site-packages/pandas/core/frame.py in _init_dict(self, data, index, columns, dtype) 409 arrays = [data[k] for k in keys] 410 --&gt; 411 return _arrays_to_mgr(arrays, data_names, index, columns, dtype=dtype) 412 413 def _init_ndarray(self, values, index, columns, dtype=None, copy=False): /Users/wilmat01/anaconda/lib/python3.6/site-packages/pandas/core/frame.py in _arrays_to_mgr(arrays, arr_names, index, columns, dtype) 5504 axes = [_ensure_index(columns), _ensure_index(index)] 5505 -&gt; 5506 return create_block_manager_from_arrays(arrays, arr_names, axes) 5507 5508 /Users/wilmat01/anaconda/lib/python3.6/site-packages/pandas/core/internals.py in create_block_manager_from_arrays(arrays, names, axes) 4312 return mgr 4313 except ValueError as e: -&gt; 4314 construction_error(len(arrays), arrays[0].shape, axes, e) 4315 4316 /Users/wilmat01/anaconda/lib/python3.6/site-packages/pandas/core/internals.py in construction_error(tot_items, block_shape, axes, e) 4278 raise ValueError(&quot;Empty data passed with indices specified.&quot;) 4279 raise ValueError(&quot;Shape of passed values is {0}, indices imply {1}&quot;.format( -&gt; 4280 passed, implied)) 4281 4282 ValueError: Shape of passed values is (4, 2), indices imply (4, 4)"><pre class="notranslate"><code class="notranslate">--------------------------------------------------------------------------- ValueError Traceback (most recent call last) /Users/wilmat01/anaconda/lib/python3.6/site-packages/pandas/core/internals.py in create_block_manager_from_arrays(arrays, names, axes) 4309 blocks = form_blocks(arrays, names, axes) -&gt; 4310 mgr = BlockManager(blocks, axes) 4311 mgr._consolidate_inplace() /Users/wilmat01/anaconda/lib/python3.6/site-packages/pandas/core/internals.py in __init__(self, blocks, axes, do_integrity_check, fastpath) 2794 if do_integrity_check: -&gt; 2795 self._verify_integrity() 2796 /Users/wilmat01/anaconda/lib/python3.6/site-packages/pandas/core/internals.py in _verify_integrity(self) 3005 if block._verify_integrity and block.shape[1:] != mgr_shape[1:]: -&gt; 3006 construction_error(tot_items, block.shape[1:], self.axes) 3007 if len(self.items) != tot_items: /Users/wilmat01/anaconda/lib/python3.6/site-packages/pandas/core/internals.py in construction_error(tot_items, block_shape, axes, e) 4279 raise ValueError("Shape of passed values is {0}, indices imply {1}".format( -&gt; 4280 passed, implied)) 4281 ValueError: Shape of passed values is (4, 2), indices imply (4, 4) During handling of the above exception, another exception occurred: ValueError Traceback (most recent call last) &lt;ipython-input-26-7b305f7b3474&gt; in &lt;module&gt;() 8 return (1,2) 9 ---&gt; 10 df.apply(fun, axis=1) /Users/wilmat01/anaconda/lib/python3.6/site-packages/pandas/core/frame.py in apply(self, func, axis, broadcast, raw, reduce, args, **kwds) 4260 f, axis, 4261 reduce=reduce, -&gt; 4262 ignore_failures=ignore_failures) 4263 else: 4264 return self._apply_broadcast(f, axis) /Users/wilmat01/anaconda/lib/python3.6/site-packages/pandas/core/frame.py in _apply_standard(self, func, axis, ignore_failures, reduce) 4373 index = None 4374 -&gt; 4375 result = self._constructor(data=results, index=index) 4376 result.columns = res_index 4377 /Users/wilmat01/anaconda/lib/python3.6/site-packages/pandas/core/frame.py in __init__(self, data, index, columns, dtype, copy) 273 dtype=dtype, copy=copy) 274 elif isinstance(data, dict): --&gt; 275 mgr = self._init_dict(data, index, columns, dtype=dtype) 276 elif isinstance(data, ma.MaskedArray): 277 import numpy.ma.mrecords as mrecords /Users/wilmat01/anaconda/lib/python3.6/site-packages/pandas/core/frame.py in _init_dict(self, data, index, columns, dtype) 409 arrays = [data[k] for k in keys] 410 --&gt; 411 return _arrays_to_mgr(arrays, data_names, index, columns, dtype=dtype) 412 413 def _init_ndarray(self, values, index, columns, dtype=None, copy=False): /Users/wilmat01/anaconda/lib/python3.6/site-packages/pandas/core/frame.py in _arrays_to_mgr(arrays, arr_names, index, columns, dtype) 5504 axes = [_ensure_index(columns), _ensure_index(index)] 5505 -&gt; 5506 return create_block_manager_from_arrays(arrays, arr_names, axes) 5507 5508 /Users/wilmat01/anaconda/lib/python3.6/site-packages/pandas/core/internals.py in create_block_manager_from_arrays(arrays, names, axes) 4312 return mgr 4313 except ValueError as e: -&gt; 4314 construction_error(len(arrays), arrays[0].shape, axes, e) 4315 4316 /Users/wilmat01/anaconda/lib/python3.6/site-packages/pandas/core/internals.py in construction_error(tot_items, block_shape, axes, e) 4278 raise ValueError("Empty data passed with indices specified.") 4279 raise ValueError("Shape of passed values is {0}, indices imply {1}".format( -&gt; 4280 passed, implied)) 4281 4282 ValueError: Shape of passed values is (4, 2), indices imply (4, 4) </code></pre></div> <h4 dir="auto">Problem description</h4> <ul dir="auto"> <li>I see the same problem when <code class="notranslate">fun</code> returns a list (e.g. <code class="notranslate">[1,2]</code>) rather than tuple.</li> <li>The error does not occur when apply is called with <code class="notranslate">axis=0</code>.</li> <li>The error does not occur when I replace the Timestamp column with a column of integers.</li> </ul> <h4 dir="auto">Expected Output</h4> <p dir="auto">A pandas Series containing tuples:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="0 (1, 2) 1 (1, 2) 2 (1, 2) 3 (1, 2) dtype: object"><pre class="notranslate"><code class="notranslate">0 (1, 2) 1 (1, 2) 2 (1, 2) 3 (1, 2) dtype: object </code></pre></div> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> <p dir="auto">[paste the output of <code class="notranslate">pd.show_versions()</code> here below this line]</p> <h2 dir="auto">INSTALLED VERSIONS</h2> <p dir="auto">commit: None<br> python: 3.6.1.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_GB.UTF-8<br> LOCALE: en_GB.UTF-8</p> <p dir="auto">pandas: 0.20.3<br> pytest: 3.0.7<br> pip: 9.0.1<br> setuptools: 27.2.0<br> Cython: 0.25.2<br> numpy: 1.13.3<br> scipy: 0.19.0<br> xarray: None<br> IPython: 5.3.0<br> sphinx: 1.5.6<br> patsy: 0.4.1<br> dateutil: 2.6.1<br> pytz: 2017.2<br> blosc: None<br> bottleneck: 1.2.1<br> tables: 3.3.0<br> numexpr: 2.6.2<br> feather: 0.4.0<br> matplotlib: 2.0.2<br> openpyxl: 2.4.7<br> xlrd: 1.0.0<br> xlwt: 1.2.0<br> xlsxwriter: 0.9.6<br> lxml: 3.7.3<br> bs4: 4.6.0<br> html5lib: 0.9999999<br> sqlalchemy: 1.1.9<br> pymysql: None<br> psycopg2: None<br> jinja2: 2.9.6<br> s3fs: None<br> pandas_gbq: None<br> pandas_datareader: None</p> </details>
<p dir="auto">Hello guys, I'm using the apply method with axis=1 argument and returning a list for each row. The weird thing is when the length of this list is equal to the number of features in the original dataframe, this apply returns another dataframe, and a series if anything else. I don't know if this is intended, but it was very unexpected.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import numpy as np import pandas as pd df = pd.DataFrame(np.random.randn(6, 3), columns=['A', 'B', 'C']) ans1 = df.apply(lambda x: [1, 2, 3], axis=1) ans2 = df.apply(lambda x: [1, 2], axis=1) assert type(ans1) is pd.DataFrame assert type(ans2) is pd.Series"><pre class="notranslate"><code class="notranslate">import numpy as np import pandas as pd df = pd.DataFrame(np.random.randn(6, 3), columns=['A', 'B', 'C']) ans1 = df.apply(lambda x: [1, 2, 3], axis=1) ans2 = df.apply(lambda x: [1, 2], axis=1) assert type(ans1) is pd.DataFrame assert type(ans2) is pd.Series </code></pre></div>
1
<p dir="auto">Hi,</p> <p dir="auto">I am new to rust and was trying to write a simple program when I ran into this failure. The failure message with backtrace enabled is as follows :</p> <p dir="auto">RUST_LOG=rustc=1,::rt::backtrace rustc list.rs<br> rust: task 7f8a7b415f20 ran out of stack<br> error: internal compiler error: unexpected failure<br> note: the compiler hit an unexpected failure path. this is a bug<br> note: try running with RUST_LOG=rustc=1,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues<br> rust: task failed at 'explicit failure', /private/tmp/rust-xCH0/rust-0.6/src/librustc/rustc.rc:357<br> rust: domain main @0x7f8a7b815e10 root task failed</p> <p dir="auto">The source code that gets the compiler to fail is pasted below. I realize that I made a mistake by not making the "next" field an owned pointer in the structure below. Correcting this by making "next" an owned pointer using <code class="notranslate">Option&lt;~Node&gt;</code> fixes the problem.</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="struct Node { number : uint, next : Option&lt;Node&gt; } fn main() { let mut head = Node{ number : 0, next : None }; let mut node = Node{ number : 10, next : None }; head.next = Some( node ); }"><pre class="notranslate"><span class="pl-k">struct</span> <span class="pl-smi">Node</span> <span class="pl-kos">{</span> <span class="pl-c1">number</span> <span class="pl-kos">:</span> <span class="pl-smi">uint</span><span class="pl-kos">,</span> <span class="pl-c1">next</span> <span class="pl-kos">:</span> <span class="pl-smi">Option</span><span class="pl-kos">&lt;</span><span class="pl-smi">Node</span><span class="pl-kos">&gt;</span> <span class="pl-kos">}</span> <span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> <span class="pl-k">mut</span> head = <span class="pl-smi">Node</span><span class="pl-kos">{</span> <span class="pl-c1">number</span> <span class="pl-kos">:</span> <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-c1">next</span> <span class="pl-kos">:</span> <span class="pl-v">None</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-k">let</span> <span class="pl-k">mut</span> node = <span class="pl-smi">Node</span><span class="pl-kos">{</span> <span class="pl-c1">number</span> <span class="pl-kos">:</span> <span class="pl-c1">10</span><span class="pl-kos">,</span> <span class="pl-c1">next</span> <span class="pl-kos">:</span> <span class="pl-v">None</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> head<span class="pl-kos">.</span><span class="pl-c1">next</span> = <span class="pl-v">Some</span><span class="pl-kos">(</span> node <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Is this expected ? Can the compiler instead catch such mistakes instead of running out of stack.</p> <p dir="auto">Thanks,<br> Madhu</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="enum FingerTree&lt;A&gt; { Empty, Single(A), Deep(Node&lt;A&gt;) } struct Node&lt;A&gt; { count: int, front: Digit&lt;A&gt;, inner: ~FingerTree&lt;(A,A)&gt;, back: Digit&lt;A&gt; } struct Digit&lt;A&gt; { count: int, content: [Option&lt;A&gt;, ..4] } fn FingerTree&lt;A&gt;() -&gt; FingerTree&lt;A&gt; { Empty }"><pre class="notranslate"><span class="pl-k">enum</span> <span class="pl-smi">FingerTree</span><span class="pl-kos">&lt;</span><span class="pl-smi">A</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-v">Empty</span><span class="pl-kos">,</span> <span class="pl-v">Single</span><span class="pl-kos">(</span><span class="pl-smi">A</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-v">Deep</span><span class="pl-kos">(</span><span class="pl-smi">Node</span><span class="pl-kos">&lt;</span><span class="pl-smi">A</span><span class="pl-kos">&gt;</span><span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-k">struct</span> <span class="pl-smi">Node</span><span class="pl-kos">&lt;</span><span class="pl-smi">A</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-c1">count</span><span class="pl-kos">:</span> <span class="pl-smi">int</span><span class="pl-kos">,</span> <span class="pl-c1">front</span><span class="pl-kos">:</span> <span class="pl-smi">Digit</span><span class="pl-kos">&lt;</span><span class="pl-smi">A</span><span class="pl-kos">&gt;</span><span class="pl-kos">,</span> <span class="pl-c1">inner</span><span class="pl-kos">:</span> ~<span class="pl-smi">FingerTree</span><span class="pl-kos">&lt;</span><span class="pl-kos">(</span><span class="pl-smi">A</span><span class="pl-kos">,</span><span class="pl-smi">A</span><span class="pl-kos">)</span><span class="pl-kos">&gt;</span><span class="pl-kos">,</span> <span class="pl-c1">back</span><span class="pl-kos">:</span> <span class="pl-smi">Digit</span><span class="pl-kos">&lt;</span><span class="pl-smi">A</span><span class="pl-kos">&gt;</span> <span class="pl-kos">}</span> <span class="pl-k">struct</span> <span class="pl-smi">Digit</span><span class="pl-kos">&lt;</span><span class="pl-smi">A</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-c1">count</span><span class="pl-kos">:</span> <span class="pl-smi">int</span><span class="pl-kos">,</span> <span class="pl-c1">content</span><span class="pl-kos">:</span> <span class="pl-kos">[</span><span class="pl-smi">Option</span><span class="pl-kos">&lt;</span><span class="pl-smi">A</span><span class="pl-kos">&gt;</span><span class="pl-kos">,</span> ..<span class="pl-c1">4</span><span class="pl-kos">]</span> <span class="pl-kos">}</span> <span class="pl-k">fn</span> <span class="pl-v">FingerTree</span><span class="pl-kos">&lt;</span><span class="pl-smi">A</span><span class="pl-kos">&gt;</span><span class="pl-kos">(</span><span class="pl-kos">)</span> -&gt; <span class="pl-smi">FingerTree</span><span class="pl-kos">&lt;</span><span class="pl-smi">A</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-v">Empty</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Note: <code class="notranslate">inner: ~FingerTree&lt;(A,A)&gt;,</code> seems to be the problematic bit. If I make it <code class="notranslate">inner: ~FingerTree&lt;A&gt;,</code> it will compile.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rust: task 7f01a0105d80 ran out of stack /usr/local/bin/../lib/librustrt.so(_ZN9rust_task13begin_failureEPKcS1_m+0x4b)[0x7f01a68cf4fb] /usr/local/bin/../lib/librustrt.so(_ZN9rust_task9new_stackEm+0x158)[0x7f01a68cf9c8] /usr/local/bin/../lib/librustrt.so(+0x2d0f9)[0x7f01a68e30f9] /usr/local/bin/../lib/librustrt.so(upcall_new_stack+0x280)[0x7f01a68d3060] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(+0x782792)[0x7f01a7294792] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty14__extensions__10meth_3566210iter_bytes15_abfbbb3dea17df3_05E+0x85)[0x7f01a6ddda35] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(+0x2ddcb7)[0x7f01a6defcb7] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(+0x2db57d)[0x7f01a6ded57d] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty14fold_sty_to_ty13_f379ae3486733_05E+0xa5)[0x7f01a6df4985] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty19fold_regions_and_ty17_3db05a7d86315db93_05E+0x4cb)[0x7f01a6df668b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(+0x2e6c54)[0x7f01a6df8c54] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(+0x112a01)[0x7f01a6c24a01] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(+0x2e50ea)[0x7f01a6df70ea] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty19fold_regions_and_ty17_3db05a7d86315db93_05E+0x26a)[0x7f01a6df642a] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(+0x2e6c54)[0x7f01a6df8c54] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(+0x2e2b64)[0x7f01a6df4b64] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty14fold_sty_to_ty13_f379ae3486733_05E+0x5a)[0x7f01a6df493a] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty19fold_regions_and_ty17_3db05a7d86315db93_05E+0x4cb)[0x7f01a6df668b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(+0x2e6c54)[0x7f01a6df8c54] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty5subst17_6886f1198945c8923_05E+0x2fb)[0x7f01a6cc770b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty17lookup_field_type17_20ec4ec279466ae73_05E+0x1bb)[0x7f01a6d24e6b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(+0x30b842)[0x7f01a6e1d842] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x5e1)[0x7f01a6e00311] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] error: internal compiler error: unexpected failure note: the compiler hit an unexpected failure path. this is a bug note: try running with RUST_LOG=rustc=1,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues rust: task failed at 'explicit failure', /home/david/rust/src/librustc/rustc.rc:425 /usr/local/bin/../lib/librustrt.so(_ZN9rust_task13begin_failureEPKcS1_m+0x4b)[0x7f01a68cf4fb] /usr/local/bin/../lib/librustrt.so(+0x2d0f9)[0x7f01a68e30f9] /usr/local/bin/../lib/librustrt.so(upcall_fail+0x1b0)[0x7f01a68d1cb0] /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0xa2dbb)[0x7f01a807ddbb] /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0x37b6e)[0x7f01a8012b6e] /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0xb34d0)[0x7f01a808e4d0] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN7monitor17_3dc9d53d274031c13_05E+0x29de)[0x7f01a729153e] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(+0x7827fc)[0x7f01a72947fc] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN4main16_2fb85b4a659c4103_05E+0x86)[0x7f01a7294406] /usr/local/bin/../lib/librustrt.so(_Z18task_start_wrapperP10spawn_args+0x24)[0x7f01a68cfd64] rust: domain main @0xe0f1f0 root task failed rust: task failed at 'killed', /home/david/rust/src/libcore/task/mod.rs:570 /usr/local/bin/../lib/librustrt.so(_ZN9rust_task13begin_failureEPKcS1_m+0x4b)[0x7f01a68cf4fb] /usr/local/bin/../lib/librustrt.so(+0x2d0f9)[0x7f01a68e30f9] /usr/local/bin/../lib/librustrt.so(upcall_fail+0x1b0)[0x7f01a68d1cb0] /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0xa2dbb)[0x7f01a807ddbb] /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0x37b6e)[0x7f01a8012b6e] /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(_ZN4task5yield17_56812fae66173efd3_05E+0xbd)[0x7f01a803fe9d] /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0x91c56)[0x7f01a806cc56] /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0xb34d0)[0x7f01a808e4d0] /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(_ZN7private11weaken_task17_ababfc7d1239606c3_05E+0xd9)[0x7f01a806ca99] /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0x9198b)[0x7f01a806c98b] /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0x8c563)[0x7f01a8067563] /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0x7c29f)[0x7f01a805729f] /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0xb34d0)[0x7f01a808e4d0] /usr/local/bin/../lib/librustrt.so(_Z18task_start_wrapperP10spawn_args+0x24)[0x7f01a68cfd64]"><pre class="notranslate"><code class="notranslate">rust: task 7f01a0105d80 ran out of stack /usr/local/bin/../lib/librustrt.so(_ZN9rust_task13begin_failureEPKcS1_m+0x4b)[0x7f01a68cf4fb] /usr/local/bin/../lib/librustrt.so(_ZN9rust_task9new_stackEm+0x158)[0x7f01a68cf9c8] /usr/local/bin/../lib/librustrt.so(+0x2d0f9)[0x7f01a68e30f9] /usr/local/bin/../lib/librustrt.so(upcall_new_stack+0x280)[0x7f01a68d3060] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(+0x782792)[0x7f01a7294792] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty14__extensions__10meth_3566210iter_bytes15_abfbbb3dea17df3_05E+0x85)[0x7f01a6ddda35] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(+0x2ddcb7)[0x7f01a6defcb7] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(+0x2db57d)[0x7f01a6ded57d] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty14fold_sty_to_ty13_f379ae3486733_05E+0xa5)[0x7f01a6df4985] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty19fold_regions_and_ty17_3db05a7d86315db93_05E+0x4cb)[0x7f01a6df668b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(+0x2e6c54)[0x7f01a6df8c54] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(+0x112a01)[0x7f01a6c24a01] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(+0x2e50ea)[0x7f01a6df70ea] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty19fold_regions_and_ty17_3db05a7d86315db93_05E+0x26a)[0x7f01a6df642a] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(+0x2e6c54)[0x7f01a6df8c54] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(+0x2e2b64)[0x7f01a6df4b64] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty14fold_sty_to_ty13_f379ae3486733_05E+0x5a)[0x7f01a6df493a] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty19fold_regions_and_ty17_3db05a7d86315db93_05E+0x4cb)[0x7f01a6df668b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(+0x2e6c54)[0x7f01a6df8c54] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty5subst17_6886f1198945c8923_05E+0x2fb)[0x7f01a6cc770b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty17lookup_field_type17_20ec4ec279466ae73_05E+0x1bb)[0x7f01a6d24e6b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(+0x30b842)[0x7f01a6e1d842] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x5e1)[0x7f01a6e00311] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x3bd)[0x7f01a6e000ed] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x679)[0x7f01a6e003a9] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty13type_kind_ext17_a99988bff92221c13_05E+0x2fb)[0x7f01a6e0002b] error: internal compiler error: unexpected failure note: the compiler hit an unexpected failure path. this is a bug note: try running with RUST_LOG=rustc=1,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues rust: task failed at 'explicit failure', /home/david/rust/src/librustc/rustc.rc:425 /usr/local/bin/../lib/librustrt.so(_ZN9rust_task13begin_failureEPKcS1_m+0x4b)[0x7f01a68cf4fb] /usr/local/bin/../lib/librustrt.so(+0x2d0f9)[0x7f01a68e30f9] /usr/local/bin/../lib/librustrt.so(upcall_fail+0x1b0)[0x7f01a68d1cb0] /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0xa2dbb)[0x7f01a807ddbb] /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0x37b6e)[0x7f01a8012b6e] /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0xb34d0)[0x7f01a808e4d0] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN7monitor17_3dc9d53d274031c13_05E+0x29de)[0x7f01a729153e] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(+0x7827fc)[0x7f01a72947fc] /usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN4main16_2fb85b4a659c4103_05E+0x86)[0x7f01a7294406] /usr/local/bin/../lib/librustrt.so(_Z18task_start_wrapperP10spawn_args+0x24)[0x7f01a68cfd64] rust: domain main @0xe0f1f0 root task failed rust: task failed at 'killed', /home/david/rust/src/libcore/task/mod.rs:570 /usr/local/bin/../lib/librustrt.so(_ZN9rust_task13begin_failureEPKcS1_m+0x4b)[0x7f01a68cf4fb] /usr/local/bin/../lib/librustrt.so(+0x2d0f9)[0x7f01a68e30f9] /usr/local/bin/../lib/librustrt.so(upcall_fail+0x1b0)[0x7f01a68d1cb0] /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0xa2dbb)[0x7f01a807ddbb] /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0x37b6e)[0x7f01a8012b6e] /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(_ZN4task5yield17_56812fae66173efd3_05E+0xbd)[0x7f01a803fe9d] /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0x91c56)[0x7f01a806cc56] /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0xb34d0)[0x7f01a808e4d0] /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(_ZN7private11weaken_task17_ababfc7d1239606c3_05E+0xd9)[0x7f01a806ca99] /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0x9198b)[0x7f01a806c98b] /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0x8c563)[0x7f01a8067563] /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0x7c29f)[0x7f01a805729f] /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0xb34d0)[0x7f01a808e4d0] /usr/local/bin/../lib/librustrt.so(_Z18task_start_wrapperP10spawn_args+0x24)[0x7f01a68cfd64] </code></pre></div>
1
<h3 dir="auto">Bug summary</h3> <p dir="auto">Import of matplotlib leads to <code class="notranslate">KeyError: 'webagg.port'</code> on Slackware64-current.<br> Seems related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1058947669" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/21684" data-hovercard-type="pull_request" data-hovercard-url="/matplotlib/matplotlib/pull/21684/hovercard" href="https://github.com/matplotlib/matplotlib/pull/21684">#21684</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1056948749" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/21662" data-hovercard-type="pull_request" data-hovercard-url="/matplotlib/matplotlib/pull/21662/hovercard" href="https://github.com/matplotlib/matplotlib/pull/21662">#21662</a></p> <p dir="auto">During building matplotlib from pypi.org source-tar.gz, patches corresponding to above commits had been applied, giving this<br> matplotlibrc:</p> <blockquote> <p dir="auto">..<br> ## ***************************************************************************<br> ## * BACKENDS *<br> ## ***************************************************************************<br> ## The default backend. If you omit this parameter, the first working<br> ## backend from the following list is used:<br> ## MacOSX QtAgg Gtk4Agg Gtk3Agg TkAgg WxAgg Agg<br> ## Other choices include:<br> ## QtCairo GTK4Cairo GTK3Cairo TkCairo WxCairo Cairo<br> ## Qt5Agg Qt5Cairo Wx # deprecated.<br> ## PS PDF SVG Template<br> ## You can also deploy your own backend outside of Matplotlib by referring to<br> ## the module name (which must be in the PYTHONPATH) as 'module://my_backend'.<br> #backend: QtAgg<br> ..</p> </blockquote> <p dir="auto">Still, also after commenting out <code class="notranslate">#backend: QtAgg</code> in either<br> <code class="notranslate">~/.config/matplotlib/matplotlibrc </code><br> or in<br> <code class="notranslate">/usr/lib64/python3.9/site-packages/matplotlib/mpl-data/matplotlibrc</code></p> <p dir="auto">results in this <code class="notranslate">KeyError: 'webagg.port'</code></p> <h3 dir="auto">Code for reproduction</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="bash-5.1$ python &gt;&gt;&gt; import matplotlib"><pre class="notranslate"><span class="pl-s1">bash</span><span class="pl-c1">-</span><span class="pl-c1">5.1</span>$ <span class="pl-s1">python</span> <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span></pre></div> <h3 dir="auto">Actual outcome</h3> <blockquote> </blockquote> <p dir="auto">bash-5.1$ python<br> Python 3.9.9 (main, Nov 20 2021, 19:41:34)<br> [GCC 11.2.0] on linux<br> Type "help", "copyright", "credits" or "license" for more information.<br> &gt;&gt;&gt; import matplotlib<br> Traceback (most recent call last):<br> File "", line 1, in <br> File "/usr/lib64/python3.9/site-packages/matplotlib/<strong>init</strong>.py", line 895, in <br> defaultParams = rcsetup.defaultParams = {<br> File "/usr/lib64/python3.9/site-packages/matplotlib/<strong>init</strong>.py", line 898, in <br> rcParamsDefault[key]),<br> File "/usr/lib64/python3.9/site-packages/matplotlib/<strong>init</strong>.py", line 674, in <strong>getitem</strong><br> return dict.<strong>getitem</strong>(self, key)<br> KeyError: 'webagg.port'</p> <h3 dir="auto">Expected outcome</h3> <blockquote> <p dir="auto">no import error, i.e:</p> </blockquote> <p dir="auto">bash-5.1$ python<br> Python 3.9.9 (main, Nov 20 2021, 19:41:34)<br> [GCC 11.2.0] on linux<br> Type "help", "copyright", "credits" or "license" for more information.<br> &gt;&gt;&gt; import matplotlib<br> &gt;&gt;&gt;</p> <h3 dir="auto">Additional information</h3> <p dir="auto">With matplotlib-3.4.3 nothing like this.</p> <h3 dir="auto">Operating system</h3> <p dir="auto">Slackware64-15.0-RC2</p> <h3 dir="auto">Matplotlib Version</h3> <p dir="auto">3.5.0</p> <h3 dir="auto">Matplotlib Backend</h3> <p dir="auto">not possible</p> <h3 dir="auto">Python version</h3> <p dir="auto">3.9.9</p> <h3 dir="auto">Jupyter version</h3> <p dir="auto">not used</p> <h3 dir="auto">Installation</h3> <p dir="auto">from source (.tar.gz)</p>
<p dir="auto">When setting both the <code class="notranslate">markeredgecolor</code> and the <code class="notranslate">markerfacecolor</code> as a rgba tuple, the transparency of both seems to be set to the one of <code class="notranslate">markerfacecolor</code>. Could this be a bug in matplotlib or am I making a mistake?</p> <p dir="auto">Minimal-ish example:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt # plot markers with varying alpha values for edge and face colors alpha_faces = [1.0, 0.3, 0.7, 0.3] alpha_edges = [1.0, 0.3, 0.3, 1.0] for n, (af, ae) in enumerate(zip(alpha_faces, alpha_edges)): plt.plot(n, 0, ms=20, mew=5, marker='s', mfc=(1,0,0,af), mec=(0,0,1,ae)) plt.text(n, 0.01, &quot;$\\alpha$ edge: {}\n$\\alpha$ face {}&quot;.format(ae, af), va='bottom', ha='center') # a black line to make the transparency clearer plt.axhline(0, color='k', lw=3, zorder=0) plt.xlim(-0.5, n+0.5) plt.show()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-c"># plot markers with varying alpha values for edge and face colors</span> <span class="pl-s1">alpha_faces</span> <span class="pl-c1">=</span> [<span class="pl-c1">1.0</span>, <span class="pl-c1">0.3</span>, <span class="pl-c1">0.7</span>, <span class="pl-c1">0.3</span>] <span class="pl-s1">alpha_edges</span> <span class="pl-c1">=</span> [<span class="pl-c1">1.0</span>, <span class="pl-c1">0.3</span>, <span class="pl-c1">0.3</span>, <span class="pl-c1">1.0</span>] <span class="pl-k">for</span> <span class="pl-s1">n</span>, (<span class="pl-s1">af</span>, <span class="pl-s1">ae</span>) <span class="pl-c1">in</span> <span class="pl-en">enumerate</span>(<span class="pl-en">zip</span>(<span class="pl-s1">alpha_faces</span>, <span class="pl-s1">alpha_edges</span>)): <span class="pl-s1">plt</span>.<span class="pl-en">plot</span>(<span class="pl-s1">n</span>, <span class="pl-c1">0</span>, <span class="pl-s1">ms</span><span class="pl-c1">=</span><span class="pl-c1">20</span>, <span class="pl-s1">mew</span><span class="pl-c1">=</span><span class="pl-c1">5</span>, <span class="pl-s1">marker</span><span class="pl-c1">=</span><span class="pl-s">'s'</span>, <span class="pl-s1">mfc</span><span class="pl-c1">=</span>(<span class="pl-c1">1</span>,<span class="pl-c1">0</span>,<span class="pl-c1">0</span>,<span class="pl-s1">af</span>), <span class="pl-s1">mec</span><span class="pl-c1">=</span>(<span class="pl-c1">0</span>,<span class="pl-c1">0</span>,<span class="pl-c1">1</span>,<span class="pl-s1">ae</span>)) <span class="pl-s1">plt</span>.<span class="pl-en">text</span>(<span class="pl-s1">n</span>, <span class="pl-c1">0.01</span>, <span class="pl-s">"$<span class="pl-cce">\\</span>alpha$ edge: {}<span class="pl-cce">\n</span>$<span class="pl-cce">\\</span>alpha$ face {}"</span>.<span class="pl-en">format</span>(<span class="pl-s1">ae</span>, <span class="pl-s1">af</span>), <span class="pl-s1">va</span><span class="pl-c1">=</span><span class="pl-s">'bottom'</span>, <span class="pl-s1">ha</span><span class="pl-c1">=</span><span class="pl-s">'center'</span>) <span class="pl-c"># a black line to make the transparency clearer</span> <span class="pl-s1">plt</span>.<span class="pl-en">axhline</span>(<span class="pl-c1">0</span>, <span class="pl-s1">color</span><span class="pl-c1">=</span><span class="pl-s">'k'</span>, <span class="pl-s1">lw</span><span class="pl-c1">=</span><span class="pl-c1">3</span>, <span class="pl-s1">zorder</span><span class="pl-c1">=</span><span class="pl-c1">0</span>) <span class="pl-s1">plt</span>.<span class="pl-en">xlim</span>(<span class="pl-c1">-</span><span class="pl-c1">0.5</span>, <span class="pl-s1">n</span><span class="pl-c1">+</span><span class="pl-c1">0.5</span>) <span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div> <p dir="auto">Result:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/8c8dda9b207ad3d7cbc577a1f01297a8936b73d275646ca064f0dfdf3e706eec/687474703a2f2f692e737461636b2e696d6775722e636f6d2f426c3568702e706e67"><img src="https://camo.githubusercontent.com/8c8dda9b207ad3d7cbc577a1f01297a8936b73d275646ca064f0dfdf3e706eec/687474703a2f2f692e737461636b2e696d6775722e636f6d2f426c3568702e706e67" alt="figure_1" data-canonical-src="http://i.stack.imgur.com/Bl5hp.png" style="max-width: 100%;"></a></p> <p dir="auto">Versions: Ubuntu 12.04, python 2.7.3, matplotlib 1.4.3</p> <p dir="auto">I also posted this as a <a href="http://stackoverflow.com/questions/31981331/matplotlib-how-to-set-transparency-of-markeredgecolor" rel="nofollow">question on SO</a>.</p>
0
<p dir="auto">It would be great if we can have either a <code class="notranslate">jitter</code> command or a <code class="notranslate">jitter</code> flag in <code class="notranslate">scatter</code>.<br> I'm refering to something like <a href="http://docs.ggplot2.org/current/geom_jitter.html" rel="nofollow">ggplot2's geom_jitter</a>.</p> <p dir="auto">A basic solution:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="def rand_jitter(arr): stdev = arr.max()/100. return arr + np.random.randn(len(arr)) * stdev def jitter(x, y, s=20, c='b', marker='o', cmap=None, norm=None, vmin=None, vmax=None, alpha=None, linewidths=None, verts=None, hold=None, **kwargs): return scatter(rand_jitter(x), rand_jitter(y), s=20, c='b', marker='o', cmap=None, norm=None, vmin=None, vmax=None, alpha=None, linewidths=None, verts=None, hold=None, **kwargs)"><pre class="notranslate"><code class="notranslate">def rand_jitter(arr): stdev = arr.max()/100. return arr + np.random.randn(len(arr)) * stdev def jitter(x, y, s=20, c='b', marker='o', cmap=None, norm=None, vmin=None, vmax=None, alpha=None, linewidths=None, verts=None, hold=None, **kwargs): return scatter(rand_jitter(x), rand_jitter(y), s=20, c='b', marker='o', cmap=None, norm=None, vmin=None, vmax=None, alpha=None, linewidths=None, verts=None, hold=None, **kwargs) </code></pre></div> <p dir="auto">Of course the definition of <code class="notranslate">stdev</code> needs to be better, this will only work for some cases.</p> <p dir="auto">The idea is from <a href="http://stackoverflow.com/questions/8671808/matplotlib-preventing-overlaying-datapoints" rel="nofollow">this SoF post</a>.</p>
<h1 dir="auto">Bug report</h1> <h3 dir="auto">Bug summary</h3> <p dir="auto">Changing the figure's dpi via <code class="notranslate">fig.set_dpi()</code> does not have the desired effect. There are strange things happening when saving or showing the figure as detailed below.</p> <h3 dir="auto">Bug 1 - saving</h3> <p dir="auto">In the following a figure with dpi=200 should be saved in all 3 cases.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt get_img_size = lambda path: print(plt.imread(path).shape) fig1, ax1 = plt.subplots(dpi=200) ax1.plot([1,2]) fig1.savefig(&quot;fig1.png&quot;) get_img_size(&quot;fig1.png&quot;) fig2, ax2 = plt.subplots(dpi=100) ax2.plot([1,2]) fig2.savefig(&quot;fig2.png&quot;, dpi=200) get_img_size(&quot;fig2.png&quot;) fig3, ax3 = plt.subplots(dpi=100) ax3.plot([1,2]) fig3.set_dpi(200) fig3.savefig(&quot;fig3.png&quot;, dpi=&quot;figure&quot;) get_img_size(&quot;fig3.png&quot;)"><pre class="notranslate"><code class="notranslate">import matplotlib.pyplot as plt get_img_size = lambda path: print(plt.imread(path).shape) fig1, ax1 = plt.subplots(dpi=200) ax1.plot([1,2]) fig1.savefig("fig1.png") get_img_size("fig1.png") fig2, ax2 = plt.subplots(dpi=100) ax2.plot([1,2]) fig2.savefig("fig2.png", dpi=200) get_img_size("fig2.png") fig3, ax3 = plt.subplots(dpi=100) ax3.plot([1,2]) fig3.set_dpi(200) fig3.savefig("fig3.png", dpi="figure") get_img_size("fig3.png") </code></pre></div> <p dir="auto"><strong>Qt5Agg</strong></p> <p dir="auto">The outcome using the Qt5Agg backend of this is</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(960, 1280, 4) (960, 1280, 4) (480, 640, 4)"><pre class="notranslate"><code class="notranslate">(960, 1280, 4) (960, 1280, 4) (480, 640, 4) </code></pre></div> <p dir="auto">i.e. in the first two cases we get the expected 200 dpi figure. In the last case, where the figure dpi is set via <strong><code class="notranslate">fig.set_dpi</code> it seems to be ignored</strong> and the output image has a dpi of 100.</p> <p dir="auto"><strong>TkAgg</strong></p> <p dir="auto">Using the TkAgg backend, the saved figures are as expected (<code class="notranslate">(960, 1280, 4)</code> in all cases.)</p> <h3 dir="auto">Bug 2 - showing</h3> <p dir="auto">In the following we would expect to get two identical figures shown, both with dpi=100 and 640x480 pixels large.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="plt.close(&quot;all&quot;) fig1, ax1 = plt.subplots(num=&quot;expected&quot;, dpi=100) ax1.plot([1,2]) fig3, ax3 = plt.subplots(num=&quot;buggy&quot;, dpi=50) ax3.plot([1,2]) fig3.set_dpi(100) print(fig3.get_dpi()) fig3.savefig(&quot;fig3a.png&quot;, dpi=&quot;figure&quot;) print(fig3.get_dpi()) plt.show() print(fig3.get_dpi())"><pre class="notranslate"><code class="notranslate">plt.close("all") fig1, ax1 = plt.subplots(num="expected", dpi=100) ax1.plot([1,2]) fig3, ax3 = plt.subplots(num="buggy", dpi=50) ax3.plot([1,2]) fig3.set_dpi(100) print(fig3.get_dpi()) fig3.savefig("fig3a.png", dpi="figure") print(fig3.get_dpi()) plt.show() print(fig3.get_dpi()) </code></pre></div> <p dir="auto"><strong>Qt5Agg</strong></p> <p dir="auto">The output (with Qt5Agg) is the following:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="100 100 50"><pre class="notranslate"><code class="notranslate">100 100 50 </code></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/23121882/39899083-43d2f03c-54ba-11e8-9642-54aa1b243134.png"><img src="https://user-images.githubusercontent.com/23121882/39899083-43d2f03c-54ba-11e8-9642-54aa1b243134.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">The printed dpi is correctly 100 before showing the figure. After showing, it prints 50. The shown figures have both the correct size, but the figure where dpi is set via <code class="notranslate">fig.set_dpi</code> has narrower linewidth and smaller fontsize. It looks exaclty like a figure that would have been expected for dpi=50, just with the wrong pixel size.</p> <p dir="auto"><strong>TkAgg</strong></p> <p dir="auto">Using TkAgg backend, the output is correctly printed as <code class="notranslate">100</code> in all cases, <strong>but</strong> the shown figures differ in size; the left (expected) figure is 640x480 pixels, while the right figure is 640x445 pixels.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/23121882/39899772-1f1abe10-54be-11e8-99cb-f09df028fd44.png"><img src="https://user-images.githubusercontent.com/23121882/39899772-1f1abe10-54be-11e8-99cb-f09df028fd44.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Operating system: Windows 8.1</li> <li>Matplotlib version: master (2.2.2.post1088.dev0+g9ec4b95d6)</li> <li>Matplotlib backend: Qt5Agg &amp; TkAgg (see text)</li> <li>Python version: 3.6.4</li> </ul> <hr> <p dir="auto">Running the same with matplotlib 2.0.2 (all other versions the same) I get<br> Qt5Agg, saving: <code class="notranslate">(960, 1280, 4), (960, 1280, 4), (480, 640, 4)</code> - same bug as above with master.<br> Qt5Agg, showing <code class="notranslate">100, 100, 100</code> - printed dpi are all the same, <strong>shown figures are the same</strong>.<br> TkAgg, saving: <code class="notranslate">(960, 1280, 4)</code> in all cases. - same expected behaviour as above.<br> TkAgg, showing <code class="notranslate">100, 100, 100</code> - printed dpi are all the same, shown figures differ in same manner as above.</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"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.8</li> <li>Operating System version: WINDOWS 10 20H1</li> <li>Java version: Java 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>配置文件中指定apollo配置中心的相关值。</li> </ol> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="dubbo: config-center: address: apollo://t.ppssxx.com:8080 # 配置中心的配置覆盖本地配置 highest-priority: true namespace: TEST1.dubbo config-file: TEST1.dubbo.properties group: TEST1.dubbo app-config-file: TEST1.dubbo.properties"><pre class="notranslate"><span class="pl-ent">dubbo</span>: <span class="pl-ent">config-center</span>: <span class="pl-ent">address</span>: <span class="pl-s">apollo://t.ppssxx.com:8080</span> <span class="pl-c"><span class="pl-c">#</span> 配置中心的配置覆盖本地配置</span> <span class="pl-ent">highest-priority</span>: <span class="pl-c1">true</span> <span class="pl-ent">namespace</span>: <span class="pl-s">TEST1.dubbo</span> <span class="pl-ent">config-file</span>: <span class="pl-s">TEST1.dubbo.properties</span> <span class="pl-ent">group</span>: <span class="pl-s">TEST1.dubbo</span> <span class="pl-ent">app-config-file</span>: <span class="pl-s">TEST1.dubbo.properties</span></pre></div> <ol start="2" dir="auto"> <li>启动应用,拉取配置</li> <li>应用启动失败</li> </ol> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">What do you expected from the above steps?</p> <p dir="auto">应该正确获取到配置文件中指定的Namespace值,在本场景中为<code class="notranslate">TEST1.dubbo</code></p> <h3 dir="auto">Actual Result</h3> <p dir="auto">未能正确获取,而是变成了默认的<code class="notranslate">dubbo</code><br> 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="2020-08-16 23:34:37.645 ERROR 3752 --- [ main] o.s.boot.SpringApplication : Application run failed java.lang.IllegalStateException: Failed to connect to config center, the config center is Apollo, the address is: http://xxx:8080 at org.apache.dubbo.configcenter.support.apollo.ApolloDynamicConfiguration.&lt;init&gt;(ApolloDynamicConfiguration.java:109) ~[dubbo-2.7.8.jar:2.7.8] at org.apache.dubbo.configcenter.support.apollo.ApolloDynamicConfigurationFactory.createDynamicConfiguration(ApolloDynamicConfigurationFactory.java:29) ~[dubbo-2.7.8.jar:2.7.8] at org.apache.dubbo.common.config.configcenter.AbstractDynamicConfigurationFactory.lambda$getDynamicConfiguration$0(AbstractDynamicConfigurationFactory.java:39) ~[dubbo-2.7.8.jar:2.7.8] at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708) ~[na:na] at org.apache.dubbo.common.config.configcenter.AbstractDynamicConfigurationFactory.getDynamicConfiguration(AbstractDynamicConfigurationFactory.java:39) ~[dubbo-2.7.8.jar:2.7.8] at org.apache.dubbo.common.config.configcenter.DynamicConfiguration.getDynamicConfiguration(DynamicConfiguration.java:224) ~[dubbo-2.7.8.jar:2.7.8] at org.apache.dubbo.config.bootstrap.DubboBootstrap.prepareEnvironment(DubboBootstrap.java:1034) ~[dubbo-2.7.8.jar:2.7.8] at org.apache.dubbo.config.bootstrap.DubboBootstrap.startConfigCenter(DubboBootstrap.java:623) ~[dubbo-2.7.8.jar:2.7.8] at org.apache.dubbo.config.bootstrap.DubboBootstrap.initialize(DubboBootstrap.java:521) ~[dubbo-2.7.8.jar:2.7.8] at org.apache.dubbo.config.bootstrap.DubboBootstrap.start(DubboBootstrap.java:896) ~[dubbo-2.7.8.jar:2.7.8] at org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener.onContextRefreshedEvent(DubboBootstrapApplicationListener.java:59) ~[dubbo-2.7.8.jar:2.7.8] at org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener.onApplicationContextEvent(DubboBootstrapApplicationListener.java:52) ~[dubbo-2.7.8.jar:2.7.8] at org.apache.dubbo.config.spring.context.OneTimeExecutionApplicationContextEventListener.onApplicationEvent(OneTimeExecutionApplicationContextEventListener.java:40) ~[dubbo-2.7.8.jar:2.7.8] at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) ~[spring-context-5.1.8.RELEASE.jar:5.1.8.RELEASE] at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) ~[spring-context-5.1.8.RELEASE.jar:5.1.8.RELEASE] at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) ~[spring-context-5.1.8.RELEASE.jar:5.1.8.RELEASE] at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:402) ~[spring-context-5.1.8.RELEASE.jar:5.1.8.RELEASE] at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:359) ~[spring-context-5.1.8.RELEASE.jar:5.1.8.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:896) ~[spring-context-5.1.8.RELEASE.jar:5.1.8.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:552) ~[spring-context-5.1.8.RELEASE.jar:5.1.8.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:742) ~[spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:389) ~[spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:311) ~[spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1213) ~[spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1202) ~[spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE] at com.sf.dubbo.bootstrap.providerApplication.main(providerApplication.java:28) ~[classes/:na]"><pre class="notranslate"><code class="notranslate">2020-08-16 23:34:37.645 ERROR 3752 --- [ main] o.s.boot.SpringApplication : Application run failed java.lang.IllegalStateException: Failed to connect to config center, the config center is Apollo, the address is: http://xxx:8080 at org.apache.dubbo.configcenter.support.apollo.ApolloDynamicConfiguration.&lt;init&gt;(ApolloDynamicConfiguration.java:109) ~[dubbo-2.7.8.jar:2.7.8] at org.apache.dubbo.configcenter.support.apollo.ApolloDynamicConfigurationFactory.createDynamicConfiguration(ApolloDynamicConfigurationFactory.java:29) ~[dubbo-2.7.8.jar:2.7.8] at org.apache.dubbo.common.config.configcenter.AbstractDynamicConfigurationFactory.lambda$getDynamicConfiguration$0(AbstractDynamicConfigurationFactory.java:39) ~[dubbo-2.7.8.jar:2.7.8] at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708) ~[na:na] at org.apache.dubbo.common.config.configcenter.AbstractDynamicConfigurationFactory.getDynamicConfiguration(AbstractDynamicConfigurationFactory.java:39) ~[dubbo-2.7.8.jar:2.7.8] at org.apache.dubbo.common.config.configcenter.DynamicConfiguration.getDynamicConfiguration(DynamicConfiguration.java:224) ~[dubbo-2.7.8.jar:2.7.8] at org.apache.dubbo.config.bootstrap.DubboBootstrap.prepareEnvironment(DubboBootstrap.java:1034) ~[dubbo-2.7.8.jar:2.7.8] at org.apache.dubbo.config.bootstrap.DubboBootstrap.startConfigCenter(DubboBootstrap.java:623) ~[dubbo-2.7.8.jar:2.7.8] at org.apache.dubbo.config.bootstrap.DubboBootstrap.initialize(DubboBootstrap.java:521) ~[dubbo-2.7.8.jar:2.7.8] at org.apache.dubbo.config.bootstrap.DubboBootstrap.start(DubboBootstrap.java:896) ~[dubbo-2.7.8.jar:2.7.8] at org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener.onContextRefreshedEvent(DubboBootstrapApplicationListener.java:59) ~[dubbo-2.7.8.jar:2.7.8] at org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener.onApplicationContextEvent(DubboBootstrapApplicationListener.java:52) ~[dubbo-2.7.8.jar:2.7.8] at org.apache.dubbo.config.spring.context.OneTimeExecutionApplicationContextEventListener.onApplicationEvent(OneTimeExecutionApplicationContextEventListener.java:40) ~[dubbo-2.7.8.jar:2.7.8] at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) ~[spring-context-5.1.8.RELEASE.jar:5.1.8.RELEASE] at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) ~[spring-context-5.1.8.RELEASE.jar:5.1.8.RELEASE] at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) ~[spring-context-5.1.8.RELEASE.jar:5.1.8.RELEASE] at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:402) ~[spring-context-5.1.8.RELEASE.jar:5.1.8.RELEASE] at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:359) ~[spring-context-5.1.8.RELEASE.jar:5.1.8.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:896) ~[spring-context-5.1.8.RELEASE.jar:5.1.8.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:552) ~[spring-context-5.1.8.RELEASE.jar:5.1.8.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:742) ~[spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:389) ~[spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:311) ~[spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1213) ~[spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1202) ~[spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE] at com.sf.dubbo.bootstrap.providerApplication.main(providerApplication.java:28) ~[classes/:na] </code></pre></div> <p dir="auto">查看源码和调式发现:<br> </p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/apache/dubbo/blob/0be2a1bbbf9168490acecaf1eed1bd16cb8db402/dubbo-configcenter/dubbo-configcenter-apollo/src/main/java/org/apache/dubbo/configcenter/support/apollo/ApolloDynamicConfiguration.java#L99-L102">dubbo/dubbo-configcenter/dubbo-configcenter-apollo/src/main/java/org/apache/dubbo/configcenter/support/apollo/ApolloDynamicConfiguration.java</a> </p> <p class="mb-0 color-fg-muted"> Lines 99 to 102 in <a data-pjax="true" class="commit-tease-sha" href="/apache/dubbo/commit/0be2a1bbbf9168490acecaf1eed1bd16cb8db402">0be2a1b</a> </p> </div> <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data"> <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip=""> <tbody><tr class="border-0"> <td id="L99" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="99"></td> <td id="LC99" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-smi">String</span> <span class="pl-s1">namespace</span> = <span class="pl-s1">url</span>.<span class="pl-en">getParameter</span>(<span class="pl-c1">CONFIG_NAMESPACE_KEY</span>, <span class="pl-c1">DEFAULT_GROUP</span>); </td> </tr> <tr class="border-0"> <td id="L100" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="100"></td> <td id="LC100" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-smi">String</span> <span class="pl-s1">apolloNamespace</span> = <span class="pl-smi">StringUtils</span>.<span class="pl-en">isEmpty</span>(<span class="pl-s1">namespace</span>) ? <span class="pl-s1">url</span>.<span class="pl-en">getParameter</span>(<span class="pl-c1">GROUP_KEY</span>, <span class="pl-c1">DEFAULT_GROUP</span>) : <span class="pl-s1">namespace</span>; </td> </tr> <tr class="border-0"> <td id="L101" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="101"></td> <td id="LC101" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">dubboConfig</span> = <span class="pl-smi">ConfigService</span>.<span class="pl-en">getConfig</span>(<span class="pl-s1">apolloNamespace</span>); </td> </tr> <tr class="border-0"> <td id="L102" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="102"></td> <td id="LC102" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">dubboConfigFile</span> = <span class="pl-smi">ConfigService</span>.<span class="pl-en">getConfigFile</span>(<span class="pl-s1">apolloNamespace</span>, <span class="pl-smi">ConfigFileFormat</span>.<span class="pl-s1">Properties</span>); </td> </tr> </tbody></table> </div> </div> <br> 这里截取的ParameterKey 不对,这里获取的是<code class="notranslate">config.namespace</code>,而在url内部的Parameter实际为<code class="notranslate">namesapce</code>,导致获取为空,由于给了默认值下面的语句判空也没有发挥任何作用,appConfigFile的值也未能正确获取到。<p></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/13273667/90338605-70d67e00-e01d-11ea-962e-0e8bea8c2479.png"><img src="https://user-images.githubusercontent.com/13273667/90338605-70d67e00-e01d-11ea-962e-0e8bea8c2479.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/13273667/90338612-79c74f80-e01d-11ea-9117-aeff8ee271d1.png"><img src="https://user-images.githubusercontent.com/13273667/90338612-79c74f80-e01d-11ea-9117-aeff8ee271d1.png" alt="image" style="max-width: 100%;"></a></p>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> 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.2-SNAPSHOT</li> <li>Operating System version: xxx</li> <li>Java version: xxx</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" private String[] getCategories(URL url) { return ANY_VALUE.equals(url.getServiceInterface()) ? ALL_SUPPORTED_CATEGORIES : of(DEFAULT_CATEGORY); }"><pre class="notranslate"> <span class="pl-k">private</span> <span class="pl-smi">String</span>[] <span class="pl-s1">getCategories</span>(<span class="pl-smi">URL</span> <span class="pl-s1">url</span>) { <span class="pl-k">return</span> <span class="pl-smi">ANY_VALUE</span>.<span class="pl-en">equals</span>(<span class="pl-s1">url</span>.<span class="pl-en">getServiceInterface</span>()) ? <span class="pl-c1">ALL_SUPPORTED_CATEGORIES</span> : <span class="pl-en">of</span>(<span class="pl-c1">DEFAULT_CATEGORY</span>); }</pre></div> <p dir="auto">i think it shoudl be :</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="private String[] getCategories(URL url) { return ANY_VALUE.equals(url.getServiceInterface()) ? ALL_SUPPORTED_CATEGORIES : of(url.getParameter(CATEGORY_KEY,DEFAULT_CATEGORY)); }"><pre class="notranslate"><span class="pl-k">private</span> <span class="pl-smi">String</span>[] <span class="pl-s1">getCategories</span>(<span class="pl-smi">URL</span> <span class="pl-s1">url</span>) { <span class="pl-k">return</span> <span class="pl-smi">ANY_VALUE</span>.<span class="pl-en">equals</span>(<span class="pl-s1">url</span>.<span class="pl-en">getServiceInterface</span>()) ? <span class="pl-c1">ALL_SUPPORTED_CATEGORIES</span> : <span class="pl-en">of</span>(<span class="pl-s1">url</span>.<span class="pl-en">getParameter</span>(<span class="pl-c1">CATEGORY_KEY</span>,<span class="pl-c1">DEFAULT_CATEGORY</span>)); }</pre></div> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">What do you expected from the above steps?</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">What actually happens?</p> <p dir="auto">If there is an exception, please attach the exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here! </code></pre></div>
0
<p dir="auto"><strong>Steps to reproduce and a minimal demo of the problem</strong><br> Examine the response object returned by any <code class="notranslate">http.get</code></p> <p dir="auto"><strong>Current behavior</strong><br> <code class="notranslate">res.ok</code> is undefined.</p> <p dir="auto"><strong>Expected/desired behavior</strong><br> <code class="notranslate">res.ok</code>, per API doc, " True if the response's status is within 200-299"</p> <p dir="auto">Let's implement it:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="get ok() { return this.status &gt;= 200 &amp;&amp; this.status &lt;= 300; }"><pre class="notranslate"><code class="notranslate">get ok() { return this.status &gt;= 200 &amp;&amp; this.status &lt;= 300; } </code></pre></div> <p dir="auto"><strong>Other information</strong><br> beta.14</p>
<p dir="auto">I'm doing this</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" return this.http.request(request) .map(res =&gt; { if (!res.ok) { console.error(res.ok); console.error(res.status); } return res.json(); });"><pre class="notranslate"> <span class="pl-k">return</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">http</span><span class="pl-kos">.</span><span class="pl-en">request</span><span class="pl-kos">(</span><span class="pl-s1">request</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">res</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-c1">!</span><span class="pl-s1">res</span><span class="pl-kos">.</span><span class="pl-c1">ok</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">error</span><span class="pl-kos">(</span><span class="pl-s1">res</span><span class="pl-kos">.</span><span class="pl-c1">ok</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">error</span><span class="pl-kos">(</span><span class="pl-s1">res</span><span class="pl-kos">.</span><span class="pl-c1">status</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">return</span> <span class="pl-s1">res</span><span class="pl-kos">.</span><span class="pl-en">json</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">And some calls report status 200 and ok is undefined:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2280140/12225239/293bc0e0-b85a-11e5-890f-4ca25f4c9093.png"><img src="https://cloud.githubusercontent.com/assets/2280140/12225239/293bc0e0-b85a-11e5-890f-4ca25f4c9093.png" alt="image" style="max-width: 100%;"></a></p>
1
<p dir="auto">Even in the official website, checking this on an iphone4 doesn't display properly also.</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> <h2 dir="auto">Current Behavior</h2> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li></li> <li></li> <li></li> <li></li> </ol> <h2 dir="auto">Context</h2> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td></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 bottom of both controls gets cut off by the navigation bar. Repros on the examples on material-ui.com</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/77620/8881551/e3c309aa-320e-11e5-8314-32f514bcd871.png"><img src="https://cloud.githubusercontent.com/assets/77620/8881551/e3c309aa-320e-11e5-8314-32f514bcd871.png" alt="ios simulator screen shot jul 24 2015 2 17 15 pm" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/77620/8881550/e3bfceca-320e-11e5-9bf7-dadd418b71ab.png"><img src="https://cloud.githubusercontent.com/assets/77620/8881550/e3bfceca-320e-11e5-9bf7-dadd418b71ab.png" alt="ios simulator screen shot jul 24 2015 2 15 23 pm" style="max-width: 100%;"></a></p>
1
<p dir="auto"><strong>Is this a request for help?</strong> (If yes, you should use our troubleshooting guide and community support channels, see <a href="http://kubernetes.io/docs/troubleshooting/" rel="nofollow">http://kubernetes.io/docs/troubleshooting/</a>.): No</p> <p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.): vSphere, pod, timeout</p> <hr> <p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one): Bug Report</p> <p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>): Server Version: version.Info{Major:"1", Minor:"5+", GitVersion:"v1.5.0-beta.2+coreos.0", GitCommit:"4fbc7c924d1e09ef018598bd053b596eb9bdd95c", GitTreeState:"clean", BuildDate:"2016-11-29T01:43:08Z", GoVersion:"go1.7.3", Compiler:"gc", Platform:"linux/amd64"}</p> <p dir="auto"><strong>Environment</strong>:</p> <ul dir="auto"> <li><strong>Cloud provider or hardware configuration</strong>: vSphere Cloud Provider - vCenter Server v6.5.0, ESXi 6.5.0</li> <li><strong>OS</strong> (e.g. from /etc/os-release): CoreOS 1185.3.0 (MoreOS)</li> <li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>): Linux k8-w2 4.7.3-coreos-r2</li> <li><strong>Install tools</strong>: N/A</li> <li><strong>Others</strong>: N/A</li> </ul> <p dir="auto"><strong>What happened</strong>:<br> I created a Pod with the following spec, using <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/abrarshivani/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/abrarshivani">@abrarshivani</a> 's example <a href="https://github.com/kubernetes/kubernetes/tree/master/examples/volumes/vsphere#volumes">here</a> ;</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="apiVersion: v1 kind: Pod metadata: name: pvpod spec: containers: - name: test-container image: gcr.io/google_containers/test-webserver volumeMounts: - name: vmdk-storage mountPath: /test-vmdk volumes: - name: vmdk-storage vsphereVolume: volumePath: &quot;[kstore-k8s-vol] volumes/test&quot; fsType: ext4"><pre class="notranslate"><code class="notranslate">apiVersion: v1 kind: Pod metadata: name: pvpod spec: containers: - name: test-container image: gcr.io/google_containers/test-webserver volumeMounts: - name: vmdk-storage mountPath: /test-vmdk volumes: - name: vmdk-storage vsphereVolume: volumePath: "[kstore-k8s-vol] volumes/test" fsType: ext4 </code></pre></div> <p dir="auto">The VMDK specified in the volumePath was successfully attached to the VM that the pod was scheduled in, but the pod becomes stuck in the containerCreating state. After 2 minutes, the kubelet on the worker node that the pod was scheduled on logs a timeout error.</p> <p dir="auto"><strong>What you expected to happen</strong>:<br> I expected the Pod to be created with the VMDK mounted under /test-vmdk inside the pod.</p> <p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):</p> <ol dir="auto"> <li>Create a new VMDK using the command <code class="notranslate">vmkfstools -c 2G /vmfs/volumes/kstore-k8s-vol/volumes/test.vmdk</code></li> <li>Create a new Pod using the following spec;</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="apiVersion: v1 kind: Pod metadata: name: pvpod spec: containers: - name: test-container image: gcr.io/google_containers/test-webserver volumeMounts: - name: vmdk-storage mountPath: /test-vmdk volumes: - name: vmdk-storage vsphereVolume: volumePath: &quot;[kstore-k8s-vol] volumes/test&quot; fsType: ext4"><pre class="notranslate"><code class="notranslate">apiVersion: v1 kind: Pod metadata: name: pvpod spec: containers: - name: test-container image: gcr.io/google_containers/test-webserver volumeMounts: - name: vmdk-storage mountPath: /test-vmdk volumes: - name: vmdk-storage vsphereVolume: volumePath: "[kstore-k8s-vol] volumes/test" fsType: ext4 </code></pre></div> <ol start="3" dir="auto"> <li>Observe errors by running <code class="notranslate">kubectl describe pod pvpod</code></li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" FirstSeen LastSeen Count From SubobjectPath Type Reason Message --------- -------- ----- ---- ------------- -------- ------ ------- 13m 13m 1 {default-scheduler } Normal Scheduled Successfully assigned pvpod to k8-w2 11m 17s 6 {kubelet k8-w2} Warning FailedMount Unable to mount volumes for pod &quot;pvpod_default(ec696999-ba3d-11e6-a9a4-005056892975)&quot;: timeout expired waiting for volumes to attach/mount for pod &quot;pvpod&quot;/&quot;default&quot;. list of unattached/unmounted volumes=[vmdk-storage] 11m 17s 6 {kubelet k8-w2} Warning FailedSync Error syncing pod, skipping: timeout expired waiting for volumes to attach/mount for pod &quot;pvpod&quot;/&quot;default&quot;. list of unattached/unmounted volumes=[vmdk-storage]"><pre class="notranslate"><code class="notranslate"> FirstSeen LastSeen Count From SubobjectPath Type Reason Message --------- -------- ----- ---- ------------- -------- ------ ------- 13m 13m 1 {default-scheduler } Normal Scheduled Successfully assigned pvpod to k8-w2 11m 17s 6 {kubelet k8-w2} Warning FailedMount Unable to mount volumes for pod "pvpod_default(ec696999-ba3d-11e6-a9a4-005056892975)": timeout expired waiting for volumes to attach/mount for pod "pvpod"/"default". list of unattached/unmounted volumes=[vmdk-storage] 11m 17s 6 {kubelet k8-w2} Warning FailedSync Error syncing pod, skipping: timeout expired waiting for volumes to attach/mount for pod "pvpod"/"default". list of unattached/unmounted volumes=[vmdk-storage] </code></pre></div> <p dir="auto"><strong>Anything else do we need to know</strong>:</p> <p dir="auto">kube-controller-manager log entries;</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2016-12-04T16:23:00.422463105Z I1204 16:23:00.422244 1 reconciler.go:202] Started AttachVolume for volume &quot;kubernetes.io/vsphere-volume/[kstore-k8s-vol] volumes/test&quot; to node &quot;k8-w2&quot; 2016-12-04T16:23:00.429345287Z W1204 16:23:00.429078 1 vsphere.go:368] Creating new client session since the existing session is not valid or not authenticated 2016-12-04T16:23:01.491332560Z I1204 16:23:01.491246 1 operation_executor.go:619] AttachVolume.Attach succeeded for volume &quot;kubernetes.io/vsphere-volume/[kstore-k8s-vol] volumes/test&quot; (spec.Name: &quot;vmdk-storage&quot;) from node &quot;k8-w2&quot;."><pre class="notranslate"><code class="notranslate">2016-12-04T16:23:00.422463105Z I1204 16:23:00.422244 1 reconciler.go:202] Started AttachVolume for volume "kubernetes.io/vsphere-volume/[kstore-k8s-vol] volumes/test" to node "k8-w2" 2016-12-04T16:23:00.429345287Z W1204 16:23:00.429078 1 vsphere.go:368] Creating new client session since the existing session is not valid or not authenticated 2016-12-04T16:23:01.491332560Z I1204 16:23:01.491246 1 operation_executor.go:619] AttachVolume.Attach succeeded for volume "kubernetes.io/vsphere-volume/[kstore-k8s-vol] volumes/test" (spec.Name: "vmdk-storage") from node "k8-w2". </code></pre></div> <p dir="auto">k8-w2 worker node kubelet logs;</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Dec 04 16:23:00 k8-w2 kubelet-wrapper[946]: E1204 16:23:00.488905 946 nestedpendingoperations.go:262] Operation for &quot;\&quot;kubernetes.io/vsphere-volume/[kstore-k8s-vol] volumes/test\&quot;&quot; failed. No retries permitted until 2016-12-04 16:23:00.988885317 +0000 UTC (durationBeforeRetry 500ms). Error: Volume &quot;kubernetes.io/vsphere-volume/[kstore-k8s-vol] volumes/test&quot; (spec.Name: &quot;vmdk-storage&quot;) pod &quot;ec696999-ba3d-11e6-a9a4-005056892975&quot; (UID: &quot;ec696999-ba3d-11e6-a9a4-005056892975&quot;) has not yet been added to the list of VolumesInUse in the node's volume status. Dec 04 16:23:00 k8-w2 kubelet-wrapper[946]: I1204 16:23:00.488827 946 reconciler.go:230] VerifyControllerAttachedVolume operation started for volume &quot;kubernetes.io/vsphere-volume/[kstore-k8s-vol] volumes/test&quot; (spec.Name: &quot;vmdk-storage&quot;) pod &quot;ec696999-ba3d-11e6-a9a4-005056892975&quot; (UID: &quot;ec696999-ba3d-11e6-a9a4-005056892975&quot;) Dec 04 16:23:00 k8-w2 kubelet-wrapper[946]: I1204 16:23:00.490608 946 reconciler.go:230] VerifyControllerAttachedVolume operation started for volume &quot;kubernetes.io/secret/ec696999-ba3d-11e6-a9a4-005056892975-default-token-zcpmt&quot; (spec.Name: &quot;default-token-zcpmt&quot;) pod &quot;ec696999-ba3d-11e6-a9a4-005056892975&quot; (UID: &quot;ec696999-ba3d-11e6-a9a4-005056892975&quot;) Dec 04 16:23:00 k8-w2 kubelet-wrapper[946]: I1204 16:23:00.608354 946 operation_executor.go:916] MountVolume.SetUp succeeded for volume &quot;kubernetes.io/secret/ec696999-ba3d-11e6-a9a4-005056892975-default-token-zcpmt&quot; (spec.Name: &quot;default-token-zcpmt&quot;) pod &quot;ec696999-ba3d-11e6-a9a4-005056892975&quot; (UID: &quot;ec696999-ba3d-11e6-a9a4-005056892975&quot;). Dec 04 16:23:00 k8-w2 kubelet-wrapper[946]: I1204 16:23:00.991910 946 reconciler.go:230] VerifyControllerAttachedVolume operation started for volume &quot;kubernetes.io/vsphere-volume/[kstore-k8s-vol] volumes/test&quot; (spec.Name: &quot;vmdk-storage&quot;) pod &quot;ec696999-ba3d-11e6-a9a4-005056892975&quot; (UID: &quot;ec696999-ba3d-11e6-a9a4-005056892975&quot;) Dec 04 16:23:00 k8-w2 kubelet-wrapper[946]: E1204 16:23:00.992429 946 nestedpendingoperations.go:262] Operation for &quot;\&quot;kubernetes.io/vsphere-volume/[kstore-k8s-vol] volumes/test\&quot;&quot; failed. No retries permitted until 2016-12-04 16:23:01.992407088 +0000 UTC (durationBeforeRetry 1s). Error: Volume &quot;kubernetes.io/vsphere-volume/[kstore-k8s-vol] volumes/test&quot; (spec.Name: &quot;vmdk-storage&quot;) pod &quot;ec696999-ba3d-11e6-a9a4-005056892975&quot; (UID: &quot;ec696999-ba3d-11e6-a9a4-005056892975&quot;) has not yet been added to the list of VolumesInUse in the node's volume status. Dec 04 16:23:02 k8-w2 kubelet-wrapper[946]: I1204 16:23:02.000818 946 reconciler.go:230] VerifyControllerAttachedVolume operation started for volume &quot;kubernetes.io/vsphere-volume/[kstore-k8s-vol] volumes/test&quot; (spec.Name: &quot;vmdk-storage&quot;) pod &quot;ec696999-ba3d-11e6-a9a4-005056892975&quot; (UID: &quot;ec696999-ba3d-11e6-a9a4-005056892975&quot;) Dec 04 16:23:02 k8-w2 kubelet-wrapper[946]: E1204 16:23:02.001589 946 nestedpendingoperations.go:262] Operation for &quot;\&quot;kubernetes.io/vsphere-volume/[kstore-k8s-vol] volumes/test\&quot;&quot; failed. No retries permitted until 2016-12-04 16:23:04.00155815 +0000 UTC (durationBeforeRetry 2s). Error: Volume &quot;kubernetes.io/vsphere-volume/[kstore-k8s-vol] volumes/test&quot; (spec.Name: &quot;vmdk-storage&quot;) pod &quot;ec696999-ba3d-11e6-a9a4-005056892975&quot; (UID: &quot;ec696999-ba3d-11e6-a9a4-005056892975&quot;) has not yet been added to the list of VolumesInUse in the node's volume status. Dec 04 16:23:04 k8-w2 kubelet-wrapper[946]: I1204 16:23:04.008834 946 reconciler.go:230] VerifyControllerAttachedVolume operation started for volume &quot;kubernetes.io/vsphere-volume/[kstore-k8s-vol] volumes/test&quot; (spec.Name: &quot;vmdk-storage&quot;) pod &quot;ec696999-ba3d-11e6-a9a4-005056892975&quot; (UID: &quot;ec696999-ba3d-11e6-a9a4-005056892975&quot;) Dec 04 16:23:04 k8-w2 kubelet-wrapper[946]: E1204 16:23:04.009560 946 nestedpendingoperations.go:262] Operation for &quot;\&quot;kubernetes.io/vsphere-volume/[kstore-k8s-vol] volumes/test\&quot;&quot; failed. No retries permitted until 2016-12-04 16:23:08.00952202 +0000 UTC (durationBeforeRetry 4s). Error: Volume &quot;kubernetes.io/vsphere-volume/[kstore-k8s-vol] volumes/test&quot; (spec.Name: &quot;vmdk-storage&quot;) pod &quot;ec696999-ba3d-11e6-a9a4-005056892975&quot; (UID: &quot;ec696999-ba3d-11e6-a9a4-005056892975&quot;) has not yet been added to the list of VolumesInUse in the node's volume status. Dec 04 16:23:05 k8-w2 kubelet-wrapper[946]: W1204 16:23:05.154304 946 vsphere.go:368] Creating new client session since the existing session is not valid or not authenticated Dec 04 16:23:08 k8-w2 kubelet-wrapper[946]: I1204 16:23:08.035413 946 reconciler.go:230] VerifyControllerAttachedVolume operation started for volume &quot;kubernetes.io/vsphere-volume/[kstore-k8s-vol] volumes/test&quot; (spec.Name: &quot;vmdk-storage&quot;) pod &quot;ec696999-ba3d-11e6-a9a4-005056892975&quot; (UID: &quot;ec696999-ba3d-11e6-a9a4-005056892975&quot;) Dec 04 16:23:08 k8-w2 kubelet-wrapper[946]: I1204 16:23:08.040480 946 operation_executor.go:1199] Controller successfully attached volume &quot;kubernetes.io/vsphere-volume/[kstore-k8s-vol] volumes/test&quot; (spec.Name: &quot;vmdk-storage&quot;) pod &quot;ec696999-ba3d-11e6-a9a4-005056892975&quot; (UID: &quot;ec696999-ba3d-11e6-a9a4-005056892975&quot;) devicePath: &quot;/dev/disk/by-id/wwn-0x6000c29644981da81416d23b00969968&quot; Dec 04 16:23:08 k8-w2 kubelet-wrapper[946]: I1204 16:23:08.136359 946 operation_executor.go:811] Entering MountVolume.WaitForAttach for volume &quot;kubernetes.io/vsphere-volume/[kstore-k8s-vol] volumes/test&quot; (spec.Name: &quot;vmdk-storage&quot;) pod &quot;ec696999-ba3d-11e6-a9a4-005056892975&quot; (UID: &quot;ec696999-ba3d-11e6-a9a4-005056892975&quot;) DevicePath: &quot;/dev/disk/by-id/wwn-0x6000c29644981da81416d23b00969968&quot; Dec 04 16:23:15 k8-w2 kubelet-wrapper[946]: W1204 16:23:15.708296 946 vsphere.go:368] Creating new client session since the existing session is not valid or not authenticated Dec 04 16:23:26 k8-w2 kubelet-wrapper[946]: W1204 16:23:26.292271 946 vsphere.go:368] Creating new client session since the existing session is not valid or not authenticated Dec 04 16:23:36 k8-w2 kubelet-wrapper[946]: W1204 16:23:36.833943 946 vsphere.go:368] Creating new client session since the existing session is not valid or not authenticated Dec 04 16:23:47 k8-w2 kubelet-wrapper[946]: W1204 16:23:47.284526 946 vsphere.go:368] Creating new client session since the existing session is not valid or not authenticated Dec 04 16:23:57 k8-w2 kubelet-wrapper[946]: W1204 16:23:57.759809 946 vsphere.go:368] Creating new client session since the existing session is not valid or not authenticated Dec 04 16:24:08 k8-w2 kubelet-wrapper[946]: W1204 16:24:08.260559 946 vsphere.go:368] Creating new client session since the existing session is not valid or not authenticated Dec 04 16:24:18 k8-w2 kubelet-wrapper[946]: W1204 16:24:18.740360 946 vsphere.go:368] Creating new client session since the existing session is not valid or not authenticated Dec 04 16:24:29 k8-w2 kubelet-wrapper[946]: W1204 16:24:29.271524 946 vsphere.go:368] Creating new client session since the existing session is not valid or not authenticated Dec 04 16:24:39 k8-w2 kubelet-wrapper[946]: W1204 16:24:39.857839 946 vsphere.go:368] Creating new client session since the existing session is not valid or not authenticated Dec 04 16:24:50 k8-w2 kubelet-wrapper[946]: W1204 16:24:50.560441 946 vsphere.go:368] Creating new client session since the existing session is not valid or not authenticated Dec 04 16:25:00 k8-w2 kubelet-wrapper[946]: E1204 16:25:00.361456 946 kubelet.go:1521] Unable to mount volumes for pod &quot;pvpod_default(ec696999-ba3d-11e6-a9a4-005056892975)&quot;: timeout expired waiting for volumes to attach/mount for pod &quot;pvpod&quot;/&quot;default&quot;. list of unattached/unmounted volumes=[vmdk-storage]; skipping pod Dec 04 16:25:00 k8-w2 kubelet-wrapper[946]: E1204 16:25:00.362208 946 pod_workers.go:184] Error syncing pod ec696999-ba3d-11e6-a9a4-005056892975, skipping: timeout expired waiting for volumes to attach/mount for pod &quot;pvpod&quot;/&quot;default&quot;. list of unattached/unmounted volumes=[vmdk-storage] Dec 04 16:25:01 k8-w2 kubelet-wrapper[946]: W1204 16:25:01.037741 946 vsphere.go:368] Creating new client session since the existing session is not valid or not authenticated Dec 04 16:25:11 k8-w2 kubelet-wrapper[946]: W1204 16:25:11.531951 946 vsphere.go:368] Creating new client session since the existing session is not valid or not authenticated Dec 04 16:25:12 k8-w2 kubelet-wrapper[946]: I1204 16:25:12.847941 946 operation_executor.go:916] MountVolume.SetUp succeeded for volume &quot;kubernetes.io/secret/ec696999-ba3d-11e6-a9a4-005056892975-default-token-zcpmt&quot; (spec.Name: &quot;default-token-zcpmt&quot;) pod &quot;ec696999-ba3d-11e6-a9a4-005056892975&quot; (UID: &quot;ec696999-ba3d-11e6-a9a4-005056892975&quot;). Dec 04 16:25:22 k8-w2 kubelet-wrapper[946]: W1204 16:25:22.065628 946 vsphere.go:368] Creating new client session since the existing session is not valid or not authenticated Dec 04 16:25:32 k8-w2 kubelet-wrapper[946]: W1204 16:25:32.635166 946 vsphere.go:368] Creating new client session since the existing session is not valid or not authenticated Dec 04 16:25:43 k8-w2 kubelet-wrapper[946]: W1204 16:25:43.113635 946 vsphere.go:368] Creating new client session since the existing session is not valid or not authenticated Dec 04 16:25:53 k8-w2 kubelet-wrapper[946]: W1204 16:25:53.599072 946 vsphere.go:368] Creating new client session since the existing session is not valid or not authenticated Dec 04 16:26:04 k8-w2 kubelet-wrapper[946]: W1204 16:26:04.074564 946 vsphere.go:368] Creating new client session since the existing session is not valid or not authenticated Dec 04 16:26:14 k8-w2 kubelet-wrapper[946]: W1204 16:26:14.750181 946 vsphere.go:368] Creating new client session since the existing session is not valid or not authenticated Dec 04 16:26:25 k8-w2 kubelet-wrapper[946]: W1204 16:26:25.399264 946 vsphere.go:368] Creating new client session since the existing session is not valid or not authenticated Dec 04 16:26:35 k8-w2 kubelet-wrapper[946]: W1204 16:26:35.875540 946 vsphere.go:368] Creating new client session since the existing session is not valid or not authenticated Dec 04 16:26:46 k8-w2 kubelet-wrapper[946]: W1204 16:26:46.364960 946 vsphere.go:368] Creating new client session since the existing session is not valid or not authenticated"><pre class="notranslate"><code class="notranslate">Dec 04 16:23:00 k8-w2 kubelet-wrapper[946]: E1204 16:23:00.488905 946 nestedpendingoperations.go:262] Operation for "\"kubernetes.io/vsphere-volume/[kstore-k8s-vol] volumes/test\"" failed. No retries permitted until 2016-12-04 16:23:00.988885317 +0000 UTC (durationBeforeRetry 500ms). Error: Volume "kubernetes.io/vsphere-volume/[kstore-k8s-vol] volumes/test" (spec.Name: "vmdk-storage") pod "ec696999-ba3d-11e6-a9a4-005056892975" (UID: "ec696999-ba3d-11e6-a9a4-005056892975") has not yet been added to the list of VolumesInUse in the node's volume status. Dec 04 16:23:00 k8-w2 kubelet-wrapper[946]: I1204 16:23:00.488827 946 reconciler.go:230] VerifyControllerAttachedVolume operation started for volume "kubernetes.io/vsphere-volume/[kstore-k8s-vol] volumes/test" (spec.Name: "vmdk-storage") pod "ec696999-ba3d-11e6-a9a4-005056892975" (UID: "ec696999-ba3d-11e6-a9a4-005056892975") Dec 04 16:23:00 k8-w2 kubelet-wrapper[946]: I1204 16:23:00.490608 946 reconciler.go:230] VerifyControllerAttachedVolume operation started for volume "kubernetes.io/secret/ec696999-ba3d-11e6-a9a4-005056892975-default-token-zcpmt" (spec.Name: "default-token-zcpmt") pod "ec696999-ba3d-11e6-a9a4-005056892975" (UID: "ec696999-ba3d-11e6-a9a4-005056892975") Dec 04 16:23:00 k8-w2 kubelet-wrapper[946]: I1204 16:23:00.608354 946 operation_executor.go:916] MountVolume.SetUp succeeded for volume "kubernetes.io/secret/ec696999-ba3d-11e6-a9a4-005056892975-default-token-zcpmt" (spec.Name: "default-token-zcpmt") pod "ec696999-ba3d-11e6-a9a4-005056892975" (UID: "ec696999-ba3d-11e6-a9a4-005056892975"). Dec 04 16:23:00 k8-w2 kubelet-wrapper[946]: I1204 16:23:00.991910 946 reconciler.go:230] VerifyControllerAttachedVolume operation started for volume "kubernetes.io/vsphere-volume/[kstore-k8s-vol] volumes/test" (spec.Name: "vmdk-storage") pod "ec696999-ba3d-11e6-a9a4-005056892975" (UID: "ec696999-ba3d-11e6-a9a4-005056892975") Dec 04 16:23:00 k8-w2 kubelet-wrapper[946]: E1204 16:23:00.992429 946 nestedpendingoperations.go:262] Operation for "\"kubernetes.io/vsphere-volume/[kstore-k8s-vol] volumes/test\"" failed. No retries permitted until 2016-12-04 16:23:01.992407088 +0000 UTC (durationBeforeRetry 1s). Error: Volume "kubernetes.io/vsphere-volume/[kstore-k8s-vol] volumes/test" (spec.Name: "vmdk-storage") pod "ec696999-ba3d-11e6-a9a4-005056892975" (UID: "ec696999-ba3d-11e6-a9a4-005056892975") has not yet been added to the list of VolumesInUse in the node's volume status. Dec 04 16:23:02 k8-w2 kubelet-wrapper[946]: I1204 16:23:02.000818 946 reconciler.go:230] VerifyControllerAttachedVolume operation started for volume "kubernetes.io/vsphere-volume/[kstore-k8s-vol] volumes/test" (spec.Name: "vmdk-storage") pod "ec696999-ba3d-11e6-a9a4-005056892975" (UID: "ec696999-ba3d-11e6-a9a4-005056892975") Dec 04 16:23:02 k8-w2 kubelet-wrapper[946]: E1204 16:23:02.001589 946 nestedpendingoperations.go:262] Operation for "\"kubernetes.io/vsphere-volume/[kstore-k8s-vol] volumes/test\"" failed. No retries permitted until 2016-12-04 16:23:04.00155815 +0000 UTC (durationBeforeRetry 2s). Error: Volume "kubernetes.io/vsphere-volume/[kstore-k8s-vol] volumes/test" (spec.Name: "vmdk-storage") pod "ec696999-ba3d-11e6-a9a4-005056892975" (UID: "ec696999-ba3d-11e6-a9a4-005056892975") has not yet been added to the list of VolumesInUse in the node's volume status. Dec 04 16:23:04 k8-w2 kubelet-wrapper[946]: I1204 16:23:04.008834 946 reconciler.go:230] VerifyControllerAttachedVolume operation started for volume "kubernetes.io/vsphere-volume/[kstore-k8s-vol] volumes/test" (spec.Name: "vmdk-storage") pod "ec696999-ba3d-11e6-a9a4-005056892975" (UID: "ec696999-ba3d-11e6-a9a4-005056892975") Dec 04 16:23:04 k8-w2 kubelet-wrapper[946]: E1204 16:23:04.009560 946 nestedpendingoperations.go:262] Operation for "\"kubernetes.io/vsphere-volume/[kstore-k8s-vol] volumes/test\"" failed. No retries permitted until 2016-12-04 16:23:08.00952202 +0000 UTC (durationBeforeRetry 4s). Error: Volume "kubernetes.io/vsphere-volume/[kstore-k8s-vol] volumes/test" (spec.Name: "vmdk-storage") pod "ec696999-ba3d-11e6-a9a4-005056892975" (UID: "ec696999-ba3d-11e6-a9a4-005056892975") has not yet been added to the list of VolumesInUse in the node's volume status. Dec 04 16:23:05 k8-w2 kubelet-wrapper[946]: W1204 16:23:05.154304 946 vsphere.go:368] Creating new client session since the existing session is not valid or not authenticated Dec 04 16:23:08 k8-w2 kubelet-wrapper[946]: I1204 16:23:08.035413 946 reconciler.go:230] VerifyControllerAttachedVolume operation started for volume "kubernetes.io/vsphere-volume/[kstore-k8s-vol] volumes/test" (spec.Name: "vmdk-storage") pod "ec696999-ba3d-11e6-a9a4-005056892975" (UID: "ec696999-ba3d-11e6-a9a4-005056892975") Dec 04 16:23:08 k8-w2 kubelet-wrapper[946]: I1204 16:23:08.040480 946 operation_executor.go:1199] Controller successfully attached volume "kubernetes.io/vsphere-volume/[kstore-k8s-vol] volumes/test" (spec.Name: "vmdk-storage") pod "ec696999-ba3d-11e6-a9a4-005056892975" (UID: "ec696999-ba3d-11e6-a9a4-005056892975") devicePath: "/dev/disk/by-id/wwn-0x6000c29644981da81416d23b00969968" Dec 04 16:23:08 k8-w2 kubelet-wrapper[946]: I1204 16:23:08.136359 946 operation_executor.go:811] Entering MountVolume.WaitForAttach for volume "kubernetes.io/vsphere-volume/[kstore-k8s-vol] volumes/test" (spec.Name: "vmdk-storage") pod "ec696999-ba3d-11e6-a9a4-005056892975" (UID: "ec696999-ba3d-11e6-a9a4-005056892975") DevicePath: "/dev/disk/by-id/wwn-0x6000c29644981da81416d23b00969968" Dec 04 16:23:15 k8-w2 kubelet-wrapper[946]: W1204 16:23:15.708296 946 vsphere.go:368] Creating new client session since the existing session is not valid or not authenticated Dec 04 16:23:26 k8-w2 kubelet-wrapper[946]: W1204 16:23:26.292271 946 vsphere.go:368] Creating new client session since the existing session is not valid or not authenticated Dec 04 16:23:36 k8-w2 kubelet-wrapper[946]: W1204 16:23:36.833943 946 vsphere.go:368] Creating new client session since the existing session is not valid or not authenticated Dec 04 16:23:47 k8-w2 kubelet-wrapper[946]: W1204 16:23:47.284526 946 vsphere.go:368] Creating new client session since the existing session is not valid or not authenticated Dec 04 16:23:57 k8-w2 kubelet-wrapper[946]: W1204 16:23:57.759809 946 vsphere.go:368] Creating new client session since the existing session is not valid or not authenticated Dec 04 16:24:08 k8-w2 kubelet-wrapper[946]: W1204 16:24:08.260559 946 vsphere.go:368] Creating new client session since the existing session is not valid or not authenticated Dec 04 16:24:18 k8-w2 kubelet-wrapper[946]: W1204 16:24:18.740360 946 vsphere.go:368] Creating new client session since the existing session is not valid or not authenticated Dec 04 16:24:29 k8-w2 kubelet-wrapper[946]: W1204 16:24:29.271524 946 vsphere.go:368] Creating new client session since the existing session is not valid or not authenticated Dec 04 16:24:39 k8-w2 kubelet-wrapper[946]: W1204 16:24:39.857839 946 vsphere.go:368] Creating new client session since the existing session is not valid or not authenticated Dec 04 16:24:50 k8-w2 kubelet-wrapper[946]: W1204 16:24:50.560441 946 vsphere.go:368] Creating new client session since the existing session is not valid or not authenticated Dec 04 16:25:00 k8-w2 kubelet-wrapper[946]: E1204 16:25:00.361456 946 kubelet.go:1521] Unable to mount volumes for pod "pvpod_default(ec696999-ba3d-11e6-a9a4-005056892975)": timeout expired waiting for volumes to attach/mount for pod "pvpod"/"default". list of unattached/unmounted volumes=[vmdk-storage]; skipping pod Dec 04 16:25:00 k8-w2 kubelet-wrapper[946]: E1204 16:25:00.362208 946 pod_workers.go:184] Error syncing pod ec696999-ba3d-11e6-a9a4-005056892975, skipping: timeout expired waiting for volumes to attach/mount for pod "pvpod"/"default". list of unattached/unmounted volumes=[vmdk-storage] Dec 04 16:25:01 k8-w2 kubelet-wrapper[946]: W1204 16:25:01.037741 946 vsphere.go:368] Creating new client session since the existing session is not valid or not authenticated Dec 04 16:25:11 k8-w2 kubelet-wrapper[946]: W1204 16:25:11.531951 946 vsphere.go:368] Creating new client session since the existing session is not valid or not authenticated Dec 04 16:25:12 k8-w2 kubelet-wrapper[946]: I1204 16:25:12.847941 946 operation_executor.go:916] MountVolume.SetUp succeeded for volume "kubernetes.io/secret/ec696999-ba3d-11e6-a9a4-005056892975-default-token-zcpmt" (spec.Name: "default-token-zcpmt") pod "ec696999-ba3d-11e6-a9a4-005056892975" (UID: "ec696999-ba3d-11e6-a9a4-005056892975"). Dec 04 16:25:22 k8-w2 kubelet-wrapper[946]: W1204 16:25:22.065628 946 vsphere.go:368] Creating new client session since the existing session is not valid or not authenticated Dec 04 16:25:32 k8-w2 kubelet-wrapper[946]: W1204 16:25:32.635166 946 vsphere.go:368] Creating new client session since the existing session is not valid or not authenticated Dec 04 16:25:43 k8-w2 kubelet-wrapper[946]: W1204 16:25:43.113635 946 vsphere.go:368] Creating new client session since the existing session is not valid or not authenticated Dec 04 16:25:53 k8-w2 kubelet-wrapper[946]: W1204 16:25:53.599072 946 vsphere.go:368] Creating new client session since the existing session is not valid or not authenticated Dec 04 16:26:04 k8-w2 kubelet-wrapper[946]: W1204 16:26:04.074564 946 vsphere.go:368] Creating new client session since the existing session is not valid or not authenticated Dec 04 16:26:14 k8-w2 kubelet-wrapper[946]: W1204 16:26:14.750181 946 vsphere.go:368] Creating new client session since the existing session is not valid or not authenticated Dec 04 16:26:25 k8-w2 kubelet-wrapper[946]: W1204 16:26:25.399264 946 vsphere.go:368] Creating new client session since the existing session is not valid or not authenticated Dec 04 16:26:35 k8-w2 kubelet-wrapper[946]: W1204 16:26:35.875540 946 vsphere.go:368] Creating new client session since the existing session is not valid or not authenticated Dec 04 16:26:46 k8-w2 kubelet-wrapper[946]: W1204 16:26:46.364960 946 vsphere.go:368] Creating new client session since the existing session is not valid or not authenticated </code></pre></div> <p dir="auto">VM hardware with VMDK showing as being attached;</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6966796/20867559/a8b8411c-ba3f-11e6-95e8-1798346395b3.png"><img src="https://cloud.githubusercontent.com/assets/6966796/20867559/a8b8411c-ba3f-11e6-95e8-1798346395b3.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.): logging, logging level</p> <hr> <p dir="auto">I am using <code class="notranslate">--logtostderr=true</code> and I would like to be able to see only WARN/ERROR level messages in my log of Kubernetes components.</p> <p dir="auto">I am especially interested in being able to dismiss INFO level messages from kubelet.</p> <p dir="auto">According to this: <a href="http://rpg.ifi.uzh.ch/docs/glog.html" rel="nofollow">http://rpg.ifi.uzh.ch/docs/glog.html</a>, it should be possible to specify minimum log level with a <code class="notranslate">minloglevel</code> flag which is not exposed on kubelet. <code class="notranslate">--stderrthreshold=2</code> didn't work -- I still saw a lot of INFO messages in my logs.</p>
0
<blockquote> <p dir="auto">scipy.linalg.eigh</p> </blockquote> <p dir="auto"><strong>click</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" Not Found The requested URL /doc/scipy-1.8.0/html-scipyorg/reference/reference/generated/scipy.linalg.eigh.html was not found on this server."><pre class="notranslate"><code class="notranslate"> Not Found The requested URL /doc/scipy-1.8.0/html-scipyorg/reference/reference/generated/scipy.linalg.eigh.html was not found on this server. </code></pre></div>
<p dir="auto"><a href="https://numpy.org/doc/stable/reference/generated/numpy.linalg.inv.html" rel="nofollow">Here</a>, for example, is a link to scipy.linalg.inv which is erroneously</p> <blockquote> <p dir="auto"><a href="https://docs.scipy.org/doc/scipy/reference/reference/generated/scipy.linalg.inv.html#scipy.linalg.inv" rel="nofollow">https://docs.scipy.org/doc/scipy/reference/reference/generated/scipy.linalg.inv.html#scipy.linalg.inv</a></p> </blockquote> <p dir="auto">instead of</p> <blockquote> <p dir="auto"><a href="https://docs.scipy.org/doc/scipy/reference/generated/scipy.linalg.inv.html#scipy.linalg.inv" rel="nofollow">https://docs.scipy.org/doc/scipy/reference/generated/scipy.linalg.inv.html#scipy.linalg.inv</a></p> </blockquote>
1
<p dir="auto">Very often we have code that uses <code class="notranslate">transferPropsTo</code>, but it's very heavy handed. Often times we just want to add a class or some style based on an option.</p> <p dir="auto">Currently if we want to do that it looks something like this:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var joinClasses = require('joinClasses'); // ... var MyComponent = React.createClass({ render: function() { return &lt;div className={joinClasses(this.props.className, &quot;something&quot;)} /&gt; } });"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">joinClasses</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'joinClasses'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// ...</span> <span class="pl-k">var</span> <span class="pl-v">MyComponent</span> <span class="pl-c1">=</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-en">createClass</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-en">render</span>: <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-c1">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">className</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">joinClasses</span><span class="pl-kos">(</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-c1">className</span><span class="pl-kos">,</span> <span class="pl-s">"something"</span><span class="pl-kos">)</span><span class="pl-kos">}</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">While it's not too bad once, we sometimes do this with <code class="notranslate">style</code> as well. And longer classnames. Multiply by a large number and we're in a situation that adds a lot of duplicate work for developers.</p> <p dir="auto">So we want to make this better. Some of us talked about a few different ideas here, but we want a combination of explicit and not too much magic. One idea was a magical prop that could be used to pass through.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="return &lt;div props={{className: this.props.className}} className=&quot;something&quot; /&gt;"><pre class="notranslate"><span class="pl-k">return</span> <span class="pl-c1">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">props</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-kos">{</span><span class="pl-c1">className</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-c1">className</span><span class="pl-kos">}</span><span class="pl-kos">}</span> <span class="pl-c1">className</span><span class="pl-c1">=</span><span class="pl-s">"something"</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span></pre></div> <p dir="auto">On the surface this looks great, but then we need to bake knowledge of certain props into composite components (is it a string?) and we're not guaranteed that the component is using a prop in the same way it's used in the DOM.</p> <p dir="auto">So what we settled on for the least surprising is in line with some of the special casing React does for some DOM properties. Right now we have booleans which get handled specially. What we're planning is the ability to special case arrays. This allows us to do this:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="return &lt;div className={[this.props.className, &quot;something&quot;]} /&gt;"><pre class="notranslate"><span class="pl-k">return</span> <span class="pl-c1">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">className</span><span class="pl-c1">=</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">props</span><span class="pl-kos">.</span><span class="pl-c1">className</span><span class="pl-kos">,</span> <span class="pl-s">"something"</span><span class="pl-kos">]</span><span class="pl-kos">}</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span></pre></div> <p dir="auto">We would need to do this for individual properties and not apply the same handling for every property. For example, <code class="notranslate">className</code> would basically need to flatten and then join with a space. style would need to flatten and merge all objects.</p> <p dir="auto">This will diverge slightly from our current behavior of just stringifying <del>all</del>most properties.</p>
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong><br> This is a feature request.</p> <p dir="auto"><strong>What is the current behavior?</strong><br> There doesn't appear to be a way to pass context when calling <code class="notranslate">renderer.create</code></p> <p dir="auto">I'm attempting to use snapshot testing in Jest with a component that uses <code class="notranslate">react-intl</code>. If I could provide context, I could create a similar <a href="https://github.com/yahoo/react-intl/wiki/Testing-with-React-Intl#helper-function-1">helper function to those for enzyme</a>.</p> <p dir="auto"><strong>What is the expected behavior?</strong><br> Be able to provide a context, similar to <code class="notranslate">shallowRenderer.render</code>: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="70193073" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/3721" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/3721/hovercard" href="https://github.com/facebook/react/issues/3721">#3721</a></p> <p dir="auto"><strong>Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?</strong></p> <p dir="auto">I'm using React 15.13.2 and haven't tried any previous versions of React.</p>
0
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> After a component is moved to a different ViewContainer, new Components that are added using "createComponent" on a ViewContainer are inserted into the wrong ViewContainer.</p> <p dir="auto"><del>It looks like I need to do some combination of "insert" and "remove", which this comment in the source code alludes to:</del></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// TODO(i): refactor insert+remove into move ViewContainerRef_.prototype.insert = function (viewRef, index) {"><pre class="notranslate"><code class="notranslate">// TODO(i): refactor insert+remove into move ViewContainerRef_.prototype.insert = function (viewRef, index) { </code></pre></div> <p dir="auto"><del>The problem is that using this combination doesn’t work. If I try to remove the ViewRef and then insert it elsewhere it's flagged as destroyed and it becomes unusable.</del></p> <p dir="auto">Edit: After further investigation "detach" and then "insert" works where "insert"/"move" alone (or with "remove") does not. That said, since "move" does not function on its own this still seems like an issue. Additionally, the "detach" comment refers to moving a View "within the current container", but it does not need to be within the current container.</p> <p dir="auto"><strong>Expected behavior</strong><br> <del>When Components are moved they will not cause future component insertions to go to the wrong ViewContainer.</del></p> <p dir="auto">Using "insert"/"move" will not result in unexpected behavior if they are not used in conjunction with "detach" (alternatively, an exception that recommends the possibility of using "detach" in this situation would be helpful).</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p> <p dir="auto">I've created the following Plunker which demonstrates the problem: <a href="http://plnkr.co/edit/JRhGsje9ppzamNIsuk90?p=preview" rel="nofollow">http://plnkr.co/edit/JRhGsje9ppzamNIsuk90?p=preview</a></p> <p dir="auto">To recreate the problem:</p> <ol dir="auto"> <li>Add Left</li> <li>Add Center</li> <li>Move Last Center to Left</li> <li>Add Center</li> </ol> <p dir="auto">The last “Add Center” will cause the component to be added to the left instead of the center.</p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br> Within my application Components are inserted, removed, and moved based on user interaction within a dashboard-like UI. <del>In order for movement to work this needs to be resolved.</del></p> <p dir="auto">Edit: Since I'm able to use "detach" in conjunction with "insert" I can achieve what I need to within the UI. However, I would expect that "move" would work on its own to accomplish this.</p> <p dir="auto"><strong>Please tell us about your environment:</strong><br> Windows 10, Visual Studio 2015, npm, IIS</p> <ul dir="auto"> <li> <p dir="auto"><strong>Angular version:</strong> 2.2.3</p> </li> <li> <p dir="auto"><strong>Browser:</strong> [Chrome 54.0.2840.99 | Edge 25.10586.672.0]</p> </li> <li> <p dir="auto"><strong>Language:</strong> [TypeScript 2.0.3.0]</p> </li> <li> <p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> = v7.1.0</p> </li> </ul>
<h2 dir="auto">I'm submitting a...</h2> <p dir="auto">[X] Bug Report<br> [X] Feature request<br> I am not sure if the behavior is intended but it clearly causes problems.</p> <h2 dir="auto">Current behavior</h2> <p dir="auto">We are unable to detach a ViewRef from <strong>ViewContainerRef A</strong> and attach it to a different <strong>ViewContainerRef B</strong></p> <p dir="auto">Insert / Detaching doesn't trigger change detection on both ViewContainers.<br> Using <code class="notranslate">@ContentChildren</code> fails to update changes properly.</p> <h2 dir="auto">Expected behavior</h2> <p dir="auto">I would like to be able to detach a ViewRef and attach it to a new ViewContainer without recreating the components inside the view. This should work without any issues.</p> <h2 dir="auto">Minimal reproduction of the problem with instructions</h2> <p dir="auto"><a href="https://stackblitz.com/edit/angular-gitter-couoxk?file=app%2Ftest.ts" rel="nofollow">https://stackblitz.com/edit/angular-gitter-couoxk?file=app%2Ftest.ts</a></p> <h2 dir="auto">What is the motivation / use case for changing the behavior?</h2> <p dir="auto">Would allow to implement Drag &amp; Drop that doesn't recreate the components when an item is dragged over.<br> Would allow to manipulate dom without using nativeElement, No more worrying about *ngFor trying to find the changes and throwing errors when nodes are missing in dom.</p> <h2 dir="auto">Environment</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" Angular version: 4.x and Angular version: 5.x Browser: - [x] Chrome (desktop) version XX - [x] Chrome (Android) version XX - [x] Chrome (iOS) version XX - [x] Firefox version XX - [x] Safari (desktop) version XX - [x] Safari (iOS) version XX - [x] IE version XX - [x] Edge version XX For Tooling issues: - Node version: XX - Platform: Others: "><pre class="notranslate"><code class="notranslate"> Angular version: 4.x and Angular version: 5.x Browser: - [x] Chrome (desktop) version XX - [x] Chrome (Android) version XX - [x] Chrome (iOS) version XX - [x] Firefox version XX - [x] Safari (desktop) version XX - [x] Safari (iOS) version XX - [x] IE version XX - [x] Edge version XX For Tooling issues: - Node version: XX - Platform: Others: </code></pre></div>
1
<ul dir="auto"> <li>[*] 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>[*] 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.7</li> <li>Operating System version: macOS Mojave 10.14.6</li> <li>Java version: 1.8.x</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>升级 dubbo 到 2.7.7</li> <li>使用 @DubboReference(version = "*") 注解注入Dubbo服务</li> <li>服务提供者侧一直保持为2.7.7版本</li> </ol> <h3 dir="auto">Expected Result</h3> <p dir="auto">此时被注入的dubbo服务应该可以使用。</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">被注入的Dubbo服务不能被使用(经验证消费者侧降级至2.7.6时,服务可用)</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>
<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.0</li> <li>Operating System version: macos</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li><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>(interfaceClass = xxx.class, timeout = 3000, version = "1.0.7", group="#{config.group}")</li> </ol> <p dir="auto">What do you expected from the above steps?<br> register a provider service with the group name given by the spel</p>
0