text1
stringlengths
0
536k
text2
stringlengths
0
536k
label
int64
0
1
<p dir="auto">When you want the FlashBag to set a message, you'd like to do getFlashBag on the session. However, you can only achieve this by type hinting an injection on the Session\Session object. The Session\SessionInterface doesn't contain the "getFlashBag" method thus you can't use the Request::getSession();</p> <p dir="auto">If you do want to get the flash bag from it, you can try "getSession()-&gt;getBag('flash bag name')". However, that doesn't guarantee that you get the flash bag that was inserted because you don't know the name.</p> <p dir="auto">It's a minor inconvenience that has multiple custom solutions, but I've seen this issue come around a couple of times already in "#symfony".</p>
<p dir="auto">I don't know if this is intended, but the <code class="notranslate">SessionInterface</code> from HttpFoundation does not contain the <code class="notranslate">getFlashBag</code> method. Why is this annoying? Well if I have got a request in a controller and I call <code class="notranslate">getSession</code> on it my IDE provides autocompletion for the <code class="notranslate">SessionInterface</code> and I am not seeing the <code class="notranslate">getFlashBag</code> method.</p>
1
<p dir="auto">The following code is taken in part from the contour demo of the matplotlib documentation. I am using contourf instead of simple contour. The contour plot is shown just as I want it to be within the matplotlib figure window.</p> <p dir="auto">As soon as it comes to saving I am not content with the result. A PNG save looks perfect, but I do not have any levels, as png si no vector format. When saving to PDF of SVG format I have levels, BUT there are thin light borders around the levels. At first I thought they are caused, because every level is getting a stroke around. When opening the SVG file with inkscape to drop those strokes, I found out, that actually the levels are saved just a bit to small or a bit too large respectively... you hardly note them, when you zoom in, but by zooming out they get quite prominent. I suppose they are due to the fact, that the values of the levels are saved with low precision!? Is it possible to get rid of theese borders by some command?</p> <p dir="auto">I am aware that these borders will not make a difference in most applicative contexts. Unfortunately where I am using them the do not simply look ugly, but really disturb the quality of the depicted results...</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import matplotlib import numpy as np import matplotlib.cm as cm import matplotlib.mlab as mlab import matplotlib.pyplot as plt matplotlib.rcParams['xtick.direction'] = 'out' matplotlib.rcParams['ytick.direction'] = 'out' 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 = mlab.bivariate_normal(X, Y, 1.0, 1.0, 0.0, 0.0) Z2 = mlab.bivariate_normal(X, Y, 1.5, 0.5, 1, 1) Z = 10.0 * (Z2 - Z1) plt.ion() plt.figure() CS = plt.contourf(X, Y, Z, colors=[[0,0,0.5],[0,0,0.2]]) plt.title('Saved as PNG') plt.savefig('image1.png') plt.title('Saved as SVG') plt.savefig('image1.svg')"><pre class="notranslate"><code class="notranslate">import matplotlib import numpy as np import matplotlib.cm as cm import matplotlib.mlab as mlab import matplotlib.pyplot as plt matplotlib.rcParams['xtick.direction'] = 'out' matplotlib.rcParams['ytick.direction'] = 'out' 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 = mlab.bivariate_normal(X, Y, 1.0, 1.0, 0.0, 0.0) Z2 = mlab.bivariate_normal(X, Y, 1.5, 0.5, 1, 1) Z = 10.0 * (Z2 - Z1) plt.ion() plt.figure() CS = plt.contourf(X, Y, Z, colors=[[0,0,0.5],[0,0,0.2]]) plt.title('Saved as PNG') plt.savefig('image1.png') plt.title('Saved as SVG') plt.savefig('image1.svg') </code></pre></div>
<p dir="auto">This is the underlying problem raised in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="6572843" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/1178" data-hovercard-type="pull_request" data-hovercard-url="/matplotlib/matplotlib/pull/1178/hovercard" href="https://github.com/matplotlib/matplotlib/pull/1178">#1178</a>.<br> It is illustrated by the test below; note that boundary anomalies are visible in all forms--agg on the screen, and pdf and svg displayed with a viewer--but in different places depending on the viewer and the size of the figure as rendered.<br> Note that the colorbar is rendered using pcolormesh, which has its own renderer with agg but otherwise is handled by draw_path_collection.</p> <pre class="notranslate">import numpy as np import matplotlib.pyplot as plt z = np.arange(150) z.shape = (10,15) fig, axs = plt.subplots(2,2) ax = axs[0,0] cs0 = ax.contourf(z, 20) cbar0 = fig.colorbar(cs0, ax=ax) ax = axs[0,1] cs1 = ax.contourf(z, 20, alpha=0.3) cbar1 = fig.colorbar(cs1, ax=ax) ax = axs[1,0] im2 = ax.imshow(z, interpolation='nearest') cbar2 = fig.colorbar(im2, ax=ax) ax = axs[1,1] im3 = ax.imshow(z, interpolation='nearest', alpha=0.3) cbar3 = fig.colorbar(im3, ax=ax) plt.savefig("test1.pdf") plt.savefig("test1.svg") plt.show() </pre>
1
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=jsyrjala" rel="nofollow">Juha Syrjälä</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9578?redirect=false" rel="nofollow">SPR-9578</a></strong> and commented</p> <p dir="auto">I am trying to use a result of method call to a spring bean as a part of the cache key, but that doesn't seem to work.</p> <p dir="auto"><code class="notranslate">@Inject</code><br> private KeyCreatorBean keyCreatorBean;</p> <p dir="auto"><code class="notranslate">@Cacheable</code>(value = "cacheName", key = "{<code class="notranslate">@keyCreatorBean</code>.createKey, #p0}")<br> <code class="notranslate">@Override</code><br> public List&lt;Examples&gt; getExamples(ExampleId exampleId) {</p> <p dir="auto">Results in this kind of stack trace:</p> <p dir="auto">org.springframework.expression.spel.SpelEvaluationException: EL1008E:(pos 1): Field or property 'keyCreatorBean' cannot be found on object of type 'org.springframework.cache.interceptor.CacheExpressionRootObject'<br> at org.springframework.expression.spel.ast.PropertyOrFieldReference.readProperty(PropertyOrFieldReference.java:208)<br> at org.springframework.expression.spel.ast.PropertyOrFieldReference.getValueInternal(PropertyOrFieldReference.java:72)<br> at org.springframework.expression.spel.ast.CompoundExpression.getValueInternal(CompoundExpression.java:52)<br> at org.springframework.expression.spel.ast.SpelNodeImpl.getValue(SpelNodeImpl.java:93)<br> at org.springframework.expression.spel.ast.InlineList.getValueInternal(InlineList.java:86)<br> at org.springframework.expression.spel.ast.SpelNodeImpl.getValue(SpelNodeImpl.java:93)<br> at org.springframework.expression.spel.standard.SpelExpression.getValue(SpelExpression.java:88)<br> at org.springframework.cache.interceptor.ExpressionEvaluator.key(ExpressionEvaluator.java:80)<br> at org.springframework.cache.interceptor.CacheAspectSupport$CacheOperationContext.generateKey(CacheAspectSupport.java:464)</p> <hr> <p dir="auto"><strong>Reference URL:</strong> <a href="http://stackoverflow.com/q/11396911/1431" rel="nofollow">http://stackoverflow.com/q/11396911/1431</a></p> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398188024" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/18385" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/18385/hovercard" href="https://github.com/spring-projects/spring-framework/issues/18385">#18385</a> Cacheable condition SpEL cannot invoke bean methods (<em><strong>"duplicates"</strong></em>)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398115719" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13512" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13512/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13512">#13512</a> <code class="notranslate">@Cachable</code> condition should allow referencing return value</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398192832" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/18804" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/18804/hovercard" href="https://github.com/spring-projects/spring-framework/issues/18804">#18804</a> Allow <code class="notranslate">@Cacheable</code> method to return java.util.Optional variant of cached value</li> </ul> <p dir="auto">10 votes, 12 watchers</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=alza" rel="nofollow">Alex</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-2294?redirect=false" rel="nofollow">SPR-2294</a></strong> and commented</p> <p dir="auto">I have a class 'MyBean' with a property 'myMap' of type java.util.Map. Spring allows me to configure an instance of this class as follows, using mapped properties:</p> <p dir="auto">&lt;bean id="myBean" class="com.foo.MyBean"&gt;<br> &lt;property name="myMap[foo]" value="a" /&gt;<br> &lt;/bean&gt;</p> <p dir="auto">This works fine.</p> <p dir="auto">However, I have an application where the map keys need to be mapped property names, e.g "foo.bar[0]". i.e. the map entry key itself contains the "[" and "]" character:</p> <p dir="auto">&lt;bean id="myBean" class="com.foo.MyBean"&gt;<br> &lt;property name="myMap[foo.bar[0]]" value="a" /&gt;<br> &lt;/bean&gt;</p> <p dir="auto">When I call toString() on the myMap property after Spring has instantiated the bean, this is the result:</p> <p dir="auto">{foo.bar[0=a}</p> <p dir="auto">As you can see, the key for this map entry is missing the closing "]" character.</p> <p dir="auto">There appears to be a bug in the string parsing of the mapped property name?</p> <hr> <p dir="auto"><strong>Affects:</strong> 1.2.8</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="398059780" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/5976" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/5976/hovercard" href="https://github.com/spring-projects/spring-framework/issues/5976">#5976</a> Handle nested brackets in a map keys (<em><strong>"duplicates"</strong></em>)</li> </ul> <p dir="auto">1 votes, 1 watchers</p>
0
<h1 dir="auto">System information (version)</h1> <ul dir="auto"> <li>OpenCV = 4.5.5.dev</li> <li>torch = 1.6.0</li> </ul> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">net = cv2.dnn.readNetFromONNX(onnx_path)</p> <h1 dir="auto">Issue</h1> <p dir="auto">I am getting the following error. when I updated the PyTorch to the latest version like 1.12.0 I am getting a new error <code class="notranslate">(-215:Assertion failed) inputs.size() in function 'getMemoryShapes'</code> . Any help on this would be appreciated.</p> <p dir="auto">`cv2.error: OpenCV(4.5.5-dev) /home/nsight/YOLOX/opencv/modules/dnn/src/onnx/onnx_importer.cpp:1021: error: (-2:Unspecified error) in function 'handleNode'</p> <blockquote> <p dir="auto">Node [<a href="mailto:[email protected]">[email protected]</a>]:(Range_404) parse error: OpenCV(4.5.5-dev) /home/nsight/YOLOX/opencv/modules/dnn/src/layer_internals.hpp:110: error: (-2:Unspecified error) Can't create layer "Range_404" of type "Range" in function 'getLayerInstance'<br> `<br> Here is a snapshot of layer 404 in ONNX <a href="https://drive.google.com/file/d/1OtCxb3kP_cBmh5Geb3vWl4Tn2TKND-Vj/view?usp=sharing" rel="nofollow">graph</a></p> </blockquote>
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 4.2</li> <li>Operating System / Platform =&gt; MacOS Catalina v.10.15.3</li> <li>IDE =&gt; Spyder 4.1.0</li> <li>Compiler =&gt; python3.7</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">I can open images and process them with openCV, but when it comes to destroying windows shown with cv2.imshow() using cv2.destroyAllWindows() script stops execution in console, but that pop up window is just hangs/freezes<br> With video it’s even worse - i can capture from camera and/or file, but i can’t modify video properties or save capture to file (file is created but 8k size)<br> So, it’s like partially broken and yet at the same time it gives no exceptions.</p> <h5 dir="auto">Steps to reproduce</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import cv2 cap = cv2.VideoCapture(0) #capture frame from built-in video camera #print frame properties - width / height print(cap.get(cv2.CAP_PROP_FRAME_WIDTH)) print(cap.get(cv2.CAP_PROP_FRAME_HEIGHT)) ### That part breaks execution (if removed all works well.) ### cap.set(3,1208) #set width property to 1208 cap.set(4,720) #set height property to 720 print(cap.get(3)) print(cap.get(4)) ###.... ### while(cap.isOpened()):#run loop if file/device is open ret,frame = cap.read() #read frames continiously until break if ret: gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) #convert image to gray-scale cv2.imshow('DisplayWindow', gray) #display frames readed from camera and show in window named &quot;frame&quot; if cv2.waitKey(1) &amp; 0xFF == ord('q'):#break from loop on 'q' pressed break else: break cap.release() #release camera cv2.destroyAllWindows()# should destroy all windows, but Window stop showing camera capture and just freezes and stays."><pre class="notranslate"><code class="notranslate">import cv2 cap = cv2.VideoCapture(0) #capture frame from built-in video camera #print frame properties - width / height print(cap.get(cv2.CAP_PROP_FRAME_WIDTH)) print(cap.get(cv2.CAP_PROP_FRAME_HEIGHT)) ### That part breaks execution (if removed all works well.) ### cap.set(3,1208) #set width property to 1208 cap.set(4,720) #set height property to 720 print(cap.get(3)) print(cap.get(4)) ###.... ### while(cap.isOpened()):#run loop if file/device is open ret,frame = cap.read() #read frames continiously until break if ret: gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) #convert image to gray-scale cv2.imshow('DisplayWindow', gray) #display frames readed from camera and show in window named "frame" if cv2.waitKey(1) &amp; 0xFF == ord('q'):#break from loop on 'q' pressed break else: break cap.release() #release camera cv2.destroyAllWindows()# should destroy all windows, but Window stop showing camera capture and just freezes and stays. </code></pre></div> <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"> 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"> 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"> There is reproducer code and related data files: videos, images, onnx, etc </li> </ul>
0
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="There was 1 failure: 1) Symfony\Component\Process\Tests\SigchildEnabledProcessTest::testPTYCommand Failed asserting that two strings are equal. --- Expected +++ Actual @@ @@ 'foo +sh: 1: 3: Bad file descriptor '"><pre class="notranslate"><code class="notranslate">There was 1 failure: 1) Symfony\Component\Process\Tests\SigchildEnabledProcessTest::testPTYCommand Failed asserting that two strings are equal. --- Expected +++ Actual @@ @@ 'foo +sh: 1: 3: Bad file descriptor ' </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=14.04 DISTRIB_CODENAME=trusty DISTRIB_DESCRIPTION=&quot;Ubuntu 14.04.2 LTS&quot;"><pre class="notranslate"><code class="notranslate">cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=14.04 DISTRIB_CODENAME=trusty DISTRIB_DESCRIPTION="Ubuntu 14.04.2 LTS" </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="uname -a Linux ewgra-Inspiron-5720 3.13.0-58-generic #97-Ubuntu SMP Wed Jul 8 02:56:15 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux"><pre class="notranslate"><code class="notranslate">uname -a Linux ewgra-Inspiron-5720 3.13.0-58-generic #97-Ubuntu SMP Wed Jul 8 02:56:15 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux </code></pre></div> <p dir="auto">At Process::start proc_open have arguments:<br> <math-renderer class="js-inline-math" style="display: inline" data-static-url="https://github.githubassets.com/static" data-run-id="78ebb93504e9b939259dc1d24a58af1e">$commandLine : string(61) "(echo "foo") 3&amp;gt;/dev/null; code=$</math-renderer>?; echo $code &gt;&amp;3; exit $code"</p> <p dir="auto">$descriptors =<br> array(4) {<br> [0]=&gt;<br> array(1) {<br> [0]=&gt;<br> string(3) "pty"<br> }<br> [1]=&gt;<br> array(1) {<br> [0]=&gt;<br> string(3) "pty"<br> }<br> [2]=&gt;<br> array(1) {<br> [0]=&gt;<br> string(3) "pty"<br> }<br> [3]=&gt;<br> array(2) {<br> [0]=&gt;<br> string(4) "pipe"<br> [1]=&gt;<br> string(1) "w"<br> }<br> }</p> <p dir="auto">$this-&gt;processPipes-&gt;pipes = array(0) {}</p>
<p dir="auto">Running</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="phpunit src/Symfony/Component/Process"><pre class="notranslate"><code class="notranslate">phpunit src/Symfony/Component/Process </code></pre></div> <p dir="auto">I got the error</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="There was 1 failure: 1) Symfony\Component\Process\Tests\SigchildEnabledProcessTest::testPTYCommand Failed asserting that two strings are equal. --- Expected +++ Actual @@ @@ 'foo +sh: 1: 3: Bad file descriptor ' /home/arnau/code/symfony/src/Symfony/Component/Process/Tests/AbstractProcessTest.php:433"><pre class="notranslate"><code class="notranslate">There was 1 failure: 1) Symfony\Component\Process\Tests\SigchildEnabledProcessTest::testPTYCommand Failed asserting that two strings are equal. --- Expected +++ Actual @@ @@ 'foo +sh: 1: 3: Bad file descriptor ' /home/arnau/code/symfony/src/Symfony/Component/Process/Tests/AbstractProcessTest.php:433 </code></pre></div> <p dir="auto">Symfony branch: 2.7<br> OS: Ubuntu 14.04.1 LTS<br> PHP: 5.5.9-1ubuntu4.5<br> PHPUnit: 3.7.20</p>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>I have 2 pages on pages folder: <code class="notranslate">category.js</code>, <code class="notranslate">detail.js</code></li> <li>Open browser</li> <li>I go to <code class="notranslate">/category</code></li> <li>Then go to <code class="notranslate">/detail?id=1</code></li> <li>Then go to <code class="notranslate">/detail?id=2</code></li> <li>Press back button on browser -&gt; <strong>nothing happen</strong></li> <li>Press back button again -&gt; it go to <code class="notranslate">/category</code></li> </ol> <p dir="auto">Note: I'm using <code class="notranslate">&lt;Link&gt;</code> component to handle the route change</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">Cannot back to page <code class="notranslate">/detail?id=1</code></p> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">Can back to page <code class="notranslate">/detail?id=1</code></p> <p dir="auto">Thanks.</p>
<p dir="auto">In the firebase examples (I'm using Typescript from the next.js example folder) but have also tried <a href="https://github.com/jthegedus/firebase-functions-next-example">https://github.com/jthegedus/firebase-functions-next-example</a>), it's not clear how to add images - as any attempt to add them to the <code class="notranslate">/src/public</code> folder included in the examples or indeed a <code class="notranslate">/src/static</code> folder (to match what is recommended in the next.js docs) ends in a 404 error for the static resources (at least when running <code class="notranslate">npm run dev</code>).</p> <p dir="auto">It seems to be a particularity of the way firebase wants the assets (in their public folder) vs the way next.js wants them. A workaround that I came up with is to add an extra build step in <code class="notranslate">package.json</code> that duplicates the assets folder inside <code class="notranslate">src</code> in order to get assets working in <code class="notranslate">dev</code>. You can see more in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="365421869" data-permission-text="Title is private" data-url="https://github.com/jthegedus/firebase-functions-next-example/issues/24" data-hovercard-type="issue" data-hovercard-url="/jthegedus/firebase-functions-next-example/issues/24/hovercard?comment_id=461571124&amp;comment_type=issue_comment" href="https://github.com/jthegedus/firebase-functions-next-example/issues/24#issuecomment-461571124">jthegedus/firebase-functions-next-example#24 (comment)</a> but it seems less than ideal. Is there a clean way to do this?</p> <p dir="auto">/cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/sampsonjoliver/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/sampsonjoliver">@sampsonjoliver</a></p>
0
<p dir="auto">Here is an example, when auc is calculated wrong:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import numpy as np from sklearn.metrics import roc_curve, auc p = np.array([3E-011, 5E-11, 2E-010, 1E-008, 2E-006, 1.29E-005, 0.0003, 0.1, 0.2, 0.3, 0.46]) p = np.expand_dims(p, axis=1) y = np.array([0, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1]) fpr, tpr, thresholds = roc_curve(y, p, pos_label=1) roc_auc = auc(fpr, tpr)"><pre class="notranslate"><code class="notranslate">import numpy as np from sklearn.metrics import roc_curve, auc p = np.array([3E-011, 5E-11, 2E-010, 1E-008, 2E-006, 1.29E-005, 0.0003, 0.1, 0.2, 0.3, 0.46]) p = np.expand_dims(p, axis=1) y = np.array([0, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1]) fpr, tpr, thresholds = roc_curve(y, p, pos_label=1) roc_auc = auc(fpr, tpr) </code></pre></div> <p dir="auto">with these values it should be 0.9333333 (I checked it in R), but sklearn gives 0.883333333333.<br> If I rescale p with <code class="notranslate">MinMaxScaler()</code>, I get the right answer.<br> I also noticed that it has different number of <code class="notranslate">n_thresholds</code>:<br> in the first case <code class="notranslate">n_thresholds=8</code>, and when I scale the probabilities <code class="notranslate">n_thresholds=9</code>.<br> Thank you very much for considering this problem!</p>
<p dir="auto">pred=[1e-10, 0, 0]<br> sol=[1, 0, 0]<br> metrics.roc_auc_score(sol, pred) # 0.5, wrong, 1 is correct</p> <p dir="auto">pred=[1, 0, 0]<br> sol=[1, 0, 0]<br> metrics.roc_auc_score(sol, pred) # 1 correct</p>
1
<p dir="auto">I use /hack/local-up-cluster to start a local k8s. And operate like below:</p> <div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="./cluster/kubectl.sh run my-nginx --image=nginx --replicas=2 --port=80 CONTROLLER CONTAINER(S) IMAGE(S) SELECTOR REPLICAS AGE my-nginx my-nginx nginx run=my-nginx 2 0s"><pre class="notranslate"><span class="pl-c1">./cluster/kubectl.sh run my-nginx --image=nginx --replicas=2 --port=80</span> <span class="pl-c1">CONTROLLER CONTAINER(S) IMAGE(S) SELECTOR REPLICAS AGE</span> <span class="pl-c1">my-nginx my-nginx nginx run=my-nginx 2 0s</span></pre></div> <div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="./cluster/kubectl.sh get pods --watch"><pre class="notranslate"><span class="pl-c1">./cluster/kubectl.sh get pods --watch</span></pre></div> <p dir="auto">Then I use "docker kill " to kill one container of rc for thrice. Here is result:</p> <div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="./cluster/kubectl.sh get pods --watch NAME READY STATUS RESTARTS AGE my-nginx-kn1zy 0/1 Running 0 6s my-nginx-msjcr 1/1 Running 0 6s NAME READY STATUS RESTARTS AGE my-nginx-kn1zy 1/1 Running 0 10s my-nginx-kn1zy 0/1 Running 1 51s my-nginx-kn1zy 1/1 Running 1 1m my-nginx-kn1zy 0/1 Running 2 1m my-nginx-kn1zy 1/1 Running 2 1m my-nginx-kn1zy 0/1 Running 3 3m my-nginx-kn1zy 1/1 Running 3 3m my-nginx-kn1zy 1/1 Running 2 4m"><pre class="notranslate"><span class="pl-c1">./cluster/kubectl.sh get pods --watch</span> <span class="pl-c1">NAME READY STATUS RESTARTS AGE</span> <span class="pl-c1">my-nginx-kn1zy 0/1 Running 0 6s</span> <span class="pl-c1">my-nginx-msjcr 1/1 Running 0 6s</span> <span class="pl-c1">NAME READY STATUS RESTARTS AGE</span> <span class="pl-c1">my-nginx-kn1zy 1/1 Running 0 10s</span> <span class="pl-c1">my-nginx-kn1zy 0/1 Running 1 51s</span> <span class="pl-c1">my-nginx-kn1zy 1/1 Running 1 1m</span> <span class="pl-c1">my-nginx-kn1zy 0/1 Running 2 1m</span> <span class="pl-c1">my-nginx-kn1zy 1/1 Running 2 1m</span> <span class="pl-c1">my-nginx-kn1zy 0/1 Running 3 3m</span> <span class="pl-c1">my-nginx-kn1zy 1/1 Running 3 3m</span> <span class="pl-c1">my-nginx-kn1zy 1/1 Running 2 4m</span></pre></div> <p dir="auto">The "RESTARTS" is supposed to be 3. But it will be changed to 2 at last . Is there reason which will cause RESTARTS reduce?</p>
<p dir="auto">A new Pod with HTTP Health Check probe is created as:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="apiVersion: v1 kind: Pod metadata: name: wildfly-pod labels: name: wildfly spec: containers: - image: jboss/wildfly name: wildfly-pod livenessProbe: # an http probe httpGet: path: /index.html port: 8080 httpGet: path: /movieplex7 port: 8080 # length of time to wait for a pod to initialize # after pod startup, before applying health checking initialDelaySeconds: 30 timeoutSeconds: 1 ports: - containerPort: 8080"><pre class="notranslate"><code class="notranslate">apiVersion: v1 kind: Pod metadata: name: wildfly-pod labels: name: wildfly spec: containers: - image: jboss/wildfly name: wildfly-pod livenessProbe: # an http probe httpGet: path: /index.html port: 8080 httpGet: path: /movieplex7 port: 8080 # length of time to wait for a pod to initialize # after pod startup, before applying health checking initialDelaySeconds: 30 timeoutSeconds: 1 ports: - containerPort: 8080 </code></pre></div> <p dir="auto">This one works correctly. If the path of second probe is changed to <code class="notranslate">/movieplex</code> then status of created Pod is shown as:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="kubernetes-1.0.1&gt; ./cluster/kubectl.sh get -w po NAME READY STATUS RESTARTS AGE NAME READY STATUS RESTARTS AGE wildfly-pod 0/1 Pending 0 0s wildfly-pod 0/1 Pending 0 0s wildfly-pod 0/1 Pending 0 0s wildfly-pod 0/1 Running 0 2s wildfly-pod 1/1 Running 0 10s wildfly-pod 0/1 Running 1 51s wildfly-pod 1/1 Running 1 52s wildfly-pod 0/1 Running 2 1m wildfly-pod 1/1 Running 2 1m wildfly-pod 0/1 Running 3 2m wildfly-pod 1/1 Running 3 2m wildfly-pod 0/1 Running 3 3m wildfly-pod 1/1 Running 3 3m wildfly-pod 0/1 Running 4 4m wildfly-pod 1/1 Running 4 4m wildfly-pod 1/1 Running 3 4m wildfly-pod 0/1 Running 4 5m wildfly-pod 1/1 Running 4 5m wildfly-pod 1/1 Running 2 5m wildfly-pod 0/1 Running 3 5m wildfly-pod 1/1 Running 3 5m wildfly-pod 0/1 Running 3 6m wildfly-pod 1/1 Running 3 6m wildfly-pod 0/1 Running 4 7m wildfly-pod 1/1 Running 4 7m wildfly-pod 1/1 Running 3 7m wildfly-pod 0/1 Running 4 7m wildfly-pod 1/1 Running 4 7m wildfly-pod 0/1 Running 3 8m wildfly-pod 1/1 Running 3 8m wildfly-pod 0/1 Running 4 9m wildfly-pod 1/1 Running 4 9m wildfly-pod 1/1 Running 3 9m wildfly-pod 0/1 Running 4 9m wildfly-pod 1/1 Running 4 9m wildfly-pod 0/1 Running 3 10m wildfly-pod 1/1 Running 3 10m wildfly-pod 0/1 Running 4 11m wildfly-pod 1/1 Running 4 11m wildfly-pod 1/1 Running 2 11m wildfly-pod 0/1 Running 3 11m wildfly-pod 1/1 Running 3 11m wildfly-pod 0/1 Running 3 12m wildfly-pod 1/1 Running 3 12m wildfly-pod 0/1 Running 3 13m wildfly-pod 1/1 Running 3 13m wildfly-pod 0/1 Running 4 14m wildfly-pod 1/1 Running 4 14m wildfly-pod 1/1 Running 3 14m wildfly-pod 0/1 Running 4 15m wildfly-pod 1/1 Running 4 15m wildfly-pod 1/1 Running 2 15m wildfly-pod 0/1 Running 3 16m wildfly-pod 1/1 Running 3 16m wildfly-pod 0/1 Running 3 16m wildfly-pod 1/1 Running 3 16m wildfly-pod 0/1 Running 3 17m wildfly-pod 1/1 Running 3 17m wildfly-pod 0/1 Running 4 18m wildfly-pod 1/1 Running 4 18m wildfly-pod 1/1 Running 3 18m wildfly-pod 0/1 Running 4 19m wildfly-pod 1/1 Running 4 19m wildfly-pod 1/1 Running 2 19m"><pre class="notranslate"><code class="notranslate">kubernetes-1.0.1&gt; ./cluster/kubectl.sh get -w po NAME READY STATUS RESTARTS AGE NAME READY STATUS RESTARTS AGE wildfly-pod 0/1 Pending 0 0s wildfly-pod 0/1 Pending 0 0s wildfly-pod 0/1 Pending 0 0s wildfly-pod 0/1 Running 0 2s wildfly-pod 1/1 Running 0 10s wildfly-pod 0/1 Running 1 51s wildfly-pod 1/1 Running 1 52s wildfly-pod 0/1 Running 2 1m wildfly-pod 1/1 Running 2 1m wildfly-pod 0/1 Running 3 2m wildfly-pod 1/1 Running 3 2m wildfly-pod 0/1 Running 3 3m wildfly-pod 1/1 Running 3 3m wildfly-pod 0/1 Running 4 4m wildfly-pod 1/1 Running 4 4m wildfly-pod 1/1 Running 3 4m wildfly-pod 0/1 Running 4 5m wildfly-pod 1/1 Running 4 5m wildfly-pod 1/1 Running 2 5m wildfly-pod 0/1 Running 3 5m wildfly-pod 1/1 Running 3 5m wildfly-pod 0/1 Running 3 6m wildfly-pod 1/1 Running 3 6m wildfly-pod 0/1 Running 4 7m wildfly-pod 1/1 Running 4 7m wildfly-pod 1/1 Running 3 7m wildfly-pod 0/1 Running 4 7m wildfly-pod 1/1 Running 4 7m wildfly-pod 0/1 Running 3 8m wildfly-pod 1/1 Running 3 8m wildfly-pod 0/1 Running 4 9m wildfly-pod 1/1 Running 4 9m wildfly-pod 1/1 Running 3 9m wildfly-pod 0/1 Running 4 9m wildfly-pod 1/1 Running 4 9m wildfly-pod 0/1 Running 3 10m wildfly-pod 1/1 Running 3 10m wildfly-pod 0/1 Running 4 11m wildfly-pod 1/1 Running 4 11m wildfly-pod 1/1 Running 2 11m wildfly-pod 0/1 Running 3 11m wildfly-pod 1/1 Running 3 11m wildfly-pod 0/1 Running 3 12m wildfly-pod 1/1 Running 3 12m wildfly-pod 0/1 Running 3 13m wildfly-pod 1/1 Running 3 13m wildfly-pod 0/1 Running 4 14m wildfly-pod 1/1 Running 4 14m wildfly-pod 1/1 Running 3 14m wildfly-pod 0/1 Running 4 15m wildfly-pod 1/1 Running 4 15m wildfly-pod 1/1 Running 2 15m wildfly-pod 0/1 Running 3 16m wildfly-pod 1/1 Running 3 16m wildfly-pod 0/1 Running 3 16m wildfly-pod 1/1 Running 3 16m wildfly-pod 0/1 Running 3 17m wildfly-pod 1/1 Running 3 17m wildfly-pod 0/1 Running 4 18m wildfly-pod 1/1 Running 4 18m wildfly-pod 1/1 Running 3 18m wildfly-pod 0/1 Running 4 19m wildfly-pod 1/1 Running 4 19m wildfly-pod 1/1 Running 2 19m </code></pre></div> <p dir="auto">The stats on restarts are not reported correctly because the container should have started multiple times because the probe is failing. The number of restarts should increase by 1 every time it is restarted.</p>
1
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="464877226" data-permission-text="Title is private" data-url="https://github.com/apache/superset/issues/7827" data-hovercard-type="pull_request" data-hovercard-url="/apache/superset/pull/7827/hovercard" href="https://github.com/apache/superset/pull/7827">#7827</a> added a command to the Dockerfile installing gevent <a href="https://github.com/apache/incubator-superset/blob/master/contrib/docker/Dockerfile#L54">here</a>.<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="458842957" data-permission-text="Title is private" data-url="https://github.com/apache/superset/issues/7744" data-hovercard-type="pull_request" data-hovercard-url="/apache/superset/pull/7744/hovercard" href="https://github.com/apache/superset/pull/7744">#7744</a> created a new requirements file to install extra dependencies, one of them gevent <a href="https://github.com/apache/incubator-superset/commit/fce11665f498347b024e6109a79fa4f100ac092e#diff-f9926661541f115c9c73d5932ddb63f3">here</a></p> <h3 dir="auto">Expected results</h3> <p dir="auto">Adopt only one strategy -&gt; <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="458842957" data-permission-text="Title is private" data-url="https://github.com/apache/superset/issues/7744" data-hovercard-type="pull_request" data-hovercard-url="/apache/superset/pull/7744/hovercard" href="https://github.com/apache/superset/pull/7744">#7744</a></p>
<p dir="auto">Importing same dashboard with changes generates a copy</p> <h3 dir="auto">Expected results</h3> <p dir="auto">Dashboard gets updated</p> <h3 dir="auto">Actual results</h3> <p dir="auto">Multiple copies of the same dashboard. Slices are updated correctly</p> <h4 dir="auto">Screenshots</h4> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/767180/64529890-37c16400-d30c-11e9-8d8d-aca0cff07527.png"><img src="https://user-images.githubusercontent.com/767180/64529890-37c16400-d30c-11e9-8d8d-aca0cff07527.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/767180/64529870-2bd5a200-d30c-11e9-93a0-ee6fddc8d134.png"><img src="https://user-images.githubusercontent.com/767180/64529870-2bd5a200-d30c-11e9-93a0-ee6fddc8d134.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/767180/64529913-43ad2600-d30c-11e9-9089-8954afcf5d9b.png"><img src="https://user-images.githubusercontent.com/767180/64529913-43ad2600-d30c-11e9-9089-8954afcf5d9b.png" alt="image" style="max-width: 100%;"></a></p> <h4 dir="auto">How to reproduce the bug</h4> <ol dir="auto"> <li>Go to '...'</li> <li>Click on '....'</li> <li>Scroll down to '....'</li> <li>See error</li> </ol> <h3 dir="auto">Environment</h3> <p dir="auto">(please complete the following information):</p> <ul dir="auto"> <li>superset version: <code class="notranslate">superset version</code></li> <li>python version: <code class="notranslate">python --version</code></li> <li>node.js version: <code class="notranslate">node -v</code></li> <li>npm version: <code class="notranslate">npm -v</code></li> </ul> <h3 dir="auto">Checklist</h3> <p dir="auto">Make sure these boxes are checked before submitting your issue - thank you!</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the superset logs for python stacktraces and included it here as text if there are any.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have reproduced the issue with at least the latest released version of superset.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the issue tracker for the same issue and I haven't found one similar.</li> </ul> <h3 dir="auto">Additional context</h3> <p dir="auto">Add any other context about the problem here.</p>
0
<p dir="auto"><em>Please make sure that this is a build/installation issue. As per our <a href="https://github.com/tensorflow/tensorflow/blob/master/ISSUES.md">GitHub Policy</a>, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template</em></p> <p dir="auto"><strong>System information</strong></p> <ul dir="auto"> <li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10</li> <li>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:</li> <li>TensorFlow installed from (source or binary): Through PyCharm virtualenv</li> <li>TensorFlow version: 1.12.0</li> <li>Python version: 3.6.7</li> <li>Installed using virtualenv? pip? conda?: virtualenv</li> <li>Bazel version (if compiling from source):</li> <li>GCC/Compiler version (if compiling from source):</li> <li>CUDA/cuDNN version: CUDA 10 / cuDNN 7.4.2</li> <li>GPU model and memory: GeForce GTX 1050 Ti</li> </ul> <p dir="auto">Trying to install and run tensorflow gpu version. I have installed CUDA and cuDNN and run the deviceQuery sample with what seems like good results (picture attached). I have installed tensorflow and Keras through PyCharm and when I try to run the following two lines to see if TF is installed correctly I get the following error message:</p> <p dir="auto">import tensorflow as tf<br> sess = tf.Session(config=tf.ConfigProto(log_device_placement=True))</p> <p dir="auto">Traceback (most recent call last):<br> File "C:\Users\Mr.Jones\Documents\Master Thesis\Offline_models\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <br> from tensorflow.python.pywrap_tensorflow_internal import *<br> File "C:\Users\Mr.Jones\Documents\Master Thesis\Offline_models\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <br> _pywrap_tensorflow_internal = swig_import_helper()<br> File "C:\Users\Mr.Jones\Documents\Master Thesis\Offline_models\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper<br> _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)<br> File "C:\Users\Mr.Jones\AppData\Local\Programs\Python\Python36\lib\imp.py", line 243, in load_module<br> return load_dynamic(name, filename, file)<br> File "C:\Users\Mr.Jones\AppData\Local\Programs\Python\Python36\lib\imp.py", line 343, in load_dynamic<br> return _load(spec)<br> ImportError: DLL load failed: The specified module could not be found.</p> <p dir="auto">During handling of the above exception, another exception occurred:</p> <p dir="auto">Traceback (most recent call last):<br> File "C:/Users/Mr.Jones/Documents/Master Thesis/Offline_models/define_models_Jonas.py", line 1, in <br> import tensorflow as tf<br> File "C:\Users\Mr.Jones\Documents\Master Thesis\Offline_models\venv\lib\site-packages\tensorflow_<em>init</em>_.py", line 24, in <br> from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import<br> File "C:\Users\Mr.Jones\Documents\Master Thesis\Offline_models\venv\lib\site-packages\tensorflow\python_<em>init</em>_.py", line 49, in <br> from tensorflow.python import pywrap_tensorflow<br> File "C:\Users\Mr.Jones\Documents\Master Thesis\Offline_models\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 74, in <br> raise ImportError(msg)<br> ImportError: Traceback (most recent call last):<br> File "C:\Users\Mr.Jones\Documents\Master Thesis\Offline_models\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <br> from tensorflow.python.pywrap_tensorflow_internal import *<br> File "C:\Users\Mr.Jones\Documents\Master Thesis\Offline_models\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <br> _pywrap_tensorflow_internal = swig_import_helper()<br> File "C:\Users\Mr.Jones\Documents\Master Thesis\Offline_models\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper<br> _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)<br> File "C:\Users\Mr.Jones\AppData\Local\Programs\Python\Python36\lib\imp.py", line 243, in load_module<br> return load_dynamic(name, filename, file)<br> File "C:\Users\Mr.Jones\AppData\Local\Programs\Python\Python36\lib\imp.py", line 343, in load_dynamic<br> return _load(spec)<br> ImportError: DLL load failed: The specified module could not be found.</p> <p dir="auto">Failed to load the native TensorFlow runtime.</p> <p dir="auto">See <a href="https://www.tensorflow.org/install/errors" rel="nofollow">https://www.tensorflow.org/install/errors</a></p> <p dir="auto">for some common reasons and solutions. Include the entire stack trace<br> above this error message when asking for help.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/17160539/53198308-626ff780-361c-11e9-80bb-5490b771776c.png"><img src="https://user-images.githubusercontent.com/17160539/53198308-626ff780-361c-11e9-80bb-5490b771776c.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><em>Please make sure that this is a build/installation issue. As per our <a href="https://github.com/tensorflow/tensorflow/blob/master/ISSUES.md">GitHub Policy</a>, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template</em></p> <p dir="auto"><strong>System information</strong></p> <ul dir="auto"> <li> <p dir="auto">OS Platform and Distribution (e.g., Linux Ubuntu 16.04):Win 10</p> </li> <li> <p dir="auto">TensorFlow installed from (source or binary):Source? Not to sure just using pip3</p> </li> <li> <p dir="auto">TensorFlow version: tensorflow-gpu-1.12.0</p> </li> <li> <p dir="auto">Python version: 3.6.8</p> </li> <li> <p dir="auto">Installed using virtualenv? pip? conda?: pip3 inside a virtualenv environment.</p> </li> <li> <p dir="auto">Bazel version (if compiling from source):N/A</p> </li> <li> <p dir="auto">GCC/Compiler version (if compiling from source):N/A</p> </li> <li> <p dir="auto">CUDA/cuDNN version:10.0</p> </li> <li> <p dir="auto">GPU model and memory: GTX 1080 8192 MB</p> </li> </ul> <p dir="auto"><strong>Describe the problem</strong><br> When attempting to do anything involving tensorflow it errors. Errors while running "import tensorflow as tf" I looked at some older issues that were similar but trying to do what they said did not solve my problem. First attempt was them saying use an older version of tensorflow but to do so I would need to downgrade CUDA to 9.0 not sure if that's what I should do. I have tried to uninstall reinstall to no avail.</p> <p dir="auto"><strong>Provide the exact sequence of commands / steps that you executed before running into the problem</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="C:\&gt;pip install --upgrade pip C:\&gt;pip install virtualenv C:\&gt;virtualenv --system-site-packages -p &quot;C:\Users\Kathy\AppData\Local\Programs\Python\Python36\python.exe&quot; ./venv C:\&gt;.\venv\Scripts\activate (venv) C:\&gt;pip3 install tensorflow-gpu (venv) C:\&gt;python &gt;&gt;&gt;import tensorflow as tf"><pre class="notranslate"><code class="notranslate">C:\&gt;pip install --upgrade pip C:\&gt;pip install virtualenv C:\&gt;virtualenv --system-site-packages -p "C:\Users\Kathy\AppData\Local\Programs\Python\Python36\python.exe" ./venv C:\&gt;.\venv\Scripts\activate (venv) C:\&gt;pip3 install tensorflow-gpu (venv) C:\&gt;python &gt;&gt;&gt;import tensorflow as tf </code></pre></div> <p dir="auto"><strong>Any other info / logs</strong><br> Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" Traceback (most recent call last): File &quot;C:\Users\Kathy\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow.py&quot;, line 58, in &lt;module&gt; from tensorflow.python.pywrap_tensorflow_internal import * File &quot;C:\Users\Kathy\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py&quot;, line 28, in &lt;module&gt; _pywrap_tensorflow_internal = swig_import_helper() File &quot;C:\Users\Kathy\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py&quot;, line 24, in swig_import_helper _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description) File &quot;C:\Users\Kathy\venv\lib\imp.py&quot;, line 243, in load_module return load_dynamic(name, filename, file) File &quot;C:\Users\Kathy\venv\lib\imp.py&quot;, line 343, in load_dynamic return _load(spec) ImportError: DLL load failed: The specified module could not be found. During handling of the above exception, another exception occurred: Traceback (most recent call last): File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt; File &quot;C:\Users\Kathy\venv\lib\site-packages\tensorflow\__init__.py&quot;, line 24, in &lt;module&gt; from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import File &quot;C:\Users\Kathy\venv\lib\site-packages\tensorflow\python\__init__.py&quot;, line 49, in &lt;module&gt; from tensorflow.python import pywrap_tensorflow File &quot;C:\Users\Kathy\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow.py&quot;, line 74, in &lt;module&gt; raise ImportError(msg) ImportError: Traceback (most recent call last): File &quot;C:\Users\Kathy\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow.py&quot;, line 58, in &lt;module&gt; from tensorflow.python.pywrap_tensorflow_internal import * File &quot;C:\Users\Kathy\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py&quot;, line 28, in &lt;module&gt; _pywrap_tensorflow_internal = swig_import_helper() File &quot;C:\Users\Kathy\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py&quot;, line 24, in swig_import_helper _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description) File &quot;C:\Users\Kathy\venv\lib\imp.py&quot;, line 243, in load_module return load_dynamic(name, filename, file) File &quot;C:\Users\Kathy\venv\lib\imp.py&quot;, line 343, in load_dynamic return _load(spec) ImportError: DLL load failed: The specified module could not be found. Failed to load the native TensorFlow runtime. See https://www.tensorflow.org/install/errors for some common reasons and solutions. Include the entire stack trace above this error message when asking for help. "><pre class="notranslate"><code class="notranslate"> Traceback (most recent call last): File "C:\Users\Kathy\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in &lt;module&gt; from tensorflow.python.pywrap_tensorflow_internal import * File "C:\Users\Kathy\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in &lt;module&gt; _pywrap_tensorflow_internal = swig_import_helper() File "C:\Users\Kathy\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description) File "C:\Users\Kathy\venv\lib\imp.py", line 243, in load_module return load_dynamic(name, filename, file) File "C:\Users\Kathy\venv\lib\imp.py", line 343, in load_dynamic return _load(spec) ImportError: DLL load failed: The specified module could not be found. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; File "C:\Users\Kathy\venv\lib\site-packages\tensorflow\__init__.py", line 24, in &lt;module&gt; from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import File "C:\Users\Kathy\venv\lib\site-packages\tensorflow\python\__init__.py", line 49, in &lt;module&gt; from tensorflow.python import pywrap_tensorflow File "C:\Users\Kathy\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 74, in &lt;module&gt; raise ImportError(msg) ImportError: Traceback (most recent call last): File "C:\Users\Kathy\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in &lt;module&gt; from tensorflow.python.pywrap_tensorflow_internal import * File "C:\Users\Kathy\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in &lt;module&gt; _pywrap_tensorflow_internal = swig_import_helper() File "C:\Users\Kathy\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description) File "C:\Users\Kathy\venv\lib\imp.py", line 243, in load_module return load_dynamic(name, filename, file) File "C:\Users\Kathy\venv\lib\imp.py", line 343, in load_dynamic return _load(spec) ImportError: DLL load failed: The specified module could not be found. Failed to load the native TensorFlow runtime. See https://www.tensorflow.org/install/errors for some common reasons and solutions. Include the entire stack trace above this error message when asking for help. </code></pre></div>
1
<p dir="auto">Assume you want to evaluate or grid search the parameters of the following pipeline</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from sklearn.preprocessing import Imputer from sklearn.linear_model import LogisticRegression from sklearn.pipeline import Pipeline p = Pipeline([ ('imputer', Imputer(strategy='media', missing_values='NaN')), ('classifier', LogisticRegression(C=1)), ])"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">preprocessing</span> <span class="pl-k">import</span> <span class="pl-v">Imputer</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">linear_model</span> <span class="pl-k">import</span> <span class="pl-v">LogisticRegression</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">pipeline</span> <span class="pl-k">import</span> <span class="pl-v">Pipeline</span> <span class="pl-s1">p</span> <span class="pl-c1">=</span> <span class="pl-v">Pipeline</span>([ (<span class="pl-s">'imputer'</span>, <span class="pl-v">Imputer</span>(<span class="pl-s1">strategy</span><span class="pl-c1">=</span><span class="pl-s">'media'</span>, <span class="pl-s1">missing_values</span><span class="pl-c1">=</span><span class="pl-s">'NaN'</span>)), (<span class="pl-s">'classifier'</span>, <span class="pl-v">LogisticRegression</span>(<span class="pl-v">C</span><span class="pl-c1">=</span><span class="pl-c1">1</span>)), ])</pre></div> <p dir="auto">At the moment it is not possible as the <code class="notranslate">cross_val_score</code> and <code class="notranslate">GridSearchCV</code> tools call <code class="notranslate">check_arrays</code> internally which raises an exception if there are <code class="notranslate">NaN</code> values in the data.</p> <p dir="auto">I think we should add <code class="notranslate">allow_nans=False</code> parameter to <code class="notranslate">check_arrays</code>, <code class="notranslate">cross_val_score</code> and <code class="notranslate">GridSearchCV</code> to make it possible to the user to disable the check for nans and hence allow our imputing pipeline to work as expected.</p>
<p dir="auto">When <code class="notranslate">GridSearchCV</code> sees a NaN, it panics. This is annoying when the estimator is a pipeline that starts with an <code class="notranslate">Imputer</code>, as now the imputer must be trained outside of the grid search giving potentially skewed results.</p>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">test</h3> <ul dir="auto"> <li>Dubbo version: 2.7.0</li> <li>Operating System version:</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>通过spring配置文件方式消费dubbo服务<br> 2.在servlet中注入了该dubbo服务</li> <li>服务启动报错,报could not generate CGLIB subclass of class org.apache.dubbo.common.bytecode.proxy0;common causes of this problem include using a final class or a non-visible class</li> </ol> <p dir="auto">如果把服务消费reference的配置改为饥饿加载init=“true”,则启动不报错。<br> 是什么原因导致</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>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.4.1</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Actual Result</h3> <p dir="auto"></p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/apache/dubbo/blob/839d2a604e629ea9e96b964be09ae221e85312ba/dubbo-common/src/main/java/org/apache/dubbo/common/Version.java#L175">dubbo/dubbo-common/src/main/java/org/apache/dubbo/common/Version.java</a> </p> <p class="mb-0 color-fg-muted"> Line 175 in <a data-pjax="true" class="commit-tease-sha" href="/apache/dubbo/commit/839d2a604e629ea9e96b964be09ae221e85312ba">839d2a6</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="L175" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="175"></td> <td id="LC175" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c">// guess version fro jar file name if nothing's found from MANIFEST.MF</span> </td> </tr> </tbody></table> </div> </div> <p></p> <h3 dir="auto">Expected Result</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="guess version from jar file name if nothing's found from MANIFEST.MF"><pre class="notranslate"><code class="notranslate">guess version from jar file name if nothing's found from MANIFEST.MF </code></pre></div> <p dir="auto"><strong>fro ==&gt; from</strong></p>
0
<p dir="auto">Challenge <a href="https://www.freecodecamp.com/challenges/clone-an-element-using-jquery" rel="nofollow">Clone an Element Using jQuery</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/602.2.14 (KHTML, like Gecko) Version/10.0.1 Safari/602.2.14</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <p dir="auto">My code:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &lt;script&gt; $(document).ready(function() { $(&quot;#target1&quot;).css(&quot;color&quot;, &quot;red&quot;); $(&quot;#target1&quot;).prop(&quot;disabled&quot;, true); $(&quot;#target4&quot;).remove(); $(&quot;#target2&quot;).appendTo(&quot;#right-well&quot;); $(&quot;#target5&quot;).clone().appendTo(&quot;#left-well&quot;); }); &lt;/script&gt; &lt;!-- Only change code above this line. --&gt; &lt;div class=&quot;container-fluid&quot;&gt; &lt;h3 class=&quot;text-primary text-center&quot;&gt;jQuery Playground&lt;/h3&gt; &lt;div class=&quot;row&quot;&gt; &lt;div class=&quot;col-xs-6&quot;&gt; &lt;h4&gt;#left-well&lt;/h4&gt; &lt;div class=&quot;well&quot; id=&quot;left-well&quot;&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target1&quot;&gt;#target1&lt;/button&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target2&quot;&gt;#target2&lt;/button&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target3&quot;&gt;#target3&lt;/button&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;col-xs-6&quot;&gt; &lt;h4&gt;#right-well&lt;/h4&gt; &lt;div class=&quot;well&quot; id=&quot;right-well&quot;&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target4&quot;&gt;#target4&lt;/button&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target5&quot;&gt;#target5&lt;/button&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target6&quot;&gt;#target6&lt;/button&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; "><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-smi">document</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">ready</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target1"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">css</span><span class="pl-kos">(</span><span class="pl-s">"color"</span><span class="pl-kos">,</span> <span class="pl-s">"red"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target1"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">prop</span><span class="pl-kos">(</span><span class="pl-s">"disabled"</span><span class="pl-kos">,</span> <span class="pl-c1">true</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target4"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">remove</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target2"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">appendTo</span><span class="pl-kos">(</span><span class="pl-s">"#right-well"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target5"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">clone</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">appendTo</span><span class="pl-kos">(</span><span class="pl-s">"#left-well"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-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-c">&lt;!-- Only change code above this line. --&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">container-fluid</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h3</span> <span class="pl-c1">class</span>="<span class="pl-s">text-primary text-center</span>"<span class="pl-kos">&gt;</span>jQuery Playground<span class="pl-kos">&lt;/</span><span class="pl-ent">h3</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">row</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">col-xs-6</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h4</span><span class="pl-kos">&gt;</span>#left-well<span class="pl-kos">&lt;/</span><span class="pl-ent">h4</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">well</span>" <span class="pl-c1">id</span>="<span class="pl-s">left-well</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target1</span>"<span class="pl-kos">&gt;</span>#target1<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target2</span>"<span class="pl-kos">&gt;</span>#target2<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target3</span>"<span class="pl-kos">&gt;</span>#target3<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <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">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">col-xs-6</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h4</span><span class="pl-kos">&gt;</span>#right-well<span class="pl-kos">&lt;/</span><span class="pl-ent">h4</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">well</span>" <span class="pl-c1">id</span>="<span class="pl-s">right-well</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target4</span>"<span class="pl-kos">&gt;</span>#target4<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target5</span>"<span class="pl-kos">&gt;</span>#target5<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target6</span>"<span class="pl-kos">&gt;</span>#target6<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <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">div</span><span class="pl-kos">&gt;</span> <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">div</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/24529297/21232765/df6b7f00-c2fd-11e6-8fb9-12050f6c50a1.png"><img src="https://cloud.githubusercontent.com/assets/24529297/21232765/df6b7f00-c2fd-11e6-8fb9-12050f6c50a1.png" alt="monosnap 2016-12-15 19-34-10" style="max-width: 100%;"></a><br> As you can see on the screenshot there are two instances of #target5 button in the result. I believe it's incorrect. Issue is also affecting at least next challenge - <a href="https://www.freecodecamp.com/challenges/target-the-parent-of-an-element-using-jquery" rel="nofollow">https://www.freecodecamp.com/challenges/target-the-parent-of-an-element-using-jquery</a> this one</p>
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-clone-an-element-using-jquery#?solution=fccss%0A%20%20%24%28document%29.ready%28function%28%29%20%7B%0A%20%20%20%20%24%28%22%23target1%22%29.css%28%22color%22%2C%20%22red%22%29%3B%0A%20%20%20%20%24%28%22%23target1%22%29.prop%28%22disabled%22%2C%20true%29%3B%0A%20%20%20%20%24%28%22%23target4%22%29.remove%28%29%3B%0A%20%20%20%20%24%28%22%23target2%22%29.appendTo%28%22%23right-well%22%29%3B%0A%20%20%20%20%24%28%22%23target5%22%29.clone%28%29.appendTo%28%22%23left-well%22%29%3B%0A%20%20%7D%29%3B%0Afcces%0A%0A%3C!--%20Only%20change%20code%20above%20this%20line.%20--%3E%0A%0A%3Cdiv%20class%3D%22container-fluid%22%3E%0A%20%20%3Ch3%20class%3D%22text-primary%20text-center%22%3EjQuery%20Playground%3C%2Fh3%3E%0A%20%20%3Cdiv%20class%3D%22row%22%3E%0A%20%20%20%20%3Cdiv%20class%3D%22col-xs-6%22%3E%0A%20%20%20%20%20%20%3Ch4%3E%23left-well%3C%2Fh4%3E%0A%20%20%20%20%20%20%3Cdiv%20class%3D%22well%22%20id%3D%22left-well%22%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target1%22%3E%23target1%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target2%22%3E%23target2%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target3%22%3E%23target3%3C%2Fbutton%3E%0A%20%20%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3Cdiv%20class%3D%22col-xs-6%22%3E%0A%20%20%20%20%20%20%3Ch4%3E%23right-well%3C%2Fh4%3E%0A%20%20%20%20%20%20%3Cdiv%20class%3D%22well%22%20id%3D%22right-well%22%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target4%22%3E%23target4%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target5%22%3E%23target5%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target6%22%3E%23target6%3C%2Fbutton%3E%0A%20%20%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3C%2Fdiv%3E%0A%20%20%3C%2Fdiv%3E%0A%3C%2Fdiv%3E%0A" rel="nofollow">Waypoint: Clone an Element Using jQuery</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.73 Safari/537.36</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <h2 dir="auto">Issue</h2> <p dir="auto">I believe I've found bug in the phone simulation in <strong>Waypoint: Clone an Element Using jQuery</strong>:</p> <p dir="auto">I entered the code to clone <code class="notranslate">target5</code> and append it to <code class="notranslate">left-well</code>, and now I see three <strong>target5</strong> buttons in the phone simulator. FCC says my code is correct and advances me to the next challenge. The following challenges also show three target5 buttons:</p> <ul dir="auto"> <li>Waypoint: Target the Parent of an Element Using jQuery</li> <li>Waypoint: Target the Children of an Element Using jQuery</li> </ul> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/qualitymanifest/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/qualitymanifest">@qualitymanifest</a> confirms this issue on his <strong>Linux</strong> box.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5673126/11647398/76751658-9d35-11e5-8fcf-112ab89c6920.png"><img src="https://cloud.githubusercontent.com/assets/5673126/11647398/76751658-9d35-11e5-8fcf-112ab89c6920.png" alt="image" style="max-width: 100%;"></a></p> <h2 dir="auto">My code:</h2> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;script&gt; $(document).ready(function() { $(&quot;#target1&quot;).css(&quot;color&quot;, &quot;red&quot;); $(&quot;#target1&quot;).prop(&quot;disabled&quot;, true); $(&quot;#target4&quot;).remove(); $(&quot;#target2&quot;).appendTo(&quot;#right-well&quot;); $(&quot;#target5&quot;).clone().appendTo(&quot;#left-well&quot;); }); &lt;/script&gt; &lt;!-- Only change code above this line. --&gt; &lt;div class=&quot;container-fluid&quot;&gt; &lt;h3 class=&quot;text-primary text-center&quot;&gt;jQuery Playground&lt;/h3&gt; &lt;div class=&quot;row&quot;&gt; &lt;div class=&quot;col-xs-6&quot;&gt; &lt;h4&gt;#left-well&lt;/h4&gt; &lt;div class=&quot;well&quot; id=&quot;left-well&quot;&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target1&quot;&gt;#target1&lt;/button&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target2&quot;&gt;#target2&lt;/button&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target3&quot;&gt;#target3&lt;/button&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;col-xs-6&quot;&gt; &lt;h4&gt;#right-well&lt;/h4&gt; &lt;div class=&quot;well&quot; id=&quot;right-well&quot;&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target4&quot;&gt;#target4&lt;/button&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target5&quot;&gt;#target5&lt;/button&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target6&quot;&gt;#target6&lt;/button&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; "><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-smi">document</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">ready</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target1"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">css</span><span class="pl-kos">(</span><span class="pl-s">"color"</span><span class="pl-kos">,</span> <span class="pl-s">"red"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target1"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">prop</span><span class="pl-kos">(</span><span class="pl-s">"disabled"</span><span class="pl-kos">,</span> <span class="pl-c1">true</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target4"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">remove</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target2"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">appendTo</span><span class="pl-kos">(</span><span class="pl-s">"#right-well"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target5"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">clone</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">appendTo</span><span class="pl-kos">(</span><span class="pl-s">"#left-well"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-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-c">&lt;!-- Only change code above this line. --&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">container-fluid</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h3</span> <span class="pl-c1">class</span>="<span class="pl-s">text-primary text-center</span>"<span class="pl-kos">&gt;</span>jQuery Playground<span class="pl-kos">&lt;/</span><span class="pl-ent">h3</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">row</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">col-xs-6</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h4</span><span class="pl-kos">&gt;</span>#left-well<span class="pl-kos">&lt;/</span><span class="pl-ent">h4</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">well</span>" <span class="pl-c1">id</span>="<span class="pl-s">left-well</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target1</span>"<span class="pl-kos">&gt;</span>#target1<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target2</span>"<span class="pl-kos">&gt;</span>#target2<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target3</span>"<span class="pl-kos">&gt;</span>#target3<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <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">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">col-xs-6</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h4</span><span class="pl-kos">&gt;</span>#right-well<span class="pl-kos">&lt;/</span><span class="pl-ent">h4</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">well</span>" <span class="pl-c1">id</span>="<span class="pl-s">right-well</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target4</span>"<span class="pl-kos">&gt;</span>#target4<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target5</span>"<span class="pl-kos">&gt;</span>#target5<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target6</span>"<span class="pl-kos">&gt;</span>#target6<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <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">div</span><span class="pl-kos">&gt;</span> <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">div</span><span class="pl-kos">&gt;</span></pre></div>
1
<p dir="auto">Looks like we lost the duplicate-react warning (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="60039585" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/3332" data-hovercard-type="pull_request" data-hovercard-url="/facebook/react/pull/3332/hovercard" href="https://github.com/facebook/react/pull/3332">#3332</a>) due to merging <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="112048510" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/5205" data-hovercard-type="pull_request" data-hovercard-url="/facebook/react/pull/5205/hovercard" href="https://github.com/facebook/react/pull/5205">#5205</a> which contained <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/sophiebits/react/commit/4ba0e95a96507abbcb2819be328fc3d1ed3cc80f/hovercard" href="https://github.com/sophiebits/react/commit/4ba0e95a96507abbcb2819be328fc3d1ed3cc80f">sophiebits@<tt>4ba0e95</tt></a></p>
<p dir="auto"><a href="https://gist.github.com/syranide/51bd85cadd0b439d8a05">https://gist.github.com/syranide/51bd85cadd0b439d8a05</a></p> <p dir="auto">Highly unscientific delta below (~700b). Shouldn't be <em>that</em> significantly affected by addition of "behaviors" when doing it proper, contains a bunch of attributes not currently in React and also duplicates the list of node names that exist to create the DOM components.</p> <p dir="auto">PS. This is the more or less 100% complete list of nodes and attributes (with the exception of some obscure ones that weren't listed because they are deprecated/not standard).</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" raw gz Sizes 380459 75767 build/JSXTransformer.js 622841 127139 build/react-with-addons.js 128227 35285 build/react-with-addons.min.js 566573 115629 build/react.js 118837 32732 build/react.min.js raw gz Sizes 380459 75767 build/JSXTransformer.js 626512 127876 build/react-with-addons.js 130808 35933 build/react-with-addons.min.js 570244 116363 build/react.js 121417 33424 build/react.min.js"><pre class="notranslate"><code class="notranslate"> raw gz Sizes 380459 75767 build/JSXTransformer.js 622841 127139 build/react-with-addons.js 128227 35285 build/react-with-addons.min.js 566573 115629 build/react.js 118837 32732 build/react.min.js raw gz Sizes 380459 75767 build/JSXTransformer.js 626512 127876 build/react-with-addons.js 130808 35933 build/react-with-addons.min.js 570244 116363 build/react.js 121417 33424 build/react.min.js </code></pre></div>
0
<p dir="auto">The <code class="notranslate">_optimize</code> API is great for improving performance of time series indices or other cold indices, but the name of it is incredibly misleading.</p> <p dir="auto">Lucene changed from calling it <code class="notranslate">optimize</code> to <code class="notranslate">forceMerge</code> back in Lucene 3.5 (<a href="http://blog.trifork.com/2011/11/21/simon-says-optimize-is-bad-for-you/" rel="nofollow">from this blast in the past</a>, eh <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/s1monw/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/s1monw">@s1monw</a>!). Maybe it's time that we change it too?</p>
<p dir="auto">Optimize is a very costly operation, and rarely necessary. I think it's trappy because it's name is so tempting, and also because in ES the optimize is done in the background (so the request returns immediately), hiding the true cost.</p> <p dir="auto">There are times when it's appropriate, e.g. in the logging use case when you know a given daily index is done, but for most cases it's not a good idea to optimize.</p> <p dir="auto">I think we should follow Lucene here and rename it to forceMerge and deprecate optimize.</p>
1
<p dir="auto">With<br> bazel 0.26.1<br> gcc 7.4<br> cuda 10.1 update 2</p> <p dir="auto">and the latest git clone of tensorflow, I hit the following error at the bazel build command</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR: /home/mh.naderan/.cache/bazel/_bazel_mh.naderan/dacf7a124fc721f30ac789c201b3b139/external/llvm/BUILD.bazel:201:1: C++ compilation of rule '@llvm//:llvm-tblgen' failed (Exit 1) In file included from external/llvm/include/llvm/TableGen/Record.h:27:0, from external/llvm/utils/TableGen/SubtargetFeatureInfo.h:13, from external/llvm/utils/TableGen/SubtargetFeatureInfo.cpp:9: external/llvm/include/llvm/Support/TrailingObjects.h: In static member function 'static void llvm::TrailingObjects&lt;BaseTy, TrailingTys&gt;::verifyTrailingObjectsAssertions()': external/llvm/include/llvm/Support/TrailingObjects.h:252:24: error: 'is_final' is not a member of 'std' static_assert(std::is_final&lt;BaseTy&gt;(), &quot;BaseTy must be final.&quot;); ^~~~~~~~ external/llvm/include/llvm/Support/TrailingObjects.h:252:24: note: suggested alternative: 'is_heap' static_assert(std::is_final&lt;BaseTy&gt;(), &quot;BaseTy must be final.&quot;); ^~~~~~~~ is_heap external/llvm/include/llvm/Support/TrailingObjects.h:252:39: error: expected primary-expression before '&gt;' token static_assert(std::is_final&lt;BaseTy&gt;(), &quot;BaseTy must be final.&quot;); ^ external/llvm/include/llvm/Support/TrailingObjects.h:252:41: error: expected primary-expression before ')' token static_assert(std::is_final&lt;BaseTy&gt;(), &quot;BaseTy must be final.&quot;); ^ Target //tensorflow/tools/pip_package:build_pip_package failed to build Use --verbose_failures to see the command lines of failed build steps. INFO: Elapsed time: 442.171s, Critical Path: 25.05s INFO: 1254 processes: 1254 local. FAILED: Build did NOT complete successfully "><pre class="notranslate"><code class="notranslate">ERROR: /home/mh.naderan/.cache/bazel/_bazel_mh.naderan/dacf7a124fc721f30ac789c201b3b139/external/llvm/BUILD.bazel:201:1: C++ compilation of rule '@llvm//:llvm-tblgen' failed (Exit 1) In file included from external/llvm/include/llvm/TableGen/Record.h:27:0, from external/llvm/utils/TableGen/SubtargetFeatureInfo.h:13, from external/llvm/utils/TableGen/SubtargetFeatureInfo.cpp:9: external/llvm/include/llvm/Support/TrailingObjects.h: In static member function 'static void llvm::TrailingObjects&lt;BaseTy, TrailingTys&gt;::verifyTrailingObjectsAssertions()': external/llvm/include/llvm/Support/TrailingObjects.h:252:24: error: 'is_final' is not a member of 'std' static_assert(std::is_final&lt;BaseTy&gt;(), "BaseTy must be final."); ^~~~~~~~ external/llvm/include/llvm/Support/TrailingObjects.h:252:24: note: suggested alternative: 'is_heap' static_assert(std::is_final&lt;BaseTy&gt;(), "BaseTy must be final."); ^~~~~~~~ is_heap external/llvm/include/llvm/Support/TrailingObjects.h:252:39: error: expected primary-expression before '&gt;' token static_assert(std::is_final&lt;BaseTy&gt;(), "BaseTy must be final."); ^ external/llvm/include/llvm/Support/TrailingObjects.h:252:41: error: expected primary-expression before ')' token static_assert(std::is_final&lt;BaseTy&gt;(), "BaseTy must be final."); ^ Target //tensorflow/tools/pip_package:build_pip_package failed to build Use --verbose_failures to see the command lines of failed build steps. INFO: Elapsed time: 442.171s, Critical Path: 25.05s INFO: 1254 processes: 1254 local. FAILED: Build did NOT complete successfully </code></pre></div>
<p dir="auto"><strong>System information</strong></p> <ul dir="auto"> <li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux RedHat 7.6</li> <li>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: N/A</li> <li>TensorFlow installed from (source or binary): source</li> <li>TensorFlow version: master branch</li> <li>Python version: N/A</li> <li>Installed using virtualenv? pip? conda?: N/A</li> <li>Bazel version (if compiling from source): 0.25.2</li> <li>GCC/Compiler version (if compiling from source): cc version 8.2.1 20180905 (Red Hat 8.2.1-3)</li> <li>CUDA/cuDNN version: N/A</li> <li>GPU model and memory: N/A</li> </ul> <p dir="auto"><strong>Describe the problem</strong></p> <p dir="auto">Compilation of LLVM is failing because '-std=c++0x' is being passed, but current LLVM uses C++14 features.</p> <p dir="auto"><strong>Provide the exact sequence of commands / steps that you executed before running into the problem</strong></p> <p dir="auto">bazel build --verbose_failures --config opt --config mkl //tensorflow/tools/pip_package:build_pip_package</p> <p dir="auto"><strong>Any other info / logs</strong><br> Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.</p> <p dir="auto">Note "-std=c++0x" option. I could probably fix this myself if I could figure out where it is coming from...</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" /opt/rh/devtoolset-8/root/usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections -fdata-sections '-std=c++0x' -MD -MF bazel-out/host/bin/tensorflow/compiler/mlir/lite/quantization/_objs/op_quant_spec_getters_gen/op_quant_spec_getters_gen.d '-frandom-seed=bazel-out/host/bin/tensorflow/compiler/mlir/lite/quantization/_objs/op_quant_spec_getters_gen/op_quant_spec_getters_gen.o' -DLLVM_ENABLE_STATS -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DLLVM_BUILD_GLOBAL_ISEL -iquote . -iquote bazel-out/host/bin -iquote external/llvm -iquote bazel-out/host/bin/external/llvm -iquote external/zlib_archive -iquote bazel-out/host/bin/external/zlib_archive -iquote external/local_config_mlir -iquote bazel-out/host/bin/external/local_config_mlir -iquote external/bazel_tools -iquote bazel-out/host/bin/external/bazel_tools -isystem external/llvm/include -isystem bazel-out/host/bin/external/llvm/include -isystem external/zlib_archive -isystem bazel-out/host/bin/external/zlib_archive -isystem external/local_config_mlir/include -isystem bazel-out/host/bin/external/local_config_mlir/include -g0 '-march=native' -g0 -DEIGEN_AVOID_STL_ARRAY -Iexternal/gemmlowp -Wno-sign-compare '-ftemplate-depth=900' -fno-exceptions '-DINTEL_MKL=1' -DEIGEN_USE_VML -DENABLE_MKL -fopenmp -msse3 -pthread -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__=&quot;redacted&quot;' '-D__TIMESTAMP__=&quot;redacted&quot;' '-D__TIME__=&quot;redacted&quot;' -c tensorflow/compiler/mlir/lite/quantization/tools/op_quant_spec_getters_gen.cc -o bazel-out/host/bin/tensorflow/compiler/mlir/lite/quantization/_objs/op_quant_spec_getters_gen/op_quant_spec_getters_gen.o) Execution platform: @bazel_tools//platforms:host_platform In file included from external/llvm/include/llvm/TableGen/Record.h:27, from tensorflow/compiler/mlir/lite/quantization/tools/op_quant_spec_getters_gen.cc:21: external/llvm/include/llvm/Support/TrailingObjects.h: In static member function 'static void llvm::TrailingObjects&lt;BaseTy, TrailingTys&gt;::verifyTrailingObjectsAssertions()': external/llvm/include/llvm/Support/TrailingObjects.h:252:24: error: 'is_final' is not a member of 'std' static_assert(std::is_final&lt;BaseTy&gt;(), &quot;BaseTy must be final.&quot;); ^~~~~~~~"><pre class="notranslate"><code class="notranslate"> /opt/rh/devtoolset-8/root/usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections -fdata-sections '-std=c++0x' -MD -MF bazel-out/host/bin/tensorflow/compiler/mlir/lite/quantization/_objs/op_quant_spec_getters_gen/op_quant_spec_getters_gen.d '-frandom-seed=bazel-out/host/bin/tensorflow/compiler/mlir/lite/quantization/_objs/op_quant_spec_getters_gen/op_quant_spec_getters_gen.o' -DLLVM_ENABLE_STATS -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DLLVM_BUILD_GLOBAL_ISEL -iquote . -iquote bazel-out/host/bin -iquote external/llvm -iquote bazel-out/host/bin/external/llvm -iquote external/zlib_archive -iquote bazel-out/host/bin/external/zlib_archive -iquote external/local_config_mlir -iquote bazel-out/host/bin/external/local_config_mlir -iquote external/bazel_tools -iquote bazel-out/host/bin/external/bazel_tools -isystem external/llvm/include -isystem bazel-out/host/bin/external/llvm/include -isystem external/zlib_archive -isystem bazel-out/host/bin/external/zlib_archive -isystem external/local_config_mlir/include -isystem bazel-out/host/bin/external/local_config_mlir/include -g0 '-march=native' -g0 -DEIGEN_AVOID_STL_ARRAY -Iexternal/gemmlowp -Wno-sign-compare '-ftemplate-depth=900' -fno-exceptions '-DINTEL_MKL=1' -DEIGEN_USE_VML -DENABLE_MKL -fopenmp -msse3 -pthread -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c tensorflow/compiler/mlir/lite/quantization/tools/op_quant_spec_getters_gen.cc -o bazel-out/host/bin/tensorflow/compiler/mlir/lite/quantization/_objs/op_quant_spec_getters_gen/op_quant_spec_getters_gen.o) Execution platform: @bazel_tools//platforms:host_platform In file included from external/llvm/include/llvm/TableGen/Record.h:27, from tensorflow/compiler/mlir/lite/quantization/tools/op_quant_spec_getters_gen.cc:21: external/llvm/include/llvm/Support/TrailingObjects.h: In static member function 'static void llvm::TrailingObjects&lt;BaseTy, TrailingTys&gt;::verifyTrailingObjectsAssertions()': external/llvm/include/llvm/Support/TrailingObjects.h:252:24: error: 'is_final' is not a member of 'std' static_assert(std::is_final&lt;BaseTy&gt;(), "BaseTy must be final."); ^~~~~~~~ </code></pre></div>
1
<h1 dir="auto">Checklist</h1> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?utf8=%E2%9C%93&amp;q=is%3Aissue+label%3A%22Category%3A+Documentation%22+">issues list</a><br> for similar or identical bug reports.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22Category%3A+Documentation%22">pull requests list</a><br> for existing proposed fixes.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br> to find out if the bug was already fixed in the master branch.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues in this issue<br> (If there are none, check this box anyway).</li> </ul> <h2 dir="auto">Related Issues and Possible Duplicates</h2> <h4 dir="auto">Related Issues</h4> <ul dir="auto"> <li>None</li> </ul> <h4 dir="auto">Possible Duplicates</h4> <ul dir="auto"> <li>None</li> </ul> <h1 dir="auto">Description</h1> <p dir="auto">It seems to me that the <a href="https://github.com/celery/celery/blob/master/docs/userguide/testing.rst">testing documentation</a> is a bit outdated. At the very beginning you are given an example async task that has a <code class="notranslate">self.retry</code> on the <code class="notranslate">except</code> clause, which looks strange, as it is a function not a method of a class/instance.</p> <p dir="auto">Moreover when searching at how to handle tracebacks from tasks, I ended up at <a href="http://docs.celeryproject.org/en/latest/userguide/calling.html#linking-callbacks-errbacks" rel="nofollow">http://docs.celeryproject.org/en/latest/userguide/calling.html#linking-callbacks-errbacks</a> which looks like the modern practice? <g-emoji class="g-emoji" alias="thinking" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f914.png">🤔</g-emoji></p> <h1 dir="auto">Suggestions</h1> <p dir="auto">Rework the first snippet of code and mention how to use linking from a testing perspective? <g-emoji class="g-emoji" alias="thinking" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f914.png">🤔</g-emoji></p>
<h1 dir="auto">Checklist</h1> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?utf8=%E2%9C%93&amp;q=is%3Aissue+label%3A%22Issue+Type%3A+Feature+Request%22+">issues list</a><br> for similar or identical feature requests.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?utf8=%E2%9C%93&amp;q=is%3Apr+label%3A%22PR+Type%3A+Feature%22+">pull requests list</a><br> for existing proposed implementations of this feature.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br> to find out if the if the same feature was already implemented in the<br> master branch.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included all related issues and possible duplicate issues<br> in this issue (If there are none, check this box anyway).</li> </ul> <h2 dir="auto">Related Issues and Possible Duplicates</h2> <h4 dir="auto">Related Issues</h4> <ul dir="auto"> <li>None</li> </ul> <h4 dir="auto">Possible Duplicates</h4> <ul dir="auto"> <li>None</li> </ul> <h1 dir="auto">Brief Summary</h1> <p dir="auto">The autodiscover_tasks method checks modules in <em>packages</em>, but modules in subdirectories will not be imported. It will be convenient to add a recursive option which enables searching modules in <em>packages</em> and their subdirectories.</p> <h1 dir="auto">Design</h1> <h2 dir="auto">Architectural Considerations</h2> <p dir="auto">autodiscover_tasks(packages=None, related_name='tasks', force=False) will be changed to autodiscover_tasks(packages=None, related_name='tasks', force=False,recursive=False) for backward compatibility</p> <h2 dir="auto">Proposed Behavior</h2> <h2 dir="auto">Proposed UI/UX</h2> <h2 dir="auto">Diagrams</h2> <p dir="auto">N/A</p> <h2 dir="auto">Alternatives</h2> <p dir="auto">None</p>
0
<h1 dir="auto">Description</h1> <p dir="auto">Importing pandas makes plotting with matplotlib and standard datetime objects impossible.</p> <p dir="auto">A type error is raised in matplotlib because pandas import datetime and "override the global" one.</p> <p dir="auto">I would not expect pandas to override the default datetime. After importing pandas one cannot use datetimes for plotting for example.</p> <p dir="auto">PS: just reposting this from matplotlib issue 6796</p> <h4 dir="auto">Code Sample, a copy-pastable example if possible</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import datetime import matplotlib.pyplot as plt # this works x = [datetime.date(1677,1,1) + datetime.timedelta(days=i) for i in range(10)] plt.plot(x,range(10)) import pandas as pd # do not work anymore x = [datetime.date(1677,1,1) + datetime.timedelta(days=i) for i in range(10)] plt.plot(x,range(10))"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">datetime</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-c"># this works</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> [<span class="pl-s1">datetime</span>.<span class="pl-en">date</span>(<span class="pl-c1">1677</span>,<span class="pl-c1">1</span>,<span class="pl-c1">1</span>) <span class="pl-c1">+</span> <span class="pl-s1">datetime</span>.<span class="pl-en">timedelta</span>(<span class="pl-s1">days</span><span class="pl-c1">=</span><span class="pl-s1">i</span>) <span class="pl-k">for</span> <span class="pl-s1">i</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-c1">10</span>)] <span class="pl-s1">plt</span>.<span class="pl-en">plot</span>(<span class="pl-s1">x</span>,<span class="pl-en">range</span>(<span class="pl-c1">10</span>)) <span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-c"># do not work anymore</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> [<span class="pl-s1">datetime</span>.<span class="pl-en">date</span>(<span class="pl-c1">1677</span>,<span class="pl-c1">1</span>,<span class="pl-c1">1</span>) <span class="pl-c1">+</span> <span class="pl-s1">datetime</span>.<span class="pl-en">timedelta</span>(<span class="pl-s1">days</span><span class="pl-c1">=</span><span class="pl-s1">i</span>) <span class="pl-k">for</span> <span class="pl-s1">i</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-c1">10</span>)] <span class="pl-s1">plt</span>.<span class="pl-en">plot</span>(<span class="pl-s1">x</span>,<span class="pl-en">range</span>(<span class="pl-c1">10</span>))</pre></div> <h4 dir="auto">Expected Output</h4> <p dir="auto">datetime would not be "change".</p> <h4 dir="auto">output of <code class="notranslate">pd.show_versions()</code></h4> <h2 dir="auto">INSTALLED VERSIONS</h2> <p dir="auto">commit: None<br> python: 3.5.1.final.0<br> python-bits: 64<br> OS: Darwin<br> OS-release: 15.5.0<br> machine: x86_64<br> processor: i386<br> byteorder: little<br> LC_ALL: None<br> LANG: en_AU.utf-8</p> <p dir="auto">pandas: 0.18.1<br> nose: 1.3.7<br> pip: 8.1.2<br> setuptools: 21.0.0<br> Cython: 0.24<br> numpy: 1.11.0<br> scipy: 0.17.0<br> statsmodels: 0.6.1<br> xarray: 0.7.2<br> IPython: 4.2.0<br> sphinx: 1.3.5<br> patsy: 0.4.1<br> dateutil: 2.5.3<br> pytz: 2016.4<br> blosc: None<br> bottleneck: None<br> tables: None<br> numexpr: None<br> matplotlib: 1.5.1<br> openpyxl: 2.3.3<br> xlrd: 0.9.4<br> xlwt: None<br> xlsxwriter: None<br> lxml: 3.6.0<br> bs4: 4.4.1<br> html5lib: None<br> httplib2: None<br> apiclient: None<br> sqlalchemy: 1.0.13<br> pymysql: None<br> psycopg2: None<br> jinja2: 2.8<br> boto: 2.40.0<br> pandas_datareader: None</p>
<p dir="auto">register it upon plotting?</p> <p dir="auto"><a href="http://stackoverflow.com/questions/13988111/importing-pandas-in-python-changes-how-matplotlib-handles-datetime-objects" rel="nofollow">http://stackoverflow.com/questions/13988111/importing-pandas-in-python-changes-how-matplotlib-handles-datetime-objects</a></p>
1
<p dir="auto">use crypto/tls connect to server with self-signed certificate handshake failure</p> <p dir="auto">go version: go version go1.5.2 darwin/amd64<br> os: osx 10.10</p> <blockquote> <p dir="auto">code:<br> cert, err := tls.LoadX509KeyPair(crtPath, keyPath)<br> tlsConfig = tls.Config{Certificates: []tls.Certificate{cert}, ClientAuth: tls.VerifyClientCertIfGiven, InsecureSkipVerify: true}<br> ladd, lerr := net.ResolveTCPAddr("tcp", ClientIp+":0")<br> radd, rerr := net.ResolveTCPAddr("tcp", server+":"+port)<br> ipConn, err := net.DialTCP("tcp", ladd, radd)<br> conn = tls.Client(ipConn, tlsconfig)<br> errObj = conn.Handshake()</p> </blockquote> <p dir="auto">this line get error // remote error: handshake failure</p> <p dir="auto">use openssl test is successful</p> <p dir="auto">openssl s_client -connect ote.gtld.knet.cn:700 -cert certs/certificate.pem -key certs/key.pem.unencrypted -state</p> <p dir="auto">SSL handshake has read 2307 bytes and written 940 bytes</p> <p dir="auto">New, TLSv1/SSLv3, Cipher is EDH-DSS-DES-CBC3-SHA<br> Server public key is 1024 bit<br> Secure Renegotiation IS supported<br> Compression: NONE<br> Expansion: NONE<br> SSL-Session:<br> Protocol : TLSv1<br> Cipher : EDH-DSS-DES-CBC3-SHA<br> Session-ID: 567E50D41A2972656F463FC3600B6CED851138969EF9F2599268ED0572AE7315<br> Session-ID-ctx:<br> Master-Key: 565E6B07A8DFF230165F0CABFAA0ABF2E95C630994E64E2DB9AC7F7B7963F8B623010F0ED024D22262E7766170E88094<br> Key-Arg : None<br> Start Time: 1451118804<br> Timeout : 300 (sec)<br> Verify return code: 19 (self signed certificate in certificate chain)</p> <p dir="auto">�<br> KNET Co.,Ltd. EPP Server2015-12-26T08:33:25.53Z1.0enurn:ietf:params:xml:ns:domain-1.0urn:ietf:params:xml:ns:host-1.0urn:ietf:params:xml:ns:contact-1.0urn:ietf:params:xml:ns:secDNS-1.1urn:ietf:params:xml:ns:launch-1.0urn:ietf:params:xml:ns:rgp-1.0</p>
<p dir="auto">by <strong><a href="mailto:[email protected]">[email protected]</a></strong>:</p> <pre class="notranslate">What steps will reproduce the problem? cd rm -rf go hg clone -u weekly <a href="https://go.googlecode.com/hg/" rel="nofollow">https://go.googlecode.com/hg/</a> go/ cd go/src ./all.bash go get code.google.com/p/goprotobuf/{proto,protoc-gen-go} package code.google.com/p/goprotobuf/proto imports code.google.com/p/goprotobuf/proto: import "code.google.com/p/goprotobuf/proto": cannot find package package code.google.com/p/goprotobuf/protoc-gen-go imports code.google.com/p/goprotobuf/protoc-gen-go: import "code.google.com/p/goprotobuf/protoc-gen-go": cannot find package cd code.google.com/p/goprotobuf/proto go build go install go install: no install location for _/home/aj/go/src/code.google.com/p/goprotobuf/proto What is the expected output? go get should work / fail with an error message pointing to the source of the problem. What do you see instead? a cryptic error message. Which compiler are you using (5g, 6g, 8g, gccgo)? amd64 Which operating system are you using? linux Which revision are you using? (hg identify) weekly 2012-03-04 Please provide any additional information below. source of my problems: I had GOPATH set instead of GOROOT. fixing that now everything is fine. but the error messsage doesn't help to find out what is wrong and migth confuse new users.</pre>
0
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="-&gt;add('recipientContacts', EntityType::class, [ 'mapped' =&gt; false, 'required' =&gt; false, 'multiple' =&gt; true, 'expanded' =&gt; false, 'class' =&gt; Contact::class, 'query_builder' =&gt; function (EntityRepository $repository) { return $repository-&gt;createQueryBuilder('contact') -&gt;where('contact.enabled = true') -&gt;orderBy('contact.name', 'ASC'); }, 'group_by' =&gt; 'groups.name', ])"><pre class="notranslate">-&gt;add(<span class="pl-s">'recipientContacts'</span>, <span class="pl-v">EntityType</span>::class, [ <span class="pl-s">'mapped'</span> =&gt; <span class="pl-c1">false</span>, <span class="pl-s">'required'</span> =&gt; <span class="pl-c1">false</span>, <span class="pl-s">'multiple'</span> =&gt; <span class="pl-c1">true</span>, <span class="pl-s">'expanded'</span> =&gt; <span class="pl-c1">false</span>, <span class="pl-s">'class'</span> =&gt; <span class="pl-v">Contact</span>::class, <span class="pl-s">'query_builder'</span> =&gt; <span class="pl-k">function</span> (<span class="pl-smi"><span class="pl-smi">EntityRepository</span></span> <span class="pl-s1"><span class="pl-c1">$</span>repository</span>) { <span class="pl-k">return</span> <span class="pl-s1"><span class="pl-c1">$</span>repository</span>-&gt;<span class="pl-en">createQueryBuilder</span>(<span class="pl-s">'contact'</span>) -&gt;<span class="pl-en">where</span>(<span class="pl-s">'contact.enabled = true'</span>) -&gt;<span class="pl-en">orderBy</span>(<span class="pl-s">'contact.name'</span>, <span class="pl-s">'ASC'</span>); }, <span class="pl-s">'group_by'</span> =&gt; <span class="pl-s">'groups.name'</span>, ])</pre></div> <p dir="auto">Important is this line:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" 'group_by' =&gt; 'groups.name',"><pre class="notranslate"> <span class="pl-s">'group_by'</span> =&gt; <span class="pl-s">'groups.name'</span>,</pre></div> <p dir="auto">This is not working because there is a Many-to-Many relation between <code class="notranslate">Contact</code> and <code class="notranslate">ContactGroup</code>.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Neither the property &quot;name&quot; nor one of the methods &quot;getName()&quot;, &quot;name()&quot;, &quot;isName()&quot;, &quot;hasName()&quot;, &quot;__get()&quot; exist and have public access in class &quot;Doctrine\ORM\PersistentCollection&quot;."><pre class="notranslate"><code class="notranslate">Neither the property "name" nor one of the methods "getName()", "name()", "isName()", "hasName()", "__get()" exist and have public access in class "Doctrine\ORM\PersistentCollection". </code></pre></div> <p dir="auto">(Yes: <code class="notranslate">ContactGroup</code> contains <code class="notranslate">getName()</code>)</p>
<p dir="auto">In <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="43646560" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/12006" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/12006/hovercard" href="https://github.com/symfony/symfony/pull/12006">#12006</a>, Symfony introduced the concept of ExpressionFunctionProviders. The consequence is that you cannot use the DependencyInjection component from 2.6 together with an older version of the ExpressionLanguage component. Is there a way to make the developer's experience easier? Can we maybe add the old behaviour as a fallback?</p>
0
<p dir="auto">When following the tutorial, I get a syntax error.</p> <p dir="auto">Package.json:<br> {<br> "name": "<a class="issue-link js-issue-link notranslate" rel="noopener noreferrer nofollow" href="https://linear.app/vercel/issue/NEXT-version">next-version</a>",<br> "version": "1.0.0",<br> "description": "",<br> "main": "index.js",<br> "scripts": {<br> "dev": "next"<br> },<br> "keywords": [],<br> "author": "",<br> "license": "ISC",<br> "dependencies": {<br> "next": "^6.0.0",<br> "react": "^16.3.2",<br> "react-dom": "^16.3.2"<br> }<br> }</p> <p dir="auto">Console IO:<br> Per-ivinds-MacBook-Pro:<a class="issue-link js-issue-link notranslate" rel="noopener noreferrer nofollow" href="https://linear.app/vercel/issue/NEXT-version">next-version</a> poa$ npm run dev</p> <blockquote> <p dir="auto">[email protected] dev /Users/poa/Documents/dev/smileyhash/next-version<br> next</p> </blockquote> <p dir="auto">/Users/poa/Documents/dev/smileyhash/<a class="issue-link js-issue-link notranslate" rel="noopener noreferrer nofollow" href="https://linear.app/vercel/issue/NEXT-version">next-version</a>/node_modules/update-check/index.js:18<br> const getFile = async (details, distTag) =&gt; {<br> ^<br> SyntaxError: Unexpected token (<br> at Object.exports.runInThisContext (vm.js:78:16)<br> at Module._compile (module.js:543:28)<br> at Object.Module._extensions..js (module.js:580:10)<br> at Module.load (module.js:488:32)<br> at tryModuleLoad (module.js:447:12)<br> at Function.Module._load (module.js:439:3)<br> at Module.require (module.js:498:17)<br> at require (internal/module.js:20:19)<br> at Server._callee$ (/Users/poa/Documents/dev/smileyhash/<a class="issue-link js-issue-link notranslate" rel="noopener noreferrer nofollow" href="https://linear.app/vercel/issue/NEXT-version">next-version</a>/node_modules/next/dist/server/index.js:194:34)<br> at tryCatch (/Users/poa/Documents/dev/smileyhash/<a class="issue-link js-issue-link notranslate" rel="noopener noreferrer nofollow" href="https://linear.app/vercel/issue/NEXT-version">next-version</a>/node_modules/regenerator-runtime/runtime.js:62:40)<br> at Generator.invoke [as _invoke] (/Users/poa/Documents/dev/smileyhash/<a class="issue-link js-issue-link notranslate" rel="noopener noreferrer nofollow" href="https://linear.app/vercel/issue/NEXT-version">next-version</a>/node_modules/regenerator-runtime/runtime.js:296:22)<br> at Generator.prototype.(anonymous function) [as next] (/Users/poa/Documents/dev/smileyhash/<a class="issue-link js-issue-link notranslate" rel="noopener noreferrer nofollow" href="https://linear.app/vercel/issue/NEXT-version">next-version</a>/node_modules/regenerator-runtime/runtime.js:114:21)<br> at step (/Users/poa/Documents/dev/smileyhash/<a class="issue-link js-issue-link notranslate" rel="noopener noreferrer nofollow" href="https://linear.app/vercel/issue/NEXT-version">next-version</a>/node_modules/@babel/runtime/helpers/asyncToGenerator.js:12:30)<br> at _next (/Users/poa/Documents/dev/smileyhash/<a class="issue-link js-issue-link notranslate" rel="noopener noreferrer nofollow" href="https://linear.app/vercel/issue/NEXT-version">next-version</a>/node_modules/@babel/runtime/helpers/asyncToGenerator.js:27:9)<br> at /Users/poa/Documents/dev/smileyhash/<a class="issue-link js-issue-link notranslate" rel="noopener noreferrer nofollow" href="https://linear.app/vercel/issue/NEXT-version">next-version</a>/node_modules/@babel/runtime/helpers/asyncToGenerator.js:34:7<br> at F (/Users/poa/Documents/dev/smileyhash/<a class="issue-link js-issue-link notranslate" rel="noopener noreferrer nofollow" href="https://linear.app/vercel/issue/NEXT-version">next-version</a>/node_modules/core-js/library/modules/_export.js:36:28)</p> <p dir="auto">npm ERR! Darwin 17.5.0<br> npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "dev"<br> npm ERR! node v7.2.0<br> npm ERR! npm v3.10.9<br> npm ERR! code ELIFECYCLE<br> npm ERR! <a class="issue-link js-issue-link notranslate" rel="noopener noreferrer nofollow" href="https://linear.app/vercel/issue/NEXT-version">next-version</a>@1.0.0 dev: <code class="notranslate">next</code><br> npm ERR! Exit status 1<br> npm ERR!<br> npm ERR! Failed at the <a class="issue-link js-issue-link notranslate" rel="noopener noreferrer nofollow" href="https://linear.app/vercel/issue/NEXT-version">next-version</a>@1.0.0 dev script 'next'.<br> npm ERR! Make sure you have the latest version of node.js and npm installed.<br> npm ERR! If you do, this is most likely a problem with the <a class="issue-link js-issue-link notranslate" rel="noopener noreferrer nofollow" href="https://linear.app/vercel/issue/NEXT-version">next-version</a> package,<br> npm ERR! not with npm itself.<br> npm ERR! Tell the author that this fails on your system:<br> npm ERR! next<br> npm ERR! You can get information on how to open an issue for this project with:<br> npm ERR! npm bugs <a class="issue-link js-issue-link notranslate" rel="noopener noreferrer nofollow" href="https://linear.app/vercel/issue/NEXT-version">next-version</a><br> npm ERR! Or if that isn't available, you can get their info via:<br> npm ERR! npm owner ls <a class="issue-link js-issue-link notranslate" rel="noopener noreferrer nofollow" href="https://linear.app/vercel/issue/NEXT-version">next-version</a><br> npm ERR! There is likely additional logging output above.</p> <p dir="auto">npm ERR! Please include the following file with any support request:<br> npm ERR! /Users/poa/Documents/dev/smileyhash/<a class="issue-link js-issue-link notranslate" rel="noopener noreferrer nofollow" href="https://linear.app/vercel/issue/NEXT-version">next-version</a>/npm-debug.log<br> Per-ivinds-MacBook-Pro:<a class="issue-link js-issue-link notranslate" rel="noopener noreferrer nofollow" href="https://linear.app/vercel/issue/NEXT-version">next-version</a> poa$</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/zeit/next.js/issues?q=is%3Aissue">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <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>next</td> <td></td> </tr> <tr> <td>node</td> <td></td> </tr> <tr> <td>OS</td> <td></td> </tr> <tr> <td>browser</td> <td></td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table>
<p dir="auto">Next.js has example and work with sw-precache as service-worker.</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">It should be possible to use Workbox and workbox-webpack-plugin to create a service worker.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">When adding following to next.config.js:</p> <p dir="auto"><code class="notranslate">config.plugins.push(new WorkboxPlugin({ globDirectory: path.resolve('./.next/dist/'), globPatterns: ['**/*.{html,js,css}'], swDest: path.resolve('./static/sw/service-worker.js'), clientsClaim: true, skipWaiting: true, }))</code></p> <p dir="auto">it fails with error:<br> <code class="notranslate">Error: One of the glob patterns doesn't match any files. Please remove or fix the following: { "globDirectory": "/...../.next/dist", "globPattern": "**/*.{html,js,css}", "globIgnores": [ "node_modules/**/*", "../../static/sw/workbox-sw.prod.v2.1.2.js", "../../static/sw/service-worker.js" ] </code></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.2.0</td> </tr> <tr> <td>node</td> <td>8.9.0</td> </tr> </tbody> </table>
0
<p dir="auto">When trying to create an Isolate in <code class="notranslate">--debug</code> mode the Dart VM is unable to fetch the Dart source code for the new Isolate.</p> <p dir="auto">The error is thrown when tapping the <code class="notranslate">Start</code> button in the <code class="notranslate">services/isolate.dart</code> example.</p> <p dir="auto">This issue was previously reported as <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="176214336" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/5814" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/5814/hovercard" href="https://github.com/flutter/flutter/issues/5814">#5814</a> and was partially fixed to work in <code class="notranslate">--release</code> mode but is still failing in the default <code class="notranslate">--debug</code> mode (for different reasons since the earlier fix).</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="flutter/examples/layers$ flutter run -t services/isolate.dart Building APK in debug mode (android-arm)... Warning: signing the APK using the debug keystore. Built build/app.apk (8.7MB). Launching loader on Nexus 5X... --------- beginning of main Observatory listening on http://127.0.0.1:34521 Diagnostic server listening on http://127.0.0.1:41805 Updating assets... 0.2s Syncing files to device... Scanning project files... 0.1s Scanning package files... 0.5s Scanning asset files... 0.0s Scanning for deleted files... 0.0s No files to remove. Updating files... 3.2s Synced 5.7MB. Connected to view '_flutterView/0xe272bb80'. Running services/isolate.dart on Nexus 5X... Application running. Type &quot;h&quot; or F1 for this help message; type &quot;q&quot;, F10, or ctrl-c to quit. Type &quot;r&quot; or F5 to perform a hot reload of the app, and &quot;R&quot; to restart the app. Type &quot;w&quot; to print the widget hierarchy of the app, and &quot;t&quot; for the render tree. Finishing file synchronization... Syncing files to device... Scanning project files... 0.0s Scanning package files... 0.3s Scanning asset files... 0.0s Scanning for deleted files... 0.0s No files to remove. Updating files... E/flutter : [ERROR:../../flutter/assets/unzipper_provider.cc(16)] Unable to open zip file: /data/user/0/io.flutter.examples.Layers/cache/layerskphtff/services/isolate.dart F/flutter : [FATAL:../../flutter/runtime/dart_init.cc(254)] Check failed: zip_asset_store-&gt;GetAsBuffer(kSnapshotAssetKey, &amp;snapshot_data). --------- beginning of crash W/ActivityManager: Force finishing activity io.flutter.examples.Layers/org.domokit.sky.shell.SkyActivity W/ActivityManager: Force finishing activity io.flutter.examples.Layers/org.domokit.sky.shell.SkyActivity W/ActivityManager: Duplicate finish request for ActivityRecord{6531d4d u0 io.flutter.examples.Layers/org.domokit.sky.shell.SkyActivity t99 f} Application finished."><pre class="notranslate"><code class="notranslate">flutter/examples/layers$ flutter run -t services/isolate.dart Building APK in debug mode (android-arm)... Warning: signing the APK using the debug keystore. Built build/app.apk (8.7MB). Launching loader on Nexus 5X... --------- beginning of main Observatory listening on http://127.0.0.1:34521 Diagnostic server listening on http://127.0.0.1:41805 Updating assets... 0.2s Syncing files to device... Scanning project files... 0.1s Scanning package files... 0.5s Scanning asset files... 0.0s Scanning for deleted files... 0.0s No files to remove. Updating files... 3.2s Synced 5.7MB. Connected to view '_flutterView/0xe272bb80'. Running services/isolate.dart on Nexus 5X... Application running. Type "h" or F1 for this help message; type "q", F10, or ctrl-c to quit. Type "r" or F5 to perform a hot reload of the app, and "R" to restart the app. Type "w" to print the widget hierarchy of the app, and "t" for the render tree. Finishing file synchronization... Syncing files to device... Scanning project files... 0.0s Scanning package files... 0.3s Scanning asset files... 0.0s Scanning for deleted files... 0.0s No files to remove. Updating files... E/flutter : [ERROR:../../flutter/assets/unzipper_provider.cc(16)] Unable to open zip file: /data/user/0/io.flutter.examples.Layers/cache/layerskphtff/services/isolate.dart F/flutter : [FATAL:../../flutter/runtime/dart_init.cc(254)] Check failed: zip_asset_store-&gt;GetAsBuffer(kSnapshotAssetKey, &amp;snapshot_data). --------- beginning of crash W/ActivityManager: Force finishing activity io.flutter.examples.Layers/org.domokit.sky.shell.SkyActivity W/ActivityManager: Force finishing activity io.flutter.examples.Layers/org.domokit.sky.shell.SkyActivity W/ActivityManager: Duplicate finish request for ActivityRecord{6531d4d u0 io.flutter.examples.Layers/org.domokit.sky.shell.SkyActivity t99 f} Application finished. </code></pre></div> <p dir="auto">Here is my <code class="notranslate">flutter doctor</code> output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (on Linux, channel master) • Flutter at /home/lex/projects/flutter • Framework revision 2a81391915 (2 days ago), 2016-09-16 23:22:20 • Engine revision e4121f80a9 • Tools Dart version 1.20.0-dev.5.0 [✓] Android toolchain - develop for Android devices (Android SDK 19.1.0) • Android SDK at /home/lex/projects/Android/Sdk • Platform android-19, build-tools 19.1.0 • OpenJDK Runtime Environment (build 1.8.0_91-8u91-b14-3ubuntu1~16.04.1-b14) [✓] Atom - a lightweight development environment for Flutter • flutter plugin version 0.2.4 • dartlang plugin version 0.6.37 [✓] Connected devices • Nexus 5X • 00dd4847616ed5cd • android-arm"><pre class="notranslate"><code class="notranslate">[✓] Flutter (on Linux, channel master) • Flutter at /home/lex/projects/flutter • Framework revision 2a81391915 (2 days ago), 2016-09-16 23:22:20 • Engine revision e4121f80a9 • Tools Dart version 1.20.0-dev.5.0 [✓] Android toolchain - develop for Android devices (Android SDK 19.1.0) • Android SDK at /home/lex/projects/Android/Sdk • Platform android-19, build-tools 19.1.0 • OpenJDK Runtime Environment (build 1.8.0_91-8u91-b14-3ubuntu1~16.04.1-b14) [✓] Atom - a lightweight development environment for Flutter • flutter plugin version 0.2.4 • dartlang plugin version 0.6.37 [✓] Connected devices • Nexus 5X • 00dd4847616ed5cd • android-arm </code></pre></div>
<ul dir="auto"> <li>ubuntu 17.04</li> </ul> <br> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/21167871/33302423-e836c298-d436-11e7-9e95-554be98368c2.png"><img src="https://user-images.githubusercontent.com/21167871/33302423-e836c298-d436-11e7-9e95-554be98368c2.png" alt="flutter-error" style="max-width: 100%;"></a></p>
0
<h1 dir="auto">Summary of the new feature/enhancement</h1> <h1 dir="auto">Proposed technical implementation details (optional)</h1>
<h1 dir="auto">Environment</h1> <p dir="auto">Windows build number: Microsoft Windows [Version 10.0.18362.356]<br> Windows Terminal version (if applicable): 0.5.2681.0</p> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Run this litle command in the terminal using a cmd.exe tab to produce a little box:</p> <div class="highlight highlight-source-batchfile notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="echo ┌┐ &amp; echo └┘"><pre class="notranslate"><span class="pl-k">echo</span> ┌┐ <span class="pl-k">&amp;</span> <span class="pl-k">echo</span> └┘</pre></div> <h1 dir="auto">Expected behavior</h1> <p dir="auto">The box should have perfectly joined lines on all sides. Living in a monospaced environment where the box drawing characters are used to draw trees, boxes and other stuf perfect line joining is expected</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">The lines of the box are not vertically joined</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/8502209/66046865-eaa96a00-e526-11e9-9bd9-90396b006770.png"><img src="https://user-images.githubusercontent.com/8502209/66046865-eaa96a00-e526-11e9-9bd9-90396b006770.png" alt="image" style="max-width: 100%;"></a></p>
0
<h3 dir="auto">Problem description</h3> <p dir="auto">Button href component return error when clicked.</p> <h3 dir="auto">Steps to reproduce</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import MenuIcon from 'material-ui-icons/Menu'; import AppBar from 'material-ui/AppBar'; import Button from 'material-ui/Button'; import Hidden from 'material-ui/Hidden'; import IconButton from 'material-ui/IconButton'; import { withStyles } from 'material-ui/styles'; import { withRouter, Link } from 'react-router-dom'; import Toolbar from 'material-ui/Toolbar'; import React, { Component } from 'react'; import { LogoDiv, NavWrapper, Nav, styles } from './styles'; const navs = [ { label: 'Home', url: '/' }, { label: 'How to', url: '/' }, { label: 'Faq', url: '/' }, { label: 'Area', url: '/' }, ]; class Header extends Component { render() { const classes = this.props.classes; return ( &lt;AppBar position=&quot;fixed&quot; color=&quot;default&quot; classes={{ root: classes.appBarRoot, colorDefault: classes.appBarBg }}&gt; &lt;Toolbar classes={{ root: classes.toolBar }}&gt; &lt;Hidden mdUp&gt; &lt;IconButton aria-label=&quot;Menu&quot;&gt; &lt;MenuIcon /&gt; &lt;/IconButton&gt; &lt;/Hidden&gt; &lt;Hidden mdDown&gt; &lt;NavWrapper&gt; {navs.map(nav =&gt; ( &lt;Button href={nav.url}&gt;{nav.label}&lt;/Button&gt; ))} &lt;/NavWrapper&gt; &lt;/Hidden&gt; &lt;LogoDiv /&gt; &lt;div style={{ display: 'flex', flex: 1, justifyContent: 'flex-end' }}&gt; &lt;Button raised color=&quot;primary&quot;&gt;Login&lt;/Button&gt; &lt;/div&gt; &lt;/Toolbar&gt; &lt;/AppBar&gt; ); } } export default withStyles(styles)(withRouter((Header))); "><pre class="notranslate"><code class="notranslate">import MenuIcon from 'material-ui-icons/Menu'; import AppBar from 'material-ui/AppBar'; import Button from 'material-ui/Button'; import Hidden from 'material-ui/Hidden'; import IconButton from 'material-ui/IconButton'; import { withStyles } from 'material-ui/styles'; import { withRouter, Link } from 'react-router-dom'; import Toolbar from 'material-ui/Toolbar'; import React, { Component } from 'react'; import { LogoDiv, NavWrapper, Nav, styles } from './styles'; const navs = [ { label: 'Home', url: '/' }, { label: 'How to', url: '/' }, { label: 'Faq', url: '/' }, { label: 'Area', url: '/' }, ]; class Header extends Component { render() { const classes = this.props.classes; return ( &lt;AppBar position="fixed" color="default" classes={{ root: classes.appBarRoot, colorDefault: classes.appBarBg }}&gt; &lt;Toolbar classes={{ root: classes.toolBar }}&gt; &lt;Hidden mdUp&gt; &lt;IconButton aria-label="Menu"&gt; &lt;MenuIcon /&gt; &lt;/IconButton&gt; &lt;/Hidden&gt; &lt;Hidden mdDown&gt; &lt;NavWrapper&gt; {navs.map(nav =&gt; ( &lt;Button href={nav.url}&gt;{nav.label}&lt;/Button&gt; ))} &lt;/NavWrapper&gt; &lt;/Hidden&gt; &lt;LogoDiv /&gt; &lt;div style={{ display: 'flex', flex: 1, justifyContent: 'flex-end' }}&gt; &lt;Button raised color="primary"&gt;Login&lt;/Button&gt; &lt;/div&gt; &lt;/Toolbar&gt; &lt;/AppBar&gt; ); } } export default withStyles(styles)(withRouter((Header))); </code></pre></div> <h3 dir="auto">Versions</h3> <ul dir="auto"> <li>Material-UI: next</li> <li>React: next</li> <li>Browser: Chrome</li> </ul>
<h3 dir="auto">Problem description</h3> <p dir="auto">Upgrading to React V16 throws error: this.updater.enqueueCallback is not a function</p> <h3 dir="auto">Steps to reproduce</h3> <p dir="auto">yarn add react@next react-dom@next</p> <h3 dir="auto">Versions</h3> <ul dir="auto"> <li>Material-UI: v1.0.0-beta.5</li> <li>React: <a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/next/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/next">@next</a></li> <li>Browser: Chrome</li> </ul> <h3 dir="auto">Description</h3> <p dir="auto">When clicking a button, dropdown etc. this.updater.enqueueCallback is not a function exception is thrown.</p> <p dir="auto">Console says the following:<br> <strong>The above error occurred in the Transition component</strong></p> <h3 dir="auto">Images &amp; references</h3> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6877570/29413673-3355e5b8-832b-11e7-8490-7e5fcd807f8e.png"><img src="https://user-images.githubusercontent.com/6877570/29413673-3355e5b8-832b-11e7-8490-7e5fcd807f8e.png" alt="screen shot 2017-08-17 at 9 03 37 am" style="max-width: 100%;"></a></p>
1
<p dir="auto">Tried to compile rustc@9b9833299245cc1eac68b52169e9152d0f412d6b on my Windows 7 x64 (MSYS2) when it crashed. Crashed even after running <code class="notranslate">make clean</code> first. For the record, I tried to compile with <code class="notranslate">RUSTFLAGS='-C codegen-units=8'</code> set.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ export RUSTFLAGS='-C codegen-units=8' $ make RUST_BACKTRACE=1 cfg: build triple i686-w64-mingw32 cfg: host triples i686-w64-mingw32 cfg: target triples i686-w64-mingw32 cfg: host for i686-w64-mingw32 is i386 cfg: os for i686-w64-mingw32 is w64-mingw32 cfg: using CC=gcc (CFG_CC) cfg: disabling valgrind due to its unreliability on this platform cfg: no llnextgen found, omitting grammar-verification cfg: disabling doc build (CFG_DISABLE_DOCS) rustc: i686-w64-mingw32/stage0/bin/rustlib/i686-w64-mingw32/lib/librand i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.1.o:(.rdata+0x2b0): multiple definition of `isaac::IsaacRng.Rng::next_u32::_MSG_FILE_LINE::h3a06d40217e7486bdMb' i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.0.o:(.rdata+0x3f0): first defined here i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.1.o:(.rdata+0x300): multiple definition of `isaac::Isaac64Rng.Rng::next_u64::_MSG_FILE_LINE::h3a06d40217e7486bwgc' i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.0.o:(.rdata+0x440): first defined here i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.2.o:(.rdata+0x170): multiple definition of `isaac::IsaacRng.Rng::next_u32::_MSG_FILE_LINE::h3a06d40217e7486bdMb' i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.0.o:(.rdata+0x3f0): first defined here i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.2.o:(.rdata+0x1c0): multiple definition of `isaac::Isaac64Rng.Rng::next_u64::_MSG_FILE_LINE::h3a06d40217e7486bwgc' i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.0.o:(.rdata+0x440): first defined here i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.3.o:(.rdata+0x110): multiple definition of `isaac::IsaacRng.Rng::next_u32::_MSG_FILE_LINE::h3a06d40217e7486bdMb' i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.0.o:(.rdata+0x3f0): first defined here i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.3.o:(.rdata+0x160): multiple definition of `isaac::Isaac64Rng.Rng::next_u64::_MSG_FILE_LINE::h3a06d40217e7486bwgc' i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.0.o:(.rdata+0x440): first defined here i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.4.o:(.rdata+0x2aa0): multiple definition of `isaac::IsaacRng.Rng::next_u32::_MSG_FILE_LINE::h3a06d40217e7486bdMb' i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.0.o:(.rdata+0x3f0): first defined here i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.4.o:(.rdata+0x3b10): multiple definition of `isaac::Isaac64Rng.Rng::next_u64::_MSG_FILE_LINE::h3a06d40217e7486bwgc' i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.0.o:(.rdata+0x440): first defined here i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.5.o:(.rdata+0x70): multiple definition of `isaac::IsaacRng.Rng::next_u32::_MSG_FILE_LINE::h3a06d40217e7486bdMb' i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.0.o:(.rdata+0x3f0): first defined here i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.5.o:(.rdata+0xc0): multiple definition of `isaac::Isaac64Rng.Rng::next_u64::_MSG_FILE_LINE::h3a06d40217e7486bwgc' i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.0.o:(.rdata+0x440): first defined here i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.6.o:(.rdata+0x70): multiple definition of `isaac::IsaacRng.Rng::next_u32::_MSG_FILE_LINE::h3a06d40217e7486bdMb' i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.0.o:(.rdata+0x3f0): first defined here i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.6.o:(.rdata+0xc0): multiple definition of `isaac::Isaac64Rng.Rng::next_u64::_MSG_FILE_LINE::h3a06d40217e7486bwgc' i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.0.o:(.rdata+0x440): first defined here i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.7.o:(.rdata+0x70): multiple definition of `isaac::IsaacRng.Rng::next_u32::_MSG_FILE_LINE::h3a06d40217e7486bdMb' i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.0.o:(.rdata+0x3f0): first defined here i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.7.o:(.rdata+0xc0): multiple definition of `isaac::Isaac64Rng.Rng::next_u64::_MSG_FILE_LINE::h3a06d40217e7486bwgc' i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.0.o:(.rdata+0x440): first defined here collect2.exe: error: ld returned 1 exit status error: internal compiler error: unexpected failure note: the compiler hit an unexpected failure path. 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 task 'rustc' failed at 'called `Result::unwrap()` on an `Err` value: couldn't rename path (file not found (OS Error 2: Das System kann die angegebene Datei nicht finden. ); from=i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.o.exe; to=i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.o)', C:\bot\slave\snap3-win-32\build\src\libcore\result.rs:808 stack backtrace: 1: 0x1e64dca - main 2: 0x1e7be1c - main 3: 0x1e7bbad - main 4: 0x1e7b9c5 - main 5: 0x1ecb31f - main 6: 0x432cd2 - main 7: 0x42fc69 - main 8: 0xd04e86 - main 9: 0x421d49 - main 10: 0xcb3de1 - main 11: 0xcaccfc - main 12: 0xd2df45 - main 13: 0xd2bea4 - main 14: 0x439e7e - main 15: 0x439dc6 - main 16: 0x1abe123 - main 17: 0x1e7b81c - main 18: 0x1e79dfe - main 19: 0x1abdf91 - main 20: 0x1e7b507 - main 21: 0x777e9f72 - RtlInitializeExceptionChain /f/Dokumente/Coding/rust/rust-lang/mk/target.mk:166: recipe for target 'i686-w64-mingw32/stage0/bin/rustlib/i686-w64-mingw32/lib/stamp.rand' failed make: *** [i686-w64-mingw32/stage0/bin/rustlib/i686-w64-mingw32/lib/stamp.rand] Error 101"><pre class="notranslate"><code class="notranslate">$ export RUSTFLAGS='-C codegen-units=8' $ make RUST_BACKTRACE=1 cfg: build triple i686-w64-mingw32 cfg: host triples i686-w64-mingw32 cfg: target triples i686-w64-mingw32 cfg: host for i686-w64-mingw32 is i386 cfg: os for i686-w64-mingw32 is w64-mingw32 cfg: using CC=gcc (CFG_CC) cfg: disabling valgrind due to its unreliability on this platform cfg: no llnextgen found, omitting grammar-verification cfg: disabling doc build (CFG_DISABLE_DOCS) rustc: i686-w64-mingw32/stage0/bin/rustlib/i686-w64-mingw32/lib/librand i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.1.o:(.rdata+0x2b0): multiple definition of `isaac::IsaacRng.Rng::next_u32::_MSG_FILE_LINE::h3a06d40217e7486bdMb' i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.0.o:(.rdata+0x3f0): first defined here i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.1.o:(.rdata+0x300): multiple definition of `isaac::Isaac64Rng.Rng::next_u64::_MSG_FILE_LINE::h3a06d40217e7486bwgc' i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.0.o:(.rdata+0x440): first defined here i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.2.o:(.rdata+0x170): multiple definition of `isaac::IsaacRng.Rng::next_u32::_MSG_FILE_LINE::h3a06d40217e7486bdMb' i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.0.o:(.rdata+0x3f0): first defined here i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.2.o:(.rdata+0x1c0): multiple definition of `isaac::Isaac64Rng.Rng::next_u64::_MSG_FILE_LINE::h3a06d40217e7486bwgc' i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.0.o:(.rdata+0x440): first defined here i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.3.o:(.rdata+0x110): multiple definition of `isaac::IsaacRng.Rng::next_u32::_MSG_FILE_LINE::h3a06d40217e7486bdMb' i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.0.o:(.rdata+0x3f0): first defined here i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.3.o:(.rdata+0x160): multiple definition of `isaac::Isaac64Rng.Rng::next_u64::_MSG_FILE_LINE::h3a06d40217e7486bwgc' i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.0.o:(.rdata+0x440): first defined here i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.4.o:(.rdata+0x2aa0): multiple definition of `isaac::IsaacRng.Rng::next_u32::_MSG_FILE_LINE::h3a06d40217e7486bdMb' i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.0.o:(.rdata+0x3f0): first defined here i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.4.o:(.rdata+0x3b10): multiple definition of `isaac::Isaac64Rng.Rng::next_u64::_MSG_FILE_LINE::h3a06d40217e7486bwgc' i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.0.o:(.rdata+0x440): first defined here i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.5.o:(.rdata+0x70): multiple definition of `isaac::IsaacRng.Rng::next_u32::_MSG_FILE_LINE::h3a06d40217e7486bdMb' i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.0.o:(.rdata+0x3f0): first defined here i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.5.o:(.rdata+0xc0): multiple definition of `isaac::Isaac64Rng.Rng::next_u64::_MSG_FILE_LINE::h3a06d40217e7486bwgc' i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.0.o:(.rdata+0x440): first defined here i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.6.o:(.rdata+0x70): multiple definition of `isaac::IsaacRng.Rng::next_u32::_MSG_FILE_LINE::h3a06d40217e7486bdMb' i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.0.o:(.rdata+0x3f0): first defined here i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.6.o:(.rdata+0xc0): multiple definition of `isaac::Isaac64Rng.Rng::next_u64::_MSG_FILE_LINE::h3a06d40217e7486bwgc' i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.0.o:(.rdata+0x440): first defined here i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.7.o:(.rdata+0x70): multiple definition of `isaac::IsaacRng.Rng::next_u32::_MSG_FILE_LINE::h3a06d40217e7486bdMb' i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.0.o:(.rdata+0x3f0): first defined here i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.7.o:(.rdata+0xc0): multiple definition of `isaac::Isaac64Rng.Rng::next_u64::_MSG_FILE_LINE::h3a06d40217e7486bwgc' i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.0.o:(.rdata+0x440): first defined here collect2.exe: error: ld returned 1 exit status error: internal compiler error: unexpected failure note: the compiler hit an unexpected failure path. 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 task 'rustc' failed at 'called `Result::unwrap()` on an `Err` value: couldn't rename path (file not found (OS Error 2: Das System kann die angegebene Datei nicht finden. ); from=i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.o.exe; to=i686-w64-mingw32\stage0\bin\rustlib\i686-w64-mingw32\lib\rand-4e7c5e5c.o)', C:\bot\slave\snap3-win-32\build\src\libcore\result.rs:808 stack backtrace: 1: 0x1e64dca - main 2: 0x1e7be1c - main 3: 0x1e7bbad - main 4: 0x1e7b9c5 - main 5: 0x1ecb31f - main 6: 0x432cd2 - main 7: 0x42fc69 - main 8: 0xd04e86 - main 9: 0x421d49 - main 10: 0xcb3de1 - main 11: 0xcaccfc - main 12: 0xd2df45 - main 13: 0xd2bea4 - main 14: 0x439e7e - main 15: 0x439dc6 - main 16: 0x1abe123 - main 17: 0x1e7b81c - main 18: 0x1e79dfe - main 19: 0x1abdf91 - main 20: 0x1e7b507 - main 21: 0x777e9f72 - RtlInitializeExceptionChain /f/Dokumente/Coding/rust/rust-lang/mk/target.mk:166: recipe for target 'i686-w64-mingw32/stage0/bin/rustlib/i686-w64-mingw32/lib/stamp.rand' failed make: *** [i686-w64-mingw32/stage0/bin/rustlib/i686-w64-mingw32/lib/stamp.rand] Error 101 </code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="==&gt; ./configure --prefix=/Users/andrewrynhard/develop/homebrew/Cellar/rust/HEAD --disable-rpath --enable-clang --release-channel=nightly configure: configure: note, user-provided CC looks like clang; CC=clang. configure: configure: CFG_USING_CLANG := 1 configure: error: bad CLANG version: 7.0.0, need &gt;=3.0svn"><pre class="notranslate"><code class="notranslate">==&gt; ./configure --prefix=/Users/andrewrynhard/develop/homebrew/Cellar/rust/HEAD --disable-rpath --enable-clang --release-channel=nightly configure: configure: note, user-provided CC looks like clang; CC=clang. configure: configure: CFG_USING_CLANG := 1 configure: error: bad CLANG version: 7.0.0, need &gt;=3.0svn </code></pre></div>
0
<p dir="auto">On: <code class="notranslate">Microsoft Windows [Version 10.0.17763.134]</code></p> <p dir="auto">I have implemented conpty in my terminal emulator:<br> <a href="https://github.com/wez/wezterm">https://github.com/wez/wezterm</a></p> <p dir="auto">I can successfully run <code class="notranslate">target\debug\wezterm.exe</code> to spawn console applications such as <code class="notranslate">cmd.exe</code> <code class="notranslate">powershell.exe</code> and <code class="notranslate">bash</code>.</p> <p dir="auto">The issue I'm seeing is that when I launch bash, either indirectly via <code class="notranslate">cmd.exe</code> or directly via the bash launcher, conpty seems to swallow the mouse reporting escape sequences; I don't see them being received by my terminal parser, and thus <code class="notranslate">vim</code> has no effective mouse support despite being configured with <code class="notranslate">set mouse=a</code>.</p> <p dir="auto">Running the same WSL install via <code class="notranslate">wsl-terminal</code> does have working mouse support, and <code class="notranslate">wezterm</code> has been my daily driver on Linux for about a year with working mouse support, so we can rule out an obvious misconfiguration with <code class="notranslate">vim</code> and the parser in <code class="notranslate">wezterm</code>.</p> <p dir="auto">I've also tried <code class="notranslate">echo -e "\e[?1000h"</code> to manually enable mouse reporting from the shell; normally (on linux and via wsl-terminal) this causes clicks in the terminal to send data to the shell (which appears as garbage input), but when running my terminal with conpty, these are also swallowed up somewhere.</p> <p dir="auto">Is there something special needed for the apps that I spawn into my pty to be able to work with the mouse?</p> <p dir="auto">In case you want to double check the key portion of the code, the relevant file is:<br> <a href="https://github.com/wez/wezterm/blob/master/src/winpty.rs">https://github.com/wez/wezterm/blob/master/src/winpty.rs</a><br> The flow is to <code class="notranslate">CreatePipe</code> a pair of pipes, <code class="notranslate">CreatePseudoConsole</code>, and then pass that to a spawned child via the threadproc attributes, as the samples in the MSDN docs and this repo also do.</p>
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 10.0.18362.267 Windows Terminal version (if applicable): Windows Store version (latest) Windows Terminal (Dev Build)"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 10.0.18362.267 Windows Terminal version (if applicable): Windows Store version (latest) Windows Terminal (Dev Build) </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">I have build Terminal from source and am using it successfully, but I would like to try the version from the Windows Store. I have downloaded it, but when I try to launch it, it immediately terminates without any other error.</p> <p dir="auto">The exact sequence is:</p> <blockquote> <p dir="auto">Start Menu<br> Click on "Windows Terminal (Preview)"</p> </blockquote> <h1 dir="auto">Expected behavior</h1> <p dir="auto">I expect both versions to run on the same instance of Windows, if the manual build runs, then the pre-compiled should also run?</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">I get a quick flash of a terminal window - it is not blank (as reported elsewhere). It is a quick flash and then immediately it terminates. Nothing on the taskbar, nothing in the process list, no error messages, etc.</p> <h1 dir="auto">Additional Information</h1> <p dir="auto">There are no updates pending on the Windows Store, and the Dev Build version runs fine.</p> <p dir="auto">I looked at <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="472052836" data-permission-text="Title is private" data-url="https://github.com/microsoft/terminal/issues/2073" data-hovercard-type="issue" data-hovercard-url="/microsoft/terminal/issues/2073/hovercard" href="https://github.com/microsoft/terminal/issues/2073">#2073</a> because the symptoms are the same, but I am not running with elevated privileges "Run as administrator" (ie, right-click on the icon).</p>
0
<p dir="auto">Repro Steps:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="kubectl create -f nginx-deployment.yaml deployment &quot;nginx-deployment&quot; created kubectl get deployments NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE nginx-deployment 3 3 3 3 0s kubectl rollout history deployment/nginx-deployment deployments &quot;nginx-deployment&quot;: REVISION CHANGE-CAUSE 1 &lt;none&gt;"><pre class="notranslate">kubectl create -f nginx-deployment.yaml deployment <span class="pl-s"><span class="pl-pds">"</span>nginx-deployment<span class="pl-pds">"</span></span> created kubectl get deployments NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE nginx-deployment 3 3 3 3 0s kubectl rollout <span class="pl-c1">history</span> deployment/nginx-deployment deployments <span class="pl-s"><span class="pl-pds">"</span>nginx-deployment<span class="pl-pds">"</span></span>: REVISION CHANGE-CAUSE 1 <span class="pl-k">&lt;</span>none<span class="pl-k">&gt;</span></pre></div> <p dir="auto">Note: <code class="notranslate">CHANGE-CAUSE</code> has value <code class="notranslate">&lt;none&gt;</code>, since deployment file did not contain any annotations.</p> <p dir="auto">Modify nginx-deployment.yaml file adding annotation <code class="notranslate">foo-bar</code> like so:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="apiVersion: extensions/v1beta1 kind: Deployment metadata: name: nginx-deployment annotations: kubernetes.io/change-cause: foo-bar spec: replicas: 3 template: metadata: labels: app: nginx spec: containers: - name: nginx image: nginx:1.7.9 ports: - containerPort: 80"><pre class="notranslate"><span class="pl-ent">apiVersion</span>: <span class="pl-s">extensions/v1beta1</span> <span class="pl-ent">kind</span>: <span class="pl-s">Deployment</span> <span class="pl-ent">metadata</span>: <span class="pl-ent">name</span>: <span class="pl-s">nginx-deployment</span> <span class="pl-ent">annotations</span>: <span class="pl-ent">kubernetes.io/change-cause</span>: <span class="pl-s">foo-bar</span> <span class="pl-ent">spec</span>: <span class="pl-ent">replicas</span>: <span class="pl-c1">3</span> <span class="pl-ent">template</span>: <span class="pl-ent">metadata</span>: <span class="pl-ent">labels</span>: <span class="pl-ent">app</span>: <span class="pl-s">nginx</span> <span class="pl-ent">spec</span>: <span class="pl-ent">containers</span>: - <span class="pl-ent">name</span>: <span class="pl-s">nginx</span> <span class="pl-ent">image</span>: <span class="pl-s">nginx:1.7.9</span> <span class="pl-ent">ports</span>: - <span class="pl-ent">containerPort</span>: <span class="pl-c1">80</span></pre></div> <p dir="auto">Delete nginx-desployment and re-create one from scratch</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="kubectl delete deployment/nginx-deployment deployment &quot;nginx-deployment&quot; deleted"><pre class="notranslate">kubectl delete deployment/nginx-deployment deployment <span class="pl-s"><span class="pl-pds">"</span>nginx-deployment<span class="pl-pds">"</span></span> deleted</pre></div> <p dir="auto">Assert deployment is gone:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" kubectl get deployments"><pre class="notranslate"> kubectl get deployments</pre></div> <p dir="auto">Create new nginx-deployment:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="kubectl apply -f nginx-deployment.yaml deployment &quot;nginx-deployment&quot; created kubectl rollout history deployment/nginx-deployment deployments &quot;nginx-deployment&quot;: REVISION CHANGE-CAUSE 1 kubectl apply -f nginx-deployment.yaml"><pre class="notranslate">kubectl apply -f nginx-deployment.yaml deployment <span class="pl-s"><span class="pl-pds">"</span>nginx-deployment<span class="pl-pds">"</span></span> created kubectl rollout <span class="pl-c1">history</span> deployment/nginx-deployment deployments <span class="pl-s"><span class="pl-pds">"</span>nginx-deployment<span class="pl-pds">"</span></span>: REVISION CHANGE-CAUSE 1 kubectl apply -f nginx-deployment.yaml</pre></div> <p dir="auto">Note: <code class="notranslate">CHANGE-CAUSE</code> reflect the actual command and not the value from the file</p> <p dir="auto">Apply the same change again:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="kubectl apply -f nginx-deployment.yaml deployment &quot;nginx-deployment&quot; configured kubectl rollout history deployment/nginx-deployment deployments &quot;nginx-deployment&quot;: REVISION CHANGE-CAUSE 1 foo-bar"><pre class="notranslate">kubectl apply -f nginx-deployment.yaml deployment <span class="pl-s"><span class="pl-pds">"</span>nginx-deployment<span class="pl-pds">"</span></span> configured kubectl rollout <span class="pl-c1">history</span> deployment/nginx-deployment deployments <span class="pl-s"><span class="pl-pds">"</span>nginx-deployment<span class="pl-pds">"</span></span>: REVISION CHANGE-CAUSE 1 foo-bar</pre></div> <p dir="auto">Note: second time around annotation is correctly updated. Since there were no other changes to the deployment, no new pods/replicasets were created.</p> <p dir="auto">Repeat applying the same deployment file and observe alternating value in <code class="notranslate">CHANGE-CAUSE</code></p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="kubectl apply -f nginx-deployment.yaml deployment &quot;nginx-deployment&quot; configured kubectl rollout history deployment/nginx-deployment deployments &quot;nginx-deployment&quot;: REVISION CHANGE-CAUSE 1 kubectl apply -f nginx-deployment.yaml kubectl apply -f nginx-deployment.yaml deployment &quot;nginx-deployment&quot; configured kubectl rollout history deployment/nginx-deployment deployments &quot;nginx-deployment&quot;: REVISION CHANGE-CAUSE 1 foo-bar"><pre class="notranslate">kubectl apply -f nginx-deployment.yaml deployment <span class="pl-s"><span class="pl-pds">"</span>nginx-deployment<span class="pl-pds">"</span></span> configured kubectl rollout <span class="pl-c1">history</span> deployment/nginx-deployment deployments <span class="pl-s"><span class="pl-pds">"</span>nginx-deployment<span class="pl-pds">"</span></span>: REVISION CHANGE-CAUSE 1 kubectl apply -f nginx-deployment.yaml kubectl apply -f nginx-deployment.yaml deployment <span class="pl-s"><span class="pl-pds">"</span>nginx-deployment<span class="pl-pds">"</span></span> configured kubectl rollout <span class="pl-c1">history</span> deployment/nginx-deployment deployments <span class="pl-s"><span class="pl-pds">"</span>nginx-deployment<span class="pl-pds">"</span></span>: REVISION CHANGE-CAUSE 1 foo-bar</pre></div>
<h2 dir="auto">what</h2> <ul dir="auto"> <li>Let the user override the default <code class="notranslate">change-cause</code> generated by <code class="notranslate">kubectl</code> by specifying it in the <code class="notranslate">metadata</code> of the resource file</li> </ul> <p dir="auto">Example:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/52489/15233372/04024156-185d-11e6-8d1f-9f4131bd7829.png"><img src="https://cloud.githubusercontent.com/assets/52489/15233372/04024156-185d-11e6-8d1f-9f4131bd7829.png" alt="image" style="max-width: 100%;"></a></p> <h2 dir="auto">why</h2> <ul dir="auto"> <li>The automatic annotations are not very helpful if the same command is always executed</li> <li>The end-user can provide more meaningful annotations in the context of their application (i.e. git commit messages, git hash, release version, etc)</li> </ul> <h2 dir="auto">note</h2> <p dir="auto">Specifying <code class="notranslate">change-cause</code> sometimes works. Not sure if this is due to a race-condition.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/52489/15233410/59bfb98e-185d-11e6-9989-0822b4c1d1a7.png"><img src="https://cloud.githubusercontent.com/assets/52489/15233410/59bfb98e-185d-11e6-9989-0822b4c1d1a7.png" alt="image" style="max-width: 100%;"></a></p>
1
<p dir="auto">Hello,<br> first, thank you for this amazing library ! :)<br> It is my first time reporting an issue, so please, feel free to let me know if anything is improper.</p> <p dir="auto">The code for reproducibility</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import seaborn as sns import matplotlib.pyplot as plt import pandas as pd a = [0,1,2] b = [1,0,1] df = pd.DataFrame({&quot;a&quot;:a,&quot;b&quot;:b}) print(df) plt.figure(figsize=(10,10)) sns.lineplot(data=df, x='a', y='b') plt.show()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">seaborn</span> <span class="pl-k">as</span> <span class="pl-s1">sns</span> <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-s1">a</span> <span class="pl-c1">=</span> [<span class="pl-c1">0</span>,<span class="pl-c1">1</span>,<span class="pl-c1">2</span>] <span class="pl-s1">b</span> <span class="pl-c1">=</span> [<span class="pl-c1">1</span>,<span class="pl-c1">0</span>,<span class="pl-c1">1</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">a</span>,<span class="pl-s">"b"</span>:<span class="pl-s1">b</span>}) <span class="pl-en">print</span>(<span class="pl-s1">df</span>) <span class="pl-s1">plt</span>.<span class="pl-en">figure</span>(<span class="pl-s1">figsize</span><span class="pl-c1">=</span>(<span class="pl-c1">10</span>,<span class="pl-c1">10</span>)) <span class="pl-s1">sns</span>.<span class="pl-en">lineplot</span>(<span class="pl-s1">data</span><span class="pl-c1">=</span><span class="pl-s1">df</span>, <span class="pl-s1">x</span><span class="pl-c1">=</span><span class="pl-s">'a'</span>, <span class="pl-s1">y</span><span class="pl-c1">=</span><span class="pl-s">'b'</span>) <span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div> <p dir="auto">this is the error I get</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" File &quot;.../venv/lib/python3.10/site-packages/numpy/ma/core.py&quot;, line 2360, in masked_invalid return masked_where(~(np.isfinite(getdata(a))), a, copy=copy) TypeError: ufunc 'isfinite' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''"><pre class="notranslate"><code class="notranslate"> File ".../venv/lib/python3.10/site-packages/numpy/ma/core.py", line 2360, in masked_invalid return masked_where(~(np.isfinite(getdata(a))), a, copy=copy) TypeError: ufunc 'isfinite' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe'' </code></pre></div> <p dir="auto">And finally, here is how I came around it : <code class="notranslate">numpy/ma/core.py</code></p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="def getdata(a, subok=True): &quot;&quot;&quot; [...] &quot;&quot;&quot; try : # added this data = a.to_numpy() # added this except AttributeError: # added this try: data = a._data except AttributeError: data = np.array(a, copy=False, subok=subok) if not subok: return data.view(ndarray) return data"><pre class="notranslate"><span class="pl-k">def</span> <span class="pl-en">getdata</span>(<span class="pl-s1">a</span>, <span class="pl-s1">subok</span><span class="pl-c1">=</span><span class="pl-c1">True</span>): <span class="pl-s">"""</span> <span class="pl-s"> [...]</span> <span class="pl-s"> """</span> <span class="pl-k">try</span> : <span class="pl-c"># added this</span> <span class="pl-s1">data</span> <span class="pl-c1">=</span> <span class="pl-s1">a</span>.<span class="pl-en">to_numpy</span>() <span class="pl-c"># added this</span> <span class="pl-k">except</span> <span class="pl-v">AttributeError</span>: <span class="pl-c"># added this</span> <span class="pl-k">try</span>: <span class="pl-s1">data</span> <span class="pl-c1">=</span> <span class="pl-s1">a</span>.<span class="pl-s1">_data</span> <span class="pl-k">except</span> <span class="pl-v">AttributeError</span>: <span class="pl-s1">data</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>(<span class="pl-s1">a</span>, <span class="pl-s1">copy</span><span class="pl-c1">=</span><span class="pl-c1">False</span>, <span class="pl-s1">subok</span><span class="pl-c1">=</span><span class="pl-s1">subok</span>) <span class="pl-k">if</span> <span class="pl-c1">not</span> <span class="pl-s1">subok</span>: <span class="pl-k">return</span> <span class="pl-s1">data</span>.<span class="pl-en">view</span>(<span class="pl-s1">ndarray</span>) <span class="pl-k">return</span> <span class="pl-s1">data</span></pre></div> <p dir="auto">the code was originally</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" try: data = a._data except AttributeError: data = np.array(a, copy=False, subok=subok) if not subok: return data.view(ndarray) return data"><pre class="notranslate"> <span class="pl-k">try</span>: <span class="pl-s1">data</span> <span class="pl-c1">=</span> <span class="pl-s1">a</span>.<span class="pl-s1">_data</span> <span class="pl-k">except</span> <span class="pl-v">AttributeError</span>: <span class="pl-s1">data</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>(<span class="pl-s1">a</span>, <span class="pl-s1">copy</span><span class="pl-c1">=</span><span class="pl-c1">False</span>, <span class="pl-s1">subok</span><span class="pl-c1">=</span><span class="pl-s1">subok</span>) <span class="pl-k">if</span> <span class="pl-c1">not</span> <span class="pl-s1">subok</span>: <span class="pl-k">return</span> <span class="pl-s1">data</span>.<span class="pl-en">view</span>(<span class="pl-s1">ndarray</span>) <span class="pl-k">return</span> <span class="pl-s1">data</span></pre></div> <p dir="auto">Before modifying the getdata function, I tried reinstalling seaborn, numpy, and matplotlib. But nothing worked.<br> It now works.</p> <p dir="auto">Hoping this can be of some help !</p> <p dir="auto">Please, let me know if any information is missing.</p> <hr> <p dir="auto"><strong>requirements.txt</strong><br> contourpy==1.0.6<br> cycler==0.11.0<br> fonttools==4.38.0<br> geomloss==0.2.5<br> kiwisolver==1.4.4<br> matplotlib==3.6.2<br> networkx==2.8.8<br> numpy==1.24.0<br> nvidia-cublas-cu11==11.10.3.66<br> nvidia-cuda-nvrtc-cu11==11.7.99<br> nvidia-cuda-runtime-cu11==11.7.99<br> nvidia-cudnn-cu11==8.5.0.96<br> packaging==22.0<br> pandas==1.5.2<br> Pillow==9.3.0<br> POT==0.8.2<br> pyparsing==3.0.9<br> PyQt5==5.15.7<br> PyQt5-Qt5==5.15.2<br> PyQt5-sip==12.11.0<br> PyQt6==6.4.0<br> PyQt6-Qt6==6.4.1<br> PyQt6-sip==13.4.0<br> python-dateutil==2.8.2<br> pytz==2022.7<br> scipy==1.9.3<br> seaborn==0.12.1<br> six==1.16.0<br> sklearn==0.0.post1<br> tk==0.1.0<br> torch==1.13.1<br> tqdm==4.64.1<br> typing_extensions==4.4.0</p> <p dir="auto"><strong>system information</strong><br> Python: Python 3.10.9<br> Kernel: 5.15.0-56-generic x86_64<br> bits: 64<br> Desktop: Gnome 3.36.9<br> Distro: Ubuntu 20.04.5 LTS (Focal Fossa)</p>
<p dir="auto">This is the code that I ran</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt import seaborn as sns fmri = sns.load_dataset(&quot;fmri&quot;) fmri.info() sns.set(style=&quot;darkgrid&quot;) sns.lineplot(data=fmri, x=&quot;timepoint&quot;, y=&quot;signal&quot;, hue=&quot;region&quot;, style=&quot;event&quot;) plt.show()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-k">import</span> <span class="pl-s1">seaborn</span> <span class="pl-k">as</span> <span class="pl-s1">sns</span> <span class="pl-s1">fmri</span> <span class="pl-c1">=</span> <span class="pl-s1">sns</span>.<span class="pl-en">load_dataset</span>(<span class="pl-s">"fmri"</span>) <span class="pl-s1">fmri</span>.<span class="pl-en">info</span>() <span class="pl-s1">sns</span>.<span class="pl-en">set</span>(<span class="pl-s1">style</span><span class="pl-c1">=</span><span class="pl-s">"darkgrid"</span>) <span class="pl-s1">sns</span>.<span class="pl-en">lineplot</span>(<span class="pl-s1">data</span><span class="pl-c1">=</span><span class="pl-s1">fmri</span>, <span class="pl-s1">x</span><span class="pl-c1">=</span><span class="pl-s">"timepoint"</span>, <span class="pl-s1">y</span><span class="pl-c1">=</span><span class="pl-s">"signal"</span>, <span class="pl-s1">hue</span><span class="pl-c1">=</span><span class="pl-s">"region"</span>, <span class="pl-s1">style</span><span class="pl-c1">=</span><span class="pl-s">"event"</span>) <span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div> <p dir="auto">This is the error I got</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="❯ python3 example.py &lt;class 'pandas.core.frame.DataFrame'&gt; RangeIndex: 1064 entries, 0 to 1063 Data columns (total 5 columns): # Column Non-Null Count Dtype --- ------ -------------- ----- 0 subject 1064 non-null object 1 timepoint 1064 non-null int64 2 event 1064 non-null object 3 region 1064 non-null object 4 signal 1064 non-null float64 dtypes: float64(1), int64(1), object(3) memory usage: 41.7+ KB Traceback (most recent call last): File &quot;/home/rizwan/Downloads/Seaborn-Issue/example.py&quot;, line 8, in &lt;module&gt; sns.lineplot( File &quot;/home/rizwan/Miniconda3/envs/py39/lib/python3.9/site-packages/seaborn/relational.py&quot;, line 645, in lineplot p.plot(ax, kwargs) File &quot;/home/rizwan/Miniconda3/envs/py39/lib/python3.9/site-packages/seaborn/relational.py&quot;, line 489, in plot func( File &quot;/home/rizwan/Miniconda3/envs/py39/lib/python3.9/site-packages/matplotlib/__init__.py&quot;, line 1423, in inner return func(ax, *map(sanitize_sequence, args), **kwargs) File &quot;/home/rizwan/Miniconda3/envs/py39/lib/python3.9/site-packages/matplotlib/axes/_axes.py&quot;, line 5367, in fill_between return self._fill_between_x_or_y( File &quot;/home/rizwan/Miniconda3/envs/py39/lib/python3.9/site-packages/matplotlib/axes/_axes.py&quot;, line 5272, in _fill_between_x_or_y ind, dep1, dep2 = map( File &quot;/home/rizwan/Miniconda3/envs/py39/lib/python3.9/site-packages/numpy/ma/core.py&quot;, line 2360, in masked_invalid return masked_where(~(np.isfinite(getdata(a))), a, copy=copy) TypeError: ufunc 'isfinite' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''"><pre class="notranslate">❯ <span class="pl-s1">python3</span> <span class="pl-s1">example</span>.<span class="pl-s1">py</span> <span class="pl-c1">&lt;</span><span class="pl-k">class</span> <span class="pl-s">'pandas.core.frame.DataFrame'</span><span class="pl-c1">&gt;</span> <span class="pl-v">RangeIndex</span>: <span class="pl-c1">1064</span> <span class="pl-s1">entries</span>, <span class="pl-c1">0</span> <span class="pl-s1">to</span> <span class="pl-c1">1063</span> <span class="pl-v">Data</span> <span class="pl-en">columns</span> (<span class="pl-s1">total</span> <span class="pl-c1">5</span> <span class="pl-s1">columns</span>): <span class="pl-c"># Column Non-Null Count Dtype </span> <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span> <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span> <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span> <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span> <span class="pl-c1">0</span> <span class="pl-s1">subject</span> <span class="pl-c1">1064</span> <span class="pl-s1">non</span><span class="pl-c1">-</span><span class="pl-s1">null</span> <span class="pl-s1">object</span> <span class="pl-c1">1</span> <span class="pl-s1">timepoint</span> <span class="pl-c1">1064</span> <span class="pl-s1">non</span><span class="pl-c1">-</span><span class="pl-s1">null</span> <span class="pl-s1">int64</span> <span class="pl-c1">2</span> <span class="pl-s1">event</span> <span class="pl-c1">1064</span> <span class="pl-s1">non</span><span class="pl-c1">-</span><span class="pl-s1">null</span> <span class="pl-s1">object</span> <span class="pl-c1">3</span> <span class="pl-s1">region</span> <span class="pl-c1">1064</span> <span class="pl-s1">non</span><span class="pl-c1">-</span><span class="pl-s1">null</span> <span class="pl-s1">object</span> <span class="pl-c1">4</span> <span class="pl-s1">signal</span> <span class="pl-c1">1064</span> <span class="pl-s1">non</span><span class="pl-c1">-</span><span class="pl-s1">null</span> <span class="pl-s1">float64</span> <span class="pl-s1">dtypes</span>: <span class="pl-en">float64</span>(<span class="pl-c1">1</span>), <span class="pl-en">int64</span>(<span class="pl-c1">1</span>), <span class="pl-en">object</span>(<span class="pl-c1">3</span>) <span class="pl-s1">memory</span> <span class="pl-s1">usage</span>: <span class="pl-c1">41.7</span><span class="pl-c1">+</span> <span class="pl-v">KB</span> <span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>): <span class="pl-v">File</span> <span class="pl-s">"/home/rizwan/Downloads/Seaborn-Issue/example.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">8</span>, <span class="pl-s1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span> <span class="pl-s1">sns</span>.<span class="pl-s1">lineplot</span>( <span class="pl-v">File</span> <span class="pl-s">"/home/rizwan/Miniconda3/envs/py39/lib/python3.9/site-packages/seaborn/relational.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">645</span>, <span class="pl-s1">in</span> <span class="pl-s1">lineplot</span> <span class="pl-s1">p</span>.<span class="pl-en">plot</span>(<span class="pl-s1">ax</span>, <span class="pl-s1">kwargs</span>) <span class="pl-v">File</span> <span class="pl-s">"/home/rizwan/Miniconda3/envs/py39/lib/python3.9/site-packages/seaborn/relational.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">489</span>, <span class="pl-s1">in</span> <span class="pl-s1">plot</span> <span class="pl-s1">func</span>( <span class="pl-v">File</span> <span class="pl-s">"/home/rizwan/Miniconda3/envs/py39/lib/python3.9/site-packages/matplotlib/__init__.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">1423</span>, <span class="pl-s1">in</span> <span class="pl-s1">inner</span> <span class="pl-s1">return</span> <span class="pl-en">func</span>(<span class="pl-s1">ax</span>, <span class="pl-c1">*</span><span class="pl-en">map</span>(<span class="pl-s1">sanitize_sequence</span>, <span class="pl-s1">args</span>), <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>) <span class="pl-v">File</span> <span class="pl-s">"/home/rizwan/Miniconda3/envs/py39/lib/python3.9/site-packages/matplotlib/axes/_axes.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">5367</span>, <span class="pl-s1">in</span> <span class="pl-s1">fill_between</span> <span class="pl-s1">return</span> <span class="pl-s1">self</span>.<span class="pl-s1">_fill_between_x_or_y</span>( <span class="pl-v">File</span> <span class="pl-s">"/home/rizwan/Miniconda3/envs/py39/lib/python3.9/site-packages/matplotlib/axes/_axes.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">5272</span>, <span class="pl-s1">in</span> <span class="pl-s1">_fill_between_x_or_y</span> <span class="pl-s1">ind</span>, <span class="pl-s1">dep1</span>, <span class="pl-s1">dep2</span> <span class="pl-c1">=</span> <span class="pl-s1">map</span>( <span class="pl-v">File</span> <span class="pl-s">"/home/rizwan/Miniconda3/envs/py39/lib/python3.9/site-packages/numpy/ma/core.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">2360</span>, <span class="pl-s1">in</span> <span class="pl-s1">masked_invalid</span> <span class="pl-s1">return</span> <span class="pl-en">masked_where</span>(<span class="pl-c1">~</span>(<span class="pl-s1">np</span>.<span class="pl-en">isfinite</span>(<span class="pl-en">getdata</span>(<span class="pl-s1">a</span>))), <span class="pl-s1">a</span>, <span class="pl-s1">copy</span><span class="pl-c1">=</span><span class="pl-s1">copy</span>) <span class="pl-v">TypeError</span>: <span class="pl-s1">ufunc</span> <span class="pl-s">'isfinite'</span> <span class="pl-c1">not</span> <span class="pl-s1">supported</span> <span class="pl-k">for</span> <span class="pl-s1">the</span> <span class="pl-s1">input</span> <span class="pl-s1">types</span>, <span class="pl-s1">and</span> <span class="pl-s1">the</span> <span class="pl-s1">inputs</span> <span class="pl-s1">could</span> <span class="pl-c1">not</span> <span class="pl-s1">be</span> <span class="pl-s1">safely</span> <span class="pl-s1">coerced</span> <span class="pl-s1">to</span> <span class="pl-s1">any</span> <span class="pl-s1">supported</span> <span class="pl-s1">types</span> <span class="pl-s1">according</span> <span class="pl-s1">to</span> <span class="pl-s1">the</span> <span class="pl-s1">casting</span> <span class="pl-s1">rule</span> <span class="pl-s">''</span><span class="pl-s1">safe</span><span class="pl-s">''</span></pre></div> <p dir="auto">Environment</p> <ul dir="auto"> <li>Python <code class="notranslate">3.9.15</code></li> <li>Seaborn <code class="notranslate">0.12.1</code></li> <li>Matplotlib <code class="notranslate">3.6.2</code></li> <li>Pandas <code class="notranslate">1.5.2</code></li> <li>Numpy <code class="notranslate">1.24.0</code></li> </ul> <p dir="auto">This error only occurs when I use numpy <code class="notranslate">1.24.0</code>, version <code class="notranslate">1.23.5</code> or lower works as usual.</p>
1
<p dir="auto">I am suggesting to create opencollective and spent this money to contests and grants.</p> <p dir="auto">For example:</p> <ul dir="auto"> <li>grant for new Three.js UI</li> <li>contest with particles</li> <li>etc.</li> </ul> <p dir="auto">This is not duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="227940815" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/11318" data-hovercard-type="issue" data-hovercard-url="/mrdoob/three.js/issues/11318/hovercard" href="https://github.com/mrdoob/three.js/issues/11318">#11318</a> because this issue more about contests than OpenCollective and suggesting how to spend this fund.</p>
<p dir="auto">Being able to provide an optional callback function to customize the URLs being requested by ColladaLoader would be very appreciated.The function would be unique per ColladaLoader instance, and would create the URL parameter of the THREE.ImageUtils.loadTexture() call around line 3483, and possibly the DAE around 109 (I know we can already provide the exact URL there, but it might be nice to be able to provide a general filename to ColladaLoader.load() and have it wrapped through the same URLizer as well).</p>
0
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=sbtourist" rel="nofollow">Sergio Bossa</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-4433?redirect=false" rel="nofollow">SPR-4433</a></strong> and commented</p> <p dir="auto">The protected ServletRequestAttributes#getSession(boolean ) method returns a null session on child threads.<br> This is wrong because it doesn't get into account what happens in the constructor:</p> <p dir="auto">[code]<br> public ServletRequestAttributes(HttpServletRequest request) {<br> Assert.notNull(request, "Request must not be null");<br> this.request = request;<br> // Fetch existing session reference early, to have it available even<br> // after request completion (for example, in a custom child thread).<br> this.session = request.getSession(false);<br> }<br> [/code]</p> <p dir="auto">I think that the following code into the getSession method:</p> <p dir="auto">[code]<br> this.session = this.request.getSession(allowCreate);<br> return this.session;<br> [/code]</p> <p dir="auto">Should be as follows:</p> <p dir="auto">[code]<br> HttpSession newSession = this.request.getSession(allowCreate);<br> if (newSession != null) {<br> this.session = newSession;<br> }<br> return this.session;<br> [/code]</p> <hr> <p dir="auto"><strong>Affects:</strong> 2.0.8</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="398085356" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/9112" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/9112/hovercard" href="https://github.com/spring-projects/spring-framework/issues/9112">#9112</a> ServletRequestAttributes wrongly returns a null http session on child threads. (<em><strong>"duplicates"</strong></em>)</li> </ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=sbrannen" rel="nofollow">Sam Brannen</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9619?redirect=false" rel="nofollow">SPR-9619</a></strong> and commented</p> <h4 dir="auto">Status Quo</h4> <p dir="auto">Unlike the Spring .NET Expression Language, the Spring Expression Language currently does not provide a means to retrieve unique elements within a collection.</p> <hr> <h4 dir="auto">Use Case and Work-Around</h4> <p dir="auto">With raw collection <em>projection</em>, the resulting collection may well contain duplicates due to the nature of the data. Some use cases, however, may require that the projection contains unique results.</p> <p dir="auto">To solve this problem within a SpEL expression (in Spring 3.0.x and 3.1.x) we can implement a work-around by adding the projected elements to a <code class="notranslate">Set</code> that will automatically remove any duplicates (assuming the objects stored in the collection properly implement <code class="notranslate">equals()</code>).</p> <p dir="auto">In the following example we instantiate a <code class="notranslate">HashSet</code>, passing it a list projection, thereby removing duplicates.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// Book contains: List&lt;Author&gt; authors; // Author contains: Address address; // Address contains: String country; // Book book = ... EvaluationContext context = new StandardEvaluationContext(book); ExpressionParser parser = new SpelExpressionParser(); Expression exp = parser.parseExpression(&quot;new java.util.HashSet(authors.![address.country])&quot;); Set&lt;String&gt; uniqueCountries = (Set&lt;String&gt;) exp.getValue(context);"><pre class="notranslate"><code class="notranslate">// Book contains: List&lt;Author&gt; authors; // Author contains: Address address; // Address contains: String country; // Book book = ... EvaluationContext context = new StandardEvaluationContext(book); ExpressionParser parser = new SpelExpressionParser(); Expression exp = parser.parseExpression("new java.util.HashSet(authors.![address.country])"); Set&lt;String&gt; uniqueCountries = (Set&lt;String&gt;) exp.getValue(context); </code></pre></div> <hr> <h4 dir="auto">Deliverables</h4> <ol dir="auto"> <li>Add a <code class="notranslate">unique()</code> collection processor to SpEL, analogous to the <code class="notranslate">distinct()</code> collection processor from Spring .NET (see <em>Further Resources</em>)</li> <li>Consider supporting the remaining 'collection processors and aggregators' from .NET</li> </ol> <hr> <h4 dir="auto">Further Resources</h4> <ul dir="auto"> <li><a href="http://www.springframework.net/doc-latest/reference/html/expressions.html#d4e3398" rel="nofollow">Distinct Processor</a> functionality from the Spring .NET Expression Language</li> </ul> <hr> <p dir="auto"><strong>Affects:</strong> 3.0 GA, 3.1.2</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/zeit/next.js/issues?q=is%3Aissue">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <p dir="auto">next.config.js</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="module.exports = (phase, { defaultConfig }) =&gt; { return { publicRuntimeConfig: { defaultEnvironmentSettings: 'test', }, webpack: (config, { buildId, dev, isServer, defaultLoaders }) =&gt; { // XXX https://github.com/evanw/node-source-map-support/issues/155 config.node = { fs: 'empty', module: 'empty', }; return config; }, }; }; "><pre class="notranslate"><span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-en">exports</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">phase</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> defaultConfig <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-kos">{</span> <span class="pl-c1">publicRuntimeConfig</span>: <span class="pl-kos">{</span> <span class="pl-c1">defaultEnvironmentSettings</span>: <span class="pl-s">'test'</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-en">webpack</span>: <span class="pl-kos">(</span><span class="pl-s1">config</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> buildId<span class="pl-kos">,</span> dev<span class="pl-kos">,</span> isServer<span class="pl-kos">,</span> defaultLoaders <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-c">// XXX https://github.com/evanw/node-source-map-support/issues/155</span> <span class="pl-s1">config</span><span class="pl-kos">.</span><span class="pl-c1">node</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">fs</span>: <span class="pl-s">'empty'</span><span class="pl-kos">,</span> <span class="pl-c1">module</span>: <span class="pl-s">'empty'</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">config</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div> <p dir="auto">page</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const { publicRuntimeConfig } = getConfig(); const { groupSettings, url } = this.props; const schoolName = url.query.schoolName; console.log('publicRuntimeConfig', publicRuntimeConfig) // publicRuntimeConfig undefined console.log('getConfig()', getConfig()) // getConfig() serverRuntimeConfig:{}, publicRuntimeConfig: undefined "><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-kos">{</span> publicRuntimeConfig <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-en">getConfig</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> groupSettings<span class="pl-kos">,</span> url <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">props</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">schoolName</span> <span class="pl-c1">=</span> <span class="pl-s1">url</span><span class="pl-kos">.</span><span class="pl-c1">query</span><span class="pl-kos">.</span><span class="pl-c1">schoolName</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">'publicRuntimeConfig'</span><span class="pl-kos">,</span> <span class="pl-s1">publicRuntimeConfig</span><span class="pl-kos">)</span> <span class="pl-c">// publicRuntimeConfig undefined</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">'getConfig()'</span><span class="pl-kos">,</span> <span class="pl-en">getConfig</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-c">// getConfig() serverRuntimeConfig:{}, publicRuntimeConfig: undefined</span></pre></div> <h2 dir="auto">Context</h2> <p dir="auto"><code class="notranslate">publicRuntimeConfig</code> is undefined</p> <p dir="auto">This only happens when I use <code class="notranslate">NODE_ENV staging</code>, it works fine in development mode. (I haven't tested against production env)</p> <p dir="auto">Note that my staging environment is hosted on AWS lambda, but it's maybe not related to the issue.</p>
<p dir="auto">Although I see the use case for this, I personally will never use this feature.</p> <p dir="auto">I lose too much flexibility &amp; reusability (and/or gain awkwardness) by not using SASS/Stylus/whatever. And with a cached, single (or not) stylesheet, I won't suffer any performance loss by not taking the small, as-needed css module approach.</p> <blockquote> <p dir="auto">Plus, imo, the CSS module / Shadow-dom styles approach isn't fully solved yet. As <a href="https://github.com/zeit/next.js/issues/22#issuecomment-256417971" data-hovercard-type="issue" data-hovercard-url="/vercel/next.js/issues/22/hovercard">mentioned</a>, when each component prints its own styles, excessive duplicates add up quickly. Of course, this is not a <code class="notranslate">next.js</code> or <code class="notranslate">glamor</code> issue specifically, but part of the reason why I find it makes more sense to compile styles ahead of time.</p> </blockquote> <p dir="auto">So, with as easy as it is to attach static assets in the <code class="notranslate">&lt;Head /&gt;</code>, I think <code class="notranslate">glamor</code> should be opt-in or opt-out.</p> <p dir="auto">As it is, I have to require &amp; load all of <code class="notranslate">glamor</code> regardless of my choice of architecture. <g-emoji class="g-emoji" alias="crying_cat_face" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f63f.png">😿</g-emoji></p>
0
<h1 dir="auto"> does not work in production</h1> <p dir="auto">I'm having an issue with next link, on my development environment the component work really well, i have included the code for the component bellow, my main issue is when i deploy to production (im using zeit now) the link does not work and anything happens when the button is clicked, <strong>no consol errors</strong></p> <h2 dir="auto">Component</h2> <p dir="auto"><code class="notranslate"> import Link from 'next/link'; import { ShopingCartNavIcon } from '../../lib/icons'; const CheckoutButton = () =&gt; { return ( &lt;Link href='/cart'&gt; &lt;button class='nav--cart--btn' title='Shopping Cart'&gt; &lt;span&gt;Shopping Cart&lt;/span&gt; &lt;ShopingCartNavIcon /&gt; &lt;/button&gt; &lt;/Link&gt; ); }; export default CheckoutButton;</code></p> <h2 dir="auto">Expected behavior</h2> <p dir="auto">To redirect the user to the Cart page.</p> <h2 dir="auto">System information</h2> <ul dir="auto"> <li>OS: Windows 10</li> <li>Browser chrome</li> <li>Version of Next.js: 9.1.4</li> </ul>
<p dir="auto">This is bug report</p> <p dir="auto">Link does not work with css-module imported. That happens when page with Link has no css, and linked page has. No errors in console, so im not sure about reasons, but there is minimal repo to reproduce:<br> <a href="https://github.com/standy/next-css-error">https://github.com/standy/next-css-error</a></p> <p dir="auto">Bug appears in <code class="notranslate">[email protected]</code> + <code class="notranslate">[email protected]</code>,<br> Older <code class="notranslate">[email protected]</code> + <code class="notranslate">[email protected]</code> works fine</p>
1
<p dir="auto">Hello.</p> <p dir="auto">We using react for some our projects and found, what on staging servers it start generate warning about "It looks like you're using a minified copy of the development build of React. When deploying React apps to production, make sure to use the production build which skips development warnings and is faster".</p> <p dir="auto">We still need all possible warnings about propTypes or about controlled/uncontrolled components to debug all issues on environment, which as close as possible to production, but still is not production. In this case "staging" environment should be builded with minification to check app before delivering on production.</p> <p dir="auto">Proposal: remove this warning (</p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/facebook/react/blob/67f8524e88abbf1ac0fd86d38a0477d11fbc7b3e/src/renderers/dom/ReactDOM.js#L94-L100">react/src/renderers/dom/ReactDOM.js</a> </p> <p class="mb-0 color-fg-muted"> Lines 94 to 100 in <a data-pjax="true" class="commit-tease-sha" href="/facebook/react/commit/67f8524e88abbf1ac0fd86d38a0477d11fbc7b3e">67f8524</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="L94" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="94"></td> <td id="LC94" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">warning</span><span class="pl-kos">(</span> </td> </tr> <tr class="border-0"> <td id="L95" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="95"></td> <td id="LC95" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-kos">(</span><span class="pl-en">testFunc</span><span class="pl-kos">.</span><span class="pl-c1">name</span> <span class="pl-c1">||</span> <span class="pl-en">testFunc</span><span class="pl-kos">.</span><span class="pl-en">toString</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">indexOf</span><span class="pl-kos">(</span><span class="pl-s">'testFn'</span><span class="pl-kos">)</span> <span class="pl-c1">!==</span> <span class="pl-c1">-</span><span class="pl-c1">1</span><span class="pl-kos">,</span> </td> </tr> <tr class="border-0"> <td id="L96" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="96"></td> <td id="LC96" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s">'It looks like you\'re using a minified copy of the development build '</span> <span class="pl-c1">+</span> </td> </tr> <tr class="border-0"> <td id="L97" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="97"></td> <td id="LC97" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s">'of React. When deploying React apps to production, make sure to use '</span> <span class="pl-c1">+</span> </td> </tr> <tr class="border-0"> <td id="L98" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="98"></td> <td id="LC98" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s">'the production build which skips development warnings and is faster. '</span> <span class="pl-c1">+</span> </td> </tr> <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-s">'See https://fb.me/react-minification for more details.'</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-kos">)</span><span class="pl-kos">;</span> </td> </tr> </tbody></table> </div> </div> ) for <code class="notranslate">NODE_ENV === 'staging'</code> env, if this possible.<p></p> <p dir="auto">Thanks.</p>
<p dir="auto">Hello. Since upgrading to v15 I get this all over the place in my unit tests:</p> <p dir="auto"><code class="notranslate">Warning: It looks like you're using a minified copy of the development build of React. When deploying React apps to production, make sure to use the production build which skips development warnings and is faster. See https://fb.me/react-minification for more details.</code></p> <p dir="auto">This warning makes sense in prod but in my case, my toolchain is a little different; I use React with Scala and build a special <code class="notranslate">test-deps.js</code> containing all external JS required by unit tests. Minimising it means it loads faster and so I end up with a valid case for a minimisation of the React dev.</p> <p dir="auto">Is there a way to remove this warning? It appears a heap of times as my tests are concurrent.</p>
1
<h3 dir="auto">Problem description</h3> <p dir="auto">When a click for the first time on a Link which is inside of a MenuItem and an IconMenu it shows the following warning in the browser's console :</p> <p dir="auto">warning.js:44 Warning: Unknown props <code class="notranslate">desktop</code>, <code class="notranslate">focusState</code> on tag. Remove these props from the element. For details, see <a href="https://fb.me/react-unknown-prop" rel="nofollow">https://fb.me/react-unknown-prop</a><br> in a (created by Link)<br> in Link (created by Menu)<br> in div (created by List)<br> in List (created by Menu)<br> in div (created by Menu)<br> in ClickAwayListener (created by Menu)<br> in Menu (created by IconMenu)<br> in div (created by PopoverDefaultAnimation)<br> in div (created by PopoverDefaultAnimation)<br> in div (created by Paper)<br> in Paper (created by PopoverDefaultAnimation)<br> in PopoverDefaultAnimation</p> <p dir="auto">The waring it is display just the firs time you click on it, subsequent clicks no longer display the warining</p> <h3 dir="auto">Steps to reproduce</h3> <p dir="auto">Use the following code and click on "settings" item :</p> <p dir="auto">import IconButton from 'material-ui/IconButton';<br> import IconMenu from 'material-ui/IconMenu';<br> import MenuItem from 'material-ui/MenuItem';<br> import ArrowDropRight from 'material-ui/svg-icons/navigation-arrow-drop-right';<br> import Divider from 'material-ui/Divider';<br> import SettingsIcon from 'material-ui/svg-icons/action/settings';<br> import ConnectIcon from 'material-ui/svg-icons/action/settings-remote';</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;IconMenu iconButtonElement={ &lt;IconButton tooltipPosition=&quot;top-left&quot; &gt; &lt;DashboardIcon/&gt; &lt;/IconButton&gt; } targetOrigin={{horizontal: 'right', vertical: 'top'}} anchorOrigin={{horizontal: 'right', vertical: 'top'}}&gt; &lt;MenuItem primaryText=&quot;settings&quot; leftIcon={&lt;SettingsIcon /&gt;} rightIcon={&lt;ArrowDropRight /&gt;} menuItems={[ &lt;Link to=&quot;/settings&quot; style={{textDecoration:'none'}}&gt; &lt;MenuItem primaryText=&quot;connect&quot; leftIcon={&lt;ConnectIcon /&gt;}/&gt; &lt;/Link&gt; ]} /&gt; &lt;/IconMenu&gt;"><pre class="notranslate"><code class="notranslate">&lt;IconMenu iconButtonElement={ &lt;IconButton tooltipPosition="top-left" &gt; &lt;DashboardIcon/&gt; &lt;/IconButton&gt; } targetOrigin={{horizontal: 'right', vertical: 'top'}} anchorOrigin={{horizontal: 'right', vertical: 'top'}}&gt; &lt;MenuItem primaryText="settings" leftIcon={&lt;SettingsIcon /&gt;} rightIcon={&lt;ArrowDropRight /&gt;} menuItems={[ &lt;Link to="/settings" style={{textDecoration:'none'}}&gt; &lt;MenuItem primaryText="connect" leftIcon={&lt;ConnectIcon /&gt;}/&gt; &lt;/Link&gt; ]} /&gt; &lt;/IconMenu&gt; </code></pre></div> <h3 dir="auto">Versions</h3> <ul dir="auto"> <li>Material-UI: 0.15.4</li> <li>React: 15.0.2</li> <li>Browser: Chrome Version 52.0.2743.116 (64-bit)</li> </ul>
<h3 dir="auto">Spotted errors</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Warning: Unknown props `desktop`, `focusState` on &lt;a&gt; tag. Remove these props from the element. in a (created by Link) in Link (created by Menu) in div (created by List) in List (created by Menu) in div (created by Menu) in ClickAwayListener (created by Menu) in Menu (created by IconMenu) in div (created by PopoverDefaultAnimation) in div (created by PopoverDefaultAnimation) in div (created by Paper) in Paper (created by PopoverDefaultAnimation) in PopoverDefaultAnimationwarning Warning: Unknown prop `onKeyboardFocus` on &lt;div&gt; tag. Remove this prop from the element. in div (created by MyComponent) in div (created by ListItem) in div (created by TouchRipple) in TouchRipple (created by EnhancedButton) in span (created by EnhancedButton) in EnhancedButton (created by ListItem) in div (created by ListItem) ..."><pre class="notranslate"><code class="notranslate">Warning: Unknown props `desktop`, `focusState` on &lt;a&gt; tag. Remove these props from the element. in a (created by Link) in Link (created by Menu) in div (created by List) in List (created by Menu) in div (created by Menu) in ClickAwayListener (created by Menu) in Menu (created by IconMenu) in div (created by PopoverDefaultAnimation) in div (created by PopoverDefaultAnimation) in div (created by Paper) in Paper (created by PopoverDefaultAnimation) in PopoverDefaultAnimationwarning Warning: Unknown prop `onKeyboardFocus` on &lt;div&gt; tag. Remove this prop from the element. in div (created by MyComponent) in div (created by ListItem) in div (created by TouchRipple) in TouchRipple (created by EnhancedButton) in span (created by EnhancedButton) in EnhancedButton (created by ListItem) in div (created by ListItem) ... </code></pre></div> <h3 dir="auto">Steps to reproduce</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import React, { Component, PropTypes } from 'react' import { Link } from 'react-router' ... &lt;AppBar iconElementRight={ &lt;IconMenu iconButtonElement={&lt;IconButton&gt;&lt;MenuIcon color={white} /&gt;&lt;/IconButton&gt;} targetOrigin={{horizontal: 'right', vertical: 'top'}} anchorOrigin={{horizontal: 'right', vertical: 'top'}} &gt; &lt;Link to='/route1'&gt; &lt;MenuItem leftIcon={&lt;Person /&gt;} primaryText='Item 1' /&gt; &lt;/Link&gt; &lt;Link to='/route2'&gt; &lt;MenuItem leftIcon={&lt;SupervisorAccounts /&gt;} primaryText='Item 2' /&gt; &lt;/Link&gt; &lt;Link to='/route3'&gt; &lt;MenuItem leftIcon={&lt;ViewList /&gt;} primaryText='Item 3' /&gt; &lt;/Link&gt; &lt;Divider /&gt; &lt;Link to='/route4'&gt; &lt;MenuItem leftIcon={&lt;PowerSettingNew /&gt;} primaryText='Item 4' /&gt; &lt;/Link&gt; &lt;/IconMenu&gt; } /&gt;"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-v">React</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-v">Component</span><span class="pl-kos">,</span> <span class="pl-v">PropTypes</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'react'</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-v">Link</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'react-router'</span> <span class="pl-kos">.</span><span class="pl-kos">.</span><span class="pl-kos">.</span> <span class="pl-c1">&lt;</span><span class="pl-v">AppBar</span> <span class="pl-s1">iconElementRight</span><span class="pl-c1">=</span><span class="pl-kos">{</span> <span class="pl-c1">&lt;</span><span class="pl-ent">IconMenu</span> <span class="pl-c1">iconButtonElement</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">&lt;</span><span class="pl-ent">IconButton</span><span class="pl-c1">&gt;</span><span class="pl-c1">&lt;</span><span class="pl-ent">MenuIcon</span> <span class="pl-c1">color</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">white</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">IconButton</span><span class="pl-c1">&gt;</span><span class="pl-kos">}</span> <span class="pl-c1">targetOrigin</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-kos">{</span><span class="pl-c1">horizontal</span>: <span class="pl-s">'right'</span><span class="pl-kos">,</span> <span class="pl-c1">vertical</span>: <span class="pl-s">'top'</span><span class="pl-kos">}</span><span class="pl-kos">}</span> <span class="pl-c1">anchorOrigin</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-kos">{</span><span class="pl-c1">horizontal</span>: <span class="pl-s">'right'</span><span class="pl-kos">,</span> <span class="pl-c1">vertical</span>: <span class="pl-s">'top'</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">Link</span> <span class="pl-c1">to</span><span class="pl-c1">=</span><span class="pl-s">'/route1'</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">MenuItem</span> <span class="pl-c1">leftIcon</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">&lt;</span><span class="pl-ent">Person</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span><span class="pl-kos">}</span> <span class="pl-c1">primaryText</span><span class="pl-c1">=</span><span class="pl-s">'Item 1'</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">Link</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">Link</span> <span class="pl-c1">to</span><span class="pl-c1">=</span><span class="pl-s">'/route2'</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">MenuItem</span> <span class="pl-c1">leftIcon</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">&lt;</span><span class="pl-ent">SupervisorAccounts</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span><span class="pl-kos">}</span> <span class="pl-c1">primaryText</span><span class="pl-c1">=</span><span class="pl-s">'Item 2'</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">Link</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">Link</span> <span class="pl-c1">to</span><span class="pl-c1">=</span><span class="pl-s">'/route3'</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">MenuItem</span> <span class="pl-c1">leftIcon</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">&lt;</span><span class="pl-ent">ViewList</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span><span class="pl-kos">}</span> <span class="pl-c1">primaryText</span><span class="pl-c1">=</span><span class="pl-s">'Item 3'</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">Link</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">Divider</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">Link</span> <span class="pl-c1">to</span><span class="pl-c1">=</span><span class="pl-s">'/route4'</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">MenuItem</span> <span class="pl-c1">leftIcon</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">&lt;</span><span class="pl-ent">PowerSettingNew</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span><span class="pl-kos">}</span> <span class="pl-c1">primaryText</span><span class="pl-c1">=</span><span class="pl-s">'Item 4'</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">Link</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">IconMenu</span><span class="pl-c1">&gt;</span> <span class="pl-kos">}</span> <span class="pl-c1">/</span>&gt;</pre></div> <h3 dir="auto">Versions</h3> <ul dir="auto"> <li>Material-UI: 0.15.3</li> <li>React: 15.3.0</li> <li>React-router: 2.6.1</li> <li>Browser: Chrome</li> </ul> <h3 dir="auto">Description</h3> <p dir="auto">Despite lot of warnings were removed with MUI 15.3, the 2 above still remains.<br> The first warning triggers after clicking on the menu icon.<br> The 2nd one is from loading another page</p>
1
<pre class="notranslate">Before filing a bug, please check whether it has been fixed since the latest release: run "hg pull -u" and retry what you did to reproduce the problem. Thanks. What steps will reproduce the problem? 1.goinstall github.com/mattn/go-gtk/gtk 2.open browser to <a href="http://godashboard.appspot.com/package" rel="nofollow">http://godashboard.appspot.com/package</a> What is the expected output? Should be display github.com/mattn/go-gtk/gtk What do you see instead? display github.com/mattn/go-gtk Which compiler are you using (5g, 6g, 8g, gccgo)? It is not a problem of golang. This is a bug in $GOROOT/misc/dashboard. Then, I don't know about appengine's description. Which operating system are you using? same above. Which revision are you using? (hg identify) same above. Please provide any additional information below. same above.</pre>
<p dir="auto">The following problem occurs in the gcc5 branch and trunk. It was found when testing on pp64le Ubuntu 14.04 and 14.10 but the problem also occurs on x86 with gccgo. It works with golang on both platforms.</p> <p dir="auto">Here is a testcase that demonstrates the failure:</p> <p dir="auto">package main</p> <p dir="auto">import (<br> "encoding/json"<br> "fmt"<br> )</p> <p dir="auto">type HostConfig struct {<br> Memory int64<br> }</p> <p dir="auto">type Config struct {<br> Hostname string<br> }</p> <p dir="auto">type hostConfigWrapper struct {<br> InnerHostConfig *HostConfig<br> }</p> <p dir="auto">type ContainerConfigWrapper struct {<br> *Config<br> *hostConfigWrapper<br> }</p> <p dir="auto">func main() {</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" conf := Config{ Hostname: &quot;test1&quot;, } hostConf := HostConfig{ Memory: 2048, } var hc hostConfigWrapper hc.InnerHostConfig = &amp;hostConf var cf ContainerConfigWrapper cf.Config = &amp;conf cf.hostConfigWrapper = &amp;hc out1, _ := json.Marshal(cf) fmt.Println(&quot;marshalled data %v\n&quot;,string(out1))"><pre class="notranslate"><code class="notranslate"> conf := Config{ Hostname: "test1", } hostConf := HostConfig{ Memory: 2048, } var hc hostConfigWrapper hc.InnerHostConfig = &amp;hostConf var cf ContainerConfigWrapper cf.Config = &amp;conf cf.hostConfigWrapper = &amp;hc out1, _ := json.Marshal(cf) fmt.Println("marshalled data %v\n",string(out1)) </code></pre></div> <p dir="auto">}</p> <p dir="auto">Output should be:<br> marshalled data %v<br> {"Hostname":"test1","InnerHostConfig":{"Memory":2048}}</p> <p dir="auto">Output with gccgo:<br> marshalled data %v<br> {"Hostname":"test1"}</p>
0
<p dir="auto">Hi,</p> <p dir="auto">I've searched the sources to find an equivalent to the Parser and Formatter-concept in AngularJS 1.x. As it looks like, we can use custom Value-Accessors to format and parse bindings.</p> <ul dir="auto"> <li>Is this a good idea?</li> <li>If yes, is the following implementation (that works and parses/formats a German Date in the format Day.Month.Year) ok?</li> <li>We are using multi-bindings here. How does Angular 2 behave, when there is more then one Accessor for one component?</li> </ul> <p dir="auto">Wishes,<br> Manfred</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import {Directive, Renderer, ElementRef, Self, forwardRef, Provider} from 'angular2/core'; import {NG_VALUE_ACCESSOR, DefaultValueAccessor } from 'angular2/common'; import {CONST_EXPR} from 'angular2/src/facade/lang'; const PROVIDER = CONST_EXPR(new Provider( NG_VALUE_ACCESSOR, {useExisting: forwardRef(() =&gt; DateValueAccessor), multi: true})); @Directive({ selector: 'input[date]', host: {'(input)': 'input($event.target.value)', '(blur)': 'blur()'}, bindings: [PROVIDER] }) export class DateValueAccessor extends DefaultValueAccessor { constructor(_renderer: Renderer, _elementRef: ElementRef) { super(_renderer, _elementRef); } blur() { this.onTouched(); } input(value) { // Write back to model if (value) { value = value.split(/\./); value = value[2] + &quot;-&quot; + value[1] + &quot;-&quot; + value[0]; } this.onChange(value); } writeValue(value: any): void { // Write to view if (value) { var date = new Date(value); value = date.getDate() + &quot;.&quot; + (date.getMonth()+1) + &quot;.&quot; + date.getFullYear(); } super.writeValue(value); } } "><pre class="notranslate"><code class="notranslate">import {Directive, Renderer, ElementRef, Self, forwardRef, Provider} from 'angular2/core'; import {NG_VALUE_ACCESSOR, DefaultValueAccessor } from 'angular2/common'; import {CONST_EXPR} from 'angular2/src/facade/lang'; const PROVIDER = CONST_EXPR(new Provider( NG_VALUE_ACCESSOR, {useExisting: forwardRef(() =&gt; DateValueAccessor), multi: true})); @Directive({ selector: 'input[date]', host: {'(input)': 'input($event.target.value)', '(blur)': 'blur()'}, bindings: [PROVIDER] }) export class DateValueAccessor extends DefaultValueAccessor { constructor(_renderer: Renderer, _elementRef: ElementRef) { super(_renderer, _elementRef); } blur() { this.onTouched(); } input(value) { // Write back to model if (value) { value = value.split(/\./); value = value[2] + "-" + value[1] + "-" + value[0]; } this.onChange(value); } writeValue(value: any): void { // Write to view if (value) { var date = new Date(value); value = date.getDate() + "." + (date.getMonth()+1) + "." + date.getFullYear(); } super.writeValue(value); } } </code></pre></div>
<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> When navigating between routes that reuse nodes (i.e. different URLs triggering the same route config branches), the guards are fired out of order. Specifically, the guards for the reused node are called before <em>any</em> other guards are checked.</p> <p dir="auto"><strong>Expected behavior</strong><br> The guard order should universally be deactivations from leaf to root and then activations from root to leaf.</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br> See <a href="http://plnkr.co/edit/TQjNmR?p=preview" rel="nofollow">http://plnkr.co/edit/TQjNmR?p=preview</a></p> <p dir="auto">When changing both nodes in a navigation (i.e. from /A/A to /B/B), the guards are called in the order:</p> <ul dir="auto"> <li>DEACTIVATE: branch</li> <li>ACTIVATE: branch</li> <li>DEACTIVATE: leaf</li> <li>ACTIVATE: leaf</li> </ul> <p dir="auto">The order should be:</p> <ul dir="auto"> <li>DEACTIVATE: leaf</li> <li>DEACTIVATE: branch</li> <li>ACTIVATE: branch</li> <li>ACTIVATE: leaf</li> </ul> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br> Maintaining a consistent ordering of guards. Deactivating a service tied to a parent route before the service tied to the child could break programmers expectations about flow.</p> <p dir="auto"><strong>Please tell us about your environment:</strong><br> Mac OSX, Atom, npm, webpack, served via webpack-dev-server (dev) &amp; nginx (prod).</p> <ul dir="auto"> <li><strong>Angular version:</strong> 2.0.X, 2.1.X (plunker demonstrates 2.1.0)</li> <li><strong>Browser:</strong> Only tested in Chrome 53, but should be relevant to all</li> <li><strong>Language:</strong> TypeScript 2.0.3, but should be relevant to all</li> </ul>
0
<p dir="auto">React version: 18.2</p> <h2 dir="auto">Steps To Reproduce</h2> <ol dir="auto"> <li>download npx create-react-app my-app --template redux-typescript</li> <li>npm start</li> </ol> <p dir="auto">Link to code example:</p> <p dir="auto"><code class="notranslate">function Ddd() { return ( &lt;React.StrictMode&gt; &lt;Dd /&gt; &lt;/React.StrictMode&gt; ); }</code></p> <p dir="auto"><code class="notranslate">function Dd() { console.log(12); return &lt;div&gt;12&lt;/div&gt;; }</code></p> <p dir="auto"><code class="notranslate">root.render( &lt;Ddd /&gt; );</code></p> <h2 dir="auto">The current behavior</h2> <p dir="auto">Dd render 2 times</p> <h2 dir="auto">The expected behavior</h2> <p dir="auto">Dd render 1 times</p>
<p dir="auto">React version:18.0.0</p> <p dir="auto">with 18</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import ReactDOM from &quot;react-dom/client&quot;; const root = ReactDOM.createRoot( document.getElementById(&quot;root&quot;) as HTMLElement ); root.render( &lt;React.StrictMode&gt; &lt;App /&gt; &lt;/React.StrictMode&gt; ); "><pre class="notranslate"><code class="notranslate">import ReactDOM from "react-dom/client"; const root = ReactDOM.createRoot( document.getElementById("root") as HTMLElement ); root.render( &lt;React.StrictMode&gt; &lt;App /&gt; &lt;/React.StrictMode&gt; ); </code></pre></div> <p dir="auto">with 17</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import ReactDOM from &quot;react-dom&quot;; ReactDOM.render( &lt;React.StrictMode&gt; &lt;App /&gt; &lt;/React.StrictMode&gt;, document.getElementById(&quot;root&quot;) as HTMLElement );"><pre class="notranslate"><code class="notranslate">import ReactDOM from "react-dom"; ReactDOM.render( &lt;React.StrictMode&gt; &lt;App /&gt; &lt;/React.StrictMode&gt;, document.getElementById("root") as HTMLElement ); </code></pre></div> <p dir="auto">and my app demo</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import { useEffect } from &quot;react&quot;; import &quot;./App.css&quot;; import &quot;xterm/css/xterm.css&quot;; import { Terminal } from &quot;xterm&quot;; import { io } from &quot;socket.io-client&quot;; import { FitAddon } from &quot;xterm-addon-fit&quot;; const ids = {} as any; function getTerminal(id: string) { if (!ids[id]) { ids[id] = new Terminal(); return ids[id]; } else { return ids[id]; } } let chunk = &quot;&quot;; function App() { console.log(&quot;here&quot;); useEffect(() =&gt; { console.log(&quot;run effect&quot;); const term = getTerminal(&quot;t1&quot;) as Terminal; const el = document.getElementById(&quot;xterm-container&quot;) as HTMLDivElement; const socket = io(&quot;ws://localhost:3000&quot;); const fitAddon = new FitAddon(); term.loadAddon(fitAddon); term.open(el); fitAddon.fit(); window.addEventListener(&quot;resize&quot;, (s) =&gt; { fitAddon.fit(); }); term.write(&quot;welcome\r\n&quot;); socket.on(&quot;to&quot;, function (msg: string) { console.log(&quot;receive&quot;, msg); term.write(msg + &quot;\r\n&quot;); }); term.onData((arg1: string) =&gt; { console.log(&quot;data-&quot;, arg1, chunk); if (arg1.charCodeAt(0) === 13) { term.write(&quot;\r\n&quot;); console.log(&quot;data&quot;, arg1); if (!!chunk) { if (chunk === &quot;clear&quot;) { term.clear(); chunk = &quot;&quot;; } else { socket.emit(&quot;chat message&quot;, chunk); } } chunk = &quot;&quot;; } else if (arg1.charCodeAt(0) === 127 || arg1.charCodeAt(0) === 8) { chunk = chunk.slice(0, chunk.length - 1); console.log(chunk); term.write(&quot;\b \b&quot;); } else { term.write(arg1); chunk += arg1; } }); // return () =&gt; { // term.dispose() // } }, []); return ( &lt;div className=&quot;App&quot;&gt; &lt;header className=&quot;App-header&quot;&gt;terminal test&lt;/header&gt; &lt;div id=&quot;xterm-container&quot;&gt;&lt;/div&gt; &lt;/div&gt; ); } export default App; "><pre class="notranslate"><code class="notranslate">import { useEffect } from "react"; import "./App.css"; import "xterm/css/xterm.css"; import { Terminal } from "xterm"; import { io } from "socket.io-client"; import { FitAddon } from "xterm-addon-fit"; const ids = {} as any; function getTerminal(id: string) { if (!ids[id]) { ids[id] = new Terminal(); return ids[id]; } else { return ids[id]; } } let chunk = ""; function App() { console.log("here"); useEffect(() =&gt; { console.log("run effect"); const term = getTerminal("t1") as Terminal; const el = document.getElementById("xterm-container") as HTMLDivElement; const socket = io("ws://localhost:3000"); const fitAddon = new FitAddon(); term.loadAddon(fitAddon); term.open(el); fitAddon.fit(); window.addEventListener("resize", (s) =&gt; { fitAddon.fit(); }); term.write("welcome\r\n"); socket.on("to", function (msg: string) { console.log("receive", msg); term.write(msg + "\r\n"); }); term.onData((arg1: string) =&gt; { console.log("data-", arg1, chunk); if (arg1.charCodeAt(0) === 13) { term.write("\r\n"); console.log("data", arg1); if (!!chunk) { if (chunk === "clear") { term.clear(); chunk = ""; } else { socket.emit("chat message", chunk); } } chunk = ""; } else if (arg1.charCodeAt(0) === 127 || arg1.charCodeAt(0) === 8) { chunk = chunk.slice(0, chunk.length - 1); console.log(chunk); term.write("\b \b"); } else { term.write(arg1); chunk += arg1; } }); // return () =&gt; { // term.dispose() // } }, []); return ( &lt;div className="App"&gt; &lt;header className="App-header"&gt;terminal test&lt;/header&gt; &lt;div id="xterm-container"&gt;&lt;/div&gt; &lt;/div&gt; ); } export default App; </code></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/17426397/164627876-14341d6e-b50d-424b-b410-653b89f3c0e6.png"><img src="https://user-images.githubusercontent.com/17426397/164627876-14341d6e-b50d-424b-b410-653b89f3c0e6.png" alt="image" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/17426397/164628050-b6723bf4-9109-4a0f-bbf6-0c31d4ca903d.png"><img src="https://user-images.githubusercontent.com/17426397/164628050-b6723bf4-9109-4a0f-bbf6-0c31d4ca903d.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">code is ok with react17</p> <p dir="auto">I'm very confused, may I get your help?</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>.):</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.):</p> <hr> <p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one):</p> <p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>): Client Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.0", GitCommit:"a16c0a7f71a6f93c7e0f222d961f4675cd97a46b", GitTreeState:"clean", BuildDate:"2016-09-26T18:16:57Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}<br> Server Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.0", GitCommit:"a16c0a7f71a6f93c7e0f222d961f4675cd97a46b", GitTreeState:"clean", BuildDate:"2016-09-26T18:10:32Z", GoVersion:"go1.6.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>: VMware, 1c/4t, 8GB, HDD</li> <li><strong>OS</strong> (e.g. from /etc/os-release): Red Hat Enterprise Linux Server release 7.2 (Maipo)</li> <li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>):3.10.0-327.el7.x86_64</li> <li><strong>Install tools</strong>: yum install -y docker kubelet kubeadm kubectl kubernetes-cni</li> <li><strong>Others</strong>:</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" # docker version Client: Version: 1.11.2 API version: 1.23 Go version: go1.5.4 Git commit: b9f10c9 Built: Wed Jun 1 21:23:11 2016 OS/Arch: linux/amd64 Server: Version: 1.11.2 API version: 1.23 Go version: go1.5.4 Git commit: b9f10c9 Built: Wed Jun 1 21:23:11 2016 OS/Arch: linux/amd64 # kubectl get nodes NAME STATUS AGE kubernetes01.raiffeisen.pl Ready 21d kubernetes02.raiffeisen.pl Ready 21d kubernetes03.raiffeisen.pl Ready 21d "><pre class="notranslate"><code class="notranslate"> # docker version Client: Version: 1.11.2 API version: 1.23 Go version: go1.5.4 Git commit: b9f10c9 Built: Wed Jun 1 21:23:11 2016 OS/Arch: linux/amd64 Server: Version: 1.11.2 API version: 1.23 Go version: go1.5.4 Git commit: b9f10c9 Built: Wed Jun 1 21:23:11 2016 OS/Arch: linux/amd64 # kubectl get nodes NAME STATUS AGE kubernetes01.raiffeisen.pl Ready 21d kubernetes02.raiffeisen.pl Ready 21d kubernetes03.raiffeisen.pl Ready 21d </code></pre></div> <p dir="auto"><strong>What happened</strong>: According to doc's (<a href="http://kubernetes.io/docs/getting-started-guides/kubeadm/" rel="nofollow">http://kubernetes.io/docs/getting-started-guides/kubeadm/</a>) I should be able to run cluster, run pod's and access web UI. UI is unaccessible:<br> WebUI:<br> <a href="http://localhost:8080/api/v1/proxy/namespaces/kube-system/services/kubernetes-dashboard" rel="nofollow">http://localhost:8080/api/v1/proxy/namespaces/kube-system/services/kubernetes-dashboard</a><br> output in browser:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;kind&quot;: &quot;Status&quot;, &quot;apiVersion&quot;: &quot;v1&quot;, &quot;metadata&quot;: {}, &quot;status&quot;: &quot;Failure&quot;, &quot;message&quot;: &quot;no endpoints available for service \&quot;kubernetes-dashboard\&quot;&quot;, &quot;reason&quot;: &quot;ServiceUnavailable&quot;, &quot;code&quot;: 503 }"><pre class="notranslate"><code class="notranslate">{ "kind": "Status", "apiVersion": "v1", "metadata": {}, "status": "Failure", "message": "no endpoints available for service \"kubernetes-dashboard\"", "reason": "ServiceUnavailable", "code": 503 } </code></pre></div> <p dir="auto">cAdvisor is working fine.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# kubectl get pods --all-namespaces --show-all NAMESPACE NAME READY STATUS RESTARTS AGE kube-system etcd-kubernetes01.raiffeisen.pl 1/1 Running 4 21d kube-system kube-apiserver-kubernetes01.raiffeisen.pl 1/1 Running 6 21d kube-system kube-controller-manager-kubernetes01.raiffeisen.pl 1/1 Running 4 21d kube-system kube-discovery-982812725-7l2xu 1/1 Running 0 49m kube-system kube-discovery-982812725-iju5t 0/1 MatchNodeSelector 0 21d kube-system kube-dns-2247936740-6wc33 0/3 ContainerCreating 0 21d kube-system kube-proxy-amd64-g7b7b 1/1 Running 4 21d kube-system kube-proxy-amd64-npjme 1/1 Running 4 21d kube-system kube-proxy-amd64-o6cb7 1/1 Running 4 13d kube-system kube-scheduler-kubernetes01.raiffeisen.pl 1/1 Running 4 21d kube-system kubernetes-dashboard-1655269645-m37rm 0/1 ContainerCreating 0 44m sock-shop cart-2013512370-opewy 0/1 ContainerCreating 0 40m sock-shop cart-db-1445314776-datu9 0/1 ContainerCreating 0 40m sock-shop catalogue-3777349842-0kxk4 0/1 ContainerCreating 0 40m sock-shop catalogue-db-2196966982-90h70 0/1 ContainerCreating 0 40m sock-shop front-end-697319832-zv5j4 0/1 ContainerCreating 0 40m sock-shop orders-3580282209-vu30j 0/1 ContainerCreating 0 40m sock-shop orders-db-1215677090-n6kvx 0/1 ContainerCreating 0 40m sock-shop payment-1376044718-lhe69 0/1 ContainerCreating 0 40m sock-shop queue-master-1190579278-xgv56 0/1 ContainerCreating 0 40m sock-shop rabbitmq-1897447621-u70le 0/1 ContainerCreating 0 40m sock-shop shipping-589875162-h7ir9 0/1 ContainerCreating 0 40m sock-shop user-3338781425-mm6sk 0/1 ContainerCreating 0 40m sock-shop user-db-710789251-gtpx5 0/1 ContainerCreating 0 40m"><pre class="notranslate"><code class="notranslate"># kubectl get pods --all-namespaces --show-all NAMESPACE NAME READY STATUS RESTARTS AGE kube-system etcd-kubernetes01.raiffeisen.pl 1/1 Running 4 21d kube-system kube-apiserver-kubernetes01.raiffeisen.pl 1/1 Running 6 21d kube-system kube-controller-manager-kubernetes01.raiffeisen.pl 1/1 Running 4 21d kube-system kube-discovery-982812725-7l2xu 1/1 Running 0 49m kube-system kube-discovery-982812725-iju5t 0/1 MatchNodeSelector 0 21d kube-system kube-dns-2247936740-6wc33 0/3 ContainerCreating 0 21d kube-system kube-proxy-amd64-g7b7b 1/1 Running 4 21d kube-system kube-proxy-amd64-npjme 1/1 Running 4 21d kube-system kube-proxy-amd64-o6cb7 1/1 Running 4 13d kube-system kube-scheduler-kubernetes01.raiffeisen.pl 1/1 Running 4 21d kube-system kubernetes-dashboard-1655269645-m37rm 0/1 ContainerCreating 0 44m sock-shop cart-2013512370-opewy 0/1 ContainerCreating 0 40m sock-shop cart-db-1445314776-datu9 0/1 ContainerCreating 0 40m sock-shop catalogue-3777349842-0kxk4 0/1 ContainerCreating 0 40m sock-shop catalogue-db-2196966982-90h70 0/1 ContainerCreating 0 40m sock-shop front-end-697319832-zv5j4 0/1 ContainerCreating 0 40m sock-shop orders-3580282209-vu30j 0/1 ContainerCreating 0 40m sock-shop orders-db-1215677090-n6kvx 0/1 ContainerCreating 0 40m sock-shop payment-1376044718-lhe69 0/1 ContainerCreating 0 40m sock-shop queue-master-1190579278-xgv56 0/1 ContainerCreating 0 40m sock-shop rabbitmq-1897447621-u70le 0/1 ContainerCreating 0 40m sock-shop shipping-589875162-h7ir9 0/1 ContainerCreating 0 40m sock-shop user-3338781425-mm6sk 0/1 ContainerCreating 0 40m sock-shop user-db-710789251-gtpx5 0/1 ContainerCreating 0 40m </code></pre></div> <p dir="auto"><strong>What you expected to happen</strong>: I was expecting to access web UI and at least install sample appication (sock-shop). Failed at both. sock-shop PODs are not showing any logs. Same for docker. Sock-shop hangs at "ContainerCreating".</p>
<p dir="auto">I was mostly following this guide, which seems to be either deprecated and/or broken:<br> <a href="https://github.com/kubernetes/kubernetes/blob/master/docs/getting-started-guides/ubuntu.md">https://github.com/kubernetes/kubernetes/blob/master/docs/getting-started-guides/ubuntu.md</a></p> <p dir="auto">One key bug, one of the scripts references the wrong Github account, fix:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="diff --git a/cluster/ubuntu/download-release.sh b/cluster/ubuntu/download-release.sh index 3fce5d0..5fb3ea1 100755 --- a/cluster/ubuntu/download-release.sh +++ b/cluster/ubuntu/download-release.sh @@ -56,7 +56,7 @@ grep -q &quot;^${ETCD_VERSION}\$&quot; binaries/.etcd 2&gt;/dev/null || { KUBE_VERSION=${KUBE_VERSION:-&quot;1.1.2&quot;} echo &quot;Prepare kubernetes ${KUBE_VERSION} release ...&quot; grep -q &quot;^${KUBE_VERSION}\$&quot; binaries/.kubernetes 2&gt;/dev/null || { - curl -L https://github.com/GoogleCloudPlatform/kubernetes/releases/download/v${KUBE_VERSION}/kubernetes.tar.gz -o kubernetes.tar.gz + curl -L https://github.com/kubernetes/kubernetes/releases/download/v${KUBE_VERSION}/kubernetes.tar.gz -o kubernetes.tar.gz tar xzf kubernetes.tar.gz pushd kubernetes/server tar xzf kubernetes-server-linux-amd64.tar.gz"><pre class="notranslate"><code class="notranslate">diff --git a/cluster/ubuntu/download-release.sh b/cluster/ubuntu/download-release.sh index 3fce5d0..5fb3ea1 100755 --- a/cluster/ubuntu/download-release.sh +++ b/cluster/ubuntu/download-release.sh @@ -56,7 +56,7 @@ grep -q "^${ETCD_VERSION}\$" binaries/.etcd 2&gt;/dev/null || { KUBE_VERSION=${KUBE_VERSION:-"1.1.2"} echo "Prepare kubernetes ${KUBE_VERSION} release ..." grep -q "^${KUBE_VERSION}\$" binaries/.kubernetes 2&gt;/dev/null || { - curl -L https://github.com/GoogleCloudPlatform/kubernetes/releases/download/v${KUBE_VERSION}/kubernetes.tar.gz -o kubernetes.tar.gz + curl -L https://github.com/kubernetes/kubernetes/releases/download/v${KUBE_VERSION}/kubernetes.tar.gz -o kubernetes.tar.gz tar xzf kubernetes.tar.gz pushd kubernetes/server tar xzf kubernetes-server-linux-amd64.tar.gz </code></pre></div> <p dir="auto">But I still can't <code class="notranslate">kube-up.sh</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ export KUBE_VERSION=1.1.2 $ export KUBERNETES_PROVIDER=ubuntu $ export nodes=&quot;[email protected] [email protected]&quot; $ export roles=&quot;ai i&quot; $ export NUM_MINIONS=2 $ export PATH=$PATH:~pwais/kubernetes/cluster/ubuntu/binaries $ ./cluster/kube-up.sh ... Starting cluster using provider: ubuntu ... calling verify-prereqs ... calling kube-up /home/pwais/kubernetes/cluster/ubuntu /home/pwais/kubernetes Prepare flannel 0.5.0 release ... Prepare etcd 2.2.0 release ... Prepare kubernetes 1.1.2 release ... Done! All your binaries locate in kubernetes/cluster/ubuntu/binaries directory /home/pwais/kubernetes Deploying master and node on machine 10.0.10.240 saltbase/salt/generate-cert/make-ca-cert.sh: No such file or directory config-default.sh 100% 3441 3.4KB/s 00:00 ubuntu/util.sh: No such file or directory ubuntu/minion/*: No such file or directory ubuntu/master/*: No such file or directory ubuntu/reconfDocker.sh: No such file or directory ubuntu/binaries/master: No such file or directory ubuntu/binaries/minion: No such file or directory"><pre class="notranslate"><code class="notranslate">$ export KUBE_VERSION=1.1.2 $ export KUBERNETES_PROVIDER=ubuntu $ export nodes="[email protected] [email protected]" $ export roles="ai i" $ export NUM_MINIONS=2 $ export PATH=$PATH:~pwais/kubernetes/cluster/ubuntu/binaries $ ./cluster/kube-up.sh ... Starting cluster using provider: ubuntu ... calling verify-prereqs ... calling kube-up /home/pwais/kubernetes/cluster/ubuntu /home/pwais/kubernetes Prepare flannel 0.5.0 release ... Prepare etcd 2.2.0 release ... Prepare kubernetes 1.1.2 release ... Done! All your binaries locate in kubernetes/cluster/ubuntu/binaries directory /home/pwais/kubernetes Deploying master and node on machine 10.0.10.240 saltbase/salt/generate-cert/make-ca-cert.sh: No such file or directory config-default.sh 100% 3441 3.4KB/s 00:00 ubuntu/util.sh: No such file or directory ubuntu/minion/*: No such file or directory ubuntu/master/*: No such file or directory ubuntu/reconfDocker.sh: No such file or directory ubuntu/binaries/master: No such file or directory ubuntu/binaries/minion: No such file or directory </code></pre></div> <p dir="auto">I had more luck with v1.0.0 except that kube-proxy failed to launch on my minion because of an incorrect flag to the executable :P</p> <p dir="auto">If somebody can direct me to a <strong>bona fide Ubuntu bare-metal setup guide</strong>, please LMK. Otherwise I guess I'll try to poke at master a bit more (and perhaps contribute a patch if I get anywhere).</p>
0
<p dir="auto">Rather than the complex script for radio buttons, we should go for a more semantically meaningful option similar to the one in the link below (yes I know it's using javascript but that's only to apply the active class for demonstration).</p> <p dir="auto">It is more complex semantically but it gets rid of the javascript and adds native form support.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;div class=&quot;btn-group&quot;&gt; &lt;label for=&quot;one&quot; class=&quot;btn&quot;&gt; &lt;input id=&quot;one&quot; name=&quot;num&quot; type=&quot;radio&quot; /&gt; One &lt;/label&gt; &lt;label for=&quot;two&quot; class=&quot;btn&quot;&gt; &lt;input id=&quot;two&quot; name=&quot;num&quot; type=&quot;radio&quot; /&gt; Two &lt;/label&gt; &lt;label for=&quot;three&quot; class=&quot;btn&quot;&gt; &lt;input id=&quot;three&quot; name=&quot;num&quot; type=&quot;radio&quot; /&gt; Three &lt;/label&gt; &lt;label for=&quot;four&quot; class=&quot;btn&quot;&gt; &lt;input id=&quot;four&quot; name=&quot;num&quot; type=&quot;radio&quot; /&gt; Four &lt;/label&gt; &lt;/div&gt;"><pre class="notranslate"><code class="notranslate">&lt;div class="btn-group"&gt; &lt;label for="one" class="btn"&gt; &lt;input id="one" name="num" type="radio" /&gt; One &lt;/label&gt; &lt;label for="two" class="btn"&gt; &lt;input id="two" name="num" type="radio" /&gt; Two &lt;/label&gt; &lt;label for="three" class="btn"&gt; &lt;input id="three" name="num" type="radio" /&gt; Three &lt;/label&gt; &lt;label for="four" class="btn"&gt; &lt;input id="four" name="num" type="radio" /&gt; Four &lt;/label&gt; &lt;/div&gt; </code></pre></div> <blockquote> <p dir="auto"><a href="http://jsfiddle.net/JamesKyle/RWa7M/" rel="nofollow">http://jsfiddle.net/JamesKyle/RWa7M/</a></p> </blockquote>
<p dir="auto">My data source returns objects instead of strings (because they carry additional metadata besides the autocomplete label)</p> <p dir="auto">I can get away with this by overriding every callback to perform the requested logic only on the label, but for some reason, the 'updater' callback returns an [Object object] string instead of my actual data. Browsing the source, I found out that typeahead stores the value it passes to the updater callback in the data-value attribute of the generated entity, which is where it gets coerced to string.</p> <p dir="auto">The most obvious solution (that I have applied already to my local code) is to JSON encode the value before being sent to the data-value attribute, but that comes with a performance hit, which is why I'm not providing the patches.</p> <p dir="auto">While it could be argued that this could have been avoided by monkeypatching the metadata to the string label, there's no direct way of achieving this using just JSON.</p>
0
<p dir="auto">As <a href="http://unicode.org/reports/tr11/" rel="nofollow">Unicode TR11</a> suggested, all neutral characters map to halfwidth or narrow characters.</p> <p dir="auto">According to <a href="http://unicode.org/Public/UNIDATA/EastAsianWidth.txt" rel="nofollow">EastAsianWidth</a> following characters are neutral:</p> <p dir="auto">✖ 0x2716<br> ✚ 0x271A<br> ✭ 0x272D<br> ✹ 0x2739</p> <p dir="auto">so they should be halfwidth or narrow, but is rendered full-width in CMD.exe, which is causing terminal disarrangement.</p> <p dir="auto">Your Windows build number: (Type <code class="notranslate">ver</code> at a Windows Command Prompt)</p> <p dir="auto">Microsoft Windows [Version 10.0.16299.125]</p>
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 10.0.18362.239 Windows Terminal version (if applicable): 0.2.1831 Any other software? No"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 10.0.18362.239 Windows Terminal version (if applicable): 0.2.1831 Any other software? No </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Just open the terminal and write some text.</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Normal font rendering</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/46282492/61047073-91df9f00-a419-11e9-8851-8835c5c56e42.PNG"><img src="https://user-images.githubusercontent.com/46282492/61047073-91df9f00-a419-11e9-8851-8835c5c56e42.PNG" alt="Capture" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/46282492/61047076-93a96280-a419-11e9-899a-4348a79710c2.PNG"><img src="https://user-images.githubusercontent.com/46282492/61047076-93a96280-a419-11e9-899a-4348a79710c2.PNG" alt="Capture2" style="max-width: 100%;"></a></p> <p dir="auto">Text is displayed with blurry and aliased font. (The font is Consolas)</p>
0
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [Version 10.0.18362.418] Windows Terminal version (if applicable): Version: 0.6.2951.0"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18362.418] Windows Terminal version (if applicable): Version: 0.6.2951.0 </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">1.) Set the initialRows value to 30, and open a new wt instance<br> 2.) Shrink the window to approximately half the size vertically (Drag the bottom up)<br> 3.) Spam a few invalid commands (asd, &lt;Enter&gt;, asd, &lt;Enter&gt;, asd, &lt;Enter&gt;, asd, &lt;Enter&gt;, asd, &lt;Enter&gt;, asd, &lt;Enter&gt;) until the scrollbar appears (It will appear later than expected)<br> 4.) Note that you unable to scroll to the current input location</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">You are able to scroll to the current input location</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">You are unable to scroll to the current input location without resizing. The scrollbar also only appears when the lines exceed the initialRows value and ignore the actual window height.</p> <p dir="auto">Similar to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="459617028" data-permission-text="Title is private" data-url="https://github.com/microsoft/terminal/issues/1494" data-hovercard-type="issue" data-hovercard-url="/microsoft/terminal/issues/1494/hovercard" href="https://github.com/microsoft/terminal/issues/1494">#1494</a>, but that one deals more with the scroll bar not working at all more so than the scrollbar scrolling to the incorrect location / appearing later than expected.</p>
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 18972 Any other software?: WSL installed"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 18972 Any other software?: WSL installed </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <ul dir="auto"> <li>Sign out of Windows</li> <li>Sign back in</li> <li>Start Terminal really quickly and open up a WSL instance</li> <li>The WSL instance does not have Windows file paths connected to it (e.g: typing in <code class="notranslate">cmd.exe</code> fails)</li> </ul> <h1 dir="auto">Expected behavior</h1> <ul dir="auto"> <li>Even if you open up WSL quickly it should add Windows paths correctly.</li> </ul> <h1 dir="auto">Actual behavior</h1> <ul dir="auto"> <li>Opening WSL quickly from Windows Terminal upon signing in does not add in Windows file paths correctly</li> </ul> <h1 dir="auto">Additional notes</h1> <p dir="auto">We (the WSL team) don't think this is a WSL specific issue since we use environment variables to add the Windows path. If you open up a CMD window and run <code class="notranslate">wsl</code> very quickly upon startup you still get the correct Windows paths added. This seems to be an issue with how Windows Terminal treats environment variables.</p>
0
<h4 dir="auto">Challenge Name</h4> <p dir="auto"><a href="https://www.freecodecamp.com/challenges/create-a-set-of-checkboxes#?solution=%0A%3Clink%20href%3D%22https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DLobster%22%20rel%3D%22stylesheet%22%20type%3D%22text%2Fcss%22%3E%0A%3Cstyle%3E%0A%20%20.red-text%20%7B%0A%20%20%20%20color%3A%20red%3B%0A%20%20%7D%0A%0A%20%20h2%20%7B%0A%20%20%20%20font-family%3A%20Lobster%2C%20Monospace%3B%0A%20%20%7D%0A%0A%20%20p%20%7B%0A%20%20%20%20font-size%3A%2016px%3B%0A%20%20%20%20font-family%3A%20Monospace%3B%0A%20%20%7D%0A%0A%20%20.thick-green-border%20%7B%0A%20%20%20%20border-color%3A%20green%3B%0A%20%20%20%20border-width%3A%2010px%3B%0A%20%20%20%20border-style%3A%20solid%3B%0A%20%20%20%20border-radius%3A%2050%25%3B%0A%20%20%7D%0A%0A%20%20.smaller-image%20%7B%0A%20%20%20%20width%3A%20100px%3B%0A%20%20%7D%0A%3C%2Fstyle%3E%0A%0A%3Ch2%20class%3D%22red-text%22%3ECatPhotoApp%3C%2Fh2%3E%0A%0A%3Cp%3EClick%20here%20for%20%3Ca%20href%3D%22%23%22%3Ecat%20photos%3C%2Fa%3E.%3C%2Fp%3E%0A%0A%3Ca%20href%3D%22%23%22%3E%3Cimg%20class%3D%22smaller-image%20thick-green-border%22%20alt%3D%22A%20cute%20orange%20cat%20lying%20on%20its%20back.%20%22%20src%3D%22https%3A%2F%2Fbit.ly%2Ffcc-relaxing-cat%22%3E%3C%2Fa%3E%0A%0A%3Cp%3EThings%20cats%20love%3A%3C%2Fp%3E%0A%3Cul%3E%0A%20%20%3Cli%3Ecat%20nip%3C%2Fli%3E%0A%20%20%3Cli%3Elaser%20pointers%3C%2Fli%3E%0A%20%20%3Cli%3Elasagna%3C%2Fli%3E%0A%3C%2Ful%3E%0A%3Cp%3ETop%203%20things%20cats%20hate%3A%3C%2Fp%3E%0A%3Col%3E%0A%20%20%3Cli%3Eflea%20treatment%3C%2Fli%3E%0A%20%20%3Cli%3Ethunder%3C%2Fli%3E%0A%20%20%3Cli%3Eother%20cats%3C%2Fli%3E%0A%3C%2Fol%3E%0A%3Cform%20fccfaa%3D%22%2Fsubmit-cat-photo%22%3E%0A%20%20%3Clabel%3E%3Cinput%20type%3D%22radio%22%20name%3D%22indoor-outdoor%22%3E%20Indoor%3C%2Flabel%3E%0A%20%20%3Clabel%3E%3Cinput%20type%3D%22radio%22%20name%3D%22indoor-outdoor%22%3E%20Outdoor%3C%2Flabel%3E%0A%20%20%3Cinput%20type%3D%22text%22%20placeholder%3D%22cat%20photo%20URL%22%20required%3E%0A%20%20%3Cbutton%20type%3D%22submit%22%3ESubmit%3C%2Fbutton%3E%0A%3Clabel%3E%3Cinput%20type%3D%22checkbox%22%20name%3D%22personality%22%3E%3C%2Flabel%3E%0A%20%3Clabel%3E%3Cinput%20type%3D%22checkbox%22name%3D%20%C2%A0%22personality%22%3Ecool%3C%2Flabel%3E%0A%20%20%3Clabel%3E%3Cinput%20type%3D%22checkbox%22%0Aname%3D%22personality%22%3Ecool%3C%2Flabel%3E%0A%3C%2Fform%3E%0A" rel="nofollow">https://www.freecodecamp.com/challenges/create-a-set-of-checkboxes#?solution=%0A%3Clink%20href%3D%22https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DLobster%22%20rel%3D%22stylesheet%22%20type%3D%22text%2Fcss%22%3E%0A%3Cstyle%3E%0A%20%20.red-text%20%7B%0A%20%20%20%20color%3A%20red%3B%0A%20%20%7D%0A%0A%20%20h2%20%7B%0A%20%20%20%20font-family%3A%20Lobster%2C%20Monospace%3B%0A%20%20%7D%0A%0A%20%20p%20%7B%0A%20%20%20%20font-size%3A%2016px%3B%0A%20%20%20%20font-family%3A%20Monospace%3B%0A%20%20%7D%0A%0A%20%20.thick-green-border%20%7B%0A%20%20%20%20border-color%3A%20green%3B%0A%20%20%20%20border-width%3A%2010px%3B%0A%20%20%20%20border-style%3A%20solid%3B%0A%20%20%20%20border-radius%3A%2050%25%3B%0A%20%20%7D%0A%0A%20%20.smaller-image%20%7B%0A%20%20%20%20width%3A%20100px%3B%0A%20%20%7D%0A%3C%2Fstyle%3E%0A%0A%3Ch2%20class%3D%22red-text%22%3ECatPhotoApp%3C%2Fh2%3E%0A%0A%3Cp%3EClick%20here%20for%20%3Ca%20href%3D%22%23%22%3Ecat%20photos%3C%2Fa%3E.%3C%2Fp%3E%0A%0A%3Ca%20href%3D%22%23%22%3E%3Cimg%20class%3D%22smaller-image%20thick-green-border%22%20alt%3D%22A%20cute%20orange%20cat%20lying%20on%20its%20back.%20%22%20src%3D%22https%3A%2F%2Fbit.ly%2Ffcc-relaxing-cat%22%3E%3C%2Fa%3E%0A%0A%3Cp%3EThings%20cats%20love%3A%3C%2Fp%3E%0A%3Cul%3E%0A%20%20%3Cli%3Ecat%20nip%3C%2Fli%3E%0A%20%20%3Cli%3Elaser%20pointers%3C%2Fli%3E%0A%20%20%3Cli%3Elasagna%3C%2Fli%3E%0A%3C%2Ful%3E%0A%3Cp%3ETop%203%20things%20cats%20hate%3A%3C%2Fp%3E%0A%3Col%3E%0A%20%20%3Cli%3Eflea%20treatment%3C%2Fli%3E%0A%20%20%3Cli%3Ethunder%3C%2Fli%3E%0A%20%20%3Cli%3Eother%20cats%3C%2Fli%3E%0A%3C%2Fol%3E%0A%3Cform%20fccfaa%3D%22%2Fsubmit-cat-photo%22%3E%0A%20%20%3Clabel%3E%3Cinput%20type%3D%22radio%22%20name%3D%22indoor-outdoor%22%3E%20Indoor%3C%2Flabel%3E%0A%20%20%3Clabel%3E%3Cinput%20type%3D%22radio%22%20name%3D%22indoor-outdoor%22%3E%20Outdoor%3C%2Flabel%3E%0A%20%20%3Cinput%20type%3D%22text%22%20placeholder%3D%22cat%20photo%20URL%22%20required%3E%0A%20%20%3Cbutton%20type%3D%22submit%22%3ESubmit%3C%2Fbutton%3E%0A%3Clabel%3E%3Cinput%20type%3D%22checkbox%22%20name%3D%22personality%22%3E%3C%2Flabel%3E%0A%20%3Clabel%3E%3Cinput%20type%3D%22checkbox%22name%3D%20%C2%A0%22personality%22%3Ecool%3C%2Flabel%3E%0A%20%20%3Clabel%3E%3Cinput%20type%3D%22checkbox%22%0Aname%3D%22personality%22%3Ecool%3C%2Flabel%3E%0A%3C%2Fform%3E%0A</a></p> <p dir="auto">Create a set of checkboxes</p> <h4 dir="auto">Issue Description</h4> <p dir="auto">I am finding a lot of incomplete instructions in these challenges so far. When I follow the example exactly - nothing works and I always wind up having to do more research than necessary. Like now with the personality attributes not appearing...</p> <h4 dir="auto">Browser Information</h4> <p dir="auto">Google chrome mobile</p> <ul dir="auto"> <li>Browser Name, Version:</li> <li>Operating System:</li> <li>Mobile, Desktop, or Tablet:</li> </ul> <h4 dir="auto">Your Code</h4> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &lt;label&gt;&lt;input type=&quot;checkbox&quot; name=&quot;personality&quot;&gt;&lt;/label&gt; &lt;label&gt;&lt;input type=&quot;checkbox&quot;name=  &quot;personality&quot;&gt;&lt;/label&gt; &lt;label&gt;&lt;input type=&quot;checkbox&quot; name=&quot;personality&quot;&gt;&lt;/label&gt; &lt;/form&gt; "><pre class="notranslate"><span class="pl-c1">&lt;</span><span class="pl-ent">label</span><span class="pl-c1">&gt;</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">"checkbox"</span> <span class="pl-c1">name</span><span class="pl-c1">=</span><span class="pl-s">"personality"</span><span class="pl-c1">&gt;</span><span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">label</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">label</span><span class="pl-c1">&gt;</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">"checkbox"</span><span class="pl-c1">name</span><span class="pl-c1">=</span>  <span class="pl-s">"personality"</span><span class="pl-c1">&gt;</span><span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">label</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">label</span><span class="pl-c1">&gt;</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">"checkbox"</span> <span class="pl-c1">name</span><span class="pl-c1">=</span><span class="pl-s">"personality"</span><span class="pl-c1">&gt;</span><span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">label</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">form</span><span class="pl-c1">&gt;</span> </pre></div> <h4 dir="auto">Screenshot</h4>
<p dir="auto">Challenge <a href="http://beta.freecodecamp.com/en/challenges/es6/arrow-functions" rel="nofollow">arrow-functions</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.76 Safari/537.36</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <p dir="auto">arrow functions are described as ()=&gt;( return ... ) when actually they are ()=&gt;{return ...}</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" // change code below this line var magic = function() { return new Date() } // change code above this line // test your code console.log(magic()); "><pre class="notranslate"> <span class="pl-c">// change code below this line</span> <span class="pl-k">var</span> <span class="pl-en">magic</span> <span class="pl-c1">=</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-v">Date</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-c">// change code above this line</span> <span class="pl-c">// test your code</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-en">magic</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
0
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <ul dir="auto"> <li>with_sequence</li> </ul> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible-playbook 2.3.2.0"><pre class="notranslate"><code class="notranslate">ansible-playbook 2.3.2.0 </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">3.10.0-514.6.2.el7.x86_64</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">This is my playbook.</p> <hr> <ul dir="auto"> <li>hosts: all<br> tasks: <ul dir="auto"> <li>name: sequence check<br> debug:<br> msg: "sequence is {{ item }}"<br> with_sequence: start=1 end=5</li> </ul> </li> </ul> <p dir="auto">I'm expecting the order 1,2,3,4,5 in order , but this prints the item in random fashion.</p> <p dir="auto">ok: [web01] =&gt; (item=3) =&gt; {<br> "item": "3",<br> "msg": "sequence is 3"<br> }<br> ok: [web01] =&gt; (item=2) =&gt; {<br> "item": "2",<br> "msg": "sequence is 2"<br> }<br> ok: [web01] =&gt; (item=1) =&gt; {<br> "item": "1",<br> "msg": "sequence is 1"<br> }<br> ok: [web01] =&gt; (item=5) =&gt; {<br> "item": "5",<br> "msg": "sequence is 5"<br> }<br> ok: [web01] =&gt; (item=4) =&gt; {<br> "item": "4",<br> "msg": "sequence is 4"<br> }</p> <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> <p dir="auto">expected order - print sequence from 1 to 5 in order</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>
<h5 dir="auto">ISSUE TYPE</h5> <p dir="auto">Bug Report</p> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">core</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.2.1.0 ansible 2.3.0"><pre class="notranslate"><code class="notranslate">ansible 2.2.1.0 ansible 2.3.0 </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">CentOS Linux 7</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">List order is lost using with_items</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="--- - hosts: localhost vars: with_dict_test: - { key: 'one', value: 1 } - { key: 'two', value: 2 } - { key: 'three', value: 3 } - { key: 'four', value: 4 } - { key: 'five', value: 5 } - { key: 'six', value: 6 } tasks: - name: with_dict test debug: msg=&quot;{{item.key}} --&gt; {{item.value}}&quot; with_items: &quot;{{ with_dict_test}}&quot;"><pre class="notranslate">--- - <span class="pl-ent">hosts</span>: <span class="pl-s">localhost</span> <span class="pl-ent">vars</span>: <span class="pl-ent">with_dict_test</span>: - <span class="pl-s">{ key: 'one', value: 1 }</span> - <span class="pl-s">{ key: 'two', value: 2 }</span> - <span class="pl-s">{ key: 'three', value: 3 }</span> - <span class="pl-s">{ key: 'four', value: 4 }</span> - <span class="pl-s">{ key: 'five', value: 5 }</span> - <span class="pl-s">{ key: 'six', value: 6 }</span> <span class="pl-ent">tasks</span>: - <span class="pl-ent">name</span>: <span class="pl-s">with_dict test</span> <span class="pl-ent">debug</span>: <span class="pl-s">msg="{{item.key}} --&gt; {{item.value}}"</span> <span class="pl-ent">with_items</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ with_dict_test}}<span class="pl-pds">"</span></span></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ok: [localhost] =&gt; (item={u'value': 1, u'key': u'one'}) =&gt; { &quot;item&quot;: { &quot;key&quot;: &quot;one&quot;, &quot;value&quot;: 1 }, &quot;msg&quot;: &quot;one --&gt; 1&quot; } ok: [localhost] =&gt; (item={u'value': 2, u'key': u'two'}) =&gt; { &quot;item&quot;: { &quot;key&quot;: &quot;two&quot;, &quot;value&quot;: 2 }, &quot;msg&quot;: &quot;two --&gt; 2&quot; } ok: [localhost] =&gt; (item={u'value': 3, u'key': u'three'}) =&gt; { &quot;item&quot;: { &quot;key&quot;: &quot;three&quot;, &quot;value&quot;: 3 }, &quot;msg&quot;: &quot;three --&gt; 3&quot; } ok: [localhost] =&gt; (item={u'value': 4, u'key': u'four'}) =&gt; { &quot;item&quot;: { &quot;key&quot;: &quot;four&quot;, &quot;value&quot;: 4 }, &quot;msg&quot;: &quot;four --&gt; 4&quot; } ok: [localhost] =&gt; (item={u'value': 5, u'key': u'five'}) =&gt; { &quot;item&quot;: { &quot;key&quot;: &quot;five&quot;, &quot;value&quot;: 5 }, &quot;msg&quot;: &quot;five --&gt; 5&quot; } ok: [localhost] =&gt; (item={u'value': 6, u'key': u'six'}) =&gt; { &quot;item&quot;: { &quot;key&quot;: &quot;six&quot;, &quot;value&quot;: 6 }, &quot;msg&quot;: &quot;six --&gt; 6&quot; }"><pre class="notranslate"><code class="notranslate">ok: [localhost] =&gt; (item={u'value': 1, u'key': u'one'}) =&gt; { "item": { "key": "one", "value": 1 }, "msg": "one --&gt; 1" } ok: [localhost] =&gt; (item={u'value': 2, u'key': u'two'}) =&gt; { "item": { "key": "two", "value": 2 }, "msg": "two --&gt; 2" } ok: [localhost] =&gt; (item={u'value': 3, u'key': u'three'}) =&gt; { "item": { "key": "three", "value": 3 }, "msg": "three --&gt; 3" } ok: [localhost] =&gt; (item={u'value': 4, u'key': u'four'}) =&gt; { "item": { "key": "four", "value": 4 }, "msg": "four --&gt; 4" } ok: [localhost] =&gt; (item={u'value': 5, u'key': u'five'}) =&gt; { "item": { "key": "five", "value": 5 }, "msg": "five --&gt; 5" } ok: [localhost] =&gt; (item={u'value': 6, u'key': u'six'}) =&gt; { "item": { "key": "six", "value": 6 }, "msg": "six --&gt; 6" } </code></pre></div> <h5 dir="auto">ACTUAL RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ok: [localhost] =&gt; (item={u'key': u'one', u'value': 1}) =&gt; { &quot;item&quot;: { &quot;key&quot;: &quot;one&quot;, &quot;value&quot;: 1 }, &quot;msg&quot;: &quot;one --&gt; 1&quot; } ok: [localhost] =&gt; (item={u'key': u'six', u'value': 6}) =&gt; { &quot;item&quot;: { &quot;key&quot;: &quot;six&quot;, &quot;value&quot;: 6 }, &quot;msg&quot;: &quot;six --&gt; 6&quot; } ok: [localhost] =&gt; (item={u'key': u'five', u'value': 5}) =&gt; { &quot;item&quot;: { &quot;key&quot;: &quot;five&quot;, &quot;value&quot;: 5 }, &quot;msg&quot;: &quot;five --&gt; 5&quot; } ok: [localhost] =&gt; (item={u'key': u'four', u'value': 4}) =&gt; { &quot;item&quot;: { &quot;key&quot;: &quot;four&quot;, &quot;value&quot;: 4 }, &quot;msg&quot;: &quot;four --&gt; 4&quot; } ok: [localhost] =&gt; (item={u'key': u'three', u'value': 3}) =&gt; { &quot;item&quot;: { &quot;key&quot;: &quot;three&quot;, &quot;value&quot;: 3 }, &quot;msg&quot;: &quot;three --&gt; 3&quot; } ok: [localhost] =&gt; (item={u'key': u'two', u'value': 2}) =&gt; { &quot;item&quot;: { &quot;key&quot;: &quot;two&quot;, &quot;value&quot;: 2 }, &quot;msg&quot;: &quot;two --&gt; 2&quot; } "><pre class="notranslate"><code class="notranslate">ok: [localhost] =&gt; (item={u'key': u'one', u'value': 1}) =&gt; { "item": { "key": "one", "value": 1 }, "msg": "one --&gt; 1" } ok: [localhost] =&gt; (item={u'key': u'six', u'value': 6}) =&gt; { "item": { "key": "six", "value": 6 }, "msg": "six --&gt; 6" } ok: [localhost] =&gt; (item={u'key': u'five', u'value': 5}) =&gt; { "item": { "key": "five", "value": 5 }, "msg": "five --&gt; 5" } ok: [localhost] =&gt; (item={u'key': u'four', u'value': 4}) =&gt; { "item": { "key": "four", "value": 4 }, "msg": "four --&gt; 4" } ok: [localhost] =&gt; (item={u'key': u'three', u'value': 3}) =&gt; { "item": { "key": "three", "value": 3 }, "msg": "three --&gt; 3" } ok: [localhost] =&gt; (item={u'key': u'two', u'value': 2}) =&gt; { "item": { "key": "two", "value": 2 }, "msg": "two --&gt; 2" } </code></pre></div>
1
<p dir="auto"><strong>Migrated issue, originally created by Adrian (<a href="https://github.com/thiefmaster">@thiefmaster</a>)</strong></p> <p dir="auto">Probably a bit early since 9.5 isn't out yet, but once it's out this would be pretty useful.</p> <p dir="auto"><a href="https://wiki.postgresql.org/wiki/What's_new_in_PostgreSQL_9.5#INSERT_..._ON_CONFLICT_DO_NOTHING.2FUPDATE_.28.22UPSERT.22.29" rel="nofollow">https://wiki.postgresql.org/wiki/What's_new_in_PostgreSQL_9.5#INSERT_..._ON_CONFLICT_DO_NOTHING.2FUPDATE_.28.22UPSERT.22.29</a></p> <p dir="auto">This could be a table arg, e.g. <code class="notranslate">postgres_onconflict='nothing|update'</code> (or maybe even in a less db-specific way if other databases also support this feature). When set it would automatically add it to INSERTs involving that table.</p>
<p dir="auto"><strong>Migrated issue, originally created by jek (<a href="https://github.com/jek">@jek</a>)</strong></p> <p dir="auto">Implement generic MERGE, aka 'upsert'. In ANSI, it looks like:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="MERGE INTO table_name1 USING table_name2 ON (condition) WHEN MATCHED THEN UPDATE SET column1 = value1 [column2 = value2 ...](,) WHEN NOT MATCHED THEN INSERT columns VALUES (values) "><pre class="notranslate"><code class="notranslate">MERGE INTO table_name1 USING table_name2 ON (condition) WHEN MATCHED THEN UPDATE SET column1 = value1 [column2 = value2 ...](,) WHEN NOT MATCHED THEN INSERT columns VALUES (values) </code></pre></div> <p dir="auto">Dialect support differs pretty widely. A quick &amp; likely inaccurate poll:</p> <ul dir="auto"> <li>Oracle 9+ has a MERGE</li> <li>t-sql 2008 has a MERGE, earlier can maybe do <code class="notranslate">IF EXISTS(SELECT ...)</code></li> <li>MySQL is limited to a key violation condition, and can do either <code class="notranslate">INSERT ... ON DUPLICATE KEY UPDATE</code> or <code class="notranslate">REPLACE INTO</code>, INSERT being preferable</li> <li>SQLite is limited to a key violation condition, and has <code class="notranslate">INSERT .. ON CONFLICT REPLACE</code></li> </ul>
1
<p dir="auto">Hi everybody,</p> <p dir="auto">I’ve tried using BART summarisation code, and I had a question about finetune.py</p> <p dir="auto">Can SummarisationTrainer checkpoint be loaded as a BartForConditionalGeneration model from the evaluation script?</p>
<h1 dir="auto"><g-emoji class="g-emoji" alias="question" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2753.png">❓</g-emoji> Questions &amp; Help</h1> <h2 dir="auto">Details</h2> <p dir="auto">I fine-tuned the BART model on a custom summarization dataset using the <strong>transformers/examples/summarization/bart/finetune.py</strong> and <strong>transformers/examples/summarization/bart/run_train.sh</strong> files in the repository for training (which generated three <em>checkpointepoch=*.ckpt</em> files) and prediction (which generated a <em>.txt</em> file with the test loss scores).</p> <p dir="auto">I have two questions on using this model for prediction:</p> <ul dir="auto"> <li> <p dir="auto">How can I modify <em>finetune.py</em> to generate predictions for the test set, in addition to the loss scores? I see some test functions in <em>finetune.py</em>, but I'm not sure how to use these for generating a <em>.txt</em> file with the predictions.</p> </li> <li> <p dir="auto">How can I load the generated <em>.ckpt</em> files into BartForConditionalGeneration()? A <em>config.json</em> file was not generated along with the checkpoint files; there doesn't seem to be a TFBartForConditionalGeneration; and the <em>convert_tf_checkpoint_to_pytorch.py</em> script in the repo doesn't seem to support BART yet.</p> </li> </ul> <p dir="auto">Thank you for your time!</p>
1
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/1015" rel="nofollow">http://projects.scipy.org/numpy/ticket/1015</a> on 2009-02-20 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/wesm/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/wesm">@wesm</a>, assigned to unknown.</em></p> <p dir="auto">This error is very unintuitive for end-users, arrays formed from SQL query results can frequently end up as object arrays by accident.</p> <p dir="auto">In [15]: arr = np.random.randn(100).astype(object)</p> <h2 dir="auto">In [16]: np.log(arr)</h2> <p dir="auto">AttributeError Traceback (most recent call last)</p> <p dir="auto">H:\workspace\Python\src in ()</p> <p dir="auto">AttributeError: log</p> <p dir="auto">Same AttributeError is raised for other ufuncs</p>
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/1013" rel="nofollow">http://projects.scipy.org/numpy/ticket/1013</a> on 2009-02-20 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/wesm/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/wesm">@wesm</a>, assigned to unknown.</em></p> <p dir="auto">This error is very unintuitive for end-users, arrays formed from SQL query results can frequently end up as object arrays by accident.</p> <p dir="auto">In [15]: arr = np.random.randn(100).astype(object)</p> <h2 dir="auto">In [16]: np.log(arr)</h2> <p dir="auto">AttributeError Traceback (most recent call last)</p> <p dir="auto">H:\workspace\Python\src in ()</p> <p dir="auto">AttributeError: log</p> <p dir="auto">Same AttributeError is raised for other ufuncs</p>
1
<p dir="auto">[Enter steps to reproduce below:]</p> <ol dir="auto"> <li>...</li> <li>...</li> </ol> <p dir="auto"><strong>Atom Version</strong>: 0.211.0<br> <strong>System</strong>: Unknown Windows Version<br> <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Stack Trace</h3> <p dir="auto">Uncaught Error: Cannot find module './context-menu'<br> Error: Cannot find module './context-menu'<br> at Function.Module._resolveFilename (module.js:328:15)<br> at Function.Module._load (module.js:270:25)<br> at Module.require (module.js:357:17)<br> at require (module.js:376:17)<br> at BrowserWindow. (C:\Users\Вадим\AppData\Local\atom\app-0.211.0\resources\app.asar\src\browser\atom-window.js:152:27)<br> at emitOne (events.js:77:13)<br> at BrowserWindow.emit (events.js:166:7)<br> at callFunction (C:\Users\Вадим\AppData\Local\atom\app-0.211.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)<br> at EventEmitter. (C:\Users\Вадим\AppData\Local\atom\app-0.211.0\resources\atom.asar\browser\lib\rpc-server.js:208:14)<br> at emitMany (events.js:108:13)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At C:\Users\Вадим\AppData\Local\atom\app-0.211.0\resources\atom.asar\renderer\api\lib\remote.js:77 Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:328:15) at Function.Module._load (module.js:270:25) at Module.require (module.js:357:17) at require (module.js:376:17) at BrowserWindow.&lt;anonymous&gt; (C:\Users\Вадим\AppData\Local\atom\app-0.211.0\resources\app.asar\src\browser\atom-window.js:152:27) at emitOne (events.js:77:13) at BrowserWindow.emit (events.js:166:7) at callFunction (C:\Users\Вадим\AppData\Local\atom\app-0.211.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\Вадим\AppData\Local\atom\app-0.211.0\resources\atom.asar\browser\lib\rpc-server.js:208:14) at emitMany (events.js:108:13) at metaToValue (C:\Users\Вадим\AppData\Local\atom\app-0.211.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\Вадим\AppData\Local\atom\app-0.211.0\resources\atom.asar\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\Вадим\AppData\Local\atom\app-0.211.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\Вадим\AppData\Local\atom\app-0.211.0\resources\app.asar\src\window-event-handler.js:150:33) at HTMLDocument.handler (C:\Users\Вадим\AppData\Local\atom\app-0.211.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\Вадим\AppData\Local\atom\app-0.211.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\Вадим\AppData\Local\atom\app-0.211.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46) "><pre class="notranslate"><code class="notranslate">At C:\Users\Вадим\AppData\Local\atom\app-0.211.0\resources\atom.asar\renderer\api\lib\remote.js:77 Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:328:15) at Function.Module._load (module.js:270:25) at Module.require (module.js:357:17) at require (module.js:376:17) at BrowserWindow.&lt;anonymous&gt; (C:\Users\Вадим\AppData\Local\atom\app-0.211.0\resources\app.asar\src\browser\atom-window.js:152:27) at emitOne (events.js:77:13) at BrowserWindow.emit (events.js:166:7) at callFunction (C:\Users\Вадим\AppData\Local\atom\app-0.211.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\Вадим\AppData\Local\atom\app-0.211.0\resources\atom.asar\browser\lib\rpc-server.js:208:14) at emitMany (events.js:108:13) at metaToValue (C:\Users\Вадим\AppData\Local\atom\app-0.211.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\Вадим\AppData\Local\atom\app-0.211.0\resources\atom.asar\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\Вадим\AppData\Local\atom\app-0.211.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\Вадим\AppData\Local\atom\app-0.211.0\resources\app.asar\src\window-event-handler.js:150:33) at HTMLDocument.handler (C:\Users\Вадим\AppData\Local\atom\app-0.211.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\Вадим\AppData\Local\atom\app-0.211.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\Вадим\AppData\Local\atom\app-0.211.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46) </code></pre></div> <h3 dir="auto">Commands</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" -1:27.2.0 window:increase-font-size (ul.list-inline.tab-bar.inset-panel) -1:10.2.0 command-palette:toggle (atom-pane.pane.active) -0:29 editor:newline (atom-text-editor.editor.is-focused) -0:26.6.0 core:move-left (atom-text-editor.editor.is-focused) -0:24.6.0 core:move-down (atom-text-editor.editor.is-focused) -0:24 core:move-up (atom-text-editor.editor.is-focused) -0:23.6.0 core:move-right (atom-text-editor.editor.is-focused) -0:21 core:backspace (atom-text-editor.editor.is-focused) -0:16.5.0 core:move-down (atom-text-editor.editor.is-focused) -0:15.4.0 core:move-up (atom-text-editor.editor.is-focused) -0:15 core:move-left (atom-text-editor.editor.is-focused)"><pre class="notranslate"><code class="notranslate"> -1:27.2.0 window:increase-font-size (ul.list-inline.tab-bar.inset-panel) -1:10.2.0 command-palette:toggle (atom-pane.pane.active) -0:29 editor:newline (atom-text-editor.editor.is-focused) -0:26.6.0 core:move-left (atom-text-editor.editor.is-focused) -0:24.6.0 core:move-down (atom-text-editor.editor.is-focused) -0:24 core:move-up (atom-text-editor.editor.is-focused) -0:23.6.0 core:move-right (atom-text-editor.editor.is-focused) -0:21 core:backspace (atom-text-editor.editor.is-focused) -0:16.5.0 core:move-down (atom-text-editor.editor.is-focused) -0:15.4.0 core:move-up (atom-text-editor.editor.is-focused) -0:15 core:move-left (atom-text-editor.editor.is-focused) </code></pre></div> <h3 dir="auto">Config</h3> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;editor&quot;: { &quot;fontSize&quot;: 15 } }"><pre class="notranslate">{ <span class="pl-ent">"editor"</span>: { <span class="pl-ent">"fontSize"</span>: <span class="pl-c1">15</span> } }</pre></div> <h3 dir="auto">Installed Packages</h3> <div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# User No installed packages # Dev No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span> <span class="pl-en">No</span> <span class="pl-en">installed</span> packages <span class="pl-c"><span class="pl-c">#</span> Dev</span> <span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div>
<p dir="auto">I right-clicked on a folder in the tree view</p> <p dir="auto"><strong>Atom Version</strong>: 0.194.0<br> <strong>System</strong>: Windows 7 Entreprise<br> <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Stack Trace</h3> <p dir="auto">Uncaught Error: Cannot find module './context-menu'<br> Error: Cannot find module './context-menu'<br> at Function.Module._resolveFilename (module.js:328:15)<br> at Function.Module._load (module.js:270:25)<br> at Module.require (module.js:357:17)<br> at require (module.js:376:17)<br> at BrowserWindow. (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27)<br> at emitOne (events.js:77:13)<br> at BrowserWindow.emit (events.js:166:7)<br> at callFunction (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)<br> at EventEmitter. (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14)<br> at emitMany (events.js:108:13)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77 Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:328:15) at Function.Module._load (module.js:270:25) at Module.require (module.js:357:17) at require (module.js:376:17) at BrowserWindow.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27) at emitOne (events.js:77:13) at BrowserWindow.emit (events.js:166:7) at callFunction (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14) at emitMany (events.js:108:13) at metaToValue (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\window-event-handler.js:149:33) at HTMLDocument.handler (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46) "><pre class="notranslate"><code class="notranslate">At C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77 Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:328:15) at Function.Module._load (module.js:270:25) at Module.require (module.js:357:17) at require (module.js:376:17) at BrowserWindow.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27) at emitOne (events.js:77:13) at BrowserWindow.emit (events.js:166:7) at callFunction (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14) at emitMany (events.js:108:13) at metaToValue (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\window-event-handler.js:149:33) at HTMLDocument.handler (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46) </code></pre></div> <h3 dir="auto">Commands</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" -4:55.5.0 editor:checkout-head-revision (atom-text-editor.editor.is-focused) 2x -3:41.6.0 window:focus-pane-on-right (atom-text-editor.editor) -3:17.5.0 application:add-project-folder (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel) -2:47.4.0 editor:newline (atom-text-editor.editor.is-focused) -2:38.2.0 core:cut (atom-text-editor.editor) -2:36.5.0 core:paste (atom-text-editor.editor.is-focused) -2:26.6.0 core:save (atom-text-editor.editor.is-focused) -2:20.6.0 core:move-down (atom-text-editor.editor) -2:20.4.0 autocomplete-plus:confirm (atom-text-editor.editor) -2:15.8.0 core:save (atom-text-editor.editor) -2:08.7.0 core:copy (atom-text-editor.editor.is-focused) -2:01.2.0 core:paste (atom-text-editor.editor.is-focused) -1:59.7.0 core:save (atom-text-editor.editor.is-focused) -1:52.2.0 core:paste (atom-text-editor.editor.is-focused) -1:51.6.0 core:save (atom-text-editor.editor.is-focused) -1:30.6.0 core:backspace (atom-text-editor.editor)"><pre class="notranslate"><code class="notranslate"> -4:55.5.0 editor:checkout-head-revision (atom-text-editor.editor.is-focused) 2x -3:41.6.0 window:focus-pane-on-right (atom-text-editor.editor) -3:17.5.0 application:add-project-folder (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel) -2:47.4.0 editor:newline (atom-text-editor.editor.is-focused) -2:38.2.0 core:cut (atom-text-editor.editor) -2:36.5.0 core:paste (atom-text-editor.editor.is-focused) -2:26.6.0 core:save (atom-text-editor.editor.is-focused) -2:20.6.0 core:move-down (atom-text-editor.editor) -2:20.4.0 autocomplete-plus:confirm (atom-text-editor.editor) -2:15.8.0 core:save (atom-text-editor.editor) -2:08.7.0 core:copy (atom-text-editor.editor.is-focused) -2:01.2.0 core:paste (atom-text-editor.editor.is-focused) -1:59.7.0 core:save (atom-text-editor.editor.is-focused) -1:52.2.0 core:paste (atom-text-editor.editor.is-focused) -1:51.6.0 core:save (atom-text-editor.editor.is-focused) -1:30.6.0 core:backspace (atom-text-editor.editor) </code></pre></div> <h3 dir="auto">Config</h3> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;core&quot;: { &quot;ignoredNames&quot;: [ &quot;node_modules&quot; ], &quot;themes&quot;: [ &quot;atom-dark-ui&quot;, &quot;seti-syntax&quot; ], &quot;disabledPackages&quot;: [ &quot;Tern&quot; ], &quot;projectHome&quot;: &quot;Y:\\app-tfoumax&quot; }, &quot;editor&quot;: { &quot;invisibles&quot;: {}, &quot;softWrap&quot;: true, &quot;showIndentGuide&quot;: true } }"><pre class="notranslate">{ <span class="pl-ent">"core"</span>: { <span class="pl-ent">"ignoredNames"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>node_modules<span class="pl-pds">"</span></span> ], <span class="pl-ent">"themes"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>atom-dark-ui<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>seti-syntax<span class="pl-pds">"</span></span> ], <span class="pl-ent">"disabledPackages"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>Tern<span class="pl-pds">"</span></span> ], <span class="pl-ent">"projectHome"</span>: <span class="pl-s"><span class="pl-pds">"</span>Y:<span class="pl-cce">\\</span>app-tfoumax<span class="pl-pds">"</span></span> }, <span class="pl-ent">"editor"</span>: { <span class="pl-ent">"invisibles"</span>: {}, <span class="pl-ent">"softWrap"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"showIndentGuide"</span>: <span class="pl-c1">true</span> } }</pre></div> <h3 dir="auto">Installed Packages</h3> <div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# User autocomplete-plus, v2.12.0 autocomplete-snippets, v1.2.0 javascript-snippets, v1.0.0 jshint, v1.3.5 language-ejs, v0.1.0 linter, v0.12.1 pretty-json, v0.3.3 save-session, v0.14.0 Search, v0.4.0 seti-syntax, v0.4.0 # Dev No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span> autocomplete<span class="pl-k">-</span>plus, v2.<span class="pl-ii">12</span>.<span class="pl-ii">0</span> autocomplete<span class="pl-k">-</span>snippets, v1.<span class="pl-ii">2</span>.<span class="pl-ii">0</span> javascript<span class="pl-k">-</span>snippets, v1.<span class="pl-ii">0</span>.<span class="pl-ii">0</span> jshint, v1.<span class="pl-ii">3</span>.<span class="pl-ii">5</span> language<span class="pl-k">-</span>ejs, v0.<span class="pl-ii">1</span>.<span class="pl-ii">0</span> linter, v0.<span class="pl-ii">12</span>.<span class="pl-ii">1</span> pretty<span class="pl-k">-</span>json, v0.<span class="pl-ii">3</span>.<span class="pl-ii">3</span> save<span class="pl-k">-</span>session, v0.<span class="pl-ii">14</span>.<span class="pl-ii">0</span> Search, v0.<span class="pl-ii">4</span>.<span class="pl-ii">0</span> seti<span class="pl-k">-</span>syntax, v0.<span class="pl-ii">4</span>.<span class="pl-ii">0</span> <span class="pl-c"><span class="pl-c">#</span> Dev</span> <span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div>
1
<p dir="auto">Sorry in advance if this is a duplicate. As of numpy 1.12.1, an error is raised by genfromtxt() when using <code class="notranslate">names=True</code> with <code class="notranslate">comments=None</code>. Tested with:</p> <ul dir="auto"> <li>Python 2.7.14 |Anaconda custom (64-bit)| (default, Oct 16 2017, 17:29:19)</li> <li>numpy 1.12.1</li> <li>Linux rsiverd-linux.lco.gtn 3.10.0-693.5.2.el7.x86_64 <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="317838" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/1" data-hovercard-type="pull_request" data-hovercard-url="/numpy/numpy/pull/1/hovercard" href="https://github.com/numpy/numpy/pull/1">#1</a> SMP Fri Oct 20 20:32:50 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux</li> </ul> <p dir="auto">...............................................................................................................</p> <p dir="auto"><strong>Instructions to reproduce</strong> (using attached sample file 'asdf.txt'):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="data = np.genfromtxt('asdf.txt', dtype=None, comments=None, delimiter='|', names=True)"><pre class="notranslate"><code class="notranslate">data = np.genfromtxt('asdf.txt', dtype=None, comments=None, delimiter='|', names=True) </code></pre></div> <p dir="auto"><a href="https://github.com/numpy/numpy/files/1835574/asdf.txt">asdf.txt</a><br> ...............................................................................................................<br> <strong>Expected result</strong>:</p> <ul dir="auto"> <li>Successful loading of the data file (no error).</li> </ul> <p dir="auto">...............................................................................................................<br> <strong>Actual result</strong>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TypeError Traceback (most recent call last) &lt;ipython-input-1-1d47ac60e22b&gt; in &lt;module&gt;() ----&gt; 1 data = np.genfromtxt('asdf.txt', dtype=None, comments=None, delimiter='|', names=True) /home/rsiverd/anaconda2/lib/python2.7/site-packages/numpy/lib/npyio.pyc in genfromtxt(fname, dtype, comments, delimiter, skip_header, skip_footer, converters, missing_values, filling_values, usecols, names, excludelist, deletechars, replace_space, autostrip, case_sensitive, defaultfmt, unpack, usemask, loose, invalid_raise, max_rows) 1536 first_line = next(fhd) 1537 if names is True: -&gt; 1538 if comments in first_line: 1539 first_line = ( 1540 asbytes('').join(first_line.split(comments)[1:])) TypeError: 'in &lt;string&gt;' requires string as left operand, not NoneType"><pre class="notranslate"><code class="notranslate">TypeError Traceback (most recent call last) &lt;ipython-input-1-1d47ac60e22b&gt; in &lt;module&gt;() ----&gt; 1 data = np.genfromtxt('asdf.txt', dtype=None, comments=None, delimiter='|', names=True) /home/rsiverd/anaconda2/lib/python2.7/site-packages/numpy/lib/npyio.pyc in genfromtxt(fname, dtype, comments, delimiter, skip_header, skip_footer, converters, missing_values, filling_values, usecols, names, excludelist, deletechars, replace_space, autostrip, case_sensitive, defaultfmt, unpack, usemask, loose, invalid_raise, max_rows) 1536 first_line = next(fhd) 1537 if names is True: -&gt; 1538 if comments in first_line: 1539 first_line = ( 1540 asbytes('').join(first_line.split(comments)[1:])) TypeError: 'in &lt;string&gt;' requires string as left operand, not NoneType </code></pre></div> <p dir="auto">...............................................................................................................<br> <strong>Suggested remedy:</strong></p> <p dir="auto">It looks like the check for the first valid values does not check whether <code class="notranslate">comments is None</code> before looking for the comment string in the first line, raising this error. I suspect this is easily fixed by replacing</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" while not first_values: first_line = next(fhd) if names is True: if comments in first_line: first_line = ( asbytes('').join(first_line.split(comments)[1:])) first_values = split_line(first_line)"><pre class="notranslate"><code class="notranslate"> while not first_values: first_line = next(fhd) if names is True: if comments in first_line: first_line = ( asbytes('').join(first_line.split(comments)[1:])) first_values = split_line(first_line) </code></pre></div> <p dir="auto">with</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" while not first_values: first_line = next(fhd) if (names is True) and (comments is not None): if comments in first_line: first_line = ( asbytes('').join(first_line.split(comments)[1:])) first_values = split_line(first_line)"><pre class="notranslate"><code class="notranslate"> while not first_values: first_line = next(fhd) if (names is True) and (comments is not None): if comments in first_line: first_line = ( asbytes('').join(first_line.split(comments)[1:])) first_values = split_line(first_line) </code></pre></div>
<h2 dir="auto">Documentation</h2> <p dir="auto">Now that <a href="https://numpy.org/numpy-tutorials/" rel="nofollow">https://numpy.org/numpy-tutorials/</a> is deployed, we need to decide how to organize our internal documentation.</p> <p dir="auto">Currently, <a href="https://numpy.org/devdocs/user/tutorials_index.html" rel="nofollow">this page</a> is also called NumPy Tutorials. The two tutorials listed there are also available as Jupyter Notebooks from the <a href="https://github.com/numpy/numpy-tutorials">separate numpy-tutorials repo</a>.</p> <p dir="auto">In our docs team meetings, we have discussed two possibilities:</p> <ol dir="auto"> <li>Keeping two sets of tutorials. This would allow us to separate the contents into in-depth guides about NumPy features (in the main sphinx docs) and general tutorials with applications of NumPy in other domains (in the numpy-tutorials repo). In this case, the tutorials section in the main docs would have to be renamed; one suggestion is "NumPy Guides" or similar.</li> <li>Only keeping the numpy-tutorials repo, making the sphinx tutorials page point to the rendered numpy-tutorials site and adding any new content there.</li> </ol> <p dir="auto">It would be nice to have further input from the community so we can reach a solution. If you have other ideas, please feel free to let us know!</p> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rossbar/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rossbar">@rossbar</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rgommers/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rgommers">@rgommers</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/cooperrc/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/cooperrc">@cooperrc</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/8bitmp3/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/8bitmp3">@8bitmp3</a></p>
0
<p dir="auto">While writing on ES through hadoop job ,it freezes with logs as :Caused by: <strong>java.lang.NoClassDefFoundError</strong>: Could not initialize class <strong>org.elasticsearch.common.lucene.Lucene</strong>,What might be the reason?</p> <p dir="auto"><strong>Elasticsearch version</strong>:2.3.3</p> <p dir="auto"><strong>JVM version</strong>:1.7</p> <p dir="auto"><strong>OS version</strong>:14.04</p> <p dir="auto"><strong>Logs</strong>:<br> RemoteTransportException[[Failed to deserialize response of type [org.elasticsearch.action.admin.cluster.node.liveness.LivenessResponse]]]; nested: TransportSerializationException[Failed to deserialize response of type [org.elasticsearch.action.admin.cluster.node.liveness.LivenessResponse]]; nested: ExceptionInInitializerError; nested: IllegalArgumentException[An SPI class of type org.apache.lucene.codecs.PostingsFormat with name 'Lucene50' does not exist. You need to add the corresponding JAR file supporting this SPI to your classpath. The current classpath supports the following names: [es090, completion090, XBloomFilter]];<br> Caused by: TransportSerializationException[Failed to deserialize response of type [org.elasticsearch.action.admin.cluster.node.liveness.LivenessResponse]]; nested: ExceptionInInitializerError; nested: IllegalArgumentException[An SPI class of type org.apache.lucene.codecs.PostingsFormat with name 'Lucene50' does not exist. You need to add the corresponding JAR file supporting this SPI to your classpath. The current classpath supports the following names: [es090, completion090, XBloomFilter]];<br> at org.elasticsearch.transport.netty.MessageChannelHandler.handleResponse(MessageChannelHandler.java:180)<br> at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:138)<br> at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)<br> at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:560)<br> at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:787)<br> at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296)<br> at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462)<br> at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443)<br> at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303)<br> at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)<br> at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:560)<br> at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:555)<br> at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268)<br> at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255)<br> at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88)<br> at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:107)<br> at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312)<br> at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:88)<br> at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)<br> at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)<br> at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)<br> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)<br> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)<br> at java.lang.Thread.run(Thread.java:745)<br> Caused by: java.lang.ExceptionInInitializerError<br> at org.elasticsearch.Version.fromId(Version.java:564)<br> at org.elasticsearch.Version.readVersion(Version.java:308)<br> at org.elasticsearch.cluster.node.DiscoveryNode.readFrom(DiscoveryNode.java:339)<br> at org.elasticsearch.cluster.node.DiscoveryNode.readNode(DiscoveryNode.java:322)<br> at org.elasticsearch.action.admin.cluster.node.liveness.LivenessResponse.readFrom(LivenessResponse.java:52)<br> at org.elasticsearch.transport.netty.MessageChannelHandler.handleResponse(MessageChannelHandler.java:178)<br> ... 23 more<br> Caused by: java.lang.IllegalArgumentException: An SPI class of type org.apache.lucene.codecs.PostingsFormat with name 'Lucene50' does not exist. You need to add the corresponding JAR file supporting this SPI to your classpath. The current classpath supports the following names: [es090, completion090, XBloomFilter]<br> at org.apache.lucene.util.NamedSPILoader.lookup(NamedSPILoader.java:114)<br> at org.apache.lucene.codecs.PostingsFormat.forName(PostingsFormat.java:112)<br> at org.elasticsearch.common.lucene.Lucene.(Lucene.java:65):</p>
<p dir="auto">Here is what I did:</p> <p dir="auto">I install a fresh new version of elasticsearch 2.1.0. And starts it (note that I'm running it with <code class="notranslate">license</code> and <code class="notranslate">marvel-agent</code>).</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ bin/elasticsearch [2015-11-27 20:59:15,909][INFO ][node ] [Ajak] version[2.1.0], pid[74419], build[72cd1f1/2015-11-18T22:40:03Z] [2015-11-27 20:59:15,910][INFO ][node ] [Ajak] initializing ... [2015-11-27 20:59:16,341][INFO ][plugins ] [Ajak] loaded [license, marvel-agent], sites [] [2015-11-27 20:59:16,387][INFO ][env ] [Ajak] using [1] data paths, mounts [[/ (/dev/disk1)]], net usable_space [36.6gb], net total_space [464.7gb], spins? [unknown], types [hfs] [2015-11-27 20:59:19,519][INFO ][node ] [Ajak] initialized [2015-11-27 20:59:19,519][INFO ][node ] [Ajak] starting ... [2015-11-27 20:59:19,657][INFO ][transport ] [Ajak] publish_address {127.0.0.1:9300}, bound_addresses {127.0.0.1:9300} [2015-11-27 20:59:19,669][INFO ][discovery ] [Ajak] workshop/K8cI0q5zTU-J-iuxKIBcIg [2015-11-27 20:59:22,697][INFO ][cluster.service ] [Ajak] new_master {Ajak}{K8cI0q5zTU-J-iuxKIBcIg}{127.0.0.1}{127.0.0.1:9300}, reason: zen-disco-join(elected_as_master, [0] joins received) [2015-11-27 20:59:22,712][INFO ][http ] [Ajak] publish_address {127.0.0.1:9200}, bound_addresses {127.0.0.1:9200} [2015-11-27 20:59:22,713][INFO ][node ] [Ajak] started"><pre class="notranslate"><code class="notranslate">$ bin/elasticsearch [2015-11-27 20:59:15,909][INFO ][node ] [Ajak] version[2.1.0], pid[74419], build[72cd1f1/2015-11-18T22:40:03Z] [2015-11-27 20:59:15,910][INFO ][node ] [Ajak] initializing ... [2015-11-27 20:59:16,341][INFO ][plugins ] [Ajak] loaded [license, marvel-agent], sites [] [2015-11-27 20:59:16,387][INFO ][env ] [Ajak] using [1] data paths, mounts [[/ (/dev/disk1)]], net usable_space [36.6gb], net total_space [464.7gb], spins? [unknown], types [hfs] [2015-11-27 20:59:19,519][INFO ][node ] [Ajak] initialized [2015-11-27 20:59:19,519][INFO ][node ] [Ajak] starting ... [2015-11-27 20:59:19,657][INFO ][transport ] [Ajak] publish_address {127.0.0.1:9300}, bound_addresses {127.0.0.1:9300} [2015-11-27 20:59:19,669][INFO ][discovery ] [Ajak] workshop/K8cI0q5zTU-J-iuxKIBcIg [2015-11-27 20:59:22,697][INFO ][cluster.service ] [Ajak] new_master {Ajak}{K8cI0q5zTU-J-iuxKIBcIg}{127.0.0.1}{127.0.0.1:9300}, reason: zen-disco-join(elected_as_master, [0] joins received) [2015-11-27 20:59:22,712][INFO ][http ] [Ajak] publish_address {127.0.0.1:9200}, bound_addresses {127.0.0.1:9200} [2015-11-27 20:59:22,713][INFO ][node ] [Ajak] started </code></pre></div> <p dir="auto">I have a Java application using elasticsearch 2.0.0 jar as a client.</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Client client = TransportClient.builder().build() .addTransportAddress(new InetSocketTransportAddress(new InetSocketAddress(&quot;127.0.0.1&quot;, 9300))); if (!client.admin().indices().prepareExists(&quot;person&quot;).execute().actionGet().isExists()) { String indexSettings = readFileInClasspath(&quot;/settings.json&quot;); client.admin().indices().prepareCreate(&quot;person&quot;).setSettings(indexSettings).execute().actionGet(); }"><pre class="notranslate"><span class="pl-smi">Client</span> <span class="pl-s1">client</span> = <span class="pl-smi">TransportClient</span>.<span class="pl-en">builder</span>().<span class="pl-en">build</span>() .<span class="pl-en">addTransportAddress</span>(<span class="pl-k">new</span> <span class="pl-smi">InetSocketTransportAddress</span>(<span class="pl-k">new</span> <span class="pl-smi">InetSocketAddress</span>(<span class="pl-s">"127.0.0.1"</span>, <span class="pl-c1">9300</span>))); <span class="pl-k">if</span> (!<span class="pl-s1">client</span>.<span class="pl-en">admin</span>().<span class="pl-en">indices</span>().<span class="pl-en">prepareExists</span>(<span class="pl-s">"person"</span>).<span class="pl-en">execute</span>().<span class="pl-en">actionGet</span>().<span class="pl-en">isExists</span>()) { <span class="pl-smi">String</span> <span class="pl-s1">indexSettings</span> = <span class="pl-en">readFileInClasspath</span>(<span class="pl-s">"/settings.json"</span>); <span class="pl-s1">client</span>.<span class="pl-en">admin</span>().<span class="pl-en">indices</span>().<span class="pl-en">prepareCreate</span>(<span class="pl-s">"person"</span>).<span class="pl-en">setSettings</span>(<span class="pl-s1">indexSettings</span>).<span class="pl-en">execute</span>().<span class="pl-en">actionGet</span>(); }</pre></div> <p dir="auto">When running this, I get on the client side:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="nov. 27, 2015 9:03:03 PM org.elasticsearch.plugins.PluginsService &lt;init&gt; INFOS: [James Sanders] loaded [], sites [] nov. 27, 2015 9:03:03 PM org.elasticsearch.client.transport.TransportClientNodesService$SimpleNodeSampler doSample INFOS: [James Sanders] failed to get node info for {#transport#-1}{127.0.0.1}{127.0.0.1:9300}, disconnecting... RemoteTransportException[[Failed to deserialize response of type [org.elasticsearch.action.admin.cluster.node.liveness.LivenessResponse]]]; nested: TransportSerializationException[Failed to deserialize response of type [org.elasticsearch.action.admin.cluster.node.liveness.LivenessResponse]]; nested: ExceptionInInitializerError; nested: IllegalArgumentException[An SPI class of type org.apache.lucene.codecs.PostingsFormat with name 'Lucene50' does not exist. You need to add the corresponding JAR file supporting this SPI to your classpath. The current classpath supports the following names: [es090, completion090, XBloomFilter]]; Caused by: TransportSerializationException[Failed to deserialize response of type [org.elasticsearch.action.admin.cluster.node.liveness.LivenessResponse]]; nested: ExceptionInInitializerError; nested: IllegalArgumentException[An SPI class of type org.apache.lucene.codecs.PostingsFormat with name 'Lucene50' does not exist. You need to add the corresponding JAR file supporting this SPI to your classpath. The current classpath supports the following names: [es090, completion090, XBloomFilter]]; at org.elasticsearch.transport.netty.MessageChannelHandler.handleResponse(MessageChannelHandler.java:179) at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:138) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.ExceptionInInitializerError at org.elasticsearch.Version.fromId(Version.java:500) at org.elasticsearch.Version.readVersion(Version.java:276) at org.elasticsearch.cluster.node.DiscoveryNode.readFrom(DiscoveryNode.java:326) at org.elasticsearch.cluster.node.DiscoveryNode.readNode(DiscoveryNode.java:309) at org.elasticsearch.action.admin.cluster.node.liveness.LivenessResponse.readFrom(LivenessResponse.java:52) at org.elasticsearch.transport.netty.MessageChannelHandler.handleResponse(MessageChannelHandler.java:177) ... 23 more Caused by: java.lang.IllegalArgumentException: An SPI class of type org.apache.lucene.codecs.PostingsFormat with name 'Lucene50' does not exist. You need to add the corresponding JAR file supporting this SPI to your classpath. The current classpath supports the following names: [es090, completion090, XBloomFilter] at org.apache.lucene.util.NamedSPILoader.lookup(NamedSPILoader.java:109) at org.apache.lucene.codecs.PostingsFormat.forName(PostingsFormat.java:112) at org.elasticsearch.common.lucene.Lucene.&lt;clinit&gt;(Lucene.java:103) ... 29 more nov. 27, 2015 9:03:03 PM org.elasticsearch.client.transport.TransportClientNodesService$SimpleNodeSampler doSample INFOS: [James Sanders] failed to get node info for {#transport#-1}{127.0.0.1}{127.0.0.1:9300}, disconnecting... RemoteTransportException[[Failed to deserialize response of type [org.elasticsearch.action.admin.cluster.node.liveness.LivenessResponse]]]; nested: TransportSerializationException[Failed to deserialize response of type [org.elasticsearch.action.admin.cluster.node.liveness.LivenessResponse]]; nested: NoClassDefFoundError[Could not initialize class org.elasticsearch.common.lucene.Lucene]; Caused by: TransportSerializationException[Failed to deserialize response of type [org.elasticsearch.action.admin.cluster.node.liveness.LivenessResponse]]; nested: NoClassDefFoundError[Could not initialize class org.elasticsearch.common.lucene.Lucene]; at org.elasticsearch.transport.netty.MessageChannelHandler.handleResponse(MessageChannelHandler.java:179) at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:138) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.elasticsearch.common.lucene.Lucene at org.elasticsearch.Version.fromId(Version.java:500) at org.elasticsearch.Version.readVersion(Version.java:276) at org.elasticsearch.cluster.node.DiscoveryNode.readFrom(DiscoveryNode.java:326) at org.elasticsearch.cluster.node.DiscoveryNode.readNode(DiscoveryNode.java:309) at org.elasticsearch.action.admin.cluster.node.liveness.LivenessResponse.readFrom(LivenessResponse.java:52) at org.elasticsearch.transport.netty.MessageChannelHandler.handleResponse(MessageChannelHandler.java:177) ... 23 more Exception in thread &quot;main&quot; NoNodeAvailableException[None of the configured nodes are available: []] at org.elasticsearch.client.transport.TransportClientNodesService.ensureNodesAreAvailable(TransportClientNodesService.java:280) at org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:197) at org.elasticsearch.client.transport.support.TransportProxyClient.execute(TransportProxyClient.java:55) at org.elasticsearch.client.transport.TransportClient.doExecute(TransportClient.java:272) at org.elasticsearch.client.support.AbstractClient.execute(AbstractClient.java:347) at org.elasticsearch.client.support.AbstractClient$IndicesAdmin.execute(AbstractClient.java:1177) at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:85) at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:59) at org.elasticsearch.demo.workshop.injector.runner.Generate.main(Generate.java:103)"><pre class="notranslate"><code class="notranslate">nov. 27, 2015 9:03:03 PM org.elasticsearch.plugins.PluginsService &lt;init&gt; INFOS: [James Sanders] loaded [], sites [] nov. 27, 2015 9:03:03 PM org.elasticsearch.client.transport.TransportClientNodesService$SimpleNodeSampler doSample INFOS: [James Sanders] failed to get node info for {#transport#-1}{127.0.0.1}{127.0.0.1:9300}, disconnecting... RemoteTransportException[[Failed to deserialize response of type [org.elasticsearch.action.admin.cluster.node.liveness.LivenessResponse]]]; nested: TransportSerializationException[Failed to deserialize response of type [org.elasticsearch.action.admin.cluster.node.liveness.LivenessResponse]]; nested: ExceptionInInitializerError; nested: IllegalArgumentException[An SPI class of type org.apache.lucene.codecs.PostingsFormat with name 'Lucene50' does not exist. You need to add the corresponding JAR file supporting this SPI to your classpath. The current classpath supports the following names: [es090, completion090, XBloomFilter]]; Caused by: TransportSerializationException[Failed to deserialize response of type [org.elasticsearch.action.admin.cluster.node.liveness.LivenessResponse]]; nested: ExceptionInInitializerError; nested: IllegalArgumentException[An SPI class of type org.apache.lucene.codecs.PostingsFormat with name 'Lucene50' does not exist. You need to add the corresponding JAR file supporting this SPI to your classpath. The current classpath supports the following names: [es090, completion090, XBloomFilter]]; at org.elasticsearch.transport.netty.MessageChannelHandler.handleResponse(MessageChannelHandler.java:179) at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:138) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.ExceptionInInitializerError at org.elasticsearch.Version.fromId(Version.java:500) at org.elasticsearch.Version.readVersion(Version.java:276) at org.elasticsearch.cluster.node.DiscoveryNode.readFrom(DiscoveryNode.java:326) at org.elasticsearch.cluster.node.DiscoveryNode.readNode(DiscoveryNode.java:309) at org.elasticsearch.action.admin.cluster.node.liveness.LivenessResponse.readFrom(LivenessResponse.java:52) at org.elasticsearch.transport.netty.MessageChannelHandler.handleResponse(MessageChannelHandler.java:177) ... 23 more Caused by: java.lang.IllegalArgumentException: An SPI class of type org.apache.lucene.codecs.PostingsFormat with name 'Lucene50' does not exist. You need to add the corresponding JAR file supporting this SPI to your classpath. The current classpath supports the following names: [es090, completion090, XBloomFilter] at org.apache.lucene.util.NamedSPILoader.lookup(NamedSPILoader.java:109) at org.apache.lucene.codecs.PostingsFormat.forName(PostingsFormat.java:112) at org.elasticsearch.common.lucene.Lucene.&lt;clinit&gt;(Lucene.java:103) ... 29 more nov. 27, 2015 9:03:03 PM org.elasticsearch.client.transport.TransportClientNodesService$SimpleNodeSampler doSample INFOS: [James Sanders] failed to get node info for {#transport#-1}{127.0.0.1}{127.0.0.1:9300}, disconnecting... RemoteTransportException[[Failed to deserialize response of type [org.elasticsearch.action.admin.cluster.node.liveness.LivenessResponse]]]; nested: TransportSerializationException[Failed to deserialize response of type [org.elasticsearch.action.admin.cluster.node.liveness.LivenessResponse]]; nested: NoClassDefFoundError[Could not initialize class org.elasticsearch.common.lucene.Lucene]; Caused by: TransportSerializationException[Failed to deserialize response of type [org.elasticsearch.action.admin.cluster.node.liveness.LivenessResponse]]; nested: NoClassDefFoundError[Could not initialize class org.elasticsearch.common.lucene.Lucene]; at org.elasticsearch.transport.netty.MessageChannelHandler.handleResponse(MessageChannelHandler.java:179) at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:138) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.elasticsearch.common.lucene.Lucene at org.elasticsearch.Version.fromId(Version.java:500) at org.elasticsearch.Version.readVersion(Version.java:276) at org.elasticsearch.cluster.node.DiscoveryNode.readFrom(DiscoveryNode.java:326) at org.elasticsearch.cluster.node.DiscoveryNode.readNode(DiscoveryNode.java:309) at org.elasticsearch.action.admin.cluster.node.liveness.LivenessResponse.readFrom(LivenessResponse.java:52) at org.elasticsearch.transport.netty.MessageChannelHandler.handleResponse(MessageChannelHandler.java:177) ... 23 more Exception in thread "main" NoNodeAvailableException[None of the configured nodes are available: []] at org.elasticsearch.client.transport.TransportClientNodesService.ensureNodesAreAvailable(TransportClientNodesService.java:280) at org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:197) at org.elasticsearch.client.transport.support.TransportProxyClient.execute(TransportProxyClient.java:55) at org.elasticsearch.client.transport.TransportClient.doExecute(TransportClient.java:272) at org.elasticsearch.client.support.AbstractClient.execute(AbstractClient.java:347) at org.elasticsearch.client.support.AbstractClient$IndicesAdmin.execute(AbstractClient.java:1177) at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:85) at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:59) at org.elasticsearch.demo.workshop.injector.runner.Generate.main(Generate.java:103) </code></pre></div> <p dir="auto">If I update the client to 2.1.0, the exact same code now works perfectly.</p>
1
<p dir="auto">As discussed <a href="https://github.com/symfony/symfony/pull/17379#issuecomment-171905787" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/17379/hovercard">here</a>, it may be the time to think about refactoring the <code class="notranslate">Request</code> and the <code class="notranslate">Response</code> classes to follow the <code class="notranslate">php-fig</code> standards.</p> <p dir="auto">You can see this interfaces <a href="https://github.com/php-fig/http-message">here</a>.</p> <p dir="auto">Message from <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/iltar/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/iltar">@iltar</a>:</p> <blockquote> <p dir="auto">Actually, I've been thinking of converting the current Request/Response objects to builders. Parameter converters etc are all working by setting values and the same goes for response listeners. By converting the ResponseBuilder and RequestBuilder into a "frozen" variant, it can also be compliant with PSR. This means that when modifying the request &gt; builder but your action &gt; PSR request. Same goes for the response, you can return a Response(Builder), which gets converted to a PSR Response if not already.</p> </blockquote>
<p dir="auto">Naïve list gathered with grep. Let's make using each of these usable, standalone, in a PSR-7 centric app, or just check if there is something to do, or decide to not do it.</p> <h2 dir="auto">May handle PSR-7:</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Bridge/Doctrine (see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="98213202" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/15414" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/15414/hovercard?comment_id=126414399&amp;comment_type=issue_comment" href="https://github.com/symfony/symfony/issues/15414#issuecomment-126414399">#15414 (comment)</a>)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Bridge/Monolog</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Bridge/Swiftmailer (see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="98213202" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/15414" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/15414/hovercard?comment_id=126696544&amp;comment_type=issue_comment" href="https://github.com/symfony/symfony/issues/15414#issuecomment-126696544">#15414 (comment)</a>)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Bridge/Twig</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Component/Asset</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Component/Debug (see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="98228787" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/15415" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/15415/hovercard" href="https://github.com/symfony/symfony/pull/15415">#15415</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="98332503" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/15418" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/15418/hovercard" href="https://github.com/symfony/symfony/pull/15418">#15418</a>)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Component/Form</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Component/Routing</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Component/Security/Core</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Component/Security/Csrf (see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="98213202" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/15414" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/15414/hovercard?comment_id=126429803&amp;comment_type=issue_comment" href="https://github.com/symfony/symfony/issues/15414#issuecomment-126429803">#15414 (comment)</a>)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Component/Security/Http</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Component/Translation (see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="98213202" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/15414" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/15414/hovercard?comment_id=126698024&amp;comment_type=issue_comment" href="https://github.com/symfony/symfony/issues/15414#issuecomment-126698024">#15414 (comment)</a>)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Component/Validator (see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="98395893" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/15421" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/15421/hovercard" href="https://github.com/symfony/symfony/pull/15421">#15421</a>)</li> </ul> <h2 dir="auto">May not handle PSR-7:</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Component/HttpFoundation</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Component/HttpKernel</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Bundle/DebugBundle</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Bundle/FrameworkBundle</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Bundle/SecurityBundle</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Bundle/TwigBundle</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Bundle/WebProfilerBundle</li> </ul>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.1-SNAPSHOT</li> <li>Operating System version: all</li> <li>Java version: all</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <p dir="auto">1.config a reference using generic invoke<br> 2.config method of the reference with a name that is not contained by the interface(not the GenericService, but the real service that is invoked)</p> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <p dir="auto">What do you expected from the above steps?</p> <p dir="auto">report error of no such method</p> <p dir="auto">What actually happens?</p> <p dir="auto">no error reported</p> <p dir="auto">If there is an exception, please attach the exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here! </code></pre></div>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.5</li> <li>Operating System version: xxx</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>添加一个可以抛出java.lang.NoClassDefFoundError 的</li> <li>配置两个协议</li> <li>启动服务提供者,正常启动没有任何error或warn.</li> <li>测试接口调用(接口无法访问,查日志发现该接口第二个协议没有注册信息)</li> </ol> <p dir="auto">问题分析:<br> 经过多次debug ,发现在调用 InMemoryWritableMetadataService.publishServiceDefinition(providerUrl) 中,执行ServiceDefinitionBuilder.build(interfaceClass) 时,抛出了 java.lang.NoClassDefFoundError,导致该接口doExport失败,且不再继续进行该接口的其它协议export.</p> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">异常正常抛出或打印错误日志.</p> <p dir="auto">建议:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="catch (Throwable t){ //catch java.lang.NoClassDefFoundError logger.error(&quot;publishProvider getServiceDescriptor error. providerUrl: &quot; + providerUrl.toFullString(), t.getCause()); } "><pre class="notranslate"><code class="notranslate">catch (Throwable t){ //catch java.lang.NoClassDefFoundError logger.error("publishProvider getServiceDescriptor error. providerUrl: " + providerUrl.toFullString(), t.getCause()); } </code></pre></div> <h3 dir="auto">Actual Result</h3> <p dir="auto">provider没有正常暴露完成,但没有任何提示,导致异常无法发现和定位.</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>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> Route params at parent level change, child level resolver is called to resolve new data, but route data observers are not notified that data has changed.<br> See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="190078450" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/12942" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/12942/hovercard" href="https://github.com/angular/angular/issues/12942">#12942</a> where this issue as initially titled was fixed but the actual use case is still broken (I never tested the fix as the initial feedback was that the issue wasn't going to be fixed so prior to the fix landing I had already changed my routing to avoid this issue. Now attempting to refactor the resulting strange routing configuration and finding that the issue is still there)</p> <p dir="auto"><strong>Expected behavior</strong><br> Route observers would be given the newly resolved data</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p> <p dir="auto">See <a href="https://github.com/slubowsky/resolve-issue">https://github.com/slubowsky/resolve-issue</a><br> Run the app (ng serve). Click on the links to navigate. Resolver is called every navigation regardless of whether parent or child param changes and a message is logged to the console "FooResolve ..."</p> <p dir="auto">Component which has subscribed for route data is only notified (as evidenced by the console messages) when the child param changes.</p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br> Having resolver re-resolve the data without letting the components know is kind of useless...</p> <p dir="auto"><strong>Please tell us about your environment:</strong></p> <ul dir="auto"> <li><strong>Angular version:</strong> 2.0.X</li> </ul> <p dir="auto">@angular/cli: 1.0.0<br> node: 7.8.0<br> os: win32 x64<br> @angular/common: 4.0.1<br> @angular/compiler: 4.0.1<br> @angular/core: 4.0.1<br> @angular/forms: 4.0.1<br> @angular/http: 4.0.1<br> @angular/platform-browser: 4.0.1<br> @angular/platform-browser-dynamic: 4.0.1<br> @angular/router: 4.0.1<br> @angular/cli: 1.0.0<br> @angular/compiler-cli: 4.0.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> <ul dir="auto"> <li> <p dir="auto"><strong>Language:</strong> [all | TypeScript X.X | ES6/7 | ES5]</p> </li> <li> <p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> =</p> </li> </ul>
<p dir="auto">in my application I have a json object which is hardcoded. that values are bound with the input controls in the view. but if i changes the values of the json object during/based on some events, then those changes values are not getting reflected in the view/input controls? how do i forcefully reload/refresh the view?</p> <p dir="auto">please look the component below. In that the values which i have assigned inside the constructor gets reflected in the view during the load of the component.<br> based on some events on the parent component, the method LoadExtractorQueueDetails is called and the same variable this.sampleData is being set with some other values.<br> ideally i expect these values to be reflected in the view? but this doesn't seem to happen?<br> why it is not happening? how do i reload/refresh the views ?</p> <p dir="auto">`import { Component, Input, OnInit } from '@angular/core'<br> import { FORM_DIRECTIVES } from '@angular/common';</p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/component/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/component">@component</a>({<br> selector: 'extractorQueueDetails',<br> directives: [FORM_DIRECTIVES],<br> templateUrl: './HTML/Admin/ExtractorQueueDetails.html'<br> })<br> export class ExtractorQueueDetails {</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="resultData: ExtractorQueueItem; sampleData: Sample; constructor() { console.log(&quot;ExtractorQueueDetails component is loaded&quot;); this.sampleData = { queueId: 123, name: &quot;Krishnan&quot; }; } public LoadExtractorQueueDetails() { this.sampleData = { queueId: 456, name: &quot;Krishnan123&quot; }; }"><pre class="notranslate"><code class="notranslate">resultData: ExtractorQueueItem; sampleData: Sample; constructor() { console.log("ExtractorQueueDetails component is loaded"); this.sampleData = { queueId: 123, name: "Krishnan" }; } public LoadExtractorQueueDetails() { this.sampleData = { queueId: 456, name: "Krishnan123" }; } </code></pre></div> <p dir="auto">}`</p> <p dir="auto">My HTML template is like below<br> <code class="notranslate">&lt;input type="text" name="txtQueueID" class="form-control" id="txtQueueID" [(ngModel)]="sampleData.queueId" /&gt; &lt;input type="text" name="Description" class="form-control" [(ngModel)]="sampleData.name" id="Description" /&gt;</code></p>
0
<p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-soak-continuous-e2e-gce/6557/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-soak-continuous-e2e-gce/6557/</a></p> <p dir="auto">Failed: [k8s.io] Kubelet [Serial] [Slow] [k8s.io] regular resource usage tracking resource tracking for 0 pods per node {Kubernetes e2e suite}</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubelet_perf.go:278 Sep 19 03:49:34.643: Memory usage exceeding limits: node jenkins-e2e-minion-group-5uqi: container &quot;runtime&quot;: expected RSS memory (MB) &lt; 131072000; got 171597824, container &quot;kubelet&quot;: expected RSS memory (MB) &lt; 73400320; got 82259968 node jenkins-e2e-minion-group-7sff: container &quot;runtime&quot;: expected RSS memory (MB) &lt; 131072000; got 132644864 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubelet_perf.go:153"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubelet_perf.go:278 Sep 19 03:49:34.643: Memory usage exceeding limits: node jenkins-e2e-minion-group-5uqi: container "runtime": expected RSS memory (MB) &lt; 131072000; got 171597824, container "kubelet": expected RSS memory (MB) &lt; 73400320; got 82259968 node jenkins-e2e-minion-group-7sff: container "runtime": expected RSS memory (MB) &lt; 131072000; got 132644864 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubelet_perf.go:153 </code></pre></div> <p dir="auto">Previous issues for this test: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="158397793" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/26784" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/26784/hovercard" href="https://github.com/kubernetes/kubernetes/issues/26784">#26784</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163478516" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28384" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28384/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28384">#28384</a></p>
<p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-soak-continuous-e2e-gke/8553/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-soak-continuous-e2e-gke/8553/</a></p> <p dir="auto">Failed: [k8s.io] Kubelet [Serial] [Slow] [k8s.io] regular resource usage tracking resource tracking for 0 pods per node {Kubernetes e2e suite}</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubelet_perf.go:277 Sep 1 13:37:16.682: Memory usage exceeding limits: node gke-jenkins-e2e-default-pool-8cc0a277-uewx: container &quot;runtime&quot;: expected RSS memory (MB) &lt; 89128960; got 93290496 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubelet_perf.go:153"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubelet_perf.go:277 Sep 1 13:37:16.682: Memory usage exceeding limits: node gke-jenkins-e2e-default-pool-8cc0a277-uewx: container "runtime": expected RSS memory (MB) &lt; 89128960; got 93290496 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubelet_perf.go:153 </code></pre></div> <p dir="auto">Previous issues for this test: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="158397793" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/26784" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/26784/hovercard" href="https://github.com/kubernetes/kubernetes/issues/26784">#26784</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163478516" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28384" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28384/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28384">#28384</a></p>
1
<ul dir="auto"> <li>Electron version: 1.2.6</li> <li>Operating system: Windows 7</li> </ul> <p dir="auto">In the API demos, when moving around the error dialog, it leaves a trail. Curiously, the information dialog does not leave such a trail. Furthermore, you can see that the Start Menu also left an imprint on the left side of the window!</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/4595638/16896284/b123fba2-4b54-11e6-8091-2f2603a171f7.PNG"><img src="https://cloud.githubusercontent.com/assets/4595638/16896284/b123fba2-4b54-11e6-8091-2f2603a171f7.PNG" alt="capture" style="max-width: 100%;"></a></p>
<ul dir="auto"> <li>Log on to a Windows 7 machine</li> <li>Switch your theme to Windows Basic or Windows Classic (this has the side-effect of disabling Aero's DWM composition)</li> <li>Launch an Electron app</li> <li>Switch to another app window</li> <li>The other window fails to repaint:</li> </ul> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1865957/7892783/3bd6c34a-060c-11e5-8746-3815d26d6590.PNG"><img src="https://cloud.githubusercontent.com/assets/1865957/7892783/3bd6c34a-060c-11e5-8746-3815d26d6590.PNG" alt="window repaint issue" style="max-width: 100%;"></a></p> <p dir="auto">This occurs with almost every app that I've tried, so it seems like something funky with the Electron window. It may or may not require the presence of a <code class="notranslate">webview</code> tag; I haven't isolated that yet. Until now we've been advising users to switch to an Aero theme (this fixes the problem, but is undesirable for many).</p>
1
<p dir="auto">I'm using Atom on Linux Mint 17. Whenever I open Atom, I noticed my HDD led blinking like crazy. iotop shows atom is doing a lot of disk reads:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 5241 be/4 jfsantos 6.48 M/s 0.00 B/s 0.00 % 37.54 % atom --ev~trap.js'); 5242 be/4 jfsantos 5.75 M/s 0.00 B/s 0.00 % 36.67 % atom --ev~trap.js'); 5244 be/4 jfsantos 4.75 M/s 0.00 B/s 0.00 % 32.67 % atom --ev~trap.js'); 5243 be/4 jfsantos 3.83 M/s 0.00 B/s 0.00 % 30.87 % atom --ev~trap.js');"><pre class="notranslate"><code class="notranslate"> 5241 be/4 jfsantos 6.48 M/s 0.00 B/s 0.00 % 37.54 % atom --ev~trap.js'); 5242 be/4 jfsantos 5.75 M/s 0.00 B/s 0.00 % 36.67 % atom --ev~trap.js'); 5244 be/4 jfsantos 4.75 M/s 0.00 B/s 0.00 % 32.67 % atom --ev~trap.js'); 5243 be/4 jfsantos 3.83 M/s 0.00 B/s 0.00 % 30.87 % atom --ev~trap.js'); </code></pre></div> <p dir="auto">As soon as I close Atom, everything gets back to normal (iotop shows 0.00 B/s as total disk reads, as opposed to something around 12 M/s with atom running). I tried disabling all 3rd party plugins I downloaded but it did not help. Is there anything I could do to help investigating this issue?</p>
<p dir="auto">When I start atom for the first time I have a very high disc io. I've started iotop and found 4 apps running:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2288 be/4 user 717.17 K/s 0.00 B/s 0.00 % 98.51 % atom --eval require('/usr/local/share/atom/resources/app/node_modules/coffee-cash/lib/~ee/source-maps'); 2291 be/4 user 679.23 K/s 0.00 B/s 0.00 % 97.91 % atom --eval require('/usr/local/share/atom/resources/app/node_modules/coffee-cash/lib/~ee/source-maps'); 2290 be/4 user 694.40 K/s 0.00 B/s 0.00 % 97.41 % atom --eval require('/usr/local/share/atom/resources/app/node_modules/coffee-cash/lib/~ee/source-maps'); 2289 be/4 user 599.54 K/s 0.00 B/s 0.00 % 96.19 % atom --eval require('/usr/local/share/atom/resources/app/node_modules/coffee-cash/lib/~ee/source-maps');"><pre class="notranslate"><code class="notranslate">2288 be/4 user 717.17 K/s 0.00 B/s 0.00 % 98.51 % atom --eval require('/usr/local/share/atom/resources/app/node_modules/coffee-cash/lib/~ee/source-maps'); 2291 be/4 user 679.23 K/s 0.00 B/s 0.00 % 97.91 % atom --eval require('/usr/local/share/atom/resources/app/node_modules/coffee-cash/lib/~ee/source-maps'); 2290 be/4 user 694.40 K/s 0.00 B/s 0.00 % 97.41 % atom --eval require('/usr/local/share/atom/resources/app/node_modules/coffee-cash/lib/~ee/source-maps'); 2289 be/4 user 599.54 K/s 0.00 B/s 0.00 % 96.19 % atom --eval require('/usr/local/share/atom/resources/app/node_modules/coffee-cash/lib/~ee/source-maps'); </code></pre></div> <p dir="auto">its running for about a minute with 4 times almos 100% disc write usage. After a minute they are finished and no disc io</p> <p dir="auto">atom 0.180.0-ac7057b<br> Dell M4500 Notebook<br> Fedora 21</p>
1
<p dir="auto">It would be nice if Symfony core provide Javascript bundle to inject common javascript library e.g. jQuery to make the standard way for common use.</p> <p dir="auto">My idea, If we can just include javascript library (global modular) to our project with just config in our config file (app/config/config.yml or any place) it will be nice for download and use public bundles from any vendors who required same javascript library with out conflict or duplicate.</p> <p dir="auto">This's same composer idea and may use in this case.<br> <a href="https://github.com/caolan/jam">https://github.com/caolan/jam</a></p>
<table role="table"> <thead> <tr> <th>Q</th> <th>A</th> </tr> </thead> <tbody> <tr> <td>Bug report?</td> <td>yes</td> </tr> <tr> <td>Feature request?</td> <td>no</td> </tr> <tr> <td>BC Break report?</td> <td>no</td> </tr> <tr> <td>RFC?</td> <td>no</td> </tr> <tr> <td>Symfony version</td> <td>3.3</td> </tr> </tbody> </table> <p dir="auto">This is some kind of re-opening of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="192022956" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/20673" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/20673/hovercard" href="https://github.com/symfony/symfony/issues/20673">#20673</a>.<br> The implementations done in <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/symfony/symfony/commit/3b4a8f37300bc0fd48a7359e526eae93b56174f7/hovercard" href="https://github.com/symfony/symfony/commit/3b4a8f37300bc0fd48a7359e526eae93b56174f7"><tt>3b4a8f3</tt></a> missed the point.<br> Getting a <em>runnable</em> query like the following one:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="SELECT s0_.name AS name_0 FROM slide s0_ WHERE s0_.id = 'Object(Ramsey\\Uuid\\Uuid): \&quot;363dd322-488e-4a60-8caf-c3cfe51f9d7c\&quot;' LIMIT 1;"><pre class="notranslate"><code class="notranslate">SELECT s0_.name AS name_0 FROM slide s0_ WHERE s0_.id = 'Object(Ramsey\\Uuid\\Uuid): \"363dd322-488e-4a60-8caf-c3cfe51f9d7c\"' LIMIT 1; </code></pre></div> <p dir="auto">is pretty useless, because it's obviously not runnable at all.<br> What I expect is a query like this one:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="SELECT s0_.name AS name_0 FROM slide s0_ WHERE s0_.id = '363dd322-488e-4a60-8caf-c3cfe51f9d7c' LIMIT 1;"><pre class="notranslate"><code class="notranslate">SELECT s0_.name AS name_0 FROM slide s0_ WHERE s0_.id = '363dd322-488e-4a60-8caf-c3cfe51f9d7c' LIMIT 1; </code></pre></div> <p dir="auto">that is <strong>really</strong> runnable (e.g. I can copy&amp;paste in some database client)</p>
0
<p dir="auto">The linux/arm64 port has been broken since March 20. Now that I have access to hardware, here is a minimal reproduction:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="package main func main() { text := &quot;abc&quot; s := &amp;s{text} println(text[2] == s.text[2]) } type s struct { text string }"><pre class="notranslate"><code class="notranslate">package main func main() { text := "abc" s := &amp;s{text} println(text[2] == s.text[2]) } type s struct { text string } </code></pre></div> <p dir="auto">On linux/arm64 (tip <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/golang/go/commit/f8fd5502ecdba0f40d794d22f7eb14c9b471a773/hovercard" href="https://github.com/golang/go/commit/f8fd5502ecdba0f40d794d22f7eb14c9b471a773"><tt>f8fd550</tt></a>), bootstrapped with <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/golang/go/commit/11dba2ec2d8fcedc1da0103925c254586ef51120/hovercard" href="https://github.com/golang/go/commit/11dba2ec2d8fcedc1da0103925c254586ef51120"><tt>11dba2e</tt></a>, this prints false.</p> <p dir="auto">/cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/davecheney/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/davecheney">@davecheney</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/4ad/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/4ad">@4ad</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rsc/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rsc">@rsc</a></p>
<p dir="auto">Distilled from one of the failures in go test strings, a small-ish test case looks like this:</p> <div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="mwhudson@am2:~/go/src$ cat s5.go package main import &quot;fmt&quot; type stringFinder struct { pattern string } var f = &amp;stringFinder{pattern: &quot;He&quot;} func next() int { i := 1 for i &lt; 6 { // Compare backwards from the end until the first unmatching character. j := 1 for j &gt;= 0 &amp;&amp; &quot;xHello&quot;[i] == f.pattern[j] { i-- j-- } if j &lt; 0 { return i + 1 // match } i += 1 } return -1 } func main() { fmt.Println(next()) } mwhudson@am2:~/go/src$ ~/go/bin/go run s5.go -1 mwhudson@am2:~/go/src$ ~/go1.4/bin/go run s5.go 1"><pre class="notranslate"><span class="pl-e">mwhudson@am2:~/go/src</span>$ <span class="pl-s1">cat s5.go</span> <span class="pl-c1">package main</span> <span class="pl-c1">import "fmt"</span> <span class="pl-c1">type stringFinder struct {</span> <span class="pl-c1"> pattern string</span> <span class="pl-c1">}</span> <span class="pl-c1">var f = &amp;stringFinder{pattern: "He"}</span> <span class="pl-c1">func next() int {</span> <span class="pl-c1"> i := 1</span> <span class="pl-c1"> for i &lt; 6 {</span> <span class="pl-c1"> // Compare backwards from the end until the first unmatching character.</span> <span class="pl-c1"> j := 1</span> <span class="pl-c1"> for j &gt;= 0 &amp;&amp; "xHello"[i] == f.pattern[j] {</span> <span class="pl-c1"> i--</span> <span class="pl-c1"> j--</span> <span class="pl-c1"> }</span> <span class="pl-c1"> if j &lt; 0 {</span> <span class="pl-c1"> return i + 1 // match</span> <span class="pl-c1"> }</span> <span class="pl-c1"> i += 1</span> <span class="pl-c1"> }</span> <span class="pl-c1"> return -1</span> <span class="pl-c1">}</span> <span class="pl-c1">func main() {</span> <span class="pl-c1"> fmt.Println(next())</span> <span class="pl-c1">}</span> <span class="pl-e">mwhudson@am2:~/go/src</span>$ <span class="pl-s1"><span class="pl-k">~</span>/go/bin/go run s5.go</span> <span class="pl-c1">-1</span> <span class="pl-e">mwhudson@am2:~/go/src</span>$ <span class="pl-s1"><span class="pl-k">~</span>/go1.4/bin/go run s5.go</span> <span class="pl-c1">1</span></pre></div> <p dir="auto">This assembles to <a href="https://gist.github.com/mwhudson/41bbb7f10f6eda55ad86">https://gist.github.com/mwhudson/41bbb7f10f6eda55ad86</a>, which is as hard to read as any page of assembly, but single stepping through in gdb shows the problem: line 25 loads "xHellox"[i] into w0 and line 32 stomps on it, before line 39 does the comparison.</p>
1
<p dir="auto">Please answer these questions before submitting your issue. Thanks!</p> <ol dir="auto"> <li>What version of Go are you using (<code class="notranslate">go version</code>)?</li> </ol> <p dir="auto">Go tip.</p> <ol dir="auto"> <li>What operating system and processor architecture are you using (<code class="notranslate">go env</code>)?</li> </ol> <p dir="auto">OS X and Linux on Travis</p> <ol dir="auto"> <li>What did you do?</li> </ol> <p dir="auto">Build Hugo (<a href="https://github.com/spf13/hugo">https://github.com/spf13/hugo</a>).</p> <p dir="auto">If possible, provide a recipe for reproducing the error.<br> A complete runnable program is good.<br> A link on play.golang.org is best.</p> <p dir="auto">See <a href="https://travis-ci.org/spf13/hugo/builds/121437210" rel="nofollow">https://travis-ci.org/spf13/hugo/builds/121437210</a></p> <ol dir="auto"> <li>What did you expect to see?</li> </ol> <p dir="auto">All green.</p> <ol dir="auto"> <li>What did you see instead?</li> </ol> <p dir="auto">Build fails on Go tip, both OS X and Linux.</p> <p dir="auto">I tried to see if this is a duplicate of an already reported issue, but it's hard to tell.</p> <p dir="auto">There is a test failure that I haven't looked into, but then there are these build failures:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="19.35s$ go build -race # github.com/pkg/sftp ../../pkg/sftp/client.go:829: internal error: (*File).WriteTo autotmp_781 (type *[]byte) recorded as live on entry, p.Pc=10248 # github.com/russross/blackfriday ../../russross/blackfriday/html.go:932: internal error: (*Html).ensureUniqueHeaderID autotmp_747 (type *int) recorded as live on entry, p.Pc=15486"><pre class="notranslate"><code class="notranslate">19.35s$ go build -race # github.com/pkg/sftp ../../pkg/sftp/client.go:829: internal error: (*File).WriteTo autotmp_781 (type *[]byte) recorded as live on entry, p.Pc=10248 # github.com/russross/blackfriday ../../russross/blackfriday/html.go:932: internal error: (*Html).ensureUniqueHeaderID autotmp_747 (type *int) recorded as live on entry, p.Pc=15486 </code></pre></div> <p dir="auto">Not sure when these failures started to happen ...</p>
<p dir="auto">This was first reported here <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="145307077" data-permission-text="Title is private" data-url="https://github.com/russross/blackfriday/issues/251" data-hovercard-type="issue" data-hovercard-url="/russross/blackfriday/issues/251/hovercard" href="https://github.com/russross/blackfriday/issues/251">russross/blackfriday#251</a>, but it looks like a Go compiler issue.</p> <h6 dir="auto">What version of Go are you using (<code class="notranslate">go version</code>)?</h6> <p dir="auto"><code class="notranslate">go version devel +59fc42b Fri Apr 1 22:23:13 2016 +0000 linux/amd64</code></p> <h6 dir="auto">What operating system and processor architecture are you using (<code class="notranslate">go env</code>)?</h6> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="GOARCH=&quot;amd64&quot; GOBIN=&quot;&quot; GOEXE=&quot;&quot; GOHOSTARCH=&quot;amd64&quot; GOHOSTOS=&quot;linux&quot; GOOS=&quot;linux&quot; GOPATH=&quot;/home/gyuho/go&quot; GORACE=&quot;&quot; GOROOT=&quot;/home/gyuho/go-master/go&quot; GOTOOLDIR=&quot;/home/gyuho/go-master/go/pkg/tool/linux_amd64&quot; CC=&quot;gcc&quot; GOGCCFLAGS=&quot;-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build999228004=/tmp/go-build -gno-record-gcc-switches&quot; CXX=&quot;g++&quot; CGO_ENABLED=&quot;1&quot;"><pre class="notranslate"><code class="notranslate">GOARCH="amd64" GOBIN="" GOEXE="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOOS="linux" GOPATH="/home/gyuho/go" GORACE="" GOROOT="/home/gyuho/go-master/go" GOTOOLDIR="/home/gyuho/go-master/go/pkg/tool/linux_amd64" CC="gcc" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build999228004=/tmp/go-build -gno-record-gcc-switches" CXX="g++" CGO_ENABLED="1" </code></pre></div> <h6 dir="auto">What did you do?</h6> <p dir="auto">I just run <code class="notranslate">go build -race</code> to reproduce:</p> <div class="highlight highlight-source-go notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="package sample type Html struct { headerIDs map[string]int } func (options *Html) header(id string) string { for count, found := options.headerIDs[id]; found; count, found = options.headerIDs[id] { _ = count } return &quot;&quot; }"><pre class="notranslate"><span class="pl-k">package</span> sample <span class="pl-k">type</span> <span class="pl-smi">Html</span> <span class="pl-k">struct</span> { <span class="pl-c1">headerIDs</span> <span class="pl-k">map</span>[<span class="pl-smi">string</span>]<span class="pl-smi">int</span> } <span class="pl-k">func</span> (<span class="pl-s1">options</span> <span class="pl-c1">*</span><span class="pl-smi">Html</span>) <span class="pl-en">header</span>(<span class="pl-s1">id</span> <span class="pl-smi">string</span>) <span class="pl-smi">string</span> { <span class="pl-k">for</span> <span class="pl-s1">count</span>, <span class="pl-s1">found</span> <span class="pl-c1">:=</span> <span class="pl-s1">options</span>.<span class="pl-c1">headerIDs</span>[<span class="pl-s1">id</span>]; <span class="pl-s1">found</span>; <span class="pl-s1">count</span>, <span class="pl-s1">found</span> <span class="pl-c1">=</span> <span class="pl-s1">options</span>.<span class="pl-c1">headerIDs</span>[<span class="pl-s1">id</span>] { <span class="pl-s1">_</span> <span class="pl-c1">=</span> <span class="pl-s1">count</span> } <span class="pl-k">return</span> <span class="pl-s">""</span> }</pre></div> <h6 dir="auto">What did you expect to see?</h6> <p dir="auto">No error message.</p> <h6 dir="auto">What did you see instead?</h6> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="./sample.go:7: internal error: (*Html).header autotmp_3 (type *int) recorded as live on entry, p.Pc=0"><pre class="notranslate"><code class="notranslate">./sample.go:7: internal error: (*Html).header autotmp_3 (type *int) recorded as live on entry, p.Pc=0 </code></pre></div> <p dir="auto">Thank you all!</p>
1
<h3 dir="auto">Preflight Checklist</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li> </ul> <h3 dir="auto">Issue Details</h3> <ul dir="auto"> <li><strong>Electron Version:</strong> 9.0.0</li> <li><strong>Operating System:</strong> macOS 10.14.6</li> <li><strong>Last Known Working Electron version:</strong> 8.3.0</li> </ul> <h3 dir="auto">To Reproduce</h3> <ul dir="auto"> <li>Create any page with an <code class="notranslate">&lt;input&gt;</code>, <code class="notranslate">&lt;textarea&gt;</code>, or other control, open it in Electron, and focus it.</li> </ul> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">The control should have a blue outline, as it does in Chrome 83:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/10314059/83318021-c8233a00-a1f6-11ea-9485-f47595a0fbd2.png"><img width="587" src="https://user-images.githubusercontent.com/10314059/83318021-c8233a00-a1f6-11ea-9485-f47595a0fbd2.png" style="max-width: 100%;"></a></p> <h3 dir="auto">Actual Behavior</h3> <p dir="auto">The control has an orange outline:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/10314059/83318032-d6715600-a1f6-11ea-8dc6-dc7a7f3c0bcc.png"><img width="714" src="https://user-images.githubusercontent.com/10314059/83318032-d6715600-a1f6-11ea-8dc6-dc7a7f3c0bcc.png" style="max-width: 100%;"></a></p>
<h3 dir="auto">Preflight Checklist</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li> </ul> <h3 dir="auto">Issue Details</h3> <ul dir="auto"> <li><strong>Electron Version:</strong> <ul dir="auto"> <li>9.0.0</li> </ul> </li> <li><strong>Operating System:</strong> <ul dir="auto"> <li>macOS 10.15.4</li> </ul> </li> <li><strong>Last Known Working Electron version:</strong> <ul dir="auto"> <li>8.3.0</li> </ul> </li> </ul> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">checkboxes should use the accent color that is set in System Preferences &gt; General</p> <h3 dir="auto">Actual Behavior</h3> <p dir="auto">checkboxes remain blue</p> <h3 dir="auto">To Reproduce</h3> <p dir="auto">using electron fiddle:<br> <a href="https://gist.github.com/e27800f409182981352b68a90690c4a6">https://gist.github.com/e27800f409182981352b68a90690c4a6</a></p> <h3 dir="auto">Screenshots</h3> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1267580/82912561-8a5fb080-9f6d-11ea-9612-26bedf702a3c.png"><img width="759" alt="checkbox-accent-color" src="https://user-images.githubusercontent.com/1267580/82912561-8a5fb080-9f6d-11ea-9612-26bedf702a3c.png" style="max-width: 100%;"></a></p> ### Additional Information
1
<p dir="auto">

How about building a crypto module entirely implemented in WebAssembly?</p> <p dir="auto">Benefits would include: good performance, optimal portability</p> <p dir="auto">Luckily, we could also get timing safety for WebAssembly by patching V8 to <a href="https://github.com/denoland/deno/issues/3097" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/3097/hovercard">implement CT-Wasm</a>.</p>
<p dir="auto">Some applications like handling password will require hashing and encryption. These operations could be implemented in js/ts, but It really needs to be handled from a trusted environment to be secure. It looks like there have been some attempts to get this one rolling before recently with <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="395880648" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/1461" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/1461/hovercard" href="https://github.com/denoland/deno/pull/1461">#1461</a>.</p>
1
<p dir="auto">For example when you apply ".hidden-xs" to a <span>, it turns into a block, rather than an inline element, when visible.</span></p>
<p dir="auto">related to issues <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="16856611" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/8500" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/8500/hovercard" href="https://github.com/twbs/bootstrap/pull/8500">#8500</a> , <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="14075731" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/7808" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/7808/hovercard" href="https://github.com/twbs/bootstrap/issues/7808">#7808</a> , <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="6609454" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/4929" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/4929/hovercard" href="https://github.com/twbs/bootstrap/issues/4929">#4929</a> ; using <code class="notranslate">.hidden-sm</code> to hide span within <code class="notranslate">.nav &gt; li &gt; a</code> . Because class is <code class="notranslate">display: block</code> above -sm then text wraps to new line. Would you consider <code class="notranslate">.hidden-*</code> classes to be <code class="notranslate">display: inline-block</code> instead ?</p> <p dir="auto">Here's a jsfiddle of the two cases - but the repercussions could be greater outside of this situation so probably needs more consideration... <a href="http://jsfiddle.net/jholl/P86yf/" rel="nofollow">http://jsfiddle.net/jholl/P86yf/</a></p>
1
<p dir="auto">How could I make animations like in <a href="https://www.google.com/design/spec/animation/authentic-motion.html" rel="nofollow">Google's Material Design guidelines</a>?<br> Maybe it is too much for the proposal of these components but [IMHO] It would be nice have a way to implement these default animations and to extends new animations easily, woudn't it?</p>
<p dir="auto">Is there planned work on implementing any of these ideas? <a href="https://www.google.com/design/spec/animation/meaningful-transitions.html" rel="nofollow">https://www.google.com/design/spec/animation/meaningful-transitions.html</a></p>
1
<p dir="auto">This was a recent regression.</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="extern &quot;C&quot; fn main() {}"><pre class="notranslate"><span class="pl-k">extern</span> <span class="pl-s">"C"</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-kos">}</span></pre></div> <p dir="auto">gives</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="extern-rust.rs:1:0: 1:23 error: main function expects type: `fn()`: expected &quot;Rust&quot; fn but found &quot;C&quot; fn extern-rust.rs:1 extern &quot;C&quot; fn main() {} ^~~~~~~~~~~~~~~~~~~~~~~"><pre class="notranslate"><code class="notranslate">extern-rust.rs:1:0: 1:23 error: main function expects type: `fn()`: expected "Rust" fn but found "C" fn extern-rust.rs:1 extern "C" fn main() {} ^~~~~~~~~~~~~~~~~~~~~~~ </code></pre></div> <p dir="auto">but changing the <code class="notranslate">"C"</code> to a <code class="notranslate">"Rust"</code> as the error message implies might work gives</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="extern-rust.rs:1:0: 1:26 error: main function expects type: `fn()`: expected impure fn but found extern fn extern-rust.rs:1 extern &quot;Rust&quot; fn main() {} ^~~~~~~~~~~~~~~~~~~~~~~~~~"><pre class="notranslate"><code class="notranslate">extern-rust.rs:1:0: 1:26 error: main function expects type: `fn()`: expected impure fn but found extern fn extern-rust.rs:1 extern "Rust" fn main() {} ^~~~~~~~~~~~~~~~~~~~~~~~~~ </code></pre></div> <p dir="auto">which is peculiar because it doesn't pass the entry-point-type-checker (although it'd hit <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="23566062" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/10763" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/10763/hovercard" href="https://github.com/rust-lang/rust/issues/10763">#10763</a> even if it did), and it mentions <code class="notranslate">impure fn</code> even though this is now essentially a historical implementation detail of the AST (after the removal of <code class="notranslate">pure fn</code>).</p>
0
<p dir="auto">Let's say that you have a JSON document similar to this:</p> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;value&quot;: 5, }"><pre class="notranslate">{ <span class="pl-ent">"value"</span>: <span class="pl-c1">5</span>, }</pre></div> <p dir="auto">And the value of <code class="notranslate">value</code> can be either a number or a string.</p> <p dir="auto">There is currently no way to write a generic implementation of <code class="notranslate">Decodable</code> that can handle this. Attempting to read the value of <code class="notranslate">value</code> will remove it and throw it away, even if the read triggers an error. You can't try to read a number and then read a string if it fails.</p> <p dir="auto">The element is returned in the <code class="notranslate">DecoderError</code>, so it should be possible to write an implementation of <code class="notranslate">Decodable</code> specifically for Json, but if you do so you can't put the object within another object that has <code class="notranslate">#[deriving(Decodable)]</code>.</p>
<p dir="auto">Now it's impossible to implement Decodable for a map with different value types<br> because read_* methods lose the stack head anyway.<br> Decodable doesn't have a method returning the stack head as-is without any type casting.</p> <p dir="auto">Let's look a case where Json dictionary has values with int and String types.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="extern crate serialize; use serialize::{Decodable, Decoder}; use serialize::json::{Json, Boolean, String, Null, I64, U64, F64}; use serialize::json; #[deriving(Show)] struct Primitive(Json); impl&lt;S: Decoder&lt;E&gt;, E&gt; Decodable&lt;S, E&gt; for Primitive { fn decode(decoder: &amp;mut S) -&gt; Result&lt;Primitive, E&gt; { match decoder.pop() { n @ I64(_) =&gt; Primitive(n), n @ U64(_) =&gt; Primitive(n), n @ F64(_) =&gt; Primitive(n), s @ String(_) =&gt; Primitive(s), bad =&gt; fail!(&quot;bad {}&quot;, bad) } } }"><pre class="notranslate"><code class="notranslate">extern crate serialize; use serialize::{Decodable, Decoder}; use serialize::json::{Json, Boolean, String, Null, I64, U64, F64}; use serialize::json; #[deriving(Show)] struct Primitive(Json); impl&lt;S: Decoder&lt;E&gt;, E&gt; Decodable&lt;S, E&gt; for Primitive { fn decode(decoder: &amp;mut S) -&gt; Result&lt;Primitive, E&gt; { match decoder.pop() { n @ I64(_) =&gt; Primitive(n), n @ U64(_) =&gt; Primitive(n), n @ F64(_) =&gt; Primitive(n), s @ String(_) =&gt; Primitive(s), bad =&gt; fail!("bad {}", bad) } } } </code></pre></div>
1
<p dir="auto"><strong>Glide Version</strong>: 4.12.0</p> <p dir="auto"><strong>Device/Android Version</strong>: Explicitly tested on Pixel 5 running Android 12, but this is applicable to all devices and Android versions.</p> <p dir="auto"><strong>Issue details / Repro steps / Use case background</strong>:</p> <p dir="auto">When using a placeholder resource ID like so, Glide uses an unexpected Context to load the drawable:</p> <div class="highlight highlight-source-kotlin notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="val options = RequestOptions().placeholder(R.color.some_color_resource) Glide.with(imageView.context) .load(&quot;http://the.url&quot;) .apply(options) .into(imageView)"><pre class="notranslate"><span class="pl-k">val</span> options <span class="pl-k">=</span> <span class="pl-en">RequestOptions</span>().placeholder(<span class="pl-en">R</span>.color.some_color_resource) <span class="pl-en">Glide</span>.<span class="pl-c1">with</span>(imageView.context) .load(<span class="pl-s"><span class="pl-pds">"</span>http://the.url<span class="pl-pds">"</span></span>) .<span class="pl-c1">apply</span>(options) .into(imageView)</pre></div> <p dir="auto">I would expect this to use the imageView's context to load the Placeholder (which in most cases would be an <code class="notranslate">Activity</code>), but in fact it uses the application context to load the image.</p> <p dir="auto">This is because <code class="notranslate">SingleRequest</code> <a href="https://github.com/bumptech/glide/blob/master/library/src/main/java/com/bumptech/glide/request/SingleRequest.java#L410">uses <code class="notranslate">glideContext</code> to load the drawable</a>.</p> <p dir="auto">The reason we discovered this is this behavior <strong>does not work well with dark mode</strong>. Specifically, if the device is currently in dark mode but an application has set itself to <code class="notranslate">MODE_NIGHT_NO</code> via <code class="notranslate">AppCompatDelegate.setDefaultNightMode()</code> then the placeholder will be incorrectly loaded from <code class="notranslate">values-night</code>.</p> <p dir="auto"><strong>Glide load line / <code class="notranslate">GlideModule</code> (if any) / list Adapter code (if any)</strong>:</p> <div class="highlight highlight-source-kotlin notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="val options = RequestOptions().placeholder(R.color.some_color_resource) Glide.with(imageView.context) .load(&quot;http://the.url&quot;) .apply(options) .into(imageView)"><pre class="notranslate"><span class="pl-k">val</span> options <span class="pl-k">=</span> <span class="pl-en">RequestOptions</span>().placeholder(<span class="pl-en">R</span>.color.some_color_resource) <span class="pl-en">Glide</span>.<span class="pl-c1">with</span>(imageView.context) .load(<span class="pl-s"><span class="pl-pds">"</span>http://the.url<span class="pl-pds">"</span></span>) .<span class="pl-c1">apply</span>(options) .into(imageView)</pre></div> <p dir="auto"><strong>values/colors.xml</strong>:</p> <div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;color name=&quot;some_color_resource&quot;&gt;#ff000000&lt;/color&gt;"><pre class="notranslate">&lt;<span class="pl-ent">color</span> <span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>some_color_resource<span class="pl-pds">"</span></span>&gt;#ff000000&lt;/<span class="pl-ent">color</span>&gt;</pre></div> <p dir="auto"><strong>values-night/colors.xml</strong>:</p> <div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;color name=&quot;some_color_resource&quot;&gt;#ffffffff&lt;/color&gt;"><pre class="notranslate">&lt;<span class="pl-ent">color</span> <span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>some_color_resource<span class="pl-pds">"</span></span>&gt;#ffffffff&lt;/<span class="pl-ent">color</span>&gt;</pre></div> <p dir="auto"><strong>SampleApplication.kt</strong>:</p> <div class="highlight highlight-source-kotlin notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class SampleApplication : Application { override fun onCreate() { AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO) } }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-en">SampleApplication</span> : <span class="pl-en">Application</span> { <span class="pl-k">override</span> <span class="pl-k">fun</span> <span class="pl-en">onCreate</span>() { <span class="pl-en">AppCompatDelegate</span>.setDefaultNightMode(<span class="pl-en">AppCompatDelegate</span>.<span class="pl-en">MODE_NIGHT_NO</span>) } }</pre></div>
<p dir="auto">Hi</p> <p dir="auto">soon with Android Q the night mode will be very important in my opinion and it would be nice if you can fix this little problem. Glide does not find pictures in the following directories:</p> <p dir="auto">drawable-night<br> drawable-night-hdpi (also mdpi, xhdpi, xxhdpi and xxxhdpi)</p> <p dir="auto">Greets</p> <p dir="auto">Frank</p>
1
<p dir="auto">In the very long line, escape string disturb syntax highlighting. For example the line below (MySQL),</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="INSERT INTO `wp_microbenotesposts` VALUES (1,1,'2014-10-24 11:26:58','2014-10-24 11:26:58','Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!','Hello world!','','publish','open','open','','hello-world','','','2014-10-24 11:26:58','2014-10-24 11:26:58','',0,'http://localhost/microbenote/?p=1',0,'post','',1),(2,1,'2014-10-24 11:26:58','2014-10-24 11:26:58','This is an example page. It\'s different from a blog post because it will stay in one place and will show up in your site navigation (in most themes). Most people start with an About page that introduces them to potential site visitors. It might say something like this:\n\n&lt;blockquote&gt;Hi there! I\'m a bike messenger by day, aspiring actor by night, and this is my blog. I live in Los Angeles, have a great dog named Jack, and I like pi&amp;#241;a coladas. (And gettin\' caught in the rain.)&lt;/blockquote&gt;\n\n...or something like this:\n\n&lt;blockquote&gt;The XYZ Doohickey Company was founded in 1971, and has been providing quality doohickeys to the public ever since. Located in Gotham City, XYZ employs over 2,000 people and does all kinds of awesome things for the Gotham community.&lt;/blockquote&gt;\n\nAs a new WordPress user, you should go to &lt;a href=\&quot;http://localhost/microbenote/wp-admin/\&quot;&gt;your dashboard&lt;/a&gt; to delete this page and create new pages for your content. Have fun!','Sample Page','','publish','open','open','','sample-page','','','2014-10-24 11:26:58','2014-10-24 11:26:58','',0,'http://localhost/microbenote/?page_id=2',0,'page','',0),(3,1,'2014-10-24 11:27:28','0000-00-00 00:00:00','','Auto Draft','','auto-draft','open','open','','','','','2014-10-24 11:27:28','0000-00-00 00:00:00','',0,'http://localhost/microbenote/?p=3',0,'post','',0);"><pre class="notranslate"><code class="notranslate">INSERT INTO `wp_microbenotesposts` VALUES (1,1,'2014-10-24 11:26:58','2014-10-24 11:26:58','Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!','Hello world!','','publish','open','open','','hello-world','','','2014-10-24 11:26:58','2014-10-24 11:26:58','',0,'http://localhost/microbenote/?p=1',0,'post','',1),(2,1,'2014-10-24 11:26:58','2014-10-24 11:26:58','This is an example page. It\'s different from a blog post because it will stay in one place and will show up in your site navigation (in most themes). Most people start with an About page that introduces them to potential site visitors. It might say something like this:\n\n&lt;blockquote&gt;Hi there! I\'m a bike messenger by day, aspiring actor by night, and this is my blog. I live in Los Angeles, have a great dog named Jack, and I like pi&amp;#241;a coladas. (And gettin\' caught in the rain.)&lt;/blockquote&gt;\n\n...or something like this:\n\n&lt;blockquote&gt;The XYZ Doohickey Company was founded in 1971, and has been providing quality doohickeys to the public ever since. Located in Gotham City, XYZ employs over 2,000 people and does all kinds of awesome things for the Gotham community.&lt;/blockquote&gt;\n\nAs a new WordPress user, you should go to &lt;a href=\"http://localhost/microbenote/wp-admin/\"&gt;your dashboard&lt;/a&gt; to delete this page and create new pages for your content. Have fun!','Sample Page','','publish','open','open','','sample-page','','','2014-10-24 11:26:58','2014-10-24 11:26:58','',0,'http://localhost/microbenote/?page_id=2',0,'page','',0),(3,1,'2014-10-24 11:27:28','0000-00-00 00:00:00','','Auto Draft','','auto-draft','open','open','','','','','2014-10-24 11:27:28','0000-00-00 00:00:00','',0,'http://localhost/microbenote/?p=3',0,'post','',0); </code></pre></div> <p dir="auto">The line below it will be parsed (highlighted) as string.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/3030950/4777875/41a139e2-5bd8-11e4-9aa6-22d1bd448ebb.png"><img src="https://cloud.githubusercontent.com/assets/3030950/4777875/41a139e2-5bd8-11e4-9aa6-22d1bd448ebb.png" alt="screenshot from 2014-10-25 06 47 26" style="max-width: 100%;"></a></p>
<p dir="auto">I opened a Python file with the following line (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="20976125" data-permission-text="Title is private" data-url="https://github.com/atom/atom/issues/963" data-hovercard-type="pull_request" data-hovercard-url="/atom/atom/pull/963/hovercard" href="https://github.com/atom/atom/pull/963">#963</a>):</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" PrintAndLog(u&quot;SSID: &quot; + RememberedNetwork[&quot;SSIDString&quot;].decode(&quot;utf-8&quot;) + u&quot; - BSSID: &quot; + RememberedNetwork[&quot;CachedScanRecord&quot;][&quot;BSSID&quot;] + u&quot; - RSSI: &quot; + str(RememberedNetwork[&quot;CachedScanRecord&quot;][&quot;RSSI&quot;]) + u&quot; - Last connected: &quot; + str(RememberedNetwork[&quot;LastConnected&quot;]) + u&quot; - Security type: &quot; + RememberedNetwork[&quot;SecurityType&quot;] + u&quot; - Geolocation: &quot; + Geolocation, &quot;INFO&quot;)"><pre class="notranslate"> <span class="pl-v">PrintAndLog</span>(<span class="pl-s">u"SSID: "</span> <span class="pl-c1">+</span> <span class="pl-v">RememberedNetwork</span>[<span class="pl-s">"SSIDString"</span>].<span class="pl-en">decode</span>(<span class="pl-s">"utf-8"</span>) <span class="pl-c1">+</span> <span class="pl-s">u" - BSSID: "</span> <span class="pl-c1">+</span> <span class="pl-v">RememberedNetwork</span>[<span class="pl-s">"CachedScanRecord"</span>][<span class="pl-s">"BSSID"</span>] <span class="pl-c1">+</span> <span class="pl-s">u" - RSSI: "</span> <span class="pl-c1">+</span> <span class="pl-en">str</span>(<span class="pl-v">RememberedNetwork</span>[<span class="pl-s">"CachedScanRecord"</span>][<span class="pl-s">"RSSI"</span>]) <span class="pl-c1">+</span> <span class="pl-s">u" - Last connected: "</span> <span class="pl-c1">+</span> <span class="pl-en">str</span>(<span class="pl-v">RememberedNetwork</span>[<span class="pl-s">"LastConnected"</span>]) <span class="pl-c1">+</span> <span class="pl-s">u" - Security type: "</span> <span class="pl-c1">+</span> <span class="pl-v">RememberedNetwork</span>[<span class="pl-s">"SecurityType"</span>] <span class="pl-c1">+</span> <span class="pl-s">u" - Geolocation: "</span> <span class="pl-c1">+</span> <span class="pl-v">Geolocation</span>, <span class="pl-s">"INFO"</span>)</pre></div> <p dir="auto">Which led to the following bug:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/e06069206d526a16adf21e84cd179f1185d3fb5e0f05fea4d4b4a08a978092f4/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f34343737342f323331333737382f37366262346262612d613330642d313165332d396136342d3831663666393163323563342e706e67"><img src="https://camo.githubusercontent.com/e06069206d526a16adf21e84cd179f1185d3fb5e0f05fea4d4b4a08a978092f4/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f34343737342f323331333737382f37366262346262612d613330642d313165332d396136342d3831663666393163323563342e706e67" alt="screen shot 2014-03-03 at 2 52 40 pm" data-canonical-src="https://f.cloud.github.com/assets/44774/2313778/76bb4bba-a30d-11e3-9a64-81f6f91c25c4.png" style="max-width: 100%;"></a></p> <p dir="auto">You can find this as the main file in <a href="https://github.com/jipegit/OSXAuditor/blob/master/osxauditor.py"><code class="notranslate">osxauditor.py</code></a>.</p>
1
<p dir="auto">[Enter steps to reproduce below:]</p> <ol dir="auto"> <li>...</li> <li>...</li> </ol> <p dir="auto"><strong>Atom Version</strong>: 0.187.0<br> <strong>System</strong>: STEVENMICHEL<br> <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Stack Trace</h3> <p dir="auto">Uncaught SyntaxError: Unexpected end of input</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At file:///C:/Users/Steven%20Michel/AppData/Local/atom/app-0.187.0/resources/app/static/index.html#%7B%22locationsToOpen%22%3A%5B%7B%22pathToOpen%22%3Anull%7D%5D%2C%22bootstrapScript%22%3A%22C%3A%5C%5CUsers%5C%5CSteven%20Michel%5C%5CAppData%5C%5CLocal%5C%5Catom%5C%5Capp-0.187.0%5C%5Cresources%5C%5Capp%5C%5Csrc%5C%5Cwindow-bootstrap.js%22%2C%22resourcePath%22%3A%22C%3A%5C%5CUsers%5C%5CSteven%20Michel%5C%5CAppData%5C%5CLocal%5C%5Catom%5C%5Capp-0.187.0%5C%5Cresources%5C%5Capp%22%2C%22devMode%22%3Afalse%2C%22safeMode%22%3Afalse%2C%22appVersion%22%3A%220.187.0%22%2C%22shellLoadTime%22%3A4599%2C%22initialPaths%22%3A%5B%5D%7D:0 SyntaxError: Unexpected end of input at Object.parse (native) at C:\Users\Steven Michel\.atom\packages\terminal-status\lib\command-output-view.coffee:38:26 at ChildProcess.exithandler (child_process.js:756:5) at ChildProcess.emit (events.js:119:17) at maybeClose (child_process.js:1013:16) at Socket.&lt;anonymous&gt; (child_process.js:1181:11) at Socket.emit (events.js:116:17) at Pipe.close (net.js:477:12) "><pre class="notranslate"><code class="notranslate">At file:///C:/Users/Steven%20Michel/AppData/Local/atom/app-0.187.0/resources/app/static/index.html#%7B%22locationsToOpen%22%3A%5B%7B%22pathToOpen%22%3Anull%7D%5D%2C%22bootstrapScript%22%3A%22C%3A%5C%5CUsers%5C%5CSteven%20Michel%5C%5CAppData%5C%5CLocal%5C%5Catom%5C%5Capp-0.187.0%5C%5Cresources%5C%5Capp%5C%5Csrc%5C%5Cwindow-bootstrap.js%22%2C%22resourcePath%22%3A%22C%3A%5C%5CUsers%5C%5CSteven%20Michel%5C%5CAppData%5C%5CLocal%5C%5Catom%5C%5Capp-0.187.0%5C%5Cresources%5C%5Capp%22%2C%22devMode%22%3Afalse%2C%22safeMode%22%3Afalse%2C%22appVersion%22%3A%220.187.0%22%2C%22shellLoadTime%22%3A4599%2C%22initialPaths%22%3A%5B%5D%7D:0 SyntaxError: Unexpected end of input at Object.parse (native) at C:\Users\Steven Michel\.atom\packages\terminal-status\lib\command-output-view.coffee:38:26 at ChildProcess.exithandler (child_process.js:756:5) at ChildProcess.emit (events.js:119:17) at maybeClose (child_process.js:1013:16) at Socket.&lt;anonymous&gt; (child_process.js:1181:11) at Socket.emit (events.js:116:17) at Pipe.close (net.js:477:12) </code></pre></div> <h3 dir="auto">Commands</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div> <h3 dir="auto">Config</h3> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;core&quot;: { &quot;disabledPackages&quot;: [ &quot;bootstrap-3-snippetset&quot;, &quot;atom-csscomb&quot;, &quot;colorpicker&quot;, &quot;css-comb&quot;, &quot;bootstrap3-snippets&quot;, &quot;livereload&quot;, &quot;command-toolbar&quot;, &quot;clipboard-history&quot;, &quot;html-img&quot;, &quot;Search&quot;, &quot;atom-minjs&quot;, &quot;symbols-view&quot;, &quot;preview-plus&quot;, &quot;grunt-runner&quot;, &quot;php-getters-setters&quot; ], &quot;audioBeep&quot;: false, &quot;themes&quot;: [ &quot;atom-dark-ui&quot;, &quot;seti-syntax&quot; ] }, &quot;editor&quot;: { &quot;invisibles&quot;: {}, &quot;fontSize&quot;: 15 } }"><pre class="notranslate">{ <span class="pl-ent">"core"</span>: { <span class="pl-ent">"disabledPackages"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>bootstrap-3-snippetset<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>atom-csscomb<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>colorpicker<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>css-comb<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>bootstrap3-snippets<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>livereload<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>command-toolbar<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>clipboard-history<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>html-img<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>Search<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>atom-minjs<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>symbols-view<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>preview-plus<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>grunt-runner<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>php-getters-setters<span class="pl-pds">"</span></span> ], <span class="pl-ent">"audioBeep"</span>: <span class="pl-c1">false</span>, <span class="pl-ent">"themes"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>atom-dark-ui<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>seti-syntax<span class="pl-pds">"</span></span> ] }, <span class="pl-ent">"editor"</span>: { <span class="pl-ent">"invisibles"</span>: {}, <span class="pl-ent">"fontSize"</span>: <span class="pl-c1">15</span> } }</pre></div> <h3 dir="auto">Installed Packages</h3> <div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# User angularjs, v0.2.0 atom-backbone, v0.6.0 atom-ctags, v2.6.0 autoclose-html, v0.15.0 autocomplete-plus, v2.4.2 autocomplete-snippets, v1.0.1 color-picker, v1.4.4 css-color-underline, v1.0.1 css-snippets, v0.5.0 csslint, v1.0.4 emmet, v2.3.4 file-icons, v1.5.1 file-types, v0.3.0 highlight-line, v0.10.1 html-helper, v0.2.3 html-id-class-snippets, v1.4.1 javascript-snippets, v1.0.0 jsformat, v0.7.18 jshint, v1.3.0 keybinding-cheatsheet, v0.0.8 language-css-plus, v0.3.0 linter, v0.12.0 linter-bootlint, v0.0.3 linter-csslint, v0.0.11 linter-htmlhint, v0.0.8 linter-jscs, v1.9.0 linter-jshint, v0.1.0 linter-php, v0.0.11 linter-phpcs, v0.0.12 linter-phpmd, v0.0.10 linter-tidy, v1.0.0 local-history, v2.2.2 minimap, v4.6.0 minimap-color-highlight, v4.1.0 minimap-find-and-replace, v4.2.0 minimap-git-diff, v4.1.2 minimap-highlight-selected, v4.2.0 minimap-selection, v4.2.0 phpunit, v1.0.9 phpunit-snippets, v0.1.0 project-manager, v1.15.5 project-palette-finder, v2.4.16 script, v2.18.0 seti-syntax, v0.3.3 symbols-tree-view, v0.6.1 terminal-status, v1.3.5 web-browser, v1.4.2 windows-context-menu, v0.3.1 # Dev No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span> angularjs, v0.<span class="pl-ii">2</span>.<span class="pl-ii">0</span> atom<span class="pl-k">-</span>backbone, v0.<span class="pl-ii">6</span>.<span class="pl-ii">0</span> atom<span class="pl-k">-</span>ctags, v2.<span class="pl-ii">6</span>.<span class="pl-ii">0</span> autoclose<span class="pl-k">-</span>html, v0.<span class="pl-ii">15</span>.<span class="pl-ii">0</span> autocomplete<span class="pl-k">-</span>plus, v2.<span class="pl-ii">4</span>.<span class="pl-ii">2</span> autocomplete<span class="pl-k">-</span>snippets, v1.<span class="pl-ii">0</span>.<span class="pl-ii">1</span> color<span class="pl-k">-</span>picker, v1.<span class="pl-ii">4</span>.<span class="pl-ii">4</span> css<span class="pl-k">-</span>color<span class="pl-k">-</span>underline, v1.<span class="pl-ii">0</span>.<span class="pl-ii">1</span> css<span class="pl-k">-</span>snippets, v0.<span class="pl-ii">5</span>.<span class="pl-ii">0</span> csslint, v1.<span class="pl-ii">0</span>.<span class="pl-ii">4</span> emmet, v2.<span class="pl-ii">3</span>.<span class="pl-ii">4</span> file<span class="pl-k">-</span>icons, v1.<span class="pl-ii">5</span>.<span class="pl-ii">1</span> file<span class="pl-k">-</span>types, v0.<span class="pl-ii">3</span>.<span class="pl-ii">0</span> highlight<span class="pl-k">-</span>line, v0.<span class="pl-ii">10</span>.<span class="pl-ii">1</span> html<span class="pl-k">-</span>helper, v0.<span class="pl-ii">2</span>.<span class="pl-ii">3</span> html<span class="pl-k">-</span>id<span class="pl-k">-</span>class<span class="pl-k">-</span>snippets, v1.<span class="pl-ii">4</span>.<span class="pl-ii">1</span> javascript<span class="pl-k">-</span>snippets, v1.<span class="pl-ii">0</span>.<span class="pl-ii">0</span> jsformat, v0.<span class="pl-ii">7</span>.<span class="pl-ii">18</span> jshint, v1.<span class="pl-ii">3</span>.<span class="pl-ii">0</span> keybinding<span class="pl-k">-</span>cheatsheet, v0.<span class="pl-ii">0</span>.<span class="pl-ii">8</span> language<span class="pl-k">-</span>css<span class="pl-k">-</span>plus, v0.<span class="pl-ii">3</span>.<span class="pl-ii">0</span> linter, v0.<span class="pl-ii">12</span>.<span class="pl-ii">0</span> linter<span class="pl-k">-</span>bootlint, v0.<span class="pl-ii">0</span>.<span class="pl-ii">3</span> linter<span class="pl-k">-</span>csslint, v0.<span class="pl-ii">0</span>.<span class="pl-ii">11</span> linter<span class="pl-k">-</span>htmlhint, v0.<span class="pl-ii">0</span>.<span class="pl-ii">8</span> linter<span class="pl-k">-</span>jscs, v1.<span class="pl-ii">9</span>.<span class="pl-ii">0</span> linter<span class="pl-k">-</span>jshint, v0.<span class="pl-ii">1</span>.<span class="pl-ii">0</span> linter<span class="pl-k">-</span>php, v0.<span class="pl-ii">0</span>.<span class="pl-ii">11</span> linter<span class="pl-k">-</span>phpcs, v0.<span class="pl-ii">0</span>.<span class="pl-ii">12</span> linter<span class="pl-k">-</span>phpmd, v0.<span class="pl-ii">0</span>.<span class="pl-ii">10</span> linter<span class="pl-k">-</span>tidy, v1.<span class="pl-ii">0</span>.<span class="pl-ii">0</span> local<span class="pl-k">-</span>history, v2.<span class="pl-ii">2</span>.<span class="pl-ii">2</span> minimap, v4.<span class="pl-ii">6</span>.<span class="pl-ii">0</span> minimap<span class="pl-k">-</span>color<span class="pl-k">-</span>highlight, v4.<span class="pl-ii">1</span>.<span class="pl-ii">0</span> minimap<span class="pl-k">-</span>find<span class="pl-k">-</span><span class="pl-k">and</span><span class="pl-k">-</span>replace, v4.<span class="pl-ii">2</span>.<span class="pl-ii">0</span> minimap<span class="pl-k">-</span>git<span class="pl-k">-</span>diff, v4.<span class="pl-ii">1</span>.<span class="pl-ii">2</span> minimap<span class="pl-k">-</span>highlight<span class="pl-k">-</span>selected, v4.<span class="pl-ii">2</span>.<span class="pl-ii">0</span> minimap<span class="pl-k">-</span>selection, v4.<span class="pl-ii">2</span>.<span class="pl-ii">0</span> phpunit, v1.<span class="pl-ii">0</span>.<span class="pl-ii">9</span> phpunit<span class="pl-k">-</span>snippets, v0.<span class="pl-ii">1</span>.<span class="pl-ii">0</span> project<span class="pl-k">-</span>manager, v1.<span class="pl-ii">15</span>.<span class="pl-ii">5</span> project<span class="pl-k">-</span>palette<span class="pl-k">-</span>finder, v2.<span class="pl-ii">4</span>.<span class="pl-ii">16</span> script, v2.<span class="pl-ii">18</span>.<span class="pl-ii">0</span> seti<span class="pl-k">-</span>syntax, v0.<span class="pl-ii">3</span>.<span class="pl-ii">3</span> symbols<span class="pl-k">-</span>tree<span class="pl-k">-</span>view, v0.<span class="pl-ii">6</span>.<span class="pl-ii">1</span> terminal<span class="pl-k">-</span>status, v1.<span class="pl-ii">3</span>.<span class="pl-ii">5</span> web<span class="pl-k">-</span>browser, v1.<span class="pl-ii">4</span>.<span class="pl-ii">2</span> windows<span class="pl-k">-</span>context<span class="pl-k">-</span>menu, v0.<span class="pl-ii">3</span>.<span class="pl-ii">1</span> <span class="pl-c"><span class="pl-c">#</span> Dev</span> <span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div>
<p dir="auto">[Enter steps to reproduce below:]</p> <p dir="auto">Occurs on Atom startup</p> <p dir="auto"><strong>Atom Version</strong>: 0.165.0<br> <strong>System</strong>: Mac OS X 10.10.2<br> <strong>Thrown From</strong>: <a href="https://github.com/guileen/terminal-status">terminal-status</a> package, v1.3.5</p> <h3 dir="auto">Stack Trace</h3> <p dir="auto">Uncaught SyntaxError: Unexpected end of input</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At file:///Applications/Atom.app/Contents/Resources/app/static/index.html?loadSettings=%7B%22bootstrapScript%22%3A%22%2FApplications%2FAtom.app%2FContents%2FResources%2Fapp%2Fsrc%2Fwindow-bootstrap.js%22%2C%22resourcePath%22%3A%22%2FApplications%2FAtom.app%2FContents%2FResources%2Fapp%22%2C%22devMode%22%3Afalse%2C%22safeMode%22%3Afalse%2C%22appVersion%22%3A%220.165.0%22%2C%22shellLoadTime%22%3A16494%7D:0 SyntaxError: Unexpected end of input at Object.parse (native) at /Users/michael/.atom/packages/terminal-status/lib/command-output-view.coffee:38:26 at ChildProcess.exithandler (child_process.js:752:5) at ChildProcess.emit (events.js:110:17) at maybeClose (child_process.js:1013:16) at Socket.&lt;anonymous&gt; (child_process.js:1181:11) at Socket.emit (events.js:107:17) at Pipe.close (net.js:461:12) "><pre class="notranslate"><code class="notranslate">At file:///Applications/Atom.app/Contents/Resources/app/static/index.html?loadSettings=%7B%22bootstrapScript%22%3A%22%2FApplications%2FAtom.app%2FContents%2FResources%2Fapp%2Fsrc%2Fwindow-bootstrap.js%22%2C%22resourcePath%22%3A%22%2FApplications%2FAtom.app%2FContents%2FResources%2Fapp%22%2C%22devMode%22%3Afalse%2C%22safeMode%22%3Afalse%2C%22appVersion%22%3A%220.165.0%22%2C%22shellLoadTime%22%3A16494%7D:0 SyntaxError: Unexpected end of input at Object.parse (native) at /Users/michael/.atom/packages/terminal-status/lib/command-output-view.coffee:38:26 at ChildProcess.exithandler (child_process.js:752:5) at ChildProcess.emit (events.js:110:17) at maybeClose (child_process.js:1013:16) at Socket.&lt;anonymous&gt; (child_process.js:1181:11) at Socket.emit (events.js:107:17) at Pipe.close (net.js:461:12) </code></pre></div> <h3 dir="auto">Commands</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div> <h3 dir="auto">Config</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;core&quot;: { &quot;disabledPackages&quot;: [ &quot;wrap-guide&quot;, &quot;linter-jscs&quot;, &quot;term&quot;, &quot;term&quot; ] } }"><pre class="notranslate"><code class="notranslate">{ "core": { "disabledPackages": [ "wrap-guide", "linter-jscs", "term", "term" ] } } </code></pre></div> <h3 dir="auto">Installed Packages</h3> <div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# User autoclose-html, v0.13.0 autocomplete-emojis, v0.6.0 autocomplete-paths, v0.9.0 autocomplete-plus, v1.0.0 autocomplete-snippets, v0.3.1 color-picker, v1.2.6 command-logger, v0.20.0 compass, v0.7.5 editor-stats, v0.16.0 git-log, v0.2.0 html-entities, v0.2.0 html-id-class-snippets, v1.4.1 linter, v0.9.0 linter-clang, v2.9.0 linter-csslint, v0.0.11 linter-jshint, v0.1.0 linter-php, v0.0.11 linter-ruby, v0.1.4 linter-shellcheck, v0.0.6 linter-xmllint, v0.0.5 playlist, v0.1.7 terminal-status, v1.3.5 the-closer, v0.2.0 # Dev No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span> autoclose<span class="pl-k">-</span>html, v0.<span class="pl-ii">13</span>.<span class="pl-ii">0</span> autocomplete<span class="pl-k">-</span>emojis, v0.<span class="pl-ii">6</span>.<span class="pl-ii">0</span> autocomplete<span class="pl-k">-</span>paths, v0.<span class="pl-ii">9</span>.<span class="pl-ii">0</span> autocomplete<span class="pl-k">-</span>plus, v1.<span class="pl-ii">0</span>.<span class="pl-ii">0</span> autocomplete<span class="pl-k">-</span>snippets, v0.<span class="pl-ii">3</span>.<span class="pl-ii">1</span> color<span class="pl-k">-</span>picker, v1.<span class="pl-ii">2</span>.<span class="pl-ii">6</span> command<span class="pl-k">-</span>logger, v0.<span class="pl-ii">20</span>.<span class="pl-ii">0</span> compass, v0.<span class="pl-ii">7</span>.<span class="pl-ii">5</span> editor<span class="pl-k">-</span>stats, v0.<span class="pl-ii">16</span>.<span class="pl-ii">0</span> git<span class="pl-k">-</span>log, v0.<span class="pl-ii">2</span>.<span class="pl-ii">0</span> html<span class="pl-k">-</span>entities, v0.<span class="pl-ii">2</span>.<span class="pl-ii">0</span> html<span class="pl-k">-</span>id<span class="pl-k">-</span>class<span class="pl-k">-</span>snippets, v1.<span class="pl-ii">4</span>.<span class="pl-ii">1</span> linter, v0.<span class="pl-ii">9</span>.<span class="pl-ii">0</span> linter<span class="pl-k">-</span>clang, v2.<span class="pl-ii">9</span>.<span class="pl-ii">0</span> linter<span class="pl-k">-</span>csslint, v0.<span class="pl-ii">0</span>.<span class="pl-ii">11</span> linter<span class="pl-k">-</span>jshint, v0.<span class="pl-ii">1</span>.<span class="pl-ii">0</span> linter<span class="pl-k">-</span>php, v0.<span class="pl-ii">0</span>.<span class="pl-ii">11</span> linter<span class="pl-k">-</span>ruby, v0.<span class="pl-ii">1</span>.<span class="pl-ii">4</span> linter<span class="pl-k">-</span>shellcheck, v0.<span class="pl-ii">0</span>.<span class="pl-ii">6</span> linter<span class="pl-k">-</span>xmllint, v0.<span class="pl-ii">0</span>.<span class="pl-ii">5</span> playlist, v0.<span class="pl-ii">1</span>.<span class="pl-ii">7</span> terminal<span class="pl-k">-</span>status, v1.<span class="pl-ii">3</span>.<span class="pl-ii">5</span> the<span class="pl-k">-</span>closer, v0.<span class="pl-ii">2</span>.<span class="pl-ii">0</span> <span class="pl-c"><span class="pl-c">#</span> Dev</span> <span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div> <p dir="auto">/cc @atom/core</p>
1
<p dir="auto">Please:</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Check for duplicate issues.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Provide a complete example of how to reproduce the bug, wrapped in triple backticks like this:</li> </ul> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import jax.numpy as jnp print(jnp.arange(10)) # [0 1 2 3 4 5 6 7 8 9]"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">jax</span>.<span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">jnp</span> <span class="pl-en">print</span>(<span class="pl-s1">jnp</span>.<span class="pl-en">arange</span>(<span class="pl-c1">10</span>)) <span class="pl-c"># [0 1 2 3 4 5 6 7 8 9]</span></pre></div> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> If applicable, include full error messages/tracebacks.</li> </ul>
<p dir="auto">When defining a list of constraints as an input for the scipy.minimize (using a default 'SLSQP' method), repeated or redundant constraints will raise messages like "Singular matrix C in LSQ subproblem", and a solution is not achieved, when in fact, these repeated/redundant constraints should just be ignored.</p> <p dir="auto">This is very relevant when one has to define multiple inequality and equality constraints, which sometimes partially overlap for some of the constraints.</p> <p dir="auto">To replicate the problem: Use a working example of a constrained minimization problem, but now duplicate the list of constraints (two times more constraints, but all of them repeated).</p> <p dir="auto">Example where this is useful: Forcing a bivariate polynomial f(x,y) of a certain degree, to be f(0,y)=0 and forcing it's first derivative with respect to x, to be d f(x=1,y) / dx = 0, will provide a large set of equality constraints where a few of them are redundant.</p>
0
<h3 dir="auto">Describe the issue:</h3> <p dir="auto"><code class="notranslate">numpy.random.randint</code> samples <code class="notranslate">[1]</code> happily with these parameters</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="np.random.randint(1.1, 2.9, size=1)"><pre class="notranslate"><code class="notranslate">np.random.randint(1.1, 2.9, size=1) </code></pre></div> <p dir="auto">but raises a <code class="notranslate">{ValueError} low &gt;= high</code> for</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="np.random.randint([1.1], [2.9], size=1)"><pre class="notranslate"><code class="notranslate">np.random.randint([1.1], [2.9], size=1) </code></pre></div> <h3 dir="auto">Reproduce the code example:</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np # No problems np.random.randint(1.1, 2.9, size=1) # Raises error np.random.randint([1.1], [2.9], size=1)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-c"># No problems</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">randint</span>(<span class="pl-c1">1.1</span>, <span class="pl-c1">2.9</span>, <span class="pl-s1">size</span><span class="pl-c1">=</span><span class="pl-c1">1</span>) <span class="pl-c"># Raises error</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">randint</span>([<span class="pl-c1">1.1</span>], [<span class="pl-c1">2.9</span>], <span class="pl-s1">size</span><span class="pl-c1">=</span><span class="pl-c1">1</span>)</pre></div> <h3 dir="auto">Error message:</h3> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;/Users/juliano/Code/wood-analysis/test.py&quot;, line 7, in &lt;module&gt; np.random.randint([1.1], [2.9], size=1) File &quot;mtrand.pyx&quot;, line 765, in numpy.random.mtrand.RandomState.randint File &quot;_bounded_integers.pyx&quot;, line 1262, in numpy.random._bounded_integers._rand_int64 File &quot;_bounded_integers.pyx&quot;, line 686, in numpy.random._bounded_integers._rand_int64_broadcast ValueError: low &gt;= high"><pre class="notranslate">Traceback (most recent call last): File <span class="pl-s"><span class="pl-pds">"</span>/Users/juliano/Code/wood-analysis/test.py<span class="pl-pds">"</span></span>, line 7, <span class="pl-k">in</span> <span class="pl-k">&lt;</span>module<span class="pl-k">&gt;</span> np.random.randint([1.1], [2.9], size=1) File <span class="pl-s"><span class="pl-pds">"</span>mtrand.pyx<span class="pl-pds">"</span></span>, line 765, <span class="pl-k">in</span> numpy.random.mtrand.RandomState.randint File <span class="pl-s"><span class="pl-pds">"</span>_bounded_integers.pyx<span class="pl-pds">"</span></span>, line 1262, <span class="pl-k">in</span> numpy.random._bounded_integers._rand_int64 File <span class="pl-s"><span class="pl-pds">"</span>_bounded_integers.pyx<span class="pl-pds">"</span></span>, line 686, <span class="pl-k">in</span> numpy.random._bounded_integers._rand_int64_broadcast ValueError: low <span class="pl-k">&gt;</span>= high</pre></div> <h3 dir="auto">Runtime information:</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; import sys, numpy; print(numpy.__version__); print(sys.version) 1.24.1 3.10.9 (main, Dec 15 2022, 17:11:09) [Clang 14.0.0 (clang-1400.0.29.202)]"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; import sys, numpy; print(numpy.__version__); print(sys.version) 1.24.1 3.10.9 (main, Dec 15 2022, 17:11:09) [Clang 14.0.0 (clang-1400.0.29.202)] </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; print(numpy.show_runtime()) [{'simd_extensions': {'baseline': ['NEON', 'NEON_FP16', 'NEON_VFPV4', 'ASIMD'], 'found': ['ASIMDHP', 'ASIMDDP'], 'not_found': ['ASIMDFHM']}}, {'architecture': 'armv8', 'filepath': '/Users/juliano/Code/wood-analysis/.venv/lib/python3.10/site-packages/numpy/.dylibs/libopenblas64_.0.dylib', 'internal_api': 'openblas', 'num_threads': 8, 'prefix': 'libopenblas', 'threading_layer': 'pthreads', 'user_api': 'blas', 'version': '0.3.21'}] None"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; print(numpy.show_runtime()) [{'simd_extensions': {'baseline': ['NEON', 'NEON_FP16', 'NEON_VFPV4', 'ASIMD'], 'found': ['ASIMDHP', 'ASIMDDP'], 'not_found': ['ASIMDFHM']}}, {'architecture': 'armv8', 'filepath': '/Users/juliano/Code/wood-analysis/.venv/lib/python3.10/site-packages/numpy/.dylibs/libopenblas64_.0.dylib', 'internal_api': 'openblas', 'num_threads': 8, 'prefix': 'libopenblas', 'threading_layer': 'pthreads', 'user_api': 'blas', 'version': '0.3.21'}] None </code></pre></div> <h3 dir="auto">Context for the issue:</h3> <p dir="auto"><em>No response</em></p>
<h3 dir="auto">Describe the issue:</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="numpy/core/src/umath/loops_trigonometric.dispatch.c.src:202:20: internal compiler error: in convert_move, at expr.c:218 NPY_NO_EXPORT void NPY_CPU_DISPATCH_CURFX(FLOAT_@func@) ^ 0xb6b59717 __libc_start_main /build/glibc-FUvrFr/glibc-2.28/csu/libc-start.c:308"><pre class="notranslate"><code class="notranslate">numpy/core/src/umath/loops_trigonometric.dispatch.c.src:202:20: internal compiler error: in convert_move, at expr.c:218 NPY_NO_EXPORT void NPY_CPU_DISPATCH_CURFX(FLOAT_@func@) ^ 0xb6b59717 __libc_start_main /build/glibc-FUvrFr/glibc-2.28/csu/libc-start.c:308 </code></pre></div> <h3 dir="auto">Reproduce the code example:</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="pip3 install numpy"><pre class="notranslate"><span class="pl-s1">pip3</span> <span class="pl-s1">install</span> <span class="pl-s1">numpy</span></pre></div> <h3 dir="auto">Error message:</h3> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="https://pastebin.com/EGraqF50"><pre class="notranslate">https://pastebin.com/EGraqF50</pre></div> <h3 dir="auto">NumPy/Python version information:</h3> <p dir="auto">Raspberry Pi 4 + Raspberry Pi OS Buster.<br> Python 3.7.3<br> Numpy version being attempted is 1.21 (didn't choose it in particular, it's just the one pip would install).</p> <p dir="auto">Apt packages installed so far are:<br> - python3<br> - python3-pip<br> - build-essential<br> - cmake<br> - libhdf5-dev<br> - libatlas-base-dev<br> - gfortran<br> - libavcodec-dev<br> - libavformat-dev<br> - libswscale-dev<br> - libv4l-dev<br> - libopenblas-dev</p> <p dir="auto">I've setup an identical system a year ago, running the exact same code (using Ansible for setup) and there was no issue.</p>
0
<p dir="auto">I'm building Julia 0.5 (master) on my Raspberry Pi. This aborts with</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="make[1]: Entering directory '/home/pi/src/julia-0.5' cd /home/pi/src/julia-0.5/base &amp;&amp; /home/pi/src/julia-0.5/usr/bin/julia -C arm1176jzf-s --output-ji /home/pi/src/julia-0.5/usr/lib/julia/inference.ji --startup-file=no coreimg.jl Segmentation fault Makefile:215: recipe for target '/home/pi/src/julia-0.5/usr/lib/julia/inference.ji' failed make[1]: *** [/home/pi/src/julia-0.5/usr/lib/julia/inference.ji] Error 139 make[1]: Leaving directory '/home/pi/src/julia-0.5' Makefile:96: recipe for target 'julia-inference' failed make: *** [julia-inference] Error 2"><pre class="notranslate"><code class="notranslate">make[1]: Entering directory '/home/pi/src/julia-0.5' cd /home/pi/src/julia-0.5/base &amp;&amp; /home/pi/src/julia-0.5/usr/bin/julia -C arm1176jzf-s --output-ji /home/pi/src/julia-0.5/usr/lib/julia/inference.ji --startup-file=no coreimg.jl Segmentation fault Makefile:215: recipe for target '/home/pi/src/julia-0.5/usr/lib/julia/inference.ji' failed make[1]: *** [/home/pi/src/julia-0.5/usr/lib/julia/inference.ji] Error 139 make[1]: Leaving directory '/home/pi/src/julia-0.5' Makefile:96: recipe for target 'julia-inference' failed make: *** [julia-inference] Error 2 </code></pre></div>
<p dir="auto">Using fresh clone of master at <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/JuliaLang/julia/commit/db11bc76f729c51ff0b50f14408fb6651c683a29/hovercard" href="https://github.com/JuliaLang/julia/commit/db11bc76f729c51ff0b50f14408fb6651c683a29"><tt>db11bc7</tt></a>. My last successful build was at <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/JuliaLang/julia/commit/e18ed618081d6c3c70657839ec5bc74c06409b06/hovercard" href="https://github.com/JuliaLang/julia/commit/e18ed618081d6c3c70657839ec5bc74c06409b06"><tt>e18ed61</tt></a>.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/home/sachs/src/julia-master/base/precompile.jl signal (11): Segmentation fault while loading no file, in expression starting on line 0 Allocations: 44889342 (Pool: 44888794; Big: 548); GC: 25 Segmentation fault *** This error is usually fixed by running `make clean`. If the error persists, try `make cleanall`. *** Makefile:229: recipe for target '/home/sachs/src/julia-master/usr/lib/julia/sys.o' failed make[1]: *** [/home/sachs/src/julia-master/usr/lib/julia/sys.o] Error 1 Makefile:99: recipe for target 'julia-sysimg-release' failed make: *** [julia-sysimg-release] Error 2"><pre class="notranslate"><code class="notranslate">/home/sachs/src/julia-master/base/precompile.jl signal (11): Segmentation fault while loading no file, in expression starting on line 0 Allocations: 44889342 (Pool: 44888794; Big: 548); GC: 25 Segmentation fault *** This error is usually fixed by running `make clean`. If the error persists, try `make cleanall`. *** Makefile:229: recipe for target '/home/sachs/src/julia-master/usr/lib/julia/sys.o' failed make[1]: *** [/home/sachs/src/julia-master/usr/lib/julia/sys.o] Error 1 Makefile:99: recipe for target 'julia-sysimg-release' failed make: *** [julia-sysimg-release] Error 2 </code></pre></div>
1
<p dir="auto">Idea: add something like <code class="notranslate">node-gyp</code> for native modules.</p>
<p dir="auto">I know that using protobufs simplifies the writing of native modules, but how does importing them work?<br> What's the structure of it supposed to be?<br> How do we specify how the native module should be built?</p>
1
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-use-hex-code-for-specific-shades-of-gray" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-use-hex-code-for-specific-shades-of-gray</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/11556975/9305283/7c141002-44f0-11e5-936b-9cff98a1c1e0.jpg"><img src="https://cloud.githubusercontent.com/assets/11556975/9305283/7c141002-44f0-11e5-936b-9cff98a1c1e0.jpg" alt="waypoint__use_hex_code_for_specific_shades_of_gray___free_code_camp" style="max-width: 100%;"></a></p>
0
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/9105659/81469871-1659a480-921a-11ea-9db9-820ca1f2bae0.jpg"><img src="https://user-images.githubusercontent.com/9105659/81469871-1659a480-921a-11ea-9db9-820ca1f2bae0.jpg" alt="20200509172405" style="max-width: 100%;"></a><br> code in TableMetaData constructor<br> can't see this index in sqlserver console</p>
<h2 dir="auto">Bug Report</h2> <p dir="auto"><strong>For English only</strong>, other languages will not accept.</p> <p dir="auto">Before report a bug, make sure you have:</p> <ul dir="auto"> <li>Searched open and closed <a href="https://github.com/apache/shardingsphere/issues">GitHub issues</a>.</li> <li>Read documentation: <a href="https://shardingsphere.apache.org/document/current/en/overview" rel="nofollow">ShardingSphere Doc</a>.</li> </ul> <p dir="auto">Please pay attention on issues you submitted, because we maybe need more details.<br> If no response anymore and we cannot reproduce it on current information, we will <strong>close it</strong>.</p> <p dir="auto">Please answer these questions before submitting your issue. Thanks!</p> <h3 dir="auto">Which version of ShardingSphere did you use?</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" &lt;dependency&gt; &lt;groupId&gt;org.apache.shardingsphere&lt;/groupId&gt; &lt;artifactId&gt;sharding-jdbc-core&lt;/artifactId&gt; &lt;version&gt;4.0.1&lt;/version&gt; &lt;/dependency&gt; &lt;!-- for spring namespace --&gt; &lt;dependency&gt; &lt;groupId&gt;org.apache.shardingsphere&lt;/groupId&gt; &lt;artifactId&gt;sharding-jdbc-spring-namespace&lt;/artifactId&gt; &lt;version&gt;4.0.1&lt;/version&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.antlr&lt;/groupId&gt; &lt;artifactId&gt;antlr4-runtime&lt;/artifactId&gt; &lt;version&gt;4.7.1&lt;/version&gt; &lt;/dependency&gt;"><pre class="notranslate"><code class="notranslate"> &lt;dependency&gt; &lt;groupId&gt;org.apache.shardingsphere&lt;/groupId&gt; &lt;artifactId&gt;sharding-jdbc-core&lt;/artifactId&gt; &lt;version&gt;4.0.1&lt;/version&gt; &lt;/dependency&gt; &lt;!-- for spring namespace --&gt; &lt;dependency&gt; &lt;groupId&gt;org.apache.shardingsphere&lt;/groupId&gt; &lt;artifactId&gt;sharding-jdbc-spring-namespace&lt;/artifactId&gt; &lt;version&gt;4.0.1&lt;/version&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.antlr&lt;/groupId&gt; &lt;artifactId&gt;antlr4-runtime&lt;/artifactId&gt; &lt;version&gt;4.7.1&lt;/version&gt; &lt;/dependency&gt; </code></pre></div> <h3 dir="auto">Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?</h3> <p dir="auto">ShardingSphere-JDBC 4.0.1,antlr 4.7.1</p> <h3 dir="auto">Expected behavior</h3> <p dir="auto">1、the project can start Running in MAC ,but can't start Running in window.(Multiple computers tests,It's all like this)<br> 2、update statement error<br> UPDATE HMDM_MD_FIN001<br> SET REQUEST_ID = ?,PROGRAM_ID = ?,OBJECT_VERSION_NUMBER=?+1,LAST_UPDATED_BY=?,<br> LAST_UPDATE_DATE=CURRENT_TIMESTAMP,LAST_UPDATE_LOGIN=?,MD_DESCRIPTION = ?,<br> MD_TOP_CATE_CODE = ?,MD_CATE_CODE = ?,STATUS_CODE = ?,LAST_UPDATED_SOURCE_CODE = ?,<br> START_DATE = ?,END_DATE = ?,REF_ORG_ID = ?,APPLY_ID = ?,APPLY_ITEM = ?,APPLIED_BY = ?,<br> APPLIED_AT = ?,ENTITY_LAST_UPDATE_DATE = ?,LAST_DISTRIBUTE_DATE = ?,<br> FLEX_VALUE_DISP= ?,STRUCTURED_HIERARCHY_NAME= ?,FLEX_VALUE_MEANING= ?,<br> CHILD_FLEX_VALUE_HIGH_DISP= ?,SUB_ACC= ?,TAX_TARE= ?,RANGE_ATTRIBUTE= ?,<br> THIRD_PARTY_CONTROL_ACCOUNT= ?,SEGMENT_TYPE= ?,ADJUST= ?,REV_ITEM= ?,REV_INFOR= ?,<br> DESCRIPTION= ?,ENABLED_FLAG= ?,ACTIVITITY_INFOR= ?,CHILD_FLEX_VALUE_LOW_DISP= ?,<br> VAT_AC_TYPE= ?,ALLOW_BUDGET= ?,HIERARCHY_LEVEL= ?,ALLOW_POSTING= ?,BUSINESS_TYPE= ?,<br> SUMMARY_FLAG= ?,SOURCE= ?,CONTEXT= ?,PROCESS_NODE= ?,ACCOUNT_TYPE= ?<br> WHERE ID = ?</p> <p dir="auto">error message:<br> mismatched input 'SOURCE' expecting {TRUNCATE, POSITION, VIEW, ANY, OFFSET, BEGIN, COMMIT, ROLLBACK, SAVEPOINT, BOOLEAN, DATE, TIME, TIMESTAMP, YEAR, QUARTER, MONTH, WEEK, DAY, HOUR, MINUTE, SECOND, MICROSECOND, MAX, MIN, SUM, COUNT, AVG, CURRENT, ENABLE, DISABLE, INSTANCE, DO, DEFINER, CASCADED, LOCAL, CLOSE, OPEN, NEXT, NAME, TYPE, TABLES, TABLESPACE, COLUMNS, FIELDS, INDEXES, STATUS, MODIFY, VALUE, DUPLICATE, FIRST, LAST, AFTER, OJ, ACCOUNT, USER, ROLE, START, TRANSACTION, WITHOUT, ESCAPE, SUBPARTITION, STORAGE, SUPER, TEMPORARY, THAN, UNBOUNDED, UPGRADE, VALIDATION, ROLLUP, SOUNDS, UNKNOWN, OFF, ALWAYS, COMMITTED, LEVEL, NO, PASSWORD, PRIVILEGES, ACTION, ALGORITHM, AUTOCOMMIT, BTREE, CHAIN, CHARSET, CHECKSUM, CIPHER, CLIENT, COALESCE, COMMENT, COMPACT, COMPRESSED, COMPRESSION, CONNECTION, CONSISTENT, DATA, DISCARD, DISK, ENCRYPTION, END, ENGINE, EVENT, EXCHANGE, EXECUTE, FILE, FIXED, FOLLOWING, GLOBAL, HASH, IMPORT_, LESS, MEMORY, NONE, PARSER, PARTIAL, PARTITIONING, PERSIST, PRECEDING, PROCESS, PROXY, QUICK, REBUILD, REDUNDANT, RELOAD, REMOVE, REORGANIZE, REPAIR, REVERSE, SESSION, SHUTDOWN, SIMPLE, SLAVE, VISIBLE, INVISIBLE, ENFORCED, AGAINST, LANGUAGE, MODE, QUERY, EXTENDED, EXPANSION, VARIANCE, MAX_ROWS, MIN_ROWS, SQL_BIG_RESULT, SQL_BUFFER_RESULT, SQL_CACHE, SQL_NO_CACHE, STATS_AUTO_RECALC, STATS_PERSISTENT, STATS_SAMPLE_PAGES, ROW_FORMAT, WEIGHT_STRING, COLUMN_FORMAT, INSERT_METHOD, KEY_BLOCK_SIZE, PACK_KEYS, PERSIST_ONLY, BIT_AND, BIT_OR, BIT_XOR, GROUP_CONCAT, JSON_ARRAYAGG, JSON_OBJECTAGG, STD, STDDEV, STDDEV_POP, STDDEV_SAMP, VAR_POP, VAR_SAMP, AUTO_INCREMENT, AVG_ROW_LENGTH, DELAY_KEY_WRITE, ROTATE, MASTER, BINLOG, ERROR, SCHEDULE, COMPLETION, EVERY, HOST, SOCKET, PORT, SERVER, WRAPPER, OPTIONS, OWNER, RETURNS, CONTAINS, SECURITY, INVOKER, TEMPTABLE, MERGE, UNDEFINED, DATAFILE, FILE_BLOCK_SIZE, EXTENT_SIZE, INITIAL_SIZE, AUTOEXTEND_SIZE, MAX_SIZE, NODEGROUP, WAIT, LOGFILE, UNDOFILE, UNDO_BUFFER_SIZE, REDO_BUFFER_SIZE, HANDLER, PREV, ORGANIZATION, DEFINITION, DESCRIPTION, REFERENCE, FOLLOWS, PRECEDES, IMPORT, CONCURRENT, XML, DUMPFILE, SHARE, CODE, CONTEXT, CHANNEL, CLONE, AGGREGATE, INSTALL, UNINSTALL, RESOURCE, EXPIRE, NEVER, HISTORY, OPTIONAL, REUSE, MAX_QUERIES_PER_HOUR, MAX_UPDATES_PER_HOUR, MAX_CONNECTIONS_PER_HOUR, MAX_USER_CONNECTIONS, RETAIN, RANDOM, OLD, ISSUER, SUBJECT, CACHE, GENERAL, SLOW, USER_RESOURCES, EXPORT, RELAY, HOSTS, FLUSH, RESET, RESTART, UNIX_TIMESTAMP, LOWER, UPPER, IDENTIFIER_}</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">1、can't start Running in window<br> 2、can't update data</p> <h3 dir="auto">Reason analyze (If you can)</h3> <p dir="auto">my table's attribute SOURCE,<br> the KEYWORD is conflicted?</p> <h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.</h3> <h3 dir="auto">Example codes for reproduce this issue (such as a github link).</h3>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.x</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>Execute following code in a method of a dubbo service on provider side:</li> </ol> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="RpcContext.getServerContext().setAttachment(&quot;abc&quot;, &quot;123&quot;);"><pre class="notranslate"><span class="pl-smi">RpcContext</span>.<span class="pl-en">getServerContext</span>().<span class="pl-en">setAttachment</span>(<span class="pl-s">"abc"</span>, <span class="pl-s">"123"</span>);</pre></div> <ol start="2" dir="auto"> <li>Execute following code in the same thread that invoke the remote dubbo service after the invoking:</li> </ol> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Map&lt;String, String&gt; map = RpcContext.getServerContext().getAttachments(); System.out.println(&quot;context: &quot; + map.get(&quot;abc&quot;));"><pre class="notranslate"><span class="pl-smi">Map</span>&lt;<span class="pl-smi">String</span>, <span class="pl-smi">String</span>&gt; <span class="pl-s1">map</span> = <span class="pl-smi">RpcContext</span>.<span class="pl-en">getServerContext</span>().<span class="pl-en">getAttachments</span>(); <span class="pl-smi">System</span>.<span class="pl-s1">out</span>.<span class="pl-en">println</span>(<span class="pl-s">"context: "</span> + <span class="pl-s1">map</span>.<span class="pl-en">get</span>(<span class="pl-s">"abc"</span>));</pre></div> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">Console output:<br> context: 123</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">context: null</p> <p dir="auto">What actually happens?</p> <p dir="auto">If there is an exception, please attach the exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here! </code></pre></div>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.0-release</li> <li>Operating System version: MacOS</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <p dir="auto">I see that in 2.7.0-RELEASE.Dubbo haven been supported protobuf,but I can't find any infomation in document.Please help me some examples how to use protobuf in dubbo, or show me some demos.Thanks</p>
0
<p dir="auto">Context: /basics/3</p> <p dir="auto">original source code:<br> package main</p> <p dir="auto">import (<br> "fmt"<br> "math"<br> )</p> <p dir="auto">func main() {<br> fmt.Println(math.pi)<br> }</p> <p dir="auto">issue: # command-line-arguments<br> /tmp/sandbox679643269/main.go:9: cannot refer to unexported name math.pi<br> /tmp/sandbox679643269/main.go:9: undefined: math.pi</p> <p dir="auto">math.pi should be changed to math.Pi as you may type it incorretly.</p>
<p dir="auto">Context: /basics/3</p> <p dir="auto">Example in "Exported names" section does not compile. Error is:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# command-line-arguments /tmp/sandbox260995202/main.go:9: cannot refer to unexported name math.pi /tmp/sandbox260995202/main.go:9: undefined: math.pi"><pre class="notranslate"><code class="notranslate"># command-line-arguments /tmp/sandbox260995202/main.go:9: cannot refer to unexported name math.pi /tmp/sandbox260995202/main.go:9: undefined: math.pi </code></pre></div>
1
<p dir="auto">Need to allow to use generics for "this" type, like this: <code class="notranslate">this&lt;T&gt;</code></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Collection&lt;T&gt; extends Array&lt;T&gt; { map&lt;U&gt;(callbackfn: (value: T, index: number, array: T[]) =&gt; U, thisArg?: any): this { // this method will return this&lt;T&gt;, but I want to return this&lt;U&gt; return new (this.constructor as any)(...super.map(callbackfn, thisArg)); } }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">Collection</span><span class="pl-c1">&lt;</span><span class="pl-smi">T</span><span class="pl-c1">&gt;</span> <span class="pl-k">extends</span> <span class="pl-smi">Array</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-en">map</span><span class="pl-c1">&lt;</span><span class="pl-smi">U</span><span class="pl-c1">&gt;</span><span class="pl-kos">(</span><span class="pl-s1">callbackfn</span>: <span class="pl-kos">(</span><span class="pl-s1">value</span>: <span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-s1">index</span>: <span class="pl-smi">number</span><span class="pl-kos">,</span> <span class="pl-s1">array</span>: <span class="pl-smi">T</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">U</span><span class="pl-kos">,</span> <span class="pl-s1">thisArg</span>?: <span class="pl-smi">any</span><span class="pl-kos">)</span>: this <span class="pl-kos">{</span> <span class="pl-c">// this method will return this&lt;T&gt;, but I want to return this&lt;U&gt;</span> <span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">constructor</span> <span class="pl-k">as</span> <span class="pl-smi">any</span><span class="pl-kos">)</span><span class="pl-kos">(</span>...<span class="pl-smi">super</span><span class="pl-kos">.</span><span class="pl-en">map</span><span class="pl-kos">(</span><span class="pl-s1">callbackfn</span><span class="pl-kos">,</span> <span class="pl-s1">thisArg</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">example of usage:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="new Collection( new Model(1, &quot;Mercedes&quot;), new Model(2, &quot;BMW&quot;), new Model(3, &quot;Ford&quot;) ) .map(model =&gt; model.engine) .forEach(engine =&gt; engine.serialNumber); // here compiler should see engine.serialNumber"><pre class="notranslate"><span class="pl-k">new</span> <span class="pl-smi">Collection</span><span class="pl-kos">(</span> <span class="pl-k">new</span> <span class="pl-smi">Model</span><span class="pl-kos">(</span><span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-s">"Mercedes"</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-k">new</span> <span class="pl-smi">Model</span><span class="pl-kos">(</span><span class="pl-c1">2</span><span class="pl-kos">,</span> <span class="pl-s">"BMW"</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-k">new</span> <span class="pl-smi">Model</span><span class="pl-kos">(</span><span class="pl-c1">3</span><span class="pl-kos">,</span> <span class="pl-s">"Ford"</span><span class="pl-kos">)</span> <span class="pl-kos">)</span> <span class="pl-kos">.</span><span class="pl-en">map</span><span class="pl-kos">(</span><span class="pl-s1">model</span> <span class="pl-c1">=&gt;</span> <span class="pl-s1">model</span><span class="pl-kos">.</span><span class="pl-c1">engine</span><span class="pl-kos">)</span> <span class="pl-kos">.</span><span class="pl-en">forEach</span><span class="pl-kos">(</span><span class="pl-s1">engine</span> <span class="pl-c1">=&gt;</span> <span class="pl-s1">engine</span><span class="pl-kos">.</span><span class="pl-c1">serialNumber</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// here compiler should see engine.serialNumber</span></pre></div>
<p dir="auto">First, thank you team for polymorphic <code class="notranslate">this</code>. It is really handy!</p> <p dir="auto">I think I ran into a case though that I am finding challenging, when I need to return a <code class="notranslate">this</code>, but the generics might have changed. For example:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class A&lt;T&gt; { private items: T[] = []; map&lt;U&gt;(callback: (item: T, idx: number, a: this) =&gt; U): this { // boring implementation details }); }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">A</span><span class="pl-c1">&lt;</span><span class="pl-smi">T</span><span class="pl-c1">&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">private</span> <span class="pl-c1">items</span>: <span class="pl-smi">T</span><span class="pl-kos">[</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-en">map</span><span class="pl-c1">&lt;</span><span class="pl-smi">U</span><span class="pl-c1">&gt;</span><span class="pl-kos">(</span><span class="pl-s1">callback</span>: <span class="pl-kos">(</span><span class="pl-s1">item</span>: <span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-s1">idx</span>: <span class="pl-smi">number</span><span class="pl-kos">,</span> <span class="pl-s1">a</span>: this<span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-smi">U</span><span class="pl-kos">)</span>: this <span class="pl-kos">{</span> <span class="pl-c">// boring implementation details</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">Where I want to be able to change the generic type for the class with a function, but I will be contracting to return the "current" class, but I want to guard different generics. The following seems logical to me, but doesn't appear to be currently supported:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class A&lt;T&gt; { private items: T[] = []; map&lt;U&gt;(callback: (item: T, idx: number, a: this) =&gt; U): this&lt;U&gt; { // boring implementation details }); }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">A</span><span class="pl-c1">&lt;</span><span class="pl-smi">T</span><span class="pl-c1">&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">private</span> <span class="pl-c1">items</span>: <span class="pl-smi">T</span><span class="pl-kos">[</span><span class="pl-kos">]</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">map</span><span class="pl-c1">&lt;</span><span class="pl-smi">U</span><span class="pl-c1">&gt;</span><span class="pl-kos">(</span><span class="pl-s1">callback</span>: <span class="pl-kos">(</span><span class="pl-s1">item</span>: <span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-s1">idx</span>: <span class="pl-smi">number</span><span class="pl-kos">,</span> <span class="pl-s1">a</span>: this<span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-smi">U</span><span class="pl-kos">)</span>: <span class="pl-smi">this</span><span class="pl-c1">&lt;</span><span class="pl-smi">U</span><span class="pl-c1">&gt;</span> <span class="pl-kos">{</span> <span class="pl-c">// boring implementation details</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">Where if no generics arguments are supplied, it is inferred to be the current ones, where as if they are supplied they are substituted.</p>
1
<p dir="auto">servel.yaml : max.connections.size.per.query &gt;1 and Large amount of data queried<br> sql :<br> SELECT<br> aci.sys_contract_id,<br> aci.contract_no,<br> aci.contract_name,<br> aci.sys_contract_id,<br> acoi.sys_contract_id,<br> acoi.object_name,<br> acoi.sys_object_id,<br> aci.progress_status,<br> aci.journal_progress_status<br> FROM<br> app1_contract_info aci<br> LEFT JOIN app1_contract_object_info acoi ON aci.sys_contract_id = acoi.sys_contract_id<br> where<br> aci.contract_name = 'sample1' and aci.sys_contract_id not in ('15679933204395H')<br> group BY/order by<br> acoi.sys_object_id</p> <p dir="auto">sys_contract_id is sharding coloum.</p> <p dir="auto">result: no result and mysql can not receive.</p> <p dir="auto">but this sql is successd :<br> SELECT<br> aci.sys_contract_id,<br> aci.contract_no,<br> aci.contract_name,<br> aci.sys_contract_id,<br> acoi.sys_contract_id,<br> acoi.object_name,<br> acoi.sys_object_id,<br> aci.progress_status,<br> aci.journal_progress_status<br> FROM<br> app1_contract_info aci<br> LEFT JOIN app1_contract_object_info acoi ON aci.sys_contract_id = acoi.sys_contract_id<br> where<br> aci.contract_name = 'sample1' and aci.sys_contract_id not in ('15679933204395H')</p>
<h3 dir="auto">Which version of Sharding-Jdbc do you using?(您使用的Sharding-Jdbc版本为?)</h3> <p dir="auto">2.0.0.M3</p> <h3 dir="auto">Expected behavior (您预期的结果是)</h3> <p dir="auto">兼容spring-boot2.0</p> <h3 dir="auto">Actual behavior (实际运行的结果是)</h3> <p dir="auto">spring-boot升级2.0后解析不了这样的配置格式,报错<br> java.lang.IllegalArgumentException: Could not resolve placeholder '0..1' in value "demo.user_${0..1}"</p>
0
<p dir="auto">Feature request: Emacs has a cool feature called <a href="http://emacsredux.com/blog/2014/08/25/a-peek-at-emacs-24-dot-4-prettify-symbols-mode/" rel="nofollow">"prettify symbols mode,"</a> demonstrated for <a href="https://github.com/enomsg/vim-haskellConcealPlus">Haskell here</a>. This could also subsume <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="117780759" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/192" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/192/hovercard" href="https://github.com/microsoft/vscode/issues/192">#192</a>.</p> <p dir="auto">The basic idea is to register a sequence of characters whose glyphs will be replaced with another glyph, but the original characters still appear in the text document. Ideally, the substitutions would be dependent on the context returned by a syntax highlighter or some other parser.</p>
<ul dir="auto"> <li>VSCode Version: 1.1.1</li> <li>OS Version: oxs 10.11.4</li> </ul> <p dir="auto">In china, install extension is very slowly, sometime i want to pause one extension at some project</p>
0
<h3 dir="auto">Describe the bug</h3> <p dir="auto">The problem is basically the one described here:<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="413523205" data-permission-text="Title is private" data-url="https://github.com/tiangolo/fastapi/issues/51" data-hovercard-type="issue" data-hovercard-url="/tiangolo/fastapi/issues/51/hovercard?comment_id=522035784&amp;comment_type=issue_comment" href="https://github.com/tiangolo/fastapi/issues/51#issuecomment-522035784">#51 (comment)</a><br> My fastapi app is behind a reverse proxy that forwards all requests for /api/v1/* and rewrites them to /*.<br> The application itself doesn't know that but the FastAPI object which has openapi_prefix="/api/v1".</p> <p dir="auto">If I have an endpoint</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@app.get(&quot;/hello&quot;) def foo(): return &quot;hello&quot;"><pre class="notranslate"><span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">get</span>(<span class="pl-s">"/hello"</span>)</span> <span class="pl-k">def</span> <span class="pl-en">foo</span>(): <span class="pl-k">return</span> <span class="pl-s">"hello"</span></pre></div> <p dir="auto">and I query /api/v1/hello, it works fine. If I add an extra slash at the end, a redirect occurs but tries to send the user to /hello instead of /api/v1/hello.<br> I'm not sure if it's a bug or if I don't use the app correctly. Maybe it would be simpler for me to make the fastapi app aware of the /api/v1 prefix and remove the rewrite rule? What do you think?</p> <h3 dir="auto">To Reproduce</h3> <p dir="auto">Behind a reverse proxy forwarding the requests for /api/v1/* and rewriting those to /*</p> <ol dir="auto"> <li>Create a file with:</li> </ol> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from fastapi import FastAPI app = FastAPI(openapi_prefix=&quot;/api/v1&quot;) @app.get(&quot;/hello&quot;) def read_root(): return {&quot;Hello&quot;: &quot;World&quot;}"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">fastapi</span> <span class="pl-k">import</span> <span class="pl-v">FastAPI</span> <span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">FastAPI</span>(<span class="pl-s1">openapi_prefix</span><span class="pl-c1">=</span><span class="pl-s">"/api/v1"</span>) <span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">get</span>(<span class="pl-s">"/hello"</span>)</span> <span class="pl-k">def</span> <span class="pl-en">read_root</span>(): <span class="pl-k">return</span> {<span class="pl-s">"Hello"</span>: <span class="pl-s">"World"</span>}</pre></div> <ol start="3" dir="auto"> <li>Open the browser and call the endpoint <code class="notranslate">/api/v1/hello/</code>.</li> <li>It returns a 404 because there is a redirect to /hello.</li> <li>But I expected the redirect to be to /api/v1/hello.</li> </ol> <h3 dir="auto">Expected behavior</h3> <p dir="auto">The redirection shouldn't remove the openapi_prefix.</p> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>OS: Linux / Windows</li> <li>FastAPI Version 0.52.0 from pip</li> <li>python 3.7.4.</li> </ul>
<h1 dir="auto">Schema is auto-added when using file uploads with no clear reason to why</h1> <ul dir="auto"> <li>View template and re-review suggestions <g-emoji class="g-emoji" alias="white_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2705.png">✅</g-emoji></li> <li>Try to find exiting issues/solutions <g-emoji class="g-emoji" alias="white_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2705.png">✅</g-emoji></li> </ul> <h2 dir="auto">Problem:</h2> <p dir="auto">When adding a file upload using the FastAPI's <code class="notranslate">File</code> and <code class="notranslate">UploadFile</code> two schema's seem to be automatically added without any clear reason why and with seemingly no working way to replace/overwrite/remove them. As they don't provide any meaningful information for the consumers of my API I would like to replace/remove them <g-emoji class="g-emoji" alias="sweat_smile" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f605.png">😅</g-emoji><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/49159860/109162955-13b04780-7779-11eb-8356-d832a09f8af0.png"><img src="https://user-images.githubusercontent.com/49159860/109162955-13b04780-7779-11eb-8356-d832a09f8af0.png" alt="image" style="max-width: 100%;"></a></p> <h2 dir="auto">Questions</h2> <ul dir="auto"> <li> <p dir="auto">Is this intended behaviour? (As in, shouldn't the specified responses and/or response models take precedence?)</p> <ul dir="auto"> <li>No -&gt; Ticket should be tagged with a <g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji></li> </ul> </li> <li> <p dir="auto">Is there a way to overwrite/remove these?</p> <ul dir="auto"> <li><a href="https://fastapi.tiangolo.com/advanced/extending-openapi/#modify-the-openapi-schema" rel="nofollow">Yes!</a> (Answered by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/NicolasRondon/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/NicolasRondon">@NicolasRondon</a>)</li> </ul> </li> </ul> <h2 dir="auto">Source</h2> <p dir="auto"><code class="notranslate">src/main.py</code></p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from api.http.routers import ROUTERS from api.settings import SETTINGS # Setting up application logger logging.basicConfig(level=logging.DEBUG) # Initialize application with settings app = FastAPI(**SETTINGS[&quot;app&quot;]) # Add the routers [app.include_router(router) for router in ROUTERS] # ..."><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">api</span>.<span class="pl-s1">http</span>.<span class="pl-s1">routers</span> <span class="pl-k">import</span> <span class="pl-v">ROUTERS</span> <span class="pl-k">from</span> <span class="pl-s1">api</span>.<span class="pl-s1">settings</span> <span class="pl-k">import</span> <span class="pl-v">SETTINGS</span> <span class="pl-c"># Setting up application logger</span> <span class="pl-s1">logging</span>.<span class="pl-en">basicConfig</span>(<span class="pl-s1">level</span><span class="pl-c1">=</span><span class="pl-s1">logging</span>.<span class="pl-v">DEBUG</span>) <span class="pl-c"># Initialize application with settings</span> <span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">FastAPI</span>(<span class="pl-c1">**</span><span class="pl-v">SETTINGS</span>[<span class="pl-s">"app"</span>]) <span class="pl-c"># Add the routers</span> [<span class="pl-s1">app</span>.<span class="pl-en">include_router</span>(<span class="pl-s1">router</span>) <span class="pl-k">for</span> <span class="pl-s1">router</span> <span class="pl-c1">in</span> <span class="pl-v">ROUTERS</span>] <span class="pl-c"># ...</span></pre></div> <p dir="auto"><code class="notranslate">src/api/http/routers/file.py</code></p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# ... imports _dbucket = SETTINGS[&quot;backend&quot;][&quot;storage&quot;][&quot;default_bucket&quot;] _dfile = SETTINGS[&quot;backend&quot;][&quot;storage&quot;][&quot;default_file&quot;] router = APIRouter() # ... Other routers # router usage @router.post( path=&quot;/file/upload&quot;, operation_id=&quot;api.http.routers.file.upload&quot;, tags=[&quot;Uploads &amp; Downloads&quot;], response_model=Result, responses=FileResponses.upload_direct) async def upload_direct( name: str = _dfile, bucket: str = _dbucket, file: UploadFile = File(...) ): &quot;&quot;&quot;Admin/debugging call for direct file upload&quot;&quot;&quot; if StorageClient.lookup_file(name, bucket): raise HTTPException( status_code=409, detail=&quot;The file already exists&quot; ) else: file.filename = name StorageClient.upload_direct(bucket, file) return Result(detail=[{&quot;msg&quot;: &quot;File uploaded sucessfully&quot;}])"><pre class="notranslate"><span class="pl-c"># ... imports</span> <span class="pl-s1">_dbucket</span> <span class="pl-c1">=</span> <span class="pl-v">SETTINGS</span>[<span class="pl-s">"backend"</span>][<span class="pl-s">"storage"</span>][<span class="pl-s">"default_bucket"</span>] <span class="pl-s1">_dfile</span> <span class="pl-c1">=</span> <span class="pl-v">SETTINGS</span>[<span class="pl-s">"backend"</span>][<span class="pl-s">"storage"</span>][<span class="pl-s">"default_file"</span>] <span class="pl-s1">router</span> <span class="pl-c1">=</span> <span class="pl-v">APIRouter</span>() <span class="pl-c"># ... Other routers</span> <span class="pl-c"># router usage</span> <span class="pl-en">@<span class="pl-s1">router</span>.<span class="pl-en">post</span>(</span> <span class="pl-en"> <span class="pl-s1">path</span><span class="pl-c1">=</span><span class="pl-s">"/file/upload"</span>,</span> <span class="pl-en"> <span class="pl-s1">operation_id</span><span class="pl-c1">=</span><span class="pl-s">"api.http.routers.file.upload"</span>,</span> <span class="pl-en"> <span class="pl-s1">tags</span><span class="pl-c1">=</span>[<span class="pl-s">"Uploads &amp; Downloads"</span>],</span> <span class="pl-en"> <span class="pl-s1">response_model</span><span class="pl-c1">=</span><span class="pl-v">Result</span>,</span> <span class="pl-en"> <span class="pl-s1">responses</span><span class="pl-c1">=</span><span class="pl-v">FileResponses</span>.<span class="pl-s1">upload_direct</span>)</span> <span class="pl-k">async</span> <span class="pl-k">def</span> <span class="pl-en">upload_direct</span>( <span class="pl-s1">name</span>: <span class="pl-s1">str</span> <span class="pl-c1">=</span> <span class="pl-s1">_dfile</span>, <span class="pl-s1">bucket</span>: <span class="pl-s1">str</span> <span class="pl-c1">=</span> <span class="pl-s1">_dbucket</span>, <span class="pl-s1">file</span>: <span class="pl-v">UploadFile</span> <span class="pl-c1">=</span> <span class="pl-v">File</span>(...) ): <span class="pl-s">"""Admin/debugging call for direct file upload"""</span> <span class="pl-k">if</span> <span class="pl-v">StorageClient</span>.<span class="pl-en">lookup_file</span>(<span class="pl-s1">name</span>, <span class="pl-s1">bucket</span>): <span class="pl-k">raise</span> <span class="pl-v">HTTPException</span>( <span class="pl-s1">status_code</span><span class="pl-c1">=</span><span class="pl-c1">409</span>, <span class="pl-s1">detail</span><span class="pl-c1">=</span><span class="pl-s">"The file already exists"</span> ) <span class="pl-k">else</span>: <span class="pl-s1">file</span>.<span class="pl-s1">filename</span> <span class="pl-c1">=</span> <span class="pl-s1">name</span> <span class="pl-v">StorageClient</span>.<span class="pl-en">upload_direct</span>(<span class="pl-s1">bucket</span>, <span class="pl-s1">file</span>) <span class="pl-k">return</span> <span class="pl-v">Result</span>(<span class="pl-s1">detail</span><span class="pl-c1">=</span>[{<span class="pl-s">"msg"</span>: <span class="pl-s">"File uploaded sucessfully"</span>}])</pre></div> <p dir="auto"><code class="notranslate">src/api/models/generic.py</code></p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from typing import List from pydantic import BaseModel class Message(BaseModel): &quot;&quot;&quot;Generic message model&quot;&quot;&quot; msg: str class Result(BaseModel): &quot;&quot;&quot;File/bucket generic result&quot;&quot;&quot; detail: List[Message]"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">typing</span> <span class="pl-k">import</span> <span class="pl-v">List</span> <span class="pl-k">from</span> <span class="pl-s1">pydantic</span> <span class="pl-k">import</span> <span class="pl-v">BaseModel</span> <span class="pl-k">class</span> <span class="pl-v">Message</span>(<span class="pl-v">BaseModel</span>): <span class="pl-s">"""Generic message model"""</span> <span class="pl-s1">msg</span>: <span class="pl-s1">str</span> <span class="pl-k">class</span> <span class="pl-v">Result</span>(<span class="pl-v">BaseModel</span>): <span class="pl-s">"""File/bucket generic result"""</span> <span class="pl-s1">detail</span>: <span class="pl-v">List</span>[<span class="pl-v">Message</span>]</pre></div> <h2 dir="auto">Additional information for reproduction</h2> <ul dir="auto"> <li>Python version: 3.8.7 64bit</li> <li><code class="notranslate">FileResponses</code> is just a container class holding responses as described <a href="https://fastapi.tiangolo.com/advanced/additional-responses/" rel="nofollow">here</a> in docs</li> <li><a href="https://github.com/tiangolo/fastapi/files/6043511/requirements-dump.txt">requirements-dump.txt</a></li> </ul>
0
<h5 dir="auto">Description of the problem</h5> <p dir="auto"><a href="https://github.com/mrdoob/three.js/files/3907078/riven.zip">riven.zip</a><br> The mesh loads and everything, and the animation's tracks doesn't and its duration is 0, this happens on some models</p> <h5 dir="auto">Three.js version</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Dev</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r111</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> ...</li> </ul> <h5 dir="auto">Browser</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Chrome</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Firefox</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Internet Explorer</li> </ul> <h5 dir="auto">OS</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Windows</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> macOS</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Linux</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Android</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> iOS</li> </ul>
<h5 dir="auto">Description of the problem</h5> <p dir="auto">Hello,</p> <p dir="auto">The following is a <strong>solution</strong> to a problem I have just faced with the <strong>animations</strong> parsed by the new ColladaLoader.</p> <p dir="auto">I use Autodesk Maya 2017, and when exporting the 3D model containing animations, an extra <code class="notranslate">&lt;animation&gt;</code> tag has been added under the "real" <code class="notranslate">&lt;animation&gt;</code> tag.</p> <div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;animation id=​&quot;xxx-anim&quot; name=​&quot;xxx&quot;&gt; ​&lt;animation&gt; ​&lt;source id=​&quot;xxx-Matrix-animation-input&quot;&gt;​&lt;/source&gt;​ &lt;source id=​&quot;xxx-Matrix-animation-output-transform&quot;&gt;&lt;/source&gt; ​&lt;source id=​&quot;xxx-Interpolations&quot;&gt;​​&lt;/source&gt;​ &lt;sampler id=​&quot;xxx-Matrix-animation-transform&quot;&gt;​&lt;/sampler&gt; ​&lt;channel source=​&quot;#xxx-Matrix-animation-transform&quot; target=​&quot;xxx/​matrix&quot;&gt;​&lt;/channel&gt;​ &lt;/animation&gt; ​&lt;/animation&gt;"><pre class="notranslate">&lt;<span class="pl-ent">animation</span> <span class="pl-e">id</span>=​<span class="pl-s"><span class="pl-pds">"</span>xxx-anim<span class="pl-pds">"</span></span> <span class="pl-e">name</span>=​<span class="pl-s"><span class="pl-pds">"</span>xxx<span class="pl-pds">"</span></span>&gt; ​&lt;<span class="pl-ent">animation</span>&gt; ​&lt;<span class="pl-ent">source</span> <span class="pl-e">id</span>=​<span class="pl-s"><span class="pl-pds">"</span>xxx-Matrix-animation-input<span class="pl-pds">"</span></span>&gt;​&lt;/<span class="pl-ent">source</span>&gt;​ &lt;<span class="pl-ent">source</span> <span class="pl-e">id</span>=​<span class="pl-s"><span class="pl-pds">"</span>xxx-Matrix-animation-output-transform<span class="pl-pds">"</span></span>&gt;&lt;/<span class="pl-ent">source</span>&gt; ​&lt;<span class="pl-ent">source</span> <span class="pl-e">id</span>=​<span class="pl-s"><span class="pl-pds">"</span>xxx-Interpolations<span class="pl-pds">"</span></span>&gt;​​&lt;/<span class="pl-ent">source</span>&gt;​ &lt;<span class="pl-ent">sampler</span> <span class="pl-e">id</span>=​<span class="pl-s"><span class="pl-pds">"</span>xxx-Matrix-animation-transform<span class="pl-pds">"</span></span>&gt;​&lt;/<span class="pl-ent">sampler</span>&gt; ​&lt;<span class="pl-ent">channel</span> <span class="pl-e">source</span>=​<span class="pl-s"><span class="pl-pds">"</span>#xxx-Matrix-animation-transform<span class="pl-pds">"</span></span> <span class="pl-e">target</span>=​<span class="pl-s"><span class="pl-pds">"</span>xxx/​matrix<span class="pl-pds">"</span></span>&gt;​&lt;/<span class="pl-ent">channel</span>&gt;​ &lt;/<span class="pl-ent">animation</span>&gt; ​&lt;/<span class="pl-ent">animation</span>&gt;</pre></div> <p dir="auto">I digged into the source code of the <code class="notranslate">ColladaLoader</code> and I added the following lines into the <code class="notranslate">parseAnimation( xml )</code> function in order to handle this extra tag:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="switch ( child.nodeName ) { /* Handling 'source', 'sampler' and 'channel' */ case 'animation': child.setAttribute( 'id', xml.getAttribute( 'id' ) ); child.setAttribute( 'name', xml.getAttribute( 'name' ) ); parseAnimation( child ); return; }"><pre class="notranslate"><span class="pl-k">switch</span> <span class="pl-kos">(</span> <span class="pl-s1">child</span><span class="pl-kos">.</span><span class="pl-c1">nodeName</span> <span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">/* Handling 'source', 'sampler' and 'channel' */</span> <span class="pl-k">case</span> <span class="pl-s">'animation'</span>: <span class="pl-s1">child</span><span class="pl-kos">.</span><span class="pl-en">setAttribute</span><span class="pl-kos">(</span> <span class="pl-s">'id'</span><span class="pl-kos">,</span> <span class="pl-s1">xml</span><span class="pl-kos">.</span><span class="pl-en">getAttribute</span><span class="pl-kos">(</span> <span class="pl-s">'id'</span> <span class="pl-kos">)</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">child</span><span class="pl-kos">.</span><span class="pl-en">setAttribute</span><span class="pl-kos">(</span> <span class="pl-s">'name'</span><span class="pl-kos">,</span> <span class="pl-s1">xml</span><span class="pl-kos">.</span><span class="pl-en">getAttribute</span><span class="pl-kos">(</span> <span class="pl-s">'name'</span> <span class="pl-kos">)</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">parseAnimation</span><span class="pl-kos">(</span> <span class="pl-s1">child</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">return</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <h5 dir="auto">Three.js version</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Dev</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r92</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> ...</li> </ul> <h5 dir="auto">Browser</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Chrome</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Firefox</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Internet Explorer</li> </ul> <h5 dir="auto">OS</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Windows</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> macOS</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Linux</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Android</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> iOS</li> </ul>
1
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; Current master (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/opencv/opencv/commit/63564039640c81256ccfedf77899e37746352d45/hovercard" href="https://github.com/opencv/opencv/commit/63564039640c81256ccfedf77899e37746352d45"><tt>6356403</tt></a> on 2018-8-23)</li> <li>Operating System / Platform =&gt; Ubuntu 18.04</li> <li>Compiler =&gt; GCC 7.3.0, CMake version 3.10.2</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">When compiling OpenCV I ran into the following error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Scanning dependencies of target opencv_videoio [ 36%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/videoio_registry.cpp.o [ 36%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/videoio_c.cpp.o [ 36%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap.cpp.o [ 36%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_images.cpp.o [ 36%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_mjpeg_encoder.cpp.o [ 36%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_mjpeg_decoder.cpp.o [ 36%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/container_avi.cpp.o [ 36%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_dc1394_v2.cpp.o [ 36%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_gstreamer.cpp.o [ 36%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_v4l.cpp.o [ 36%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_gphoto2.cpp.o /home/ruben/Projects/Libraries/opencv/modules/videoio/src/cap_gphoto2.cpp:32:10: fatal error: gphoto2/gphoto2.h: No such file or directory #include &lt;gphoto2/gphoto2.h&gt; ^~~~~~~~~~~~~~~~~~~"><pre class="notranslate"><code class="notranslate">Scanning dependencies of target opencv_videoio [ 36%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/videoio_registry.cpp.o [ 36%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/videoio_c.cpp.o [ 36%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap.cpp.o [ 36%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_images.cpp.o [ 36%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_mjpeg_encoder.cpp.o [ 36%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_mjpeg_decoder.cpp.o [ 36%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/container_avi.cpp.o [ 36%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_dc1394_v2.cpp.o [ 36%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_gstreamer.cpp.o [ 36%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_v4l.cpp.o [ 36%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_gphoto2.cpp.o /home/ruben/Projects/Libraries/opencv/modules/videoio/src/cap_gphoto2.cpp:32:10: fatal error: gphoto2/gphoto2.h: No such file or directory #include &lt;gphoto2/gphoto2.h&gt; ^~~~~~~~~~~~~~~~~~~ </code></pre></div> <p dir="auto">So it's missing the header files for gPhoto2. However, CMake says that it detects gPhoto2 to be present:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="-- gPhoto2: YES"><pre class="notranslate"><code class="notranslate">-- gPhoto2: YES </code></pre></div> <p dir="auto">Turns out that the problem was that I did have gPhoto2 present on my system, but not the development files that includes the header that OpenCV needs for this module. CMake detected gPhoto2, but this was a false positive as I didn't have the required files anyway. Installing Ubuntu's package for libgphoto2-dev fixed the problem for me, because that put <code class="notranslate">gphoto2.h</code> on the include path.</p> <h5 dir="auto">Steps to reproduce</h5> <ol dir="auto"> <li>Install all dependencies of OpenCV except gPhoto2.</li> <li>Install the Ubuntu package for <code class="notranslate">libgphoto2-6</code>, but not <code class="notranslate">libgphoto2-dev</code>.</li> <li>Build OpenCV using CMake.</li> </ol> <h5 dir="auto">Actual results</h5> <ul dir="auto"> <li>Error at 36% that <code class="notranslate">gphoto2.h</code> is not found.</li> </ul> <h5 dir="auto">Expected results</h5> <p dir="auto">gPhoto2 should not be marked as found in the configure stage of OpenCV, if its header files are not present. Furthermore, I'd expect one of these things to happen, whichever you think is most common behaviour for OpenCV:</p> <ul dir="auto"> <li>CMake disables whatever modules require gPhoto2 (videoio at least), or</li> <li>an error is raised during the configure stage that not all modules can be built as desired.</li> </ul>
<h1 dir="auto">OpenCV Documentation</h1> <p dir="auto">When you click on the link in the following line in the documentation "List of codes can be obtained at <a href="http://www.fourcc.org/codecs.php" rel="nofollow">Video Codecs by FOURCC</a> page", you get redirected to the wrong page.</p> <p dir="auto">This is in the VideoWriter section of the documentation. <a href="https://docs.opencv.org/2.4/modules/highgui/doc/reading_and_writing_images_and_video.html#videocapture" rel="nofollow">https://docs.opencv.org/2.4/modules/highgui/doc/reading_and_writing_images_and_video.html#videocapture</a></p>
0
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=tuomas_kiviaho" rel="nofollow">Tuomas Kiviaho</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8489?redirect=false" rel="nofollow">SPR-8489</a></strong> and commented</p> <p dir="auto">I see that (Context)SingletonBeanFactoryLocator still using BeanFactoryUtils beanOfType instead of BeanFactory getBean(requiredType). Changing this would allow autowiring exclusions and as a bonus the implementation wouldn't have to be aware of ListableBeanFactory anymore. I noticed also that DefaultListableBeanFactory.getBean(requiredType) isn't aware of primary flag (see resolveDependency method). I would like to see this feature to be available in getBean as well.</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.1 M2</p> <p dir="auto"><strong>Attachments:</strong></p> <ul dir="auto"> <li><a href="https://jira.spring.io/secure/attachment/18415/mylyn-context.zip" rel="nofollow">mylyn-context.zip</a> (<em>2.11 kB</em>)</li> </ul> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398109439" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12511" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12511/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12511">#12511</a> <code class="notranslate">@Primary</code> and primary attribute of element are not considered for calls to getBean(Class) (<em><strong>"duplicates"</strong></em>)</li> </ul> <p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/4262aed9c887e65c400a12434e42726b0fcb7fa4/hovercard" href="https://github.com/spring-projects/spring-framework/commit/4262aed9c887e65c400a12434e42726b0fcb7fa4"><tt>4262aed</tt></a></p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=edalquist" rel="nofollow">Eric Dalquist</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-2138?redirect=false" rel="nofollow">SPR-2138</a></strong> and commented</p> <p dir="auto">The form:form tag from the spring-form.tld does not actually support in code all of the attributes advertised in the documentation and tld. The tld lists the following supported attributes:</p> <p dir="auto">id<br> name<br> cssClass<br> cssStyle<br> lang<br> title<br> dir<br> onclick<br> ondblclick<br> onmousedown<br> onmouseup<br> onmouseover<br> onmousemove<br> onmouseout<br> onkeypress<br> onkeyup<br> onkeydown</p> <p dir="auto">&lt;!-- Form specific attributes --&gt;</p> <p dir="auto">commandName<br> action<br> method<br> enctype<br> onsubmit<br> onreset</p> <p dir="auto">The class, org.springframework.web.servlet.tags.form.FormTag only provides setters for these attributes (this list includes parent classes):</p> <p dir="auto">command<br> commandName<br> name<br> onsubmit<br> onreset<br> method<br> action<br> enctype</p> <p dir="auto">It appears the rest of the &lt;form: tags inherit from a class hierarchy that provides most of these common attributes, the FormTag does not.</p> <hr> <p dir="auto"><strong>Affects:</strong> 2.0 M5</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="398066975" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/6819" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/6819/hovercard" href="https://github.com/spring-projects/spring-framework/issues/6819">#6819</a> FormTag doesn't support all attributes listed in the TLD (<em><strong>"is duplicated by"</strong></em>)</li> </ul>
0
<p dir="auto">If possible I would love to see an option for which monitor the zone editor is editing zones for. Even if there is a proper way to do it, I feel it should be simplified for less tech-savvy people. Just a simple Monitor 1 and Monitor 2, identified in the Windows display settings would work fine.<br> It's been a hassle to get it to work on my other vertical monitor and I haven't found a simple solution to this day.</p> <p dir="auto">Any feedback on how I could fix my problem currently would be appreciated!<br> Thank you</p>
<p dir="auto">Working on a machine with several versions of Visual Studio installed (2010, 2015, 2017, 2019), so the sensible search term to load an instance of Visual Studio 2017 is "2017".</p> <p dir="auto">This brings up "Visual Studio 2017" just fine, but it is always the second suggestion, not the first. The first suggestion is to copy "2017" to the clipboard.</p> <p dir="auto">If I had actually performed a calculation with the calculator then copying the result to the clipboard should perhaps be the first entry, but since no operations / calculation has been performed, and there is a matching start menu entry to run, the first suggestion should be the start menu entry, not copy to clipboard.</p>
0
<hr> <h3 dir="auto">System information</h3> <ul dir="auto"> <li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>:</li> </ul> <p dir="auto">I've adapted the ZeroOut operator from the <a href="https://www.tensorflow.org/extend/adding_an_op" rel="nofollow">Adding a New Op</a> example.</p> <ul dir="auto"> <li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>:</li> </ul> <p dir="auto">Linux Ubuntu 16.04</p> <ul dir="auto"> <li><strong>TensorFlow installed from (source or binary)</strong>:</li> </ul> <p dir="auto">binary GPU 1.3.0</p> <ul dir="auto"> <li><strong>TensorFlow version (use command below)</strong>:</li> </ul> <p dir="auto">$ python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"<br> ('v1.3.0-rc2-20-g0787eee', '1.3.0')</p> <ul dir="auto"> <li><strong>Python version</strong>:</li> </ul> <p dir="auto">2.7.12</p> <ul dir="auto"> <li><strong>Bazel version (if compiling from source)</strong>:</li> </ul> <p dir="auto">N/A</p> <ul dir="auto"> <li><strong>CUDA/cuDNN version</strong>:</li> </ul> <p dir="auto">N/A</p> <ul dir="auto"> <li><strong>GPU model and memory</strong>:</li> </ul> <p dir="auto">N/A</p> <ul dir="auto"> <li><strong>Exact command to reproduce</strong>:</li> </ul> <p dir="auto">Test operator: <a href="https://github.com/tensorflow/tensorflow/files/1332745/shard_fails.zip">shard_fails.zip</a></p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ make $ python test_op.py"><pre class="notranslate">$ make $ python test_op.py</pre></div> <h3 dir="auto">Describe the problem</h3> <p dir="auto">When the above C++ operator runs, it'll print the number of threads in the pool (8) and then segfault on the Shard call.</p> <h3 dir="auto">Source code / logs</h3> <p dir="auto">C++ operator code:</p> <div class="highlight highlight-source-c++ notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#define EIGEN_USE_THREADS #include &quot;tensorflow/core/lib/core/threadpool.h&quot; #include &quot;tensorflow/core/framework/op.h&quot; #include &quot;tensorflow/core/framework/op_kernel.h&quot; #include &quot;tensorflow/core/framework/shape_inference.h&quot; #include &quot;tensorflow/core/util/work_sharder.h&quot; using namespace tensorflow; REGISTER_OP(&quot;ZeroOut&quot;) .Input(&quot;to_zero: int32&quot;) .Output(&quot;zeroed: int32&quot;) .SetShapeFn([](::tensorflow::shape_inference::InferenceContext* c) { c-&gt;set_output(0, c-&gt;input(0)); return Status::OK(); }); class ZeroOutOp : public OpKernel { public: explicit ZeroOutOp(OpKernelConstruction* context) : OpKernel(context) {} void Compute(OpKernelContext* context) override { // Grab the input tensor const Tensor&amp; input_tensor = context-&gt;input(0); auto input = input_tensor.flat&lt;int32&gt;(); // Create an output tensor Tensor* output_tensor = NULL; OP_REQUIRES_OK(context, context-&gt;allocate_output(0, input_tensor.shape(), &amp;output_tensor)); auto output_flat = output_tensor-&gt;flat&lt;int32&gt;(); // Set all but the first element of the output tensor to 0. const int N = input.size(); auto pool = context-&gt;device()-&gt;tensorflow_cpu_worker_threads()-&gt;workers; printf(&quot;Pool Threads %d\n&quot;, pool-&gt;NumThreads()); Shard(pool-&gt;NumThreads(), pool, N, 10, [&amp;](int64 start, int64 end) { for(int64 i=start; i&lt;end; ++i) { output_flat(i) = 0; } }); if(N &gt; 0) { output_flat(0) = input(0); } } }; REGISTER_KERNEL_BUILDER(Name(&quot;ZeroOut&quot;).Device(DEVICE_CPU), ZeroOutOp);"><pre class="notranslate">#<span class="pl-k">define</span> <span class="pl-en">EIGEN_USE_THREADS</span> #<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">"</span>tensorflow/core/lib/core/threadpool.h<span class="pl-pds">"</span></span> #<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">"</span>tensorflow/core/framework/op.h<span class="pl-pds">"</span></span> #<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">"</span>tensorflow/core/framework/op_kernel.h<span class="pl-pds">"</span></span> #<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">"</span>tensorflow/core/framework/shape_inference.h<span class="pl-pds">"</span></span> #<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">"</span>tensorflow/core/util/work_sharder.h<span class="pl-pds">"</span></span> <span class="pl-k">using</span> <span class="pl-k">namespace</span> <span class="pl-en">tensorflow</span><span class="pl-k">;</span> <span class="pl-en">REGISTER_OP</span>(<span class="pl-s"><span class="pl-pds">"</span>ZeroOut<span class="pl-pds">"</span></span>) .Input(<span class="pl-s"><span class="pl-pds">"</span>to_zero: int32<span class="pl-pds">"</span></span>) .Output(<span class="pl-s"><span class="pl-pds">"</span>zeroed: int32<span class="pl-pds">"</span></span>) .SetShapeFn([](::tensorflow::shape_inference::InferenceContext* c) { c-&gt;<span class="pl-c1">set_output</span>(<span class="pl-c1">0</span>, c-&gt;<span class="pl-c1">input</span>(<span class="pl-c1">0</span>)); <span class="pl-k">return</span> <span class="pl-c1">Status::OK</span>(); }); <span class="pl-k">class</span> <span class="pl-en">ZeroOutOp</span> : <span class="pl-k">public</span> <span class="pl-en">OpKernel</span> { <span class="pl-k">public:</span> <span class="pl-k">explicit</span> <span class="pl-en">ZeroOutOp</span>(OpKernelConstruction* context) : OpKernel(context) {} <span class="pl-k">void</span> <span class="pl-en">Compute</span>(OpKernelContext* context) <span class="pl-k">override</span> { <span class="pl-c"><span class="pl-c">//</span> Grab the input tensor</span> <span class="pl-k">const</span> Tensor&amp; input_tensor = context-&gt;<span class="pl-c1">input</span>(<span class="pl-c1">0</span>); <span class="pl-k">auto</span> input = input_tensor.<span class="pl-smi">flat</span>&lt;int32&gt;(); <span class="pl-c"><span class="pl-c">//</span> Create an output tensor</span> Tensor* output_tensor = <span class="pl-c1">NULL</span>; <span class="pl-c1">OP_REQUIRES_OK</span>(context, context-&gt;<span class="pl-c1">allocate_output</span>(<span class="pl-c1">0</span>, input_tensor.<span class="pl-c1">shape</span>(), &amp;output_tensor)); <span class="pl-k">auto</span> output_flat = output_tensor-&gt;<span class="pl-smi">flat</span>&lt;int32&gt;(); <span class="pl-c"><span class="pl-c">//</span> Set all but the first element of the output tensor to 0.</span> <span class="pl-k">const</span> <span class="pl-k">int</span> N = input.<span class="pl-c1">size</span>(); <span class="pl-k">auto</span> pool = context-&gt;<span class="pl-c1">device</span>()-&gt;<span class="pl-c1">tensorflow_cpu_worker_threads</span>()-&gt;<span class="pl-smi">workers</span>; <span class="pl-c1">printf</span>(<span class="pl-s"><span class="pl-pds">"</span>Pool Threads %d<span class="pl-cce">\n</span><span class="pl-pds">"</span></span>, pool-&gt;<span class="pl-c1">NumThreads</span>()); <span class="pl-c1">Shard</span>(pool-&gt;<span class="pl-c1">NumThreads</span>(), pool, N, <span class="pl-c1">10</span>, [&amp;](int64 start, int64 end) { <span class="pl-k">for</span>(int64 i=start; i&lt;end; ++i) { <span class="pl-c1">output_flat</span>(i) = <span class="pl-c1">0</span>; } }); <span class="pl-k">if</span>(N &gt; <span class="pl-c1">0</span>) { <span class="pl-c1">output_flat</span>(<span class="pl-c1">0</span>) = <span class="pl-c1">input</span>(<span class="pl-c1">0</span>); } } }; <span class="pl-en">REGISTER_KERNEL_BUILDER</span>(Name(<span class="pl-s"><span class="pl-pds">"</span>ZeroOut<span class="pl-pds">"</span></span>).Device(DEVICE_CPU), ZeroOutOp);</pre></div> <p dir="auto">See below the gdb trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Core was generated by `python test_op.py'. Program terminated with signal SIGSEGV, Segmentation fault. #0 std::_Function_handler&lt;void (long long, long long), ZeroOutOp::Compute(tensorflow::OpKernelContext*)::{lambda(long long, long long)#1}&gt;::_M_invoke(std::_Any_data const&amp;, long long&amp;&amp;, std::_Any_data const&amp;) (__functor=..., __args#0=&lt;unknown type in tfop.so, CU 0x0, DIE 0x41c73&gt;, __args#1=&lt;unknown type in tfop.so, CU 0x0, DIE 0x41c78&gt;) at /usr/include/c++/5/functional:1871 1871 (*_Base::_M_get_pointer(__functor))( [Current thread is 1 (Thread 0x7f38a6605700 (LWP 3771))] (gdb) bt #0 std::_Function_handler&lt;void (long long, long long), ZeroOutOp::Compute(tensorflow::OpKernelContext*)::{lambda(long long, long long)#1}&gt;::_M_invoke(std::_Any_data const&amp;, long long&amp;&amp;, std::_Any_data const&amp;) (__functor=..., __args#0=&lt;unknown type in tfop.so, CU 0x0, DIE 0x41c73&gt;, __args#1=&lt;unknown type in tfop.so, CU 0x0, DIE 0x41c78&gt;) at /usr/include/c++/5/functional:1871 #1 0x00007f3879dcc75d in tensorflow::thread::ThreadPool::Impl::ParallelFor(long long, long long, std::function&lt;void (long long, long long)&gt;) () from /home/sperkins/venv/mb/local/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so #2 0x00007f3879dcc93f in tensorflow::thread::ThreadPool::ParallelFor(long long, long long, std::function&lt;void (long long, long long)&gt;) () from /home/sperkins/venv/mb/local/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so #3 0x00007f3879d4d995 in tensorflow::Shard(int, tensorflow::thread::ThreadPool*, long long, long long, std::function&lt;void (long long, long long)&gt;) () from /home/sperkins/venv/mb/local/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so #4 0x00007f3850bfb79e in ZeroOutOp::Compute (this=0x62dacc0, context=0x7ffd1a20fe30) at tf_op.cpp:42 #5 0x00007f3879a2563c in tensorflow::ThreadPoolDevice::Compute(tensorflow::OpKernel*, tensorflow::OpKernelContext*) () from /home/sperkins/venv/mb/local/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so #6 0x00007f38799f5a58 in tensorflow::(anonymous namespace)::ExecutorState::Process(tensorflow::(anonymous namespace)::ExecutorState::TaggedNode, long long) () from /home/sperkins/venv/mb/local/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so #7 0x00007f38799f61fa in std::_Function_handler&lt;void (), tensorflow::(anonymous namespace)::ExecutorState::ScheduleReady(tensorflow::gtl::InlinedVector&lt;tensorflow::(anonymous namespace)::ExecutorState::TaggedNode, 8&gt; const&amp;, tensorflow::(anonymous namespace)::ExecutorState::TaggedNodeReadyQueue*)::{lambda()#1}&gt;::_M_invoke(std::_Any_data const&amp;) () from /home/sperkins/venv/mb/local/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so #8 0x00007f3879a035c4 in std::_Function_handler&lt;void (std::function&lt;void ()&gt;), tensorflow::GraphRunner::Run(tensorflow::Graph*, tensorflow::FunctionLibraryRuntime*, std::vector&lt;std::pair&lt;std::string, tensorflow::Tensor&gt;, std::allocator&lt;std::pair&lt;std::string, tensorflow::Tensor&gt; &gt; &gt; const&amp;, std::vector&lt;std::string, std::allocator&lt;std::string&gt; &gt; const&amp;, std::vector&lt;tensorflow::Tensor, std::allocator&lt;tensorflow::Tensor&gt; &gt;*)::{lambda(std::function&lt;void ()&gt;)#1}&gt;::_M_invoke(std::_Any_data const&amp;, std::function&lt;void ()&gt;) () from /home/sperkins/venv/mb/local/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so #9 0x00007f38799e895b in std::function&lt;void (std::function&lt;void ()&gt;)&gt;::operator()(std::function&lt;void ()&gt;) const () from /home/sperkins/venv/mb/local/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so #10 0x00007f38799e9043 in tensorflow::(anonymous namespace)::ExecutorState::ScheduleReady(tensorflow::gtl::InlinedVector&lt;tensorflow::(anonymous namespace)::ExecutorState::TaggedNode, 8&gt; const&amp;, tensorflow::(anonymous namespace)::ExecutorState::TaggedNodeReadyQueue*) [clone .part.246] () from /home/sperkins/venv/mb/local/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so #11 0x00007f38799ecf5e in tensorflow::(anonymous namespace)::ExecutorImpl::RunAsync(tensorflow::Executor::Args const&amp;, std::function&lt;void (tensorflow::Status const&amp;)&gt;) () from /home/sperkins/venv/mb/local/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so #12 0x00007f3879a045e4 in tensorflow::GraphRunner::Run(tensorflow::Graph*, tensorflow::FunctionLibraryRuntime*, std::vector&lt;std::pair&lt;std::string, tensorflow::Tensor&gt;, std::allocator&lt;std::pair&lt;std::string, tensorflow::Tensor&gt; &gt; &gt; const&amp;, std::vector&lt;std::string, std::allocator&lt;std::string&gt; &gt; const&amp;, std::vector&lt;tensorflow::Tensor, std::allocator&lt;tensorflow::Tensor&gt; &gt;*) () from /home/sperkins/venv/mb/local/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so #13 0x00007f38799dce27 in tensorflow::ConstantFold(tensorflow::ConstantFoldingOptions const&amp;, tensorflow::FunctionLibraryRuntime*, tensorflow::Env*, tensorflow::Device*, tensorflow::Graph*, bool*) () from /home/sperkins/venv/mb/local/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so #14 0x00007f3879a02fea in tensorflow::GraphOptimizer::Optimize(tensorflow::FunctionLibraryRuntime*, tensorflow::Env*, tensorflow::Device*, std::unique_ptr&lt;tensorflow::Graph, std::default_delete&lt;tensorflow::Graph&gt; &gt;*) () from /home/sperkins/venv/mb/local/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so #15 0x00007f38799a9469 in tensorflow::DirectSession::GetOrCreateExecutors(tensorflow::thread::ThreadPool*, tensorflow::gtl::ArraySlice&lt;std::string&gt;, tensorflow::gtl::ArraySlice&lt;std::string&gt;, tensorflow::gtl::ArraySlice&lt;std::string&gt;, tensorflow::DirectSession::ExecutorsAndKeys**, tensorflow::DirectSession::RunStateArgs*) () from /home/sperkins/venv/mb/local/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so #16 0x00007f38799aa06c in tensorflow::DirectSession::Run(tensorflow::RunOptions const&amp;, std::vector&lt;std::pair&lt;std::string, tensorflow::Tensor&gt;, std::allocator&lt;std::pair&lt;std::string, tensorflow::Tensor&gt; &gt; &gt; const&amp;, std::vector&lt;std::string, std::allocator&lt;std::string&gt; &gt; const&amp;, std::vector&lt;std::string, std::allocator&lt;std::string&gt; &gt; const&amp;, std::vector&lt;tensorflow::Tensor, std::allocator&lt;tensorflow::Tensor&gt; &gt;*, tensorflow::RunMetadata*) () from /home/sperkins/venv/mb/local/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so #17 0x00007f387799b2d7 in TF_Run_Helper(tensorflow::Session*, char const*, TF_Buffer const*, std::vector&lt;std::pair&lt;std::string, tensorflow::Tensor&gt;, std::allocator&lt;std::pair&lt;std::string, tensorflow::Tensor&gt; &gt; &gt; const&amp;, std::vector&lt;std::string, std::allocator&lt;std::string&gt; &gt; const&amp;, TF_Tensor**, std::vector&lt;std::string, std::allocator&lt;std::string&gt; &gt; const&amp;, TF_Buffer*, TF_Status*) () from /home/sperkins/venv/mb/local/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so #18 0x00007f387799b604 in TF_Run () from /home/sperkins/venv/mb/local/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so #19 0x00007f38778037e2 in tensorflow::TF_Run_wrapper_helper(TF_DeprecatedSession*, char const*, TF_Buffer const*, _object*, tensorflow::gtl::InlinedVector&lt;char const*, 8&gt; const&amp;, tensorflow::gtl::InlinedVector&lt;char const*, 8&gt; const&amp;, TF_Status*, tensorflow::gtl::InlinedVector&lt;_object*, 8&gt;*, TF_Buffer*) () from /home/sperkins/venv/mb/local/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so #20 0x00007f3877803be1 in tensorflow::TF_Run_wrapper(TF_DeprecatedSession*, TF_Buffer const*, _object*, tensorflow::gtl::InlinedVector&lt;char const*, 8&gt; const&amp;, tensorflow::gtl::InlinedVector&lt;char const*, 8&gt; const&amp;, TF_Status*, tensorflow::gtl::InlinedVector&lt;_object*, 8&gt;*, TF_Buffer*) () from /home/sperkins/venv/mb/local/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so #21 0x00007f38777ca793 in _wrap_TF_Run () from /home/sperkins/venv/mb/local/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so #22 0x00000000004c468a in PyEval_EvalFrameEx () #23 0x00000000004c2765 in PyEval_EvalCodeEx () #24 0x00000000004de6fe in ?? () #25 0x00000000004b0cb3 in PyObject_Call () #26 0x00000000004c6ad1 in PyEval_EvalFrameEx () #27 0x00000000004c2765 in PyEval_EvalCodeEx () #28 0x00000000004ca8d1 in PyEval_EvalFrameEx () #29 0x00000000004c2765 in PyEval_EvalCodeEx () ---Type &lt;return&gt; to continue, or q &lt;return&gt; to quit--- #30 0x00000000004ca8d1 in PyEval_EvalFrameEx () #31 0x00000000004c2765 in PyEval_EvalCodeEx () #32 0x00000000004ca8d1 in PyEval_EvalFrameEx () #33 0x00000000004c2765 in PyEval_EvalCodeEx () #34 0x00000000004ca099 in PyEval_EvalFrameEx () #35 0x00000000004c2765 in PyEval_EvalCodeEx () #36 0x00000000004c2509 in PyEval_EvalCode () #37 0x00000000004f1def in ?? () #38 0x00000000004ec652 in PyRun_FileExFlags () #39 0x00000000004eae31 in PyRun_SimpleFileExFlags () #40 0x000000000049e14a in Py_Main () #41 0x00007f38a5e4c830 in __libc_start_main (main=0x49dab0 &lt;main&gt;, argc=2, argv=0x7ffd1a213618, init=&lt;optimised out&gt;, fini=&lt;optimised out&gt;, rtld_fini=&lt;optimised out&gt;, stack_end=0x7ffd1a213608) at ../csu/libc-start.c:291 #42 0x000000000049d9d9 in _start ()"><pre class="notranslate"><code class="notranslate">Core was generated by `python test_op.py'. Program terminated with signal SIGSEGV, Segmentation fault. #0 std::_Function_handler&lt;void (long long, long long), ZeroOutOp::Compute(tensorflow::OpKernelContext*)::{lambda(long long, long long)#1}&gt;::_M_invoke(std::_Any_data const&amp;, long long&amp;&amp;, std::_Any_data const&amp;) (__functor=..., __args#0=&lt;unknown type in tfop.so, CU 0x0, DIE 0x41c73&gt;, __args#1=&lt;unknown type in tfop.so, CU 0x0, DIE 0x41c78&gt;) at /usr/include/c++/5/functional:1871 1871 (*_Base::_M_get_pointer(__functor))( [Current thread is 1 (Thread 0x7f38a6605700 (LWP 3771))] (gdb) bt #0 std::_Function_handler&lt;void (long long, long long), ZeroOutOp::Compute(tensorflow::OpKernelContext*)::{lambda(long long, long long)#1}&gt;::_M_invoke(std::_Any_data const&amp;, long long&amp;&amp;, std::_Any_data const&amp;) (__functor=..., __args#0=&lt;unknown type in tfop.so, CU 0x0, DIE 0x41c73&gt;, __args#1=&lt;unknown type in tfop.so, CU 0x0, DIE 0x41c78&gt;) at /usr/include/c++/5/functional:1871 #1 0x00007f3879dcc75d in tensorflow::thread::ThreadPool::Impl::ParallelFor(long long, long long, std::function&lt;void (long long, long long)&gt;) () from /home/sperkins/venv/mb/local/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so #2 0x00007f3879dcc93f in tensorflow::thread::ThreadPool::ParallelFor(long long, long long, std::function&lt;void (long long, long long)&gt;) () from /home/sperkins/venv/mb/local/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so #3 0x00007f3879d4d995 in tensorflow::Shard(int, tensorflow::thread::ThreadPool*, long long, long long, std::function&lt;void (long long, long long)&gt;) () from /home/sperkins/venv/mb/local/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so #4 0x00007f3850bfb79e in ZeroOutOp::Compute (this=0x62dacc0, context=0x7ffd1a20fe30) at tf_op.cpp:42 #5 0x00007f3879a2563c in tensorflow::ThreadPoolDevice::Compute(tensorflow::OpKernel*, tensorflow::OpKernelContext*) () from /home/sperkins/venv/mb/local/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so #6 0x00007f38799f5a58 in tensorflow::(anonymous namespace)::ExecutorState::Process(tensorflow::(anonymous namespace)::ExecutorState::TaggedNode, long long) () from /home/sperkins/venv/mb/local/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so #7 0x00007f38799f61fa in std::_Function_handler&lt;void (), tensorflow::(anonymous namespace)::ExecutorState::ScheduleReady(tensorflow::gtl::InlinedVector&lt;tensorflow::(anonymous namespace)::ExecutorState::TaggedNode, 8&gt; const&amp;, tensorflow::(anonymous namespace)::ExecutorState::TaggedNodeReadyQueue*)::{lambda()#1}&gt;::_M_invoke(std::_Any_data const&amp;) () from /home/sperkins/venv/mb/local/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so #8 0x00007f3879a035c4 in std::_Function_handler&lt;void (std::function&lt;void ()&gt;), tensorflow::GraphRunner::Run(tensorflow::Graph*, tensorflow::FunctionLibraryRuntime*, std::vector&lt;std::pair&lt;std::string, tensorflow::Tensor&gt;, std::allocator&lt;std::pair&lt;std::string, tensorflow::Tensor&gt; &gt; &gt; const&amp;, std::vector&lt;std::string, std::allocator&lt;std::string&gt; &gt; const&amp;, std::vector&lt;tensorflow::Tensor, std::allocator&lt;tensorflow::Tensor&gt; &gt;*)::{lambda(std::function&lt;void ()&gt;)#1}&gt;::_M_invoke(std::_Any_data const&amp;, std::function&lt;void ()&gt;) () from /home/sperkins/venv/mb/local/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so #9 0x00007f38799e895b in std::function&lt;void (std::function&lt;void ()&gt;)&gt;::operator()(std::function&lt;void ()&gt;) const () from /home/sperkins/venv/mb/local/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so #10 0x00007f38799e9043 in tensorflow::(anonymous namespace)::ExecutorState::ScheduleReady(tensorflow::gtl::InlinedVector&lt;tensorflow::(anonymous namespace)::ExecutorState::TaggedNode, 8&gt; const&amp;, tensorflow::(anonymous namespace)::ExecutorState::TaggedNodeReadyQueue*) [clone .part.246] () from /home/sperkins/venv/mb/local/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so #11 0x00007f38799ecf5e in tensorflow::(anonymous namespace)::ExecutorImpl::RunAsync(tensorflow::Executor::Args const&amp;, std::function&lt;void (tensorflow::Status const&amp;)&gt;) () from /home/sperkins/venv/mb/local/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so #12 0x00007f3879a045e4 in tensorflow::GraphRunner::Run(tensorflow::Graph*, tensorflow::FunctionLibraryRuntime*, std::vector&lt;std::pair&lt;std::string, tensorflow::Tensor&gt;, std::allocator&lt;std::pair&lt;std::string, tensorflow::Tensor&gt; &gt; &gt; const&amp;, std::vector&lt;std::string, std::allocator&lt;std::string&gt; &gt; const&amp;, std::vector&lt;tensorflow::Tensor, std::allocator&lt;tensorflow::Tensor&gt; &gt;*) () from /home/sperkins/venv/mb/local/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so #13 0x00007f38799dce27 in tensorflow::ConstantFold(tensorflow::ConstantFoldingOptions const&amp;, tensorflow::FunctionLibraryRuntime*, tensorflow::Env*, tensorflow::Device*, tensorflow::Graph*, bool*) () from /home/sperkins/venv/mb/local/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so #14 0x00007f3879a02fea in tensorflow::GraphOptimizer::Optimize(tensorflow::FunctionLibraryRuntime*, tensorflow::Env*, tensorflow::Device*, std::unique_ptr&lt;tensorflow::Graph, std::default_delete&lt;tensorflow::Graph&gt; &gt;*) () from /home/sperkins/venv/mb/local/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so #15 0x00007f38799a9469 in tensorflow::DirectSession::GetOrCreateExecutors(tensorflow::thread::ThreadPool*, tensorflow::gtl::ArraySlice&lt;std::string&gt;, tensorflow::gtl::ArraySlice&lt;std::string&gt;, tensorflow::gtl::ArraySlice&lt;std::string&gt;, tensorflow::DirectSession::ExecutorsAndKeys**, tensorflow::DirectSession::RunStateArgs*) () from /home/sperkins/venv/mb/local/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so #16 0x00007f38799aa06c in tensorflow::DirectSession::Run(tensorflow::RunOptions const&amp;, std::vector&lt;std::pair&lt;std::string, tensorflow::Tensor&gt;, std::allocator&lt;std::pair&lt;std::string, tensorflow::Tensor&gt; &gt; &gt; const&amp;, std::vector&lt;std::string, std::allocator&lt;std::string&gt; &gt; const&amp;, std::vector&lt;std::string, std::allocator&lt;std::string&gt; &gt; const&amp;, std::vector&lt;tensorflow::Tensor, std::allocator&lt;tensorflow::Tensor&gt; &gt;*, tensorflow::RunMetadata*) () from /home/sperkins/venv/mb/local/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so #17 0x00007f387799b2d7 in TF_Run_Helper(tensorflow::Session*, char const*, TF_Buffer const*, std::vector&lt;std::pair&lt;std::string, tensorflow::Tensor&gt;, std::allocator&lt;std::pair&lt;std::string, tensorflow::Tensor&gt; &gt; &gt; const&amp;, std::vector&lt;std::string, std::allocator&lt;std::string&gt; &gt; const&amp;, TF_Tensor**, std::vector&lt;std::string, std::allocator&lt;std::string&gt; &gt; const&amp;, TF_Buffer*, TF_Status*) () from /home/sperkins/venv/mb/local/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so #18 0x00007f387799b604 in TF_Run () from /home/sperkins/venv/mb/local/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so #19 0x00007f38778037e2 in tensorflow::TF_Run_wrapper_helper(TF_DeprecatedSession*, char const*, TF_Buffer const*, _object*, tensorflow::gtl::InlinedVector&lt;char const*, 8&gt; const&amp;, tensorflow::gtl::InlinedVector&lt;char const*, 8&gt; const&amp;, TF_Status*, tensorflow::gtl::InlinedVector&lt;_object*, 8&gt;*, TF_Buffer*) () from /home/sperkins/venv/mb/local/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so #20 0x00007f3877803be1 in tensorflow::TF_Run_wrapper(TF_DeprecatedSession*, TF_Buffer const*, _object*, tensorflow::gtl::InlinedVector&lt;char const*, 8&gt; const&amp;, tensorflow::gtl::InlinedVector&lt;char const*, 8&gt; const&amp;, TF_Status*, tensorflow::gtl::InlinedVector&lt;_object*, 8&gt;*, TF_Buffer*) () from /home/sperkins/venv/mb/local/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so #21 0x00007f38777ca793 in _wrap_TF_Run () from /home/sperkins/venv/mb/local/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so #22 0x00000000004c468a in PyEval_EvalFrameEx () #23 0x00000000004c2765 in PyEval_EvalCodeEx () #24 0x00000000004de6fe in ?? () #25 0x00000000004b0cb3 in PyObject_Call () #26 0x00000000004c6ad1 in PyEval_EvalFrameEx () #27 0x00000000004c2765 in PyEval_EvalCodeEx () #28 0x00000000004ca8d1 in PyEval_EvalFrameEx () #29 0x00000000004c2765 in PyEval_EvalCodeEx () ---Type &lt;return&gt; to continue, or q &lt;return&gt; to quit--- #30 0x00000000004ca8d1 in PyEval_EvalFrameEx () #31 0x00000000004c2765 in PyEval_EvalCodeEx () #32 0x00000000004ca8d1 in PyEval_EvalFrameEx () #33 0x00000000004c2765 in PyEval_EvalCodeEx () #34 0x00000000004ca099 in PyEval_EvalFrameEx () #35 0x00000000004c2765 in PyEval_EvalCodeEx () #36 0x00000000004c2509 in PyEval_EvalCode () #37 0x00000000004f1def in ?? () #38 0x00000000004ec652 in PyRun_FileExFlags () #39 0x00000000004eae31 in PyRun_SimpleFileExFlags () #40 0x000000000049e14a in Py_Main () #41 0x00007f38a5e4c830 in __libc_start_main (main=0x49dab0 &lt;main&gt;, argc=2, argv=0x7ffd1a213618, init=&lt;optimised out&gt;, fini=&lt;optimised out&gt;, rtld_fini=&lt;optimised out&gt;, stack_end=0x7ffd1a213608) at ../csu/libc-start.c:291 #42 0x000000000049d9d9 in _start () </code></pre></div>
<p dir="auto"><em>Please make sure that this is a build/installation issue. As per our <a href="https://github.com/tensorflow/tensorflow/blob/master/ISSUES.md">GitHub Policy</a>, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template</em></p> <p dir="auto"><strong>System information</strong></p> <ul dir="auto"> <li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04):win10</li> <li>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:</li> <li>TensorFlow installed from (source or binary):</li> <li>TensorFlow version:tf_nightly_gpu_2.0_preview</li> <li>Python version:python 3.6.3</li> <li>Installed using virtualenv? pip? conda?:pip conda</li> <li>Bazel version (if compiling from source):</li> <li>GCC/Compiler version (if compiling from source):</li> <li>CUDA/cuDNN version: cuda_10.0.130_411.31_win10.exe cudnn-10.0-windows10-x64-v7.5.0.56.zip</li> <li>GPU model and memory:GTX 1050</li> </ul> <p dir="auto"><strong>Describe the problem</strong><br> I am trying to install tensorflow gpu on win10,but faild after many times.<br> I also try to use conda,but failed. It takes me alomost one day to figure it out but failed finnaly,<br> So upset and come here for help,thank you!<br> <strong>Provide the exact sequence of commands / steps that you executed before running into the problem</strong><br> pip install tf_nightly_gpu_2.0_preview-2.0.0.dev20190604-cp36-cp36m-win_amd64.whl</p> <p dir="auto"><strong>Any other info / logs</strong><br> Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.<br> The error occurs when pip install tf-nightly-gpu-2.0-preview<br> Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: 'C:\Users\XXXX\AppData\Local\Temp\pip-install-9z06414_\tf-nightly-gpu-2.0-preview\tf_nightly_gpu_2.0_preview-2.0.0.dev20190604.data/purelib/tensorflow/include/tensorflow/include/external/eigen_archive/Eigen/src/Core/products/GeneralMatrixMatrixTriangular_BLAS.h'</p>
0
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <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> <p dir="auto">custom role_path</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">Ubuntu 12.04</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">After upgrade from 2.1.0 to 2.1.1 cannot use group_vars and host_vars in role's defined playbook</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">$ ansible-playbook -i hosts playbooks/playbook.yml<br> Enter hosts for playbook run: test_group</p> <p dir="auto">PLAY [Test playbook] ***********************************************************</p> <p dir="auto">TASK [setup] *******************************************************************<br> ok: [10.10.10.5]<br> ok: [10.10.10.6]</p> <p dir="auto">TASK [common-aliases : set alias] **********************************************<br> fatal: [10.10.10.5]: FAILED! =&gt; {"failed": true, "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'root_mail_aliase' is undefined\n\nThe error appears to have been in '/home/snow/Documents/scripts/ansible/roles/common-aliases/tasks/main.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- name: set alias\n ^ here\n"}<br> fatal: [10.10.10.6]: FAILED! =&gt; {"failed": true, "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'root_mail_aliase' is undefined\n\nThe error appears to have been in '/home/snow/Documents/scripts/ansible/roles/common-aliases/tasks/main.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- name: set alias\n ^ here\n"}</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ cat playbook.yml --- - name: Test playbook hosts: &quot;{{ hosts }}&quot; user: root gather_facts: True vars_prompt: - name: hosts prompt: &quot;Enter hosts for playbook run&quot; private: no roles: #check host_vars/ before run #check group_vars/ before run - common-aliases $ cat group_vars/test_group root_mail_aliase: &quot;[email protected]&quot; $ cat /home/snow/Documents/scripts/ansible/roles/common-aliases/tasks/main.yml --- - name: set alias lineinfile: &quot;dest=/etc/aliases insertafter='^#root:' line='root: {{ root_mail_aliase }}'&quot;"><pre class="notranslate"><code class="notranslate">$ cat playbook.yml --- - name: Test playbook hosts: "{{ hosts }}" user: root gather_facts: True vars_prompt: - name: hosts prompt: "Enter hosts for playbook run" private: no roles: #check host_vars/ before run #check group_vars/ before run - common-aliases $ cat group_vars/test_group root_mail_aliase: "[email protected]" $ cat /home/snow/Documents/scripts/ansible/roles/common-aliases/tasks/main.yml --- - name: set alias lineinfile: "dest=/etc/aliases insertafter='^#root:' line='root: {{ root_mail_aliase }}'" </code></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">Variable root_mail_aliase can be accessible from task</p> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">Running the playbook leads to the error above</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="ansible 2.1.1.0"><pre class="notranslate"><code class="notranslate">ansible 2.1.1.0 </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">Ubuntu 16.04</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">group_vars are ignored if the inventory is the output of a script that is stored in a subdirectory. This includes the popular ec2 inventory script. This bug was introduced in 2.1.1.0 (2.1.0.0 works fine).</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <h6 dir="auto"><code class="notranslate">inventory/script.sh</code></h6> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#!/bin/sh echo '{&quot;webservers&quot;: [&quot;paperberry&quot;]}'"><pre class="notranslate"><code class="notranslate">#!/bin/sh echo '{"webservers": ["paperberry"]}' </code></pre></div> <h6 dir="auto"><code class="notranslate">group_vars/all.yml</code>:</h6> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" --- frontend_path: /var/www/html"><pre class="notranslate"><code class="notranslate"> --- frontend_path: /var/www/html </code></pre></div> <h6 dir="auto"><code class="notranslate">playbooks/webservers.yml</code>:</h6> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" --- - hosts: all connection: local tasks: - debug: var=frontend_path"><pre class="notranslate"><code class="notranslate"> --- - hosts: all connection: local tasks: - debug: var=frontend_path </code></pre></div> <p dir="auto">Run the following code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible-playbook -i inventory/script.sh playbooks/webservers.yml "><pre class="notranslate"><code class="notranslate">ansible-playbook -i inventory/script.sh playbooks/webservers.yml </code></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">ansible 2.1.0.0 shows</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ok: [paperberry] =&gt; { &quot;frontend_path&quot;: &quot;/var/www/html&quot; }"><pre class="notranslate"><code class="notranslate">ok: [paperberry] =&gt; { "frontend_path": "/var/www/html" } </code></pre></div> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">ansible 2.1.1.0 shows</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ok: [paperberry] =&gt; { &quot;frontend_path&quot;: &quot;VARIABLE IS NOT DEFINED!&quot; }"><pre class="notranslate"><code class="notranslate">ok: [paperberry] =&gt; { "frontend_path": "VARIABLE IS NOT DEFINED!" } </code></pre></div>
1
<pre class="notranslate">This looks pretty new. Haven't seen this particular failure before. What steps will reproduce the problem? run net/http tests in a loop What do you see instead? === RUN TestServeFileMimeType-65 --- FAIL: TestServeFileMimeType-65 (0.00 seconds) fs_test.go:338: Content-Type mismatch: got "text/plain; charset=utf-8", want "text/css; charset=utf-8" Which compiler are you using (5g, 6g, 8g, gccgo)? 6g Which operating system are you using? linux Which version are you using? (run 'go version') 8afe25accb81</pre>
<p dir="auto">GOTRACEBACK controls what gets printed on failure. By default "a failure prints a stack trace for every extant goroutine, eliding functions internal to the run-time system, and then exits with exit code 2."</p> <p dir="auto">It would be nice if we there was a variant that printed just the offending goroutine, which is usually what you care about during development.</p>
0
<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="ansible-playbook --version ansible-playbook 2.0.0.2 config file = /var/lib/jenkins/jobs/XXX/workspace/ansible.cfg configured module search path = modules/ansible"><pre class="notranslate"><code class="notranslate">ansible-playbook --version ansible-playbook 2.0.0.2 config file = /var/lib/jenkins/jobs/XXX/workspace/ansible.cfg configured module search path = modules/ansible </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <p dir="auto">Nothing special</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">Linux</p> <p dir="auto">Replicable on Ubuntu and CentOS</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">Following line works as expected</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="when: job_status.json.status == 'FAILED' or job_status.json.status == 'PASSED'"><pre class="notranslate"><code class="notranslate">when: job_status.json.status == 'FAILED' or job_status.json.status == 'PASSED' </code></pre></div> <p dir="auto">Wrapping same code with inline array:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="when: job_status.json.status in ['FAILED','PASSED']"><pre class="notranslate"><code class="notranslate">when: job_status.json.status in ['FAILED','PASSED'] </code></pre></div> <p dir="auto">Triggers error:<br> ["FAILED"' failed. The error was: template error while templating string: unexpected '}', expected ']'. String: {% if job_status.json.status in ["FAILED" %} True {% else %} False {% endif %}</p> <h5 dir="auto">STEPS TO REPRODUCE</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">EXPECTED RESULTS</h5> <p dir="auto">Syntax for 'in' operator should work in when statement with inline array definition.<br> Most probably inline array is interpreted differently, most probably can be fixed by enforcing interpretation of [] when preceded by in operator.</p> <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>
<h5 dir="auto">Issue Type:</h5> <p dir="auto">Bug Report</p> <h5 dir="auto">Ansible Version:</h5> <p dir="auto">1.7.2</p> <h5 dir="auto">Environment:</h5> <p dir="auto">Centos 6</p> <h5 dir="auto">Summary:</h5> <p dir="auto">When using git module with recursive=no the option is used on initial clone but ignore on subsequent checkout if new commits are available</p> <h5 dir="auto">Steps To Reproduce:</h5> <p dir="auto">use a task like :</p> <p dir="auto">name: sync front with prepub branch (www) git: repo="{{local_git}}" dest={{git_root}} version={{git_branch_name}} recursive=no<br> run the task a first time,<br> add commits to your branch,<br> run a second time</p> <h5 dir="auto">Expected Results:</h5> <p dir="auto">submodule are always ignored</p> <h5 dir="auto">Actual Results:</h5> <p dir="auto">submodule aren't ignore after initial clone if they are new commits available</p>
0
<p dir="auto">[Enter steps to reproduce below:]</p> <p dir="auto">1.Edit Yaml file for Hexo<br> 2. Save file (with a dash in the <code class="notranslate">title</code> field)<br> 3. Run Hexo Server</p> <p dir="auto"><strong>Atom Version</strong>: 1.0.0<br> <strong>System</strong>: Microsoft Windows 10 Home Insider Preview<br> <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Stack Trace</h3> <p dir="auto">Uncaught Error: Cannot find module './context-menu'<br> Error: Cannot find module './context-menu'<br> at Function.Module._resolveFilename (module.js:328:15)<br> at Function.Module._load (module.js:270:25)<br> at Module.require (module.js:357:17)<br> at require (module.js:376:17)<br> at BrowserWindow. (C:\Users\Tierney\AppData\Local\atom\app-1.0.0\resources\app.asar\src\browser\atom-window.js:149:27)<br> at emitOne (events.js:77:13)<br> at BrowserWindow.emit (events.js:166:7)<br> at callFunction (C:\Users\Tierney\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)<br> at EventEmitter. (C:\Users\Tierney\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:208:14)<br> at emitMany (events.js:108:13)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At C:\Users\Tierney\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:77 Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:328:15) at Function.Module._load (module.js:270:25) at Module.require (module.js:357:17) at require (module.js:376:17) at BrowserWindow.&lt;anonymous&gt; (C:\Users\Tierney\AppData\Local\atom\app-1.0.0\resources\app.asar\src\browser\atom-window.js:149:27) at emitOne (events.js:77:13) at BrowserWindow.emit (events.js:166:7) at callFunction (C:\Users\Tierney\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\Tierney\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:208:14) at emitMany (events.js:108:13) at metaToValue (C:\Users\Tierney\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\Tierney\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\Tierney\AppData\Local\atom\app-1.0.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\Tierney\AppData\Local\atom\app-1.0.0\resources\app.asar\src\window-event-handler.js:150:33) at HTMLDocument.handler (C:\Users\Tierney\AppData\Local\atom\app-1.0.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\Tierney\AppData\Local\atom\app-1.0.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\Tierney\AppData\Local\atom\app-1.0.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46)"><pre class="notranslate"><code class="notranslate">At C:\Users\Tierney\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:77 Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:328:15) at Function.Module._load (module.js:270:25) at Module.require (module.js:357:17) at require (module.js:376:17) at BrowserWindow.&lt;anonymous&gt; (C:\Users\Tierney\AppData\Local\atom\app-1.0.0\resources\app.asar\src\browser\atom-window.js:149:27) at emitOne (events.js:77:13) at BrowserWindow.emit (events.js:166:7) at callFunction (C:\Users\Tierney\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\Tierney\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:208:14) at emitMany (events.js:108:13) at metaToValue (C:\Users\Tierney\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\Tierney\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\Tierney\AppData\Local\atom\app-1.0.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\Tierney\AppData\Local\atom\app-1.0.0\resources\app.asar\src\window-event-handler.js:150:33) at HTMLDocument.handler (C:\Users\Tierney\AppData\Local\atom\app-1.0.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\Tierney\AppData\Local\atom\app-1.0.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\Tierney\AppData\Local\atom\app-1.0.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46) </code></pre></div> <h3 dir="auto">Commands</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" -8:01.0 core:undo (atom-text-editor.editor.is-focused) -7:59.9.0 core:backspace (atom-text-editor.editor.is-focused) -5:54.5.0 core:save (atom-text-editor.editor.is-focused) -5:40.4.0 core:backspace (atom-text-editor.editor.is-focused) -5:10.8.0 core:save (atom-text-editor.editor.is-focused)"><pre class="notranslate"><code class="notranslate"> -8:01.0 core:undo (atom-text-editor.editor.is-focused) -7:59.9.0 core:backspace (atom-text-editor.editor.is-focused) -5:54.5.0 core:save (atom-text-editor.editor.is-focused) -5:40.4.0 core:backspace (atom-text-editor.editor.is-focused) -5:10.8.0 core:save (atom-text-editor.editor.is-focused) </code></pre></div> <h3 dir="auto">Config</h3> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;core&quot;: { &quot;autoHideMenuBar&quot;: true, &quot;projectHome&quot;: &quot;C:\\Users\\Tierney\\code\\personal&quot; }, &quot;editor&quot;: { &quot;invisibles&quot;: {}, &quot;scrollPastEnd&quot;: true, &quot;scrollSensitivity&quot;: 60, &quot;softWrap&quot;: true, &quot;softWrapAtPreferredLineLength&quot;: true, &quot;tabLength&quot;: 4, &quot;zoomFontWhenCtrlScrolling&quot;: false } }"><pre class="notranslate">{ <span class="pl-ent">"core"</span>: { <span class="pl-ent">"autoHideMenuBar"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"projectHome"</span>: <span class="pl-s"><span class="pl-pds">"</span>C:<span class="pl-cce">\\</span>Users<span class="pl-cce">\\</span>Tierney<span class="pl-cce">\\</span>code<span class="pl-cce">\\</span>personal<span class="pl-pds">"</span></span> }, <span class="pl-ent">"editor"</span>: { <span class="pl-ent">"invisibles"</span>: {}, <span class="pl-ent">"scrollPastEnd"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"scrollSensitivity"</span>: <span class="pl-c1">60</span>, <span class="pl-ent">"softWrap"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"softWrapAtPreferredLineLength"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"tabLength"</span>: <span class="pl-c1">4</span>, <span class="pl-ent">"zoomFontWhenCtrlScrolling"</span>: <span class="pl-c1">false</span> } }</pre></div> <h3 dir="auto">Installed Packages</h3> <div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# User emmet, v2.3.10 file-type-icons, v0.7.0 flex-tool-bar, v0.4.2 minimap, v4.10.0 new-tab, v0.3.0 pain-split, v1.4.0 project-manager, v1.15.10 symbols-tree-view, v0.9.3 tool-bar, v0.1.8 tool-bar-main, v0.0.8 tree-view-git-status, v0.1.1 # Dev No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span> emmet, v2.<span class="pl-ii">3</span>.<span class="pl-ii">10</span> file<span class="pl-k">-</span>type<span class="pl-k">-</span>icons, v0.<span class="pl-ii">7</span>.<span class="pl-ii">0</span> flex<span class="pl-k">-</span>tool<span class="pl-k">-</span>bar, v0.<span class="pl-ii">4</span>.<span class="pl-ii">2</span> minimap, v4.<span class="pl-ii">10</span>.<span class="pl-ii">0</span> <span class="pl-k">new</span><span class="pl-k">-</span>tab, v0.<span class="pl-ii">3</span>.<span class="pl-ii">0</span> pain<span class="pl-k">-</span>split, v1.<span class="pl-ii">4</span>.<span class="pl-ii">0</span> project<span class="pl-k">-</span>manager, v1.<span class="pl-ii">15</span>.<span class="pl-ii">10</span> symbols<span class="pl-k">-</span>tree<span class="pl-k">-</span>view, v0.<span class="pl-ii">9</span>.<span class="pl-ii">3</span> tool<span class="pl-k">-</span>bar, v0.<span class="pl-ii">1</span>.<span class="pl-ii">8</span> tool<span class="pl-k">-</span>bar<span class="pl-k">-</span>main, v0.<span class="pl-ii">0</span>.<span class="pl-ii">8</span> tree<span class="pl-k">-</span>view<span class="pl-k">-</span>git<span class="pl-k">-</span>status, v0.<span class="pl-ii">1</span>.<span class="pl-ii">1</span> <span class="pl-c"><span class="pl-c">#</span> Dev</span> <span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div>
<p dir="auto">I right-clicked on a folder in the tree view</p> <p dir="auto"><strong>Atom Version</strong>: 0.194.0<br> <strong>System</strong>: Windows 7 Entreprise<br> <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Stack Trace</h3> <p dir="auto">Uncaught Error: Cannot find module './context-menu'<br> Error: Cannot find module './context-menu'<br> at Function.Module._resolveFilename (module.js:328:15)<br> at Function.Module._load (module.js:270:25)<br> at Module.require (module.js:357:17)<br> at require (module.js:376:17)<br> at BrowserWindow. (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27)<br> at emitOne (events.js:77:13)<br> at BrowserWindow.emit (events.js:166:7)<br> at callFunction (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)<br> at EventEmitter. (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14)<br> at emitMany (events.js:108:13)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77 Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:328:15) at Function.Module._load (module.js:270:25) at Module.require (module.js:357:17) at require (module.js:376:17) at BrowserWindow.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27) at emitOne (events.js:77:13) at BrowserWindow.emit (events.js:166:7) at callFunction (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14) at emitMany (events.js:108:13) at metaToValue (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\window-event-handler.js:149:33) at HTMLDocument.handler (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46) "><pre class="notranslate"><code class="notranslate">At C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77 Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:328:15) at Function.Module._load (module.js:270:25) at Module.require (module.js:357:17) at require (module.js:376:17) at BrowserWindow.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27) at emitOne (events.js:77:13) at BrowserWindow.emit (events.js:166:7) at callFunction (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14) at emitMany (events.js:108:13) at metaToValue (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\window-event-handler.js:149:33) at HTMLDocument.handler (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46) </code></pre></div> <h3 dir="auto">Commands</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" -4:55.5.0 editor:checkout-head-revision (atom-text-editor.editor.is-focused) 2x -3:41.6.0 window:focus-pane-on-right (atom-text-editor.editor) -3:17.5.0 application:add-project-folder (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel) -2:47.4.0 editor:newline (atom-text-editor.editor.is-focused) -2:38.2.0 core:cut (atom-text-editor.editor) -2:36.5.0 core:paste (atom-text-editor.editor.is-focused) -2:26.6.0 core:save (atom-text-editor.editor.is-focused) -2:20.6.0 core:move-down (atom-text-editor.editor) -2:20.4.0 autocomplete-plus:confirm (atom-text-editor.editor) -2:15.8.0 core:save (atom-text-editor.editor) -2:08.7.0 core:copy (atom-text-editor.editor.is-focused) -2:01.2.0 core:paste (atom-text-editor.editor.is-focused) -1:59.7.0 core:save (atom-text-editor.editor.is-focused) -1:52.2.0 core:paste (atom-text-editor.editor.is-focused) -1:51.6.0 core:save (atom-text-editor.editor.is-focused) -1:30.6.0 core:backspace (atom-text-editor.editor)"><pre class="notranslate"><code class="notranslate"> -4:55.5.0 editor:checkout-head-revision (atom-text-editor.editor.is-focused) 2x -3:41.6.0 window:focus-pane-on-right (atom-text-editor.editor) -3:17.5.0 application:add-project-folder (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel) -2:47.4.0 editor:newline (atom-text-editor.editor.is-focused) -2:38.2.0 core:cut (atom-text-editor.editor) -2:36.5.0 core:paste (atom-text-editor.editor.is-focused) -2:26.6.0 core:save (atom-text-editor.editor.is-focused) -2:20.6.0 core:move-down (atom-text-editor.editor) -2:20.4.0 autocomplete-plus:confirm (atom-text-editor.editor) -2:15.8.0 core:save (atom-text-editor.editor) -2:08.7.0 core:copy (atom-text-editor.editor.is-focused) -2:01.2.0 core:paste (atom-text-editor.editor.is-focused) -1:59.7.0 core:save (atom-text-editor.editor.is-focused) -1:52.2.0 core:paste (atom-text-editor.editor.is-focused) -1:51.6.0 core:save (atom-text-editor.editor.is-focused) -1:30.6.0 core:backspace (atom-text-editor.editor) </code></pre></div> <h3 dir="auto">Config</h3> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;core&quot;: { &quot;ignoredNames&quot;: [ &quot;node_modules&quot; ], &quot;themes&quot;: [ &quot;atom-dark-ui&quot;, &quot;seti-syntax&quot; ], &quot;disabledPackages&quot;: [ &quot;Tern&quot; ], &quot;projectHome&quot;: &quot;Y:\\app-tfoumax&quot; }, &quot;editor&quot;: { &quot;invisibles&quot;: {}, &quot;softWrap&quot;: true, &quot;showIndentGuide&quot;: true } }"><pre class="notranslate">{ <span class="pl-ent">"core"</span>: { <span class="pl-ent">"ignoredNames"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>node_modules<span class="pl-pds">"</span></span> ], <span class="pl-ent">"themes"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>atom-dark-ui<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>seti-syntax<span class="pl-pds">"</span></span> ], <span class="pl-ent">"disabledPackages"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>Tern<span class="pl-pds">"</span></span> ], <span class="pl-ent">"projectHome"</span>: <span class="pl-s"><span class="pl-pds">"</span>Y:<span class="pl-cce">\\</span>app-tfoumax<span class="pl-pds">"</span></span> }, <span class="pl-ent">"editor"</span>: { <span class="pl-ent">"invisibles"</span>: {}, <span class="pl-ent">"softWrap"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"showIndentGuide"</span>: <span class="pl-c1">true</span> } }</pre></div> <h3 dir="auto">Installed Packages</h3> <div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# User autocomplete-plus, v2.12.0 autocomplete-snippets, v1.2.0 javascript-snippets, v1.0.0 jshint, v1.3.5 language-ejs, v0.1.0 linter, v0.12.1 pretty-json, v0.3.3 save-session, v0.14.0 Search, v0.4.0 seti-syntax, v0.4.0 # Dev No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span> autocomplete<span class="pl-k">-</span>plus, v2.<span class="pl-ii">12</span>.<span class="pl-ii">0</span> autocomplete<span class="pl-k">-</span>snippets, v1.<span class="pl-ii">2</span>.<span class="pl-ii">0</span> javascript<span class="pl-k">-</span>snippets, v1.<span class="pl-ii">0</span>.<span class="pl-ii">0</span> jshint, v1.<span class="pl-ii">3</span>.<span class="pl-ii">5</span> language<span class="pl-k">-</span>ejs, v0.<span class="pl-ii">1</span>.<span class="pl-ii">0</span> linter, v0.<span class="pl-ii">12</span>.<span class="pl-ii">1</span> pretty<span class="pl-k">-</span>json, v0.<span class="pl-ii">3</span>.<span class="pl-ii">3</span> save<span class="pl-k">-</span>session, v0.<span class="pl-ii">14</span>.<span class="pl-ii">0</span> Search, v0.<span class="pl-ii">4</span>.<span class="pl-ii">0</span> seti<span class="pl-k">-</span>syntax, v0.<span class="pl-ii">4</span>.<span class="pl-ii">0</span> <span class="pl-c"><span class="pl-c">#</span> Dev</span> <span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div>
1
<p dir="auto">Challenge <a href="https://www.freecodecamp.com/en/challenges/html5-and-css/adjusting-the-padding-of-an-element#?solution=%3Cstyle%3E%0A%20%20.injected-text%20%7B%0A%20%20%20%20margin-bottom%3A%20-15px%3B%0A%20%20%20%20text-align%3A%20center%3B%0A%20%20%7D%0A%0A%20%20.box%20%7B%0A%20%20%20%20border-style%3A%20solid%3B%0A%20%20%20%20border-color%3A%20black%3B%0A%20%20%20%20border-width%3A%205px%3B%0A%20%20%20%20text-align%3A%20center%3B%0A%20%20%7D%0A%0A%20%20.yellow-box%20%7B%0A%20%20%20%20background-color%3A%20yellow%3B%0A%20%20%20%20padding%3A%2010px%3B%0A%20%20%7D%0A%20%20%0A%20%20.red-box%20%7B%0A%20%20%20%20background-color%3A%20red%3B%0A%20%20%20%20padding%3A%2030px%3B%0A%20%20%7D%0A%0A%20%20.green-box%20%7B%0A%20%20%20%20background-color%3A%20green%3B%0A%20%20%20%20padding%3A%2030px%3B%0A%20%20%7D%0A%3C%2Fstyle%3E%0A%3Ch5%20class%3D%22injected-text%22%3Emargin%3C%2Fh5%3E%0A%0A%3Cdiv%20class%3D%22box%20yellow-box%22%3E%0A%20%20%3Ch5%20class%3D%22box%20red-box%22%3Epadding%3C%2Fh5%3E%0A%20%20%3Ch5%20class%3D%22box%20green-box%22%3Epadding%3C%2Fh5%3E%0A%3C%2Fdiv%3E%0A" rel="nofollow">adjusting-the-padding-of-an-element</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 10.0; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &lt;style&gt; .injected-text { margin-bottom: -25px; text-align: center; } .box { border-style: solid; border-color: black; border-width: 5px; text-align: center; } .yellow-box { background-color: yellow; padding: 10px; } .red-box { background-color: red; padding: 10px; } .green-box { background-color: green; padding: 10px; } &lt;/style&gt; &lt;h5 class=&quot;injected-text&quot;&gt;margin&lt;/h5&gt; &lt;div class=&quot;box yellow-box&quot;&gt; &lt;h5 class=&quot;box red-box&quot;&gt;padding&lt;/h5&gt; &lt;h5 class=&quot;box green-box&quot;&gt;padding&lt;/h5&gt; &lt;/div&gt; ``` The challenge says &quot;Change the padding of your green box to match that of your red box.&quot; Initially the padding of the red box is 20 px and the padding of the green box is 10 px. So, we need to change the padding of the green box to 20 px to pass the challenge. But when we do so,the Run Tests is not successful. Below the challenge it says &quot;Your green-box class should give elements 20px of padding.&quot; . Even though I have changed the padding of green box class to 20px it is still passing it ![screenshot 24](https://cloud.githubusercontent.com/assets/13553103/18403367/c365bfba-76fd-11e6-9896-9025d4d5a491.png) "><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> .<span class="pl-c1">injected-text</span> { <span class="pl-c1">margin-bottom</span><span class="pl-kos">:</span> <span class="pl-c1">-25<span class="pl-smi">px</span></span>; <span class="pl-c1">text-align</span><span class="pl-kos">:</span> center; } .<span class="pl-c1">box</span> { <span class="pl-c1">border-style</span><span class="pl-kos">:</span> solid; <span class="pl-c1">border-color</span><span class="pl-kos">:</span> black; <span class="pl-c1">border-width</span><span class="pl-kos">:</span> <span class="pl-c1">5<span class="pl-smi">px</span></span>; <span class="pl-c1">text-align</span><span class="pl-kos">:</span> center; } .<span class="pl-c1">yellow-box</span> { <span class="pl-c1">background-color</span><span class="pl-kos">:</span> yellow; <span class="pl-c1">padding</span><span class="pl-kos">:</span> <span class="pl-c1">10<span class="pl-smi">px</span></span>; } .<span class="pl-c1">red-box</span> { <span class="pl-c1">background-color</span><span class="pl-kos">:</span> red; <span class="pl-c1">padding</span><span class="pl-kos">:</span> <span class="pl-c1">10<span class="pl-smi">px</span></span>; } .<span class="pl-c1">green-box</span> { <span class="pl-c1">background-color</span><span class="pl-kos">:</span> green; <span class="pl-c1">padding</span><span class="pl-kos">:</span> <span class="pl-c1">10<span class="pl-smi">px</span></span>; } <span class="pl-kos">&lt;/</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h5</span> <span class="pl-c1">class</span>="<span class="pl-s">injected-text</span>"<span class="pl-kos">&gt;</span>margin<span class="pl-kos">&lt;/</span><span class="pl-ent">h5</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">box yellow-box</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h5</span> <span class="pl-c1">class</span>="<span class="pl-s">box red-box</span>"<span class="pl-kos">&gt;</span>padding<span class="pl-kos">&lt;/</span><span class="pl-ent">h5</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h5</span> <span class="pl-c1">class</span>="<span class="pl-s">box green-box</span>"<span class="pl-kos">&gt;</span>padding<span class="pl-kos">&lt;/</span><span class="pl-ent">h5</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> ``` The challenge says "Change the padding of your green box to match that of your red box." Initially the padding of the red box is 20 px and the padding of the green box is 10 px. So, we need to change the padding of the green box to 20 px to pass the challenge. But when we do so,the Run Tests is not successful. Below the challenge it says "Your green-box class should give elements 20px of padding." . Even though I have changed the padding of green box class to 20px it is still passing it ![screenshot 24](https://cloud.githubusercontent.com/assets/13553103/18403367/c365bfba-76fd-11e6-9896-9025d4d5a491.png) </pre></div>
<h4 dir="auto">Issue Description</h4> <p dir="auto">I am working on this challenge (<a href="https://www.freecodecamp.com/en/challenges/html5-and-css/use-clockwise-notation-to-specify-the-padding-of-an-element" rel="nofollow">Use Clockwise Notation to Specify the Padding of an Element</a>) but I can't seem to get past it, is it my code?</p> <h4 dir="auto">Browser Information</h4> <ul dir="auto"> <li>Browser Name, Version: Mozilla/5.0</li> <li>Operating System: Macintosh; Intel Mac OS X 10.11; rv:48.0</li> </ul> <h4 dir="auto">Your Code</h4> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &lt;style&gt; .injected-text { margin-bottom: -25px; text-align: center; } .box { border-style: solid; border-color: black; border-width: 5px; text-align: center; } .yellow-box { background-color: yellow; padding: 20px 40px 20px 40px; } .red-box { background-color: red; padding: 20px 40px 20px 40px; } .green-box { background-color: green; padding: 40px 20px 20px 40px; } &lt;/style&gt; &lt;h5 class=&quot;injected-text&quot;&gt;margin&lt;/h5&gt; &lt;div class=&quot;box yellow-box&quot;&gt; &lt;h5 class=&quot;box red-box&quot;&gt;padding&lt;/h5&gt; &lt;h5 class=&quot;box green-box&quot;&gt;padding&lt;/h5&gt; &lt;/div&gt; "><pre class="notranslate"> <span class="pl-kos">&lt;</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> .<span class="pl-c1">injected-text</span> { <span class="pl-c1">margin-bottom</span><span class="pl-kos">:</span> <span class="pl-c1">-25<span class="pl-smi">px</span></span>; <span class="pl-c1">text-align</span><span class="pl-kos">:</span> center; } .<span class="pl-c1">box</span> { <span class="pl-c1">border-style</span><span class="pl-kos">:</span> solid; <span class="pl-c1">border-color</span><span class="pl-kos">:</span> black; <span class="pl-c1">border-width</span><span class="pl-kos">:</span> <span class="pl-c1">5<span class="pl-smi">px</span></span>; <span class="pl-c1">text-align</span><span class="pl-kos">:</span> center; } .<span class="pl-c1">yellow-box</span> { <span class="pl-c1">background-color</span><span class="pl-kos">:</span> yellow; <span class="pl-c1">padding</span><span class="pl-kos">:</span> <span class="pl-c1">20<span class="pl-smi">px</span></span> <span class="pl-c1">40<span class="pl-smi">px</span></span> <span class="pl-c1">20<span class="pl-smi">px</span></span> <span class="pl-c1">40<span class="pl-smi">px</span></span>; } .<span class="pl-c1">red-box</span> { <span class="pl-c1">background-color</span><span class="pl-kos">:</span> red; <span class="pl-c1">padding</span><span class="pl-kos">:</span> <span class="pl-c1">20<span class="pl-smi">px</span></span> <span class="pl-c1">40<span class="pl-smi">px</span></span> <span class="pl-c1">20<span class="pl-smi">px</span></span> <span class="pl-c1">40<span class="pl-smi">px</span></span>; } .<span class="pl-c1">green-box</span> { <span class="pl-c1">background-color</span><span class="pl-kos">:</span> green; <span class="pl-c1">padding</span><span class="pl-kos">:</span> <span class="pl-c1">40<span class="pl-smi">px</span></span> <span class="pl-c1">20<span class="pl-smi">px</span></span> <span class="pl-c1">20<span class="pl-smi">px</span></span> <span class="pl-c1">40<span class="pl-smi">px</span></span>; } <span class="pl-kos">&lt;/</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h5</span> <span class="pl-c1">class</span>="<span class="pl-s">injected-text</span>"<span class="pl-kos">&gt;</span>margin<span class="pl-kos">&lt;/</span><span class="pl-ent">h5</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">box yellow-box</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h5</span> <span class="pl-c1">class</span>="<span class="pl-s">box red-box</span>"<span class="pl-kos">&gt;</span>padding<span class="pl-kos">&lt;/</span><span class="pl-ent">h5</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h5</span> <span class="pl-c1">class</span>="<span class="pl-s">box green-box</span>"<span class="pl-kos">&gt;</span>padding<span class="pl-kos">&lt;/</span><span class="pl-ent">h5</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> </pre></div> <h4 dir="auto">Screenshot</h4>
1
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: windows 10 1909 PowerToys version: 0.18 *PrtScn key is used for new official screenshot app"><pre class="notranslate"><code class="notranslate">Windows build number: windows 10 1909 PowerToys version: 0.18 *PrtScn key is used for new official screenshot app </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">active the powertoys window,then use PrtScn key in the keyboard</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">screenshot bar should be shown like this ↓<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/61088063/82632252-447fb100-9c2a-11ea-82ed-0b0da4dddd67.png"><img src="https://user-images.githubusercontent.com/61088063/82632252-447fb100-9c2a-11ea-82ed-0b0da4dddd67.png" alt="屏幕截图(3)" style="max-width: 100%;"></a></p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">screenshot bar didn't work</p>
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 10.0.18363 PowerToys version: 0.18.0 PowerToy module for which you are reporting the bug (if applicable): PowerToys Run"><pre class="notranslate"><code class="notranslate">Windows build number: 10.0.18363 PowerToys version: 0.18.0 PowerToy module for which you are reporting the bug (if applicable): PowerToys Run </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <ol dir="auto"> <li>Open PowerToys Run interface</li> <li>Press PrtScreen key (for me FN+END on german keyboard layout)</li> </ol> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Screenshot will be captured.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">Nothing happens.</p>
1
<p dir="auto">This is more of a feature request...</p> <p dir="auto">When viewing a markdown file in split panes with one side being the raw markdown and the other being the HTML preview, I'd like to be able to have the two panes stay in sync as I scroll one or the other. For example, if I scroll down in the raw pane, I'd like the preview pane to scroll down as well so the markdown and preview stay in sync with each other. This is a feature found in MarkdownPad, my current/previous markdown editor, that I'd like to see in VS Code as well.</p> <p dir="auto">Thanks!</p>
<ul dir="auto"> <li>VSCode Version:0.10.14 code-insiders</li> <li>OS Version:Windows 10</li> </ul> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>Open a markdown preview to the side of markdown source</li> <li>Scroll source file</li> </ol> <p dir="auto">It would be nice to have a way to lock the preview and scroll at the same time. Especially nice for longer markdown files.</p> <p dir="auto">This came in from an internal MS writer using VS Code for Markdown.</p>
1
<p dir="auto">So we can do something like this:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="COUCHDB_URL = 'https://mybigusername:[email protected]/databasename/' s = requests.Session(url_prefix=COUCHDB_URL) r = s.get('/_all_docs', params=dict(include_docs=True)) r = s.get('/some_document_id')"><pre class="notranslate"><span class="pl-v">COUCHDB_URL</span> <span class="pl-c1">=</span> <span class="pl-s">'https://mybigusername:[email protected]/databasename/'</span> <span class="pl-s1">s</span> <span class="pl-c1">=</span> <span class="pl-s1">requests</span>.<span class="pl-v">Session</span>(<span class="pl-s1">url_prefix</span><span class="pl-c1">=</span><span class="pl-v">COUCHDB_URL</span>) <span class="pl-s1">r</span> <span class="pl-c1">=</span> <span class="pl-s1">s</span>.<span class="pl-en">get</span>(<span class="pl-s">'/_all_docs'</span>, <span class="pl-s1">params</span><span class="pl-c1">=</span><span class="pl-en">dict</span>(<span class="pl-s1">include_docs</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)) <span class="pl-s1">r</span> <span class="pl-c1">=</span> <span class="pl-s1">s</span>.<span class="pl-en">get</span>(<span class="pl-s">'/some_document_id'</span>)</pre></div> <p dir="auto">The example uses the CouchDB API and it would almost entirely prevent the need for API wrappers like <a href="https://github.com/adamlofts/couchdb-requests">this</a> (see it storing the url prefix <a href="https://github.com/adamlofts/couchdb-requests/blob/93e83d5e8cf7b0894de33747572789777dee845e/couchdbreq/resource.py#L80">right here</a>). But extensive usage of any REST API would benefit from this.</p>
<p dir="auto">Is it possible to add an optional base url attribute to the Session object ?</p> <p dir="auto">For example;</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" auth = ('user', 'pass') with requests.session(url='http://api.twitter.com', auth=auth) as s: resp = s.get('/1/statuses/home_timeline.json')"><pre class="notranslate"><code class="notranslate"> auth = ('user', 'pass') with requests.session(url='http://api.twitter.com', auth=auth) as s: resp = s.get('/1/statuses/home_timeline.json') </code></pre></div>
1
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">I have eight equally sized zones but if I only have three open windows it would be better to connect to neighbouring zones and enlarge my windows.</p> <h1 dir="auto">Proposed technical implementation details (optional)</h1> <p dir="auto">By pressing the Shift+CTRL key and holding the window between two zones it should snap over both zones.</p>
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [Version 10.0.19041.388] PowerToys version: Release v0.19.2"><pre class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.19041.388] PowerToys version: Release v0.19.2 </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">remap ctrl+v to windows + v then try to paste something and select it in the dropdown the dropdown will close and nothing will happen</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">should paste the selected item from the dropdown</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">Wont paste anything</p>
0
<p dir="auto">If i am setting image to imageview from path image view is automatically zooming, can you tell me why this happen? My code is</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Glide.clear(imageView); Glide.with(mContext) .load(path) .asBitmap() // .animate(R.anim.activity_fade_in) // .dontAnimate() // .centerCrop() .signature(new StringSignature(noteGroup.getLastModifiedDate().toString())) .placeholder(bitmapDrawable) .skipMemoryCache(false) .diskCacheStrategy(DiskCacheStrategy.SOURCE) .override(width, height)"><pre class="notranslate"><span class="pl-smi">Glide</span>.<span class="pl-en">clear</span>(<span class="pl-s1">imageView</span>); <span class="pl-smi">Glide</span>.<span class="pl-en">with</span>(<span class="pl-s1">mContext</span>) .<span class="pl-en">load</span>(<span class="pl-s1">path</span>) .<span class="pl-en">asBitmap</span>() <span class="pl-c">// .animate(R.anim.activity_fade_in)</span> <span class="pl-c">// .dontAnimate()</span> <span class="pl-c">// .centerCrop()</span> .<span class="pl-en">signature</span>(<span class="pl-k">new</span> <span class="pl-smi">StringSignature</span>(<span class="pl-s1">noteGroup</span>.<span class="pl-en">getLastModifiedDate</span>().<span class="pl-en">toString</span>())) .<span class="pl-en">placeholder</span>(<span class="pl-s1">bitmapDrawable</span>) .<span class="pl-en">skipMemoryCache</span>(<span class="pl-c1">false</span>) .<span class="pl-en">diskCacheStrategy</span>(<span class="pl-smi">DiskCacheStrategy</span>.<span class="pl-c1">SOURCE</span>) .<span class="pl-en">override</span>(<span class="pl-s1">width</span>, <span class="pl-s1">height</span>)</pre></div>
<p dir="auto"><strong>Glide Version/Integration library (if any)</strong>: 3.5.2<br> <strong>Device/Android Version</strong>: S4/4.4<br> <strong>Issue details/Repro steps</strong>: Load a different sized thumbnail and image, or placeholder and image and note the result:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2906988/6538023/e027582a-c45c-11e4-8758-abb9d7a67c69.gif"><img src="https://cloud.githubusercontent.com/assets/2906988/6538023/e027582a-c45c-11e4-8758-abb9d7a67c69.gif" alt="demo" data-animated-image="" style="max-width: 100%;"></a></p> <p dir="auto"><strong>Glide load line</strong>:</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Delay extends UnitTransformation { private final int sleepTime; public Delay(int sleepTime) { this.sleepTime = sleepTime; } @Override public Resource transform(Resource resource, int outWidth, int outHeight) { try { Thread.sleep(sleepTime); } catch (InterruptedException ex) {} return super.transform(resource, outWidth, outHeight); } } @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); final ImageView image = new ImageView(this); setContentView(image); // Saved as R.drawable.placeholder String placeholder = &quot;http://placehold.it/300x500/eedddd.png&amp;text=PLACEHOLDER&quot;; // Square image String thumb = &quot;http://placehold.it/300x300/eeeedd.png&amp;text=THUMB&quot;; // Wide image final String full = &quot;http://placehold.it/300x100/eedddd.png&amp;text=FULL&quot;; // Prepared request with unimportant clutter final DrawableRequestBuilder&lt;String&gt; req = Glide .with(this) .fromString() .diskCacheStrategy(DiskCacheStrategy.SOURCE) // disable network delay for demo .skipMemoryCache(true) // make sure transform runs for demo .crossFade(2000) // default, just stretch time for noticability ; req.clone() .thumbnail(req.clone() .transform(new Delay(500)) // wait a little .load(thumb) ) .transform(new Delay(1000)) // wait before going from thumbnail to image //.dontAnimate() // solves the problem .load(full) .into(image); image.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { req.clone() .load(full) .placeholder(R.drawable.placeholder) .transform(new Delay(1000)) //.animate(R.anim.abc_fade_in) // also solves the problem .into(image); } });"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">Delay</span> <span class="pl-k">extends</span> <span class="pl-smi">UnitTransformation</span> { <span class="pl-k">private</span> <span class="pl-k">final</span> <span class="pl-smi">int</span> <span class="pl-s1">sleepTime</span>; <span class="pl-k">public</span> <span class="pl-smi">Delay</span>(<span class="pl-smi">int</span> <span class="pl-s1">sleepTime</span>) { <span class="pl-smi">this</span>.<span class="pl-s1">sleepTime</span> = <span class="pl-s1">sleepTime</span>; } <span class="pl-c1">@</span><span class="pl-c1">Override</span> <span class="pl-k">public</span> <span class="pl-smi">Resource</span> <span class="pl-en">transform</span>(<span class="pl-smi">Resource</span> <span class="pl-s1">resource</span>, <span class="pl-smi">int</span> <span class="pl-s1">outWidth</span>, <span class="pl-smi">int</span> <span class="pl-s1">outHeight</span>) { <span class="pl-k">try</span> { <span class="pl-smi">Thread</span>.<span class="pl-en">sleep</span>(<span class="pl-s1">sleepTime</span>); } <span class="pl-k">catch</span> (<span class="pl-smi">InterruptedException</span> <span class="pl-s1">ex</span>) {} <span class="pl-k">return</span> <span class="pl-en">super</span>.<span class="pl-en">transform</span>(<span class="pl-s1">resource</span>, <span class="pl-s1">outWidth</span>, <span class="pl-s1">outHeight</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-s1">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-k">final</span> <span class="pl-smi">ImageView</span> <span class="pl-s1">image</span> = <span class="pl-k">new</span> <span class="pl-smi">ImageView</span>(<span class="pl-smi">this</span>); <span class="pl-en">setContentView</span>(<span class="pl-s1">image</span>); <span class="pl-c">// Saved as R.drawable.placeholder</span> <span class="pl-smi">String</span> <span class="pl-s1">placeholder</span> = <span class="pl-s">"http://placehold.it/300x500/eedddd.png&amp;text=PLACEHOLDER"</span>; <span class="pl-c">// Square image</span> <span class="pl-smi">String</span> <span class="pl-s1">thumb</span> = <span class="pl-s">"http://placehold.it/300x300/eeeedd.png&amp;text=THUMB"</span>; <span class="pl-c">// Wide image</span> <span class="pl-k">final</span> <span class="pl-smi">String</span> <span class="pl-s1">full</span> = <span class="pl-s">"http://placehold.it/300x100/eedddd.png&amp;text=FULL"</span>; <span class="pl-c">// Prepared request with unimportant clutter</span> <span class="pl-k">final</span> <span class="pl-smi">DrawableRequestBuilder</span>&lt;<span class="pl-smi">String</span>&gt; <span class="pl-s1">req</span> = <span class="pl-smi">Glide</span> .<span class="pl-en">with</span>(<span class="pl-smi">this</span>) .<span class="pl-en">fromString</span>() .<span class="pl-en">diskCacheStrategy</span>(<span class="pl-smi">DiskCacheStrategy</span>.<span class="pl-c1">SOURCE</span>) <span class="pl-c">// disable network delay for demo</span> .<span class="pl-en">skipMemoryCache</span>(<span class="pl-c1">true</span>) <span class="pl-c">// make sure transform runs for demo</span> .<span class="pl-en">crossFade</span>(<span class="pl-c1">2000</span>) <span class="pl-c">// default, just stretch time for noticability</span> ; <span class="pl-s1">req</span>.<span class="pl-en">clone</span>() .<span class="pl-en">thumbnail</span>(<span class="pl-s1">req</span>.<span class="pl-en">clone</span>() .<span class="pl-en">transform</span>(<span class="pl-k">new</span> <span class="pl-smi">Delay</span>(<span class="pl-c1">500</span>)) <span class="pl-c">// wait a little</span> .<span class="pl-en">load</span>(<span class="pl-s1">thumb</span>) ) .<span class="pl-en">transform</span>(<span class="pl-k">new</span> <span class="pl-smi">Delay</span>(<span class="pl-c1">1000</span>)) <span class="pl-c">// wait before going from thumbnail to image</span> <span class="pl-c">//.dontAnimate() // solves the problem</span> .<span class="pl-en">load</span>(<span class="pl-s1">full</span>) .<span class="pl-en">into</span>(<span class="pl-s1">image</span>); <span class="pl-s1">image</span>.<span class="pl-en">setOnClickListener</span>(<span class="pl-k">new</span> <span class="pl-smi">OnClickListener</span>() { <span class="pl-c1">@</span><span class="pl-c1">Override</span> <span class="pl-k">public</span> <span class="pl-smi">void</span> <span class="pl-en">onClick</span>(<span class="pl-smi">View</span> <span class="pl-s1">v</span>) { <span class="pl-s1">req</span>.<span class="pl-en">clone</span>() .<span class="pl-en">load</span>(<span class="pl-s1">full</span>) .<span class="pl-en">placeholder</span>(<span class="pl-smi">R</span>.<span class="pl-s1">drawable</span>.<span class="pl-s1">placeholder</span>) .<span class="pl-en">transform</span>(<span class="pl-k">new</span> <span class="pl-smi">Delay</span>(<span class="pl-c1">1000</span>)) <span class="pl-c">//.animate(R.anim.abc_fade_in) // also solves the problem</span> .<span class="pl-en">into</span>(<span class="pl-s1">image</span>); } });</pre></div> <p dir="auto">By removing all the delaying parts, the end result is better, but the now the thumbnail is messed up:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2906988/6538022/e0252d02-c45c-11e4-82a6-6f13f3a215af.gif"><img src="https://cloud.githubusercontent.com/assets/2906988/6538022/e0252d02-c45c-11e4-82a6-6f13f3a215af.gif" alt="demo3" data-animated-image="" style="max-width: 100%;"></a></p>
1
<p dir="auto">On this csv file:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="DecisionM,IntelligentM,freq,total 0, 5, 9, 20 0, 6, 21,33 0, 7, 35,65 0, 8, 35,83 0, 9, 14,41 0, 10, 10,26 1, 5, 11,20 1, 6, 12,33 1, 7, 30,65 1, 8, 48,83 1, 9, 27, 41,, 1, 10, 16, 26"><pre class="notranslate"><code class="notranslate">DecisionM,IntelligentM,freq,total 0, 5, 9, 20 0, 6, 21,33 0, 7, 35,65 0, 8, 35,83 0, 9, 14,41 0, 10, 10,26 1, 5, 11,20 1, 6, 12,33 1, 7, 30,65 1, 8, 48,83 1, 9, 27, 41,, 1, 10, 16, 26 </code></pre></div> <p dir="auto"><code class="notranslate">pandas.read_csv()</code> gives me</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--------------------------------------------------------------------------- CParserError Traceback (most recent call last) &lt;ipython-input-9-28b9c031f12d&gt; in &lt;module&gt;() ----&gt; 1 pandas.read_csv(&quot;speeddating.csv&quot;) /usr/lib/python3.4/site-packages/pandas/io/parsers.py in parser_f(filepath_or_buffer, sep, dialect, compression, doublequote, escapechar, quotechar, quoting, skipinitialspace, lineterminator, header, index_col, names, prefix, skiprows, skipfooter, skip_footer, na_values, na_fvalues, true_values, false_values, delimiter, converters, dtype, usecols, engine, delim_whitespace, as_recarray, na_filter, compact_ints, use_unsigned, low_memory, buffer_lines, warn_bad_lines, error_bad_lines, keep_default_na, thousands, comment, decimal, parse_dates, keep_date_col, dayfirst, date_parser, memory_map, float_precision, nrows, iterator, chunksize, verbose, encoding, squeeze, mangle_dupe_cols, tupleize_cols, infer_datetime_format, skip_blank_lines) 463 skip_blank_lines=skip_blank_lines) 464 --&gt; 465 return _read(filepath_or_buffer, kwds) 466 467 parser_f.__name__ = name /usr/lib/python3.4/site-packages/pandas/io/parsers.py in _read(filepath_or_buffer, kwds) 249 return parser 250 --&gt; 251 return parser.read() 252 253 _parser_defaults = { /usr/lib/python3.4/site-packages/pandas/io/parsers.py in read(self, nrows) 708 raise ValueError('skip_footer not supported for iteration') 709 --&gt; 710 ret = self._engine.read(nrows) 711 712 if self.options.get('as_recarray'): /usr/lib/python3.4/site-packages/pandas/io/parsers.py in read(self, nrows) 1157 1158 try: -&gt; 1159 data = self._reader.read(nrows) 1160 except StopIteration: 1161 if nrows is None: /usr/lib/python3.4/site-packages/pandas/parser.cpython-34m.so in pandas.parser.TextReader.read (pandas/parser.c:7403)() /usr/lib/python3.4/site-packages/pandas/parser.cpython-34m.so in pandas.parser.TextReader._read_low_memory (pandas/parser.c:7643)() /usr/lib/python3.4/site-packages/pandas/parser.cpython-34m.so in pandas.parser.TextReader._read_rows (pandas/parser.c:8265)() /usr/lib/python3.4/site-packages/pandas/parser.cpython-34m.so in pandas.parser.TextReader._tokenize_rows (pandas/parser.c:8139)() /usr/lib/python3.4/site-packages/pandas/parser.cpython-34m.so in pandas.parser.raise_parser_error (pandas/parser.c:20776)() CParserError: Error tokenizing data. C error: Expected 4 fields in line 12, saw 6"><pre class="notranslate"><code class="notranslate">--------------------------------------------------------------------------- CParserError Traceback (most recent call last) &lt;ipython-input-9-28b9c031f12d&gt; in &lt;module&gt;() ----&gt; 1 pandas.read_csv("speeddating.csv") /usr/lib/python3.4/site-packages/pandas/io/parsers.py in parser_f(filepath_or_buffer, sep, dialect, compression, doublequote, escapechar, quotechar, quoting, skipinitialspace, lineterminator, header, index_col, names, prefix, skiprows, skipfooter, skip_footer, na_values, na_fvalues, true_values, false_values, delimiter, converters, dtype, usecols, engine, delim_whitespace, as_recarray, na_filter, compact_ints, use_unsigned, low_memory, buffer_lines, warn_bad_lines, error_bad_lines, keep_default_na, thousands, comment, decimal, parse_dates, keep_date_col, dayfirst, date_parser, memory_map, float_precision, nrows, iterator, chunksize, verbose, encoding, squeeze, mangle_dupe_cols, tupleize_cols, infer_datetime_format, skip_blank_lines) 463 skip_blank_lines=skip_blank_lines) 464 --&gt; 465 return _read(filepath_or_buffer, kwds) 466 467 parser_f.__name__ = name /usr/lib/python3.4/site-packages/pandas/io/parsers.py in _read(filepath_or_buffer, kwds) 249 return parser 250 --&gt; 251 return parser.read() 252 253 _parser_defaults = { /usr/lib/python3.4/site-packages/pandas/io/parsers.py in read(self, nrows) 708 raise ValueError('skip_footer not supported for iteration') 709 --&gt; 710 ret = self._engine.read(nrows) 711 712 if self.options.get('as_recarray'): /usr/lib/python3.4/site-packages/pandas/io/parsers.py in read(self, nrows) 1157 1158 try: -&gt; 1159 data = self._reader.read(nrows) 1160 except StopIteration: 1161 if nrows is None: /usr/lib/python3.4/site-packages/pandas/parser.cpython-34m.so in pandas.parser.TextReader.read (pandas/parser.c:7403)() /usr/lib/python3.4/site-packages/pandas/parser.cpython-34m.so in pandas.parser.TextReader._read_low_memory (pandas/parser.c:7643)() /usr/lib/python3.4/site-packages/pandas/parser.cpython-34m.so in pandas.parser.TextReader._read_rows (pandas/parser.c:8265)() /usr/lib/python3.4/site-packages/pandas/parser.cpython-34m.so in pandas.parser.TextReader._tokenize_rows (pandas/parser.c:8139)() /usr/lib/python3.4/site-packages/pandas/parser.cpython-34m.so in pandas.parser.raise_parser_error (pandas/parser.c:20776)() CParserError: Error tokenizing data. C error: Expected 4 fields in line 12, saw 6 </code></pre></div> <p dir="auto">This seems odd to me. There's nothing in those fields to worry about anyway, they can just be dropped. Even if there was data there, if it doesn't have a column to go with it should be dropped too. Lots of csv files are messy like this; that's basically why they're used all the time.</p> <p dir="auto">I am on pandas '0.15.2' and Python3</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="keys = [('a', 'b', 'c'), ('d', 'e', 'f', 'g', 'h'), ('i', 'j', 'k', 'l')] pd.MultiIndex.from_tuples(keys).lexsort_depth Out[106]: 5"><pre class="notranslate"><span class="pl-s1">keys</span> <span class="pl-c1">=</span> [(<span class="pl-s">'a'</span>, <span class="pl-s">'b'</span>, <span class="pl-s">'c'</span>), (<span class="pl-s">'d'</span>, <span class="pl-s">'e'</span>, <span class="pl-s">'f'</span>, <span class="pl-s">'g'</span>, <span class="pl-s">'h'</span>), (<span class="pl-s">'i'</span>, <span class="pl-s">'j'</span>, <span class="pl-s">'k'</span>, <span class="pl-s">'l'</span>)] <span class="pl-s1">pd</span>.<span class="pl-v">MultiIndex</span>.<span class="pl-en">from_tuples</span>(<span class="pl-s1">keys</span>).<span class="pl-s1">lexsort_depth</span> <span class="pl-v">Out</span>[<span class="pl-c1">106</span>]: <span class="pl-c1">5</span></pre></div> <p dir="auto">work correctly while:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="keys = [('spot_es', 'spot', 'es'), ('prod_de_wind_ecen', 'prod', 'de', 'wind', 'ecen'), ('avu_fr_maxe-1', 'avu', 'fr', 'maxe-1')] pd.MultiIndex.from_tuples(keys).lexsort_depth Out[108]: 0"><pre class="notranslate"><span class="pl-s1">keys</span> <span class="pl-c1">=</span> [(<span class="pl-s">'spot_es'</span>, <span class="pl-s">'spot'</span>, <span class="pl-s">'es'</span>), (<span class="pl-s">'prod_de_wind_ecen'</span>, <span class="pl-s">'prod'</span>, <span class="pl-s">'de'</span>, <span class="pl-s">'wind'</span>, <span class="pl-s">'ecen'</span>), (<span class="pl-s">'avu_fr_maxe-1'</span>, <span class="pl-s">'avu'</span>, <span class="pl-s">'fr'</span>, <span class="pl-s">'maxe-1'</span>)] <span class="pl-s1">pd</span>.<span class="pl-v">MultiIndex</span>.<span class="pl-en">from_tuples</span>(<span class="pl-s1">keys</span>).<span class="pl-s1">lexsort_depth</span> <span class="pl-v">Out</span>[<span class="pl-c1">108</span>]: <span class="pl-c1">0</span></pre></div> <p dir="auto">does not</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="pd.__version__ Out[128]: '0.15.1'"><pre class="notranslate"><span class="pl-s1">pd</span>.<span class="pl-s1">__version__</span> <span class="pl-v">Out</span>[<span class="pl-c1">128</span>]: <span class="pl-s">'0.15.1'</span></pre></div>
0
<p dir="auto">Hello everyone,<br> I have experienced a very unusual bug that I never saw before. When I run this codes, I got logout from MacOS and return to login page!</p> <pre class="notranslate">import matplotlib.pyplot as plt from astropy.visualization import astropy_mpl_style from astropy.utils.data import get_pkg_data_filename from astropy.io import fits from astropy.wcs import WCS hdu = fits.open('file.fits')[0] wcs = WCS(hdu.header) plt.subplot(projection=wcs) plt.figure() plt.imshow(hdu.data, cmap='gray') plt.colorbar() plt.show() </pre> <p dir="auto">This bugs only happens when I keep </p><pre class="notranslate">plt.show()</pre><p dir="auto"></p> <p dir="auto">I also saw this bugs today by installing DS9 8.0.1 Aqua port (not X11 port). When I tried to open DS9, it just logout from my client and return to login page.</p> <p dir="auto">I guess it's far beyond matplotlib, Maybe comes from X11?</p> <p dir="auto">Is there any solution?<br> Thanks!</p>
<h3 dir="auto">Bug report</h3> <p dir="auto"><strong>Bug summary</strong></p> <p dir="auto">Trying to view a plot made with Python 3.7, Spyder, and IPython with the Tkinter backend causes a crash and the macOS Mojave login screen appears.</p> <p dir="auto"><strong>Code for reproduction</strong></p> <p dir="auto">Any kind of plot will cause the problem.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np import matplotlib.pyplot as plt x = np.linspace(0, 10) y = 2 * x plt.plot(x, y)"><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">x</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">linspace</span>(<span class="pl-c1">0</span>, <span class="pl-c1">10</span>) <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-c1">2</span> <span class="pl-c1">*</span> <span class="pl-s1">x</span> <span class="pl-s1">plt</span>.<span class="pl-en">plot</span>(<span class="pl-s1">x</span>, <span class="pl-s1">y</span>)</pre></div> <p dir="auto"><strong>Actual outcome</strong></p> <p dir="auto">Crash and the Mojave 10.14.6 login screen appears.</p> <p dir="auto">The problem started occurring after the update to Mojave 10.14.6. When I create a plot and click on the plot window icon on the dock, the screen goes black for a second and the macOS login screen appears. After I log in, the windows of Anaconda Navigator and Spyder are gone and their icons are no longer present on the Dock. Activity Monitor however indicates that python is still running.</p> <p dir="auto">I have reproduced this behavior a few times. Switching the IPython backend to Qt5 solved the problem.</p> <p dir="auto"><strong>Expected outcome</strong></p> <p dir="auto">A plot.</p> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Operating system: MacOS Mojave 10.14.6 (Darwin 18.7.0)</li> <li>Matplotlib version: 3.1.0</li> <li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): Tkinter</li> <li>Python version: 3.7.3</li> <li>Jupyter version (if applicable): n/a</li> <li>Other libraries: Spyder 3.3.6, IPython 7.6.1<br> Running the stock Anaconda Distribution 2019.07.</li> </ul>
1
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: v1.35.1</li> <li>Operating System: Windows 11</li> <li>Browser: None (Unit testing)</li> <li>Other info:</li> </ul> <h3 dir="auto">Source code</h3> <p dir="auto"><strong>Test file (self-contained)</strong></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" import { expect, test } from &quot;@playwright/test&quot;; test('Playwright promise rejection with finally', async () =&gt; { let p = new Promise((resolve, reject) =&gt; { reject('failed'); }); p.finally(() =&gt; { console.log('finally'); }); let has_failed = false; try { await p; } catch (e) { has_failed = true; } expect(has_failed).toStrictEqual(true); }); test('Playwright promise rejection without finally', async () =&gt; { let p = new Promise((resolve, reject) =&gt; { reject('failed'); }); let has_failed = false; try { await p; } catch (e) { has_failed = true; } expect(has_failed).toStrictEqual(true); });"><pre class="notranslate"> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">expect</span><span class="pl-kos">,</span> <span class="pl-s1">test</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"@playwright/test"</span><span class="pl-kos">;</span> <span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">'Playwright promise rejection with finally'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> <span class="pl-s1">p</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">Promise</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">resolve</span><span class="pl-kos">,</span> <span class="pl-s1">reject</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-en">reject</span><span class="pl-kos">(</span><span class="pl-s">'failed'</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">p</span><span class="pl-kos">.</span><span class="pl-en">finally</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">'finally'</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">let</span> <span class="pl-s1">has_failed</span> <span class="pl-c1">=</span> <span class="pl-c1">false</span><span class="pl-kos">;</span> <span class="pl-k">try</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-s1">p</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">catch</span> <span class="pl-kos">(</span><span class="pl-s1">e</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">has_failed</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">has_failed</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toStrictEqual</span><span class="pl-kos">(</span><span class="pl-c1">true</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">'Playwright promise rejection without finally'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> <span class="pl-s1">p</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">Promise</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">resolve</span><span class="pl-kos">,</span> <span class="pl-s1">reject</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-en">reject</span><span class="pl-kos">(</span><span class="pl-s">'failed'</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">let</span> <span class="pl-s1">has_failed</span> <span class="pl-c1">=</span> <span class="pl-c1">false</span><span class="pl-kos">;</span> <span class="pl-k">try</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-s1">p</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">catch</span> <span class="pl-kos">(</span><span class="pl-s1">e</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">has_failed</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">has_failed</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toStrictEqual</span><span class="pl-kos">(</span><span class="pl-c1">true</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Config file</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// playwright.config.ts import { defineConfig, devices } from '@playwright/test'; export default defineConfig({ testDir: './tests', fullyParallel: true, reporter: 'html', use: { trace: 'on-first-retry' }, timeout: 5 * 60 * 1000, expect: { timeout: 30000, }, projects: [ { name: 'unit_tests', testMatch: /.*\.unit\.ts/ }, ], });"><pre class="notranslate"><span class="pl-c">// playwright.config.ts</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">defineConfig</span><span class="pl-kos">,</span> <span class="pl-s1">devices</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@playwright/test'</span><span class="pl-kos">;</span> <span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-en">defineConfig</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">testDir</span>: <span class="pl-s">'./tests'</span><span class="pl-kos">,</span> <span class="pl-c1">fullyParallel</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">reporter</span>: <span class="pl-s">'html'</span><span class="pl-kos">,</span> <span class="pl-c1">use</span>: <span class="pl-kos">{</span> <span class="pl-c1">trace</span>: <span class="pl-s">'on-first-retry'</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">timeout</span>: <span class="pl-c1">5</span> <span class="pl-c1">*</span> <span class="pl-c1">60</span> <span class="pl-c1">*</span> <span class="pl-c1">1000</span><span class="pl-kos">,</span> <span class="pl-c1">expect</span>: <span class="pl-kos">{</span> <span class="pl-c1">timeout</span>: <span class="pl-c1">30000</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">projects</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">'unit_tests'</span><span class="pl-kos">,</span> <span class="pl-c1">testMatch</span>: <span class="pl-pds"><span class="pl-c1">/</span>.<span class="pl-c1">*</span><span class="pl-cce">\.</span>unit<span class="pl-cce">\.</span>ts<span class="pl-c1">/</span></span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Steps</strong></p> <ul dir="auto"> <li>Run the first test : it fails</li> <li>Run the second test : it works fine</li> </ul> <p dir="auto"><strong>Expected</strong></p> <p dir="auto">Both should work the same</p>
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: 1.32.2 (experimental-ct-react)</li> <li>Operating System: macOS Ventura 13.0</li> <li>Browser: All</li> <li>Other info: playwright uses <code class="notranslate">[email protected]</code> to build for production (shown when running cmd in terminal). For the reproduction I added vite to <code class="notranslate">peerDependencies</code> using version <code class="notranslate">2.8.6</code> which is causing the error. This is not exactly how it is in the package of the repository where the error appeared first. There, playwright just uses another vite version that is used in some other package of the monorepo and remains using that version even if I update vite in that package and the particular version number <code class="notranslate">2.8.6</code> only remains appearing in the <code class="notranslate">pnpm-lock.yaml</code> for the whole monorepo. When I run <code class="notranslate">pnpm --filter "@*/components" test:units</code> so all packages use <code class="notranslate">4.2.1</code> playwright then also uses <code class="notranslate">4.2.1</code> and then everything works as expected</li> </ul> <h3 dir="auto">Source code</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I provided exact source code that allows reproducing the issue locally.</li> </ul> <p dir="auto"><strong>Link to the GitHub repository with the repro</strong></p> <p dir="auto"><a href="https://github.com/lukaskoeller/playwright-ct-vite-reproduction">Github Reproduction</a></p> <p dir="auto"><strong>Steps</strong></p> <p dir="auto">Using the <a href="https://github.com/lukaskoeller/playwright-ct-vite-reproduction">reproduction from github</a></p> <ul dir="auto"> <li><code class="notranslate">pnpm i</code></li> <li><code class="notranslate">pnpm --filter "@ct/components" test:units</code></li> </ul> <p dir="auto">Using your own repro</p> <ul dir="auto"> <li>Add <code class="notranslate">@playwright/experimental-ct-react17</code></li> <li>Add <code class="notranslate">"vite": "^2.8.6"</code> to <code class="notranslate">peerDependencies</code></li> <li>Run <code class="notranslate">pnpm i</code></li> <li>Run test via <code class="notranslate">pnpm test-ct</code></li> <li>Playwright will show <code class="notranslate">vite v2.8.6 building for production…</code></li> <li>Test fails with <code class="notranslate">Invalid option in transform() call: "jsxSideEffects"</code>.</li> </ul> <p dir="auto"><strong>Expected</strong></p> <ul dir="auto"> <li>All tests are running through</li> <li>or playwright exits with an error informing me that the vite version is not supported and shows min supported vite version</li> <li>or playwright just informs me that it is using another vite version to run the tests instead of the referenced version</li> </ul> <p dir="auto"><strong>Actual</strong></p> <p dir="auto">Test run fails with error <code class="notranslate">Invalid option in transform() call: "jsxSideEffects"</code>.</p>
0
<p dir="auto">Is there anyone else out there using Playwright to test Power BI visuals? I didn't find anyone in the Power BI community doing it. I need to be able to click a value in a visual to adjust other visuals (&amp; "get" values); right click to show a drop down to drill through to another report that has additional values and table attributes. Can playwright be used to accomplish these tasks?</p> <p dir="auto">I found a public visual that seems to have the same table attributes. If I can get it working for it then I should be able to do the same for our internal website reports. I used this public visual for my example code I have tried below.</p> <p dir="auto">Here are the sections for a single element. It would be best if I can "find" / "click" / and "get" by the actual name "Weimei Corp" instead of all of the nth elements. Also this report has way more frames than mine. I am able to get it to display the frame details. Is there documentation that shows each of these are broken down on how to get what I need by using the frame attributes?</p> <p dir="auto">For the examples, I figured it should be from frame and not page but I would try both.</p> <p dir="auto"><strong>Copy Element</strong></p> <div title="Weimei Corp" dir="auto">Weimei Corp</div> <p dir="auto"><strong>Copy Selector</strong><br> #pvExplorationHost &gt; div &gt; div &gt; exploration &gt; div &gt; explore-canvas-modern &gt; div &gt; div.canvasFlexBox &gt; div &gt; div.displayArea.disableAnimations.fitToPage &gt; div.visualContainerHost &gt; visual-container-repeat &gt; visual-container-modern:nth-child(13) &gt; transform &gt; div &gt; div:nth-child(4) &gt; div &gt; visual-modern &gt; div &gt; div &gt; div.tableEx &gt; div.innerContainer &gt; div.bodyCells &gt; div &gt; div &gt; div:nth-child(1) &gt; div:nth-child(5)</p> <p dir="auto"><strong>Copy JS Path</strong><br> document.querySelector("#pvExplorationHost &gt; div &gt; div &gt; exploration &gt; div &gt; explore-canvas-modern &gt; div &gt; div.canvasFlexBox &gt; div &gt; div.displayArea.disableAnimations.fitToPage &gt; div.visualContainerHost &gt; visual-container-repeat &gt; visual-container-modern:nth-child(13) &gt; transform &gt; div &gt; div:nth-child(4) &gt; div &gt; visual-modern &gt; div &gt; div &gt; div.tableEx &gt; div.innerContainer &gt; div.bodyCells &gt; div &gt; div &gt; div:nth-child(1) &gt; div:nth-child(5)")</p> <p dir="auto"><strong>Copy XPath</strong><br> //*[<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/id/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/id">@id</a>="pvExplorationHost"]/div/div/exploration/div/explore-canvas-modern/div/div[2]/div/div[2]/div[2]/visual-container-repeat/visual-container-modern[13]/transform/div/div[3]/div/visual-modern/div/div/div[2]/div[1]/div[4]/div/div/div[1]/div[5]</p> <p dir="auto">Here is the code using that public visual and example codes I have tried to just click the "Weimei Corp"<br> const playwright = require("playwright");</p> <p dir="auto">(async function(){<br> const browser = await playwright.chromium.launch({ headless: false , slowMo: 100 }); // Non-headless mode to feel comfy</p> <p dir="auto">const context = await browser.newContext(); // So much to say, but another time<br> const page = await context.newPage(); // Create a new Page instance which handles most of your needs</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="await Promise.all([ page.waitForNavigation(), page.goto('https://community.powerbi.com/t5/Data-Stories-Gallery/Customer-Analysis-Dashboard/td-p/630893') ]); await page.waitForTimeout(30000); // wait for the Apps to load"><pre class="notranslate"><code class="notranslate">await Promise.all([ page.waitForNavigation(), page.goto('https://community.powerbi.com/t5/Data-Stories-Gallery/Customer-Analysis-Dashboard/td-p/630893') ]); await page.waitForTimeout(30000); // wait for the Apps to load </code></pre></div> <p dir="auto">debugger;</p> <p dir="auto">console.log('start');</p> <p dir="auto">console.log('Report is displayed');</p> <p dir="auto">await page.frames().find((frame) =&gt; {<br> console.log(frame,frame.name());<br> return frame.name() === 'visual-sandbox'<br> });<br> console.log('Got visual-sandbox');</p> <p dir="auto">//locate the iframe name visual sandbox<br> const frame = page.frames().find(frame =&gt; frame.name() === 'visual-sandbox');<br> console.log(frame.name());</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="console.log('Got visual-sandbox'); const title= await frame.title(); await console.log('title is:'+title); await frame.waitForTimeout(10000);"><pre class="notranslate"><code class="notranslate">console.log('Got visual-sandbox'); const title= await frame.title(); await console.log('title is:'+title); await frame.waitForTimeout(10000); </code></pre></div> <p dir="auto">// below doesn't work<br> await page.click('text="Weimei Corp"');<br> await frame.click('text="Weimei Corp"');</p> <p dir="auto">//Error: Evaluation failed: TypeError: Cannot read property 'click' of null<br> const corp = await page.evaluate(() =&gt; document.querySelector("#pvExplorationHost &gt; div &gt; div &gt; exploration &gt; div &gt; explore-canvas-modern &gt; div &gt; div.canvasFlexBox &gt; div &gt; div.displayArea.disableAnimations.fitToPage &gt; div.visualContainerHost &gt; visual-container-repeat &gt; visual-container-modern:nth-child(13) &gt; transform &gt; div &gt; div:nth-child(4) &gt; div &gt; visual-modern &gt; div &gt; div &gt; div.tableEx &gt; div.innerContainer &gt; div.bodyCells &gt; div &gt; div &gt; div:nth-child(1) &gt; div:nth-child(5)").click());</p> <p dir="auto">console.log('got Corp click ');</p> <p dir="auto">// Error: Evaluation failed: TypeError: Cannot read property 'innerText' of null<br> const fullText = await frame.evaluate(el =&gt; el.innerText, await page.$("#pvExplorationHost &gt; div &gt; div &gt; exploration &gt; div &gt; explore-canvas-modern &gt; div &gt; div.canvasFlexBox &gt; div &gt; div.displayArea.disableAnimations.fitToPage &gt; div.visualContainerHost &gt; visual-container-repeat &gt; visual-container-modern:nth-child(13) &gt; transform &gt; div &gt; div:nth-child(4) &gt; div &gt; visual-modern &gt; div &gt; div &gt; div.tableEx &gt; div.innerContainer &gt; div.bodyCells &gt; div &gt; div &gt; div:nth-child(1) &gt; div:nth-child(5)"))<br> //console.log(fullText)</p> <p dir="auto">//TypeError: Cannot read property 'inntertext' of null<br> //const hrefElement = await page.$('#pvExplorationHost &gt; div &gt; div &gt; exploration &gt; div &gt; explore-canvas-modern &gt; div &gt; div.canvasFlexBox &gt; div &gt; div.displayArea.disableAnimations.fitToPage &gt; div.visualContainerHost &gt; visual-container-repeat &gt; visual-container-modern:nth-child(13) &gt; transform &gt; div &gt; div:nth-child(4) &gt; div &gt; visual-modern &gt; div &gt; div &gt; div.tableEx &gt; div.innerContainer &gt; div.bodyCells &gt; div &gt; div &gt; div:nth-child(1) &gt; div:nth-child(5)');<br> console.log(hrefElement.innerText.name);<br> await hrefElement.click();</p> <p dir="auto">//(node:10080) UnhandledPromiseRejectionWarning: Error: Error: failed to find element matching selector "#pvExplorationHost &gt; div &gt; div &gt; exploration &gt; div &gt; explore-canvas-modern &gt; div &gt; div.canvasFlexBox &gt; div &gt; div.displayArea.disableAnimations.fitToPage &gt; div.visualContainerHost &gt; visual-container-repeat &gt; visual-container-modern:nth-child(13) &gt; transform &gt; div &gt; div:nth-child(4) &gt; div &gt; visual-modern &gt; div &gt; div &gt; div.tableEx &gt; div.innerContainer &gt; div.bodyCells &gt; div &gt; div &gt; div:nth-child(1) &gt; div:nth-child(5)"<br> // at Frame._$evalExpression<br> const hrefElement = await frame.$eval('#pvExplorationHost &gt; div &gt; div &gt; exploration &gt; div &gt; explore-canvas-modern &gt; div &gt; div.canvasFlexBox &gt; div &gt; div.displayArea.disableAnimations.fitToPage &gt; div.visualContainerHost &gt; visual-container-repeat &gt; visual-container-modern:nth-child(13) &gt; transform &gt; div &gt; div:nth-child(4) &gt; div &gt; visual-modern &gt; div &gt; div &gt; div.tableEx &gt; div.innerContainer &gt; div.bodyCells &gt; div &gt; div &gt; div:nth-child(1) &gt; div:nth-child(5)', el =&gt; el.value);<br> console.log(hrefElement);<br> await hrefElement.click();</p> <p dir="auto">//(node:21332) UnhandledPromiseRejectionWarning: Error: page.waitForFunction: Evaluation failed: TypeError: Cannot read property 'length' of null<br> await frame.waitForFunction(() =&gt; {<br> const searches = document.querySelector(".pivotTableCellWrap cell-interactive tablixAlignLeft");<br> console.log('found table');<br> return searches.length &gt; 1;<br> });<br> await frame.waitForTimeout(10000);</p> <p dir="auto">await frame.waitForFunction(() =&gt; {<br> const searches = document.getElementsByClassName(".pivotTableCellWrap cell-interactive tablixAlignLeft");<br> console.log('found table');<br> return searches.length &gt; 1;<br> });<br> await frame.waitForTimeout(10000);</p> <p dir="auto">//assert is not defined<br> //const datatext = await page.$$eval('#pvExplorationHost &gt; div &gt; div &gt; exploration &gt; div &gt; explore-canvas-modern &gt; div &gt; div.canvasFlexBox &gt; div &gt; div.displayArea.disableAnimations.fitToPage &gt; div.visualContainerHost &gt; visual-container-repeat &gt; visual-container-modern:nth-child(13) &gt; transform &gt; div &gt; div:nth-child(4) &gt; div &gt; visual-modern &gt; div &gt; div &gt; div.tableEx &gt; div.innerContainer &gt; div.bodyCells &gt; div &gt; div &gt; div:nth-child(1) &gt; div:nth-child(5)',</p> <p dir="auto">elements =&gt; elements.map(el =&gt; el.textContent.trim().split('\n')[0]))<br> assert(datatext.length &gt; 0)</p> <p dir="auto">//Error: Evaluation failed: TypeError: Cannot read property 'getAttribute' of undefined<br> const myElem = await frame.evaluate(el =&gt; el.getAttribute('Weimei Corp'));<br> console.log(myElem)</p> <p dir="auto">const element = await page.$('#pvExplorationHost');</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="await page.waitForFunction(() =&gt; { const searches = document.querySelectorAll('div.tableEx'); console.log('found table'); return searches.length &gt; 1; });"><pre class="notranslate"><code class="notranslate">await page.waitForFunction(() =&gt; { const searches = document.querySelectorAll('div.tableEx'); console.log('found table'); return searches.length &gt; 1; }); </code></pre></div> <p dir="auto">await browser.close(); // Close the browser</p> <p dir="auto">})();</p> <p dir="auto">Here is example of values from my visual which is almost the same except if by title "THERESA WADE" has the special characters. I have also attached some screen shots for visual reference.</p> <p dir="auto">"COPY ELEMENT"</p> <div title="THERESA Z WADE" dir="auto">THERESA Z WADE</div> <p dir="auto">"COPY SELECTOR"<br> #pvExplorationHost &gt; div &gt; div &gt; exploration &gt; div &gt; explore-canvas-modern &gt; div &gt; div.canvasFlexBox &gt; div &gt; div.displayArea.disableAnimations.fitToPage &gt; div.visualContainerHost &gt; visual-container-repeat &gt; visual-container-modern:nth-child(3) &gt; transform &gt; div &gt; div:nth-child(4) &gt; div &gt; visual-modern &gt; div &gt; div &gt; div.tableEx &gt; div.innerContainer &gt; div.bodyCells &gt; div &gt; div:nth-child(1) &gt; div:nth-child(1) &gt; div:nth-child(1)<br> #pvExplorationHost &gt; div &gt; div &gt; exploration &gt; div &gt; explore-canvas-modern &gt; div &gt; div.canvasFlexBox &gt; div &gt; div.displayArea.disableAnimations.fitToPage &gt; div.visualContainerHost &gt; visual-container-repeat &gt; visual-container-modern:nth-child(3) &gt; transform &gt; div &gt; div:nth-child(4) &gt; div &gt; visual-modern &gt; div &gt; div &gt; div.tableEx &gt; div.innerContainer &gt; div.bodyCells &gt; div &gt; div &gt; div:nth-child(1) &gt; div</p> <p dir="auto">"Copy JS Path"<br> document.querySelector("#pvExplorationHost &gt; div &gt; div &gt; exploration &gt; div &gt; explore-canvas-modern &gt; div &gt; div.canvasFlexBox &gt; div &gt; div.displayArea.disableAnimations.fitToPage &gt; div.visualContainerHost &gt; visual-container-repeat &gt; visual-container-modern:nth-child(3) &gt; transform &gt; div &gt; div:nth-child(4) &gt; div &gt; visual-modern &gt; div &gt; div &gt; div.tableEx &gt; div.innerContainer &gt; div.bodyCells &gt; div &gt; div &gt; div:nth-child(1) &gt; div")</p> <p dir="auto">"Copy XPath"<br> //*[<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/id/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/id">@id</a>="pvExplorationHost"]/div/div/exploration/div/explore-canvas-modern/div/div[2]/div/div[2]/div[2]/visual-container-repeat/visual-container-modern[3]/transform/div/div[3]/div/visual-modern/div/div/div[2]/div[1]/div[4]/div/div/div[1]/div</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/71278576/93372739-e9e21480-f819-11ea-8ef4-ab343b95ff0e.JPG"><img src="https://user-images.githubusercontent.com/71278576/93372739-e9e21480-f819-11ea-8ef4-ab343b95ff0e.JPG" alt="publicreport" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/71278576/93372743-eb134180-f819-11ea-830b-4f49dce1e247.JPG"><img src="https://user-images.githubusercontent.com/71278576/93372743-eb134180-f819-11ea-830b-4f49dce1e247.JPG" alt="dropdown" style="max-width: 100%;"></a></p>
<p dir="auto">I have been at this for about 4 weeks with very little luck. I can't find where anyone else is using playwright to manipulate a Power BI report like a user. Can this be done?</p> <p dir="auto">Currently unable to reference elements in a visual. For a single cell the select value is very long.</p> <p dir="auto">//doing this I get Error: Evaluation failed: TypeError: Cannot read property 'click' of null<br> const corp = await frame.evaluate(() =&gt; document.querySelector("#pvExplorationHost &gt; div &gt; div &gt; exploration &gt; div &gt; explore-canvas-modern &gt; div &gt; div.canvasFlexBox &gt; div &gt; div.displayArea.disableAnimations.fitToPage &gt; div.visualContainerHost &gt; visual-container-repeat &gt; visual-container-modern:nth-child(13) &gt; transform &gt; div &gt; div:nth-child(4) &gt; div &gt; visual-modern &gt; div &gt; div &gt; div.tableEx &gt; div.innerContainer &gt; div.bodyCells &gt; div &gt; div &gt; div:nth-child(1) &gt; div:nth-child(4)").click());</p> <p dir="auto">I tried to do a for each but not sure how to verify the "elements" array was populated with data with the<br> TypeError: Cannot read property 'click' of undefined</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="await frame.evaluate(() =&gt; { const elements = $('.pivotTableCellWrap cell-interactive tablixAlignLeft').toArray(); for (i = 0; i &lt; elements.length; i++) { $(elements[i]).click(); console.log(elements[i]); }"><pre class="notranslate"><code class="notranslate">await frame.evaluate(() =&gt; { const elements = $('.pivotTableCellWrap cell-interactive tablixAlignLeft').toArray(); for (i = 0; i &lt; elements.length; i++) { $(elements[i]).click(); console.log(elements[i]); } </code></pre></div> <p dir="auto">});</p> <p dir="auto">The below is the closes I got, with the div nth child(1) but it returned the menu values at the top of the page and not from the visual before it gave me assert not defined.</p> <p dir="auto">// Assert text content</p> <p dir="auto">const corp = await page.textContent('div:nth-child(1) &gt; div:nth-child(4)');</p> <p dir="auto">console.log(corp);</p> <p dir="auto">assert(corp === 'Weimei Corp'); //assert is not defined</p> <p dir="auto">const elementHandle = await frame.waitForSelector('#pvExplorationHost &gt; div &gt; div &gt; exploration &gt; div &gt; explore-canvas-modern &gt; div &gt; div.canvasFlexBox &gt; div &gt; div.displayArea.disableAnimations.fitToPage &gt; div.visualContainerHost &gt; visual-container-repeat &gt; visual-container-modern:nth-child(13) &gt; transform &gt; div &gt; div:nth-child(4) &gt; div &gt; visual-modern &gt; div &gt; div &gt; div.tableEx &gt; div.innerContainer &gt; div.bodyCells &gt; div &gt; div &gt; div:nth-child(1) &gt; div:nth-child(4)');</p> <p dir="auto">await frame.click('text="Weimei Corp"');</p> <p dir="auto">await frame.waitForFunction(() =&gt; {</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const searches = document.getElementsByClassName(&quot;.pivotTableCellWrap cell-interactive tablixAlignLeft&quot;); console.log('found table'); return searches.length &gt; 1;"><pre class="notranslate"><code class="notranslate">const searches = document.getElementsByClassName(".pivotTableCellWrap cell-interactive tablixAlignLeft"); console.log('found table'); return searches.length &gt; 1; </code></pre></div> <p dir="auto">});</p> <p dir="auto">I have been reading a lot. Your documentation indicates to not use xpath and css. I am not able to find a way to use div title to find the actual name and click on it.</p> <p dir="auto">Avoid selectors tied to implementation<br> xpath and css can be tied to the DOM structure or implementation. These selectors can break when the DOM structure changes.</p> <p dir="auto"><a href="https://github.com/microsoft/playwright/blob/master/docs/selectors.md">https://github.com/microsoft/playwright/blob/master/docs/selectors.md</a><br> <a href="https://stackoverflow.com/questions/48673906/collect-elements-by-class-name-and-then-click-each-one-puppeteer" rel="nofollow">https://stackoverflow.com/questions/48673906/collect-elements-by-class-name-and-then-click-each-one-puppeteer</a></p> <p dir="auto">What I am trying to use this public visual to manipulate a click on "Weimei Corp" then I know I should be able to do the same on our internal reports.<br> page.goto('<a href="https://community.powerbi.com/t5/Data-Stories-Gallery/Customer-Analysis-Dashboard/td-p/630893" rel="nofollow">https://community.powerbi.com/t5/Data-Stories-Gallery/Customer-Analysis-Dashboard/td-p/630893</a>')<br> ]);</p> <p dir="auto">copy selector<br> #pvExplorationHost &gt; div &gt; div &gt; exploration &gt; div &gt; explore-canvas-modern &gt; div &gt; div.canvasFlexBox &gt; div &gt; div.displayArea.disableAnimations.fitToPage &gt; div.visualContainerHost &gt; visual-container-repeat &gt; visual-container-modern:nth-child(13) &gt; transform &gt; div &gt; div:nth-child(4) &gt; div &gt; visual-modern &gt; div &gt; div &gt; div.tableEx &gt; div.innerContainer &gt; div.bodyCells &gt; div &gt; div &gt; div:nth-child(1) &gt; div:nth-child(4)</p> <p dir="auto">copy jspath<br> document.querySelector("#pvExplorationHost &gt; div &gt; div &gt; exploration &gt; div &gt; explore-canvas-modern &gt; div &gt; div.canvasFlexBox &gt; div &gt; div.displayArea.disableAnimations.fitToPage &gt; div.visualContainerHost &gt; visual-container-repeat &gt; visual-container-modern:nth-child(13) &gt; transform &gt; div &gt; div:nth-child(4) &gt; div &gt; visual-modern &gt; div &gt; div &gt; div.tableEx &gt; div.innerContainer &gt; div.bodyCells &gt; div &gt; div &gt; div:nth-child(1) &gt; div:nth-child(4)"</p> <p dir="auto">copy element</p> <div title="Weimei Corp" dir="auto">Weimei Corp</div> <p dir="auto">Is there a way to reference the actual title versus using the long nth selector.</p> <div title="Weimei Corp" dir="auto">Trying to click Weimei Corp<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/71278576/93516897-46affe80-f8f0-11ea-8421-3401ff6f994d.JPG"><img src="https://user-images.githubusercontent.com/71278576/93516897-46affe80-f8f0-11ea-8421-3401ff6f994d.JPG" alt="publicreport" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/71278576/93516900-47e12b80-f8f0-11ea-88a0-1ec225527743.JPG"><img src="https://user-images.githubusercontent.com/71278576/93516900-47e12b80-f8f0-11ea-88a0-1ec225527743.JPG" alt="dropdown" style="max-width: 100%;"></a><p dir="auto"></p></div>
1
<p dir="auto">When I run ansible-playbook on HEAD, I get the following traceback:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK: [Check known pacnews] *************************************************** ok: [grego] =&gt; (item={'path': '/etc/fstab', 'old': '4ebaee2c67a0e6df3def1fbd8ce5194d07ca6546', 'new': 'a805082718eb9814229968ab11be76a8d34d6033', 'keep': 'old'}) changed: [grego] =&gt; (item={'path': '/etc/pacman.d/mirrorlist', 'old': '162f45764216fe0cc2697c5ca63f901032f26ea6', 'new': 'ANY', 'keep': 'old'}) ok: [grego] =&gt; (item={'path': '/etc/shadow', 'old': 'ANY', 'new': 'e0d59e5430b4dd9c6ed721e29de450487d4ad89f', 'keep': 'old'}) ok: [grego] =&gt; (item={'path': '/etc/gshadow', 'old': '1dbb1d43b8c1854898589bb6d1ea92d49be508c6', 'new': 'c96a71de4466893f090905f536f418ddac708e71', 'keep': 'old'}) ok: [grego] =&gt; (item={'path': '/etc/passwd', 'old': '110262be0777e00239aa9413eba1bd9f8e82e84c', 'new': '5db8ef768aa79940d0c28347ebfa8755cfb53920', 'keep': 'old'}) ok: [grego] =&gt; (item={'path': '/etc/group', 'old': 'fe85b1c169d6ecff70868e05d762dd7528f65e7c', 'new': '27d785a76a1e5c61f691ce2bbc3cbe441310b7c2', 'keep': 'old'}) ok: [grego] =&gt; (item={'path': '/etc/locale.gen', 'old': '13d6ce49547f3bd457364983fab74b254569dd90', 'new': '5672ef37a399b86ef417fa42155777e93840dd53', 'keep': 'new'}) ok: [grego] =&gt; (item={'path': '/etc/pacman.conf', 'old': 'd5825b3d61c7e71f16c8790af1cb0a2c429bbff6', 'new': '3c1bddf27602e02fb57801c0ea7313b3869acc92', 'keep': 'old'}) ok: [grego] =&gt; (item={'path': '/boot/grub/grub.cfg', 'old': 'NONE', 'new': '5b7fcb0718a23035c039eb2fda9e088bb13ae611', 'keep': 'new'}) ok: [grego] =&gt; (item={'path': '/etc/mkinitcpio.conf', 'old': '67ca9a323c979ee93c4c1a5592b02c89564d630e', 'new': 'c27c0ae5797582f47f8db1368fc730658c8d4cfe', 'keep': 'new'}) fatal: [grego] =&gt; Traceback (most recent call last): File &quot;/usr/local/brew/lib/python2.7/site-packages/ansible/runner/__init__.py&quot;, line 368, in _executor exec_rc = self._executor_internal(host, new_stdin) File &quot;/usr/local/brew/lib/python2.7/site-packages/ansible/runner/__init__.py&quot;, line 481, in _executor_internal complex_args=complex_args File &quot;/usr/local/brew/lib/python2.7/site-packages/ansible/runner/__init__.py&quot;, line 612, in _executor_internal_inner tmp = self._make_tmp_path(conn) File &quot;/usr/local/brew/lib/python2.7/site-packages/ansible/runner/__init__.py&quot;, line 736, in _make_tmp_path result = self._low_level_exec_command(conn, cmd, None, sudoable=False) File &quot;/usr/local/brew/lib/python2.7/site-packages/ansible/runner/__init__.py&quot;, line 671, in _low_level_exec_command rc, stdin, stdout, stderr = conn.exec_command(cmd, tmp, sudo_user, sudoable=sudoable, executable=executable) File &quot;/usr/local/brew/lib/python2.7/site-packages/ansible/runner/connection_plugins/ssh.py&quot;, line 165, in exec_command stdout=subprocess.PIPE, stderr=subprocess.PIPE) File &quot;/usr/local/brew/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py&quot;, line 703, in __init__ errread, errwrite) = self._get_handles(stdin, stdout, stderr) File &quot;/usr/local/brew/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py&quot;, line 1120, in _get_handles errread, errwrite = self.pipe_cloexec() File &quot;/usr/local/brew/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py&quot;, line 1153, in pipe_cloexec r, w = os.pipe() OSError: [Errno 24] Too many open files"><pre class="notranslate"><code class="notranslate">TASK: [Check known pacnews] *************************************************** ok: [grego] =&gt; (item={'path': '/etc/fstab', 'old': '4ebaee2c67a0e6df3def1fbd8ce5194d07ca6546', 'new': 'a805082718eb9814229968ab11be76a8d34d6033', 'keep': 'old'}) changed: [grego] =&gt; (item={'path': '/etc/pacman.d/mirrorlist', 'old': '162f45764216fe0cc2697c5ca63f901032f26ea6', 'new': 'ANY', 'keep': 'old'}) ok: [grego] =&gt; (item={'path': '/etc/shadow', 'old': 'ANY', 'new': 'e0d59e5430b4dd9c6ed721e29de450487d4ad89f', 'keep': 'old'}) ok: [grego] =&gt; (item={'path': '/etc/gshadow', 'old': '1dbb1d43b8c1854898589bb6d1ea92d49be508c6', 'new': 'c96a71de4466893f090905f536f418ddac708e71', 'keep': 'old'}) ok: [grego] =&gt; (item={'path': '/etc/passwd', 'old': '110262be0777e00239aa9413eba1bd9f8e82e84c', 'new': '5db8ef768aa79940d0c28347ebfa8755cfb53920', 'keep': 'old'}) ok: [grego] =&gt; (item={'path': '/etc/group', 'old': 'fe85b1c169d6ecff70868e05d762dd7528f65e7c', 'new': '27d785a76a1e5c61f691ce2bbc3cbe441310b7c2', 'keep': 'old'}) ok: [grego] =&gt; (item={'path': '/etc/locale.gen', 'old': '13d6ce49547f3bd457364983fab74b254569dd90', 'new': '5672ef37a399b86ef417fa42155777e93840dd53', 'keep': 'new'}) ok: [grego] =&gt; (item={'path': '/etc/pacman.conf', 'old': 'd5825b3d61c7e71f16c8790af1cb0a2c429bbff6', 'new': '3c1bddf27602e02fb57801c0ea7313b3869acc92', 'keep': 'old'}) ok: [grego] =&gt; (item={'path': '/boot/grub/grub.cfg', 'old': 'NONE', 'new': '5b7fcb0718a23035c039eb2fda9e088bb13ae611', 'keep': 'new'}) ok: [grego] =&gt; (item={'path': '/etc/mkinitcpio.conf', 'old': '67ca9a323c979ee93c4c1a5592b02c89564d630e', 'new': 'c27c0ae5797582f47f8db1368fc730658c8d4cfe', 'keep': 'new'}) fatal: [grego] =&gt; Traceback (most recent call last): File "/usr/local/brew/lib/python2.7/site-packages/ansible/runner/__init__.py", line 368, in _executor exec_rc = self._executor_internal(host, new_stdin) File "/usr/local/brew/lib/python2.7/site-packages/ansible/runner/__init__.py", line 481, in _executor_internal complex_args=complex_args File "/usr/local/brew/lib/python2.7/site-packages/ansible/runner/__init__.py", line 612, in _executor_internal_inner tmp = self._make_tmp_path(conn) File "/usr/local/brew/lib/python2.7/site-packages/ansible/runner/__init__.py", line 736, in _make_tmp_path result = self._low_level_exec_command(conn, cmd, None, sudoable=False) File "/usr/local/brew/lib/python2.7/site-packages/ansible/runner/__init__.py", line 671, in _low_level_exec_command rc, stdin, stdout, stderr = conn.exec_command(cmd, tmp, sudo_user, sudoable=sudoable, executable=executable) File "/usr/local/brew/lib/python2.7/site-packages/ansible/runner/connection_plugins/ssh.py", line 165, in exec_command stdout=subprocess.PIPE, stderr=subprocess.PIPE) File "/usr/local/brew/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 703, in __init__ errread, errwrite) = self._get_handles(stdin, stdout, stderr) File "/usr/local/brew/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1120, in _get_handles errread, errwrite = self.pipe_cloexec() File "/usr/local/brew/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1153, in pipe_cloexec r, w = os.pipe() OSError: [Errno 24] Too many open files </code></pre></div> <p dir="auto">Here's that task:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- name: Check known pacnews pacnew: &gt; path={{item.path}} new={{item.new}} old={{item.old}} keep={{item.keep}} with_items: pacnews"><pre class="notranslate"><code class="notranslate">- name: Check known pacnews pacnew: &gt; path={{item.path}} new={{item.new}} old={{item.old}} keep={{item.keep}} with_items: pacnews </code></pre></div> <p dir="auto">It's using my pacnew module: <a href="https://github.com/akerl/archer/blob/master/library/pacnew">https://github.com/akerl/archer/blob/master/library/pacnew</a></p> <p dir="auto">The full plays and such are here:<br> <a href="https://github.com/akerl/archer">https://github.com/akerl/archer</a></p> <p dir="auto">I traced this issue down to <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/ansible/ansible/commit/4d1f4479083e87e97419fb554a943dafadce00d5/hovercard" href="https://github.com/ansible/ansible/commit/4d1f4479083e87e97419fb554a943dafadce00d5"><tt>4d1f447</tt></a>, and confirmed it doesn't occur in <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/ansible/ansible/commit/baffa8df726440b1dc4ea700d1f4758988cdbf3d/hovercard" href="https://github.com/ansible/ansible/commit/baffa8df726440b1dc4ea700d1f4758988cdbf3d"><tt>baffa8d</tt></a>. My test runs are here:</p> <p dir="auto"><a href="https://gist.github.com/akerl/6584034">https://gist.github.com/akerl/6584034</a></p> <p dir="auto">Somebody in #ansible suggested I use "-f 1", which I tried; the issue was the same. That run is in the gist as well.</p>
<p dir="auto">It seems some recent changes has introduced this regression, this occurs on OSX 10.7, bumping up the limits by "ulimit -n 2048" works around the problem. There might just be some file descriptors/pipes not being closed. You could limit the loop (wherever its happening) for the subprocesses to be just 1024?</p> <p dir="auto">I might poke around if I have time. For now the above is a bug report!</p> <pre class="notranslate">TASK: [clone {{host_group}} code - private head] ****************************** fatal: [10.0.1.200] =&gt; Traceback (most recent call last): File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ansible/runner/__init__.py", line 368, in _executor exec_rc = self._executor_internal(host, new_stdin) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ansible/runner/__init__.py", line 455, in _executor_internal return self._executor_internal_inner(host, self.module_name, self.module_args, inject, port, complex_args=complex_args) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ansible/runner/__init__.py", line 612, in _executor_internal_inner tmp = self._make_tmp_path(conn) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ansible/runner/__init__.py", line 736, in _make_tmp_path result = self._low_level_exec_command(conn, cmd, None, sudoable=False) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ansible/runner/__init__.py", line 671, in _low_level_exec_command rc, stdin, stdout, stderr = conn.exec_command(cmd, tmp, sudo_user, sudoable=sudoable, executable=executable) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ansible/runner/connection_plugins/ssh.py", line 165, in exec_command stdout=subprocess.PIPE, stderr=subprocess.PIPE) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 703, in __init__ errread, errwrite) = self._get_handles(stdin, stdout, stderr) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1120, in _get_handles errread, errwrite = self.pipe_cloexec() File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1153, in pipe_cloexec r, w = os.pipe() OSError: [Errno 24] Too many open files FATAL: all hosts have already failed -- aborting </pre>
1
<p dir="auto">So I'm using a custom <code class="notranslate">usePrevious</code> hook that returns the 'previous value' which is as far as I know pretty common practice. It leverages a ref inside the hook. When I declare a ref inside a functional component and use this in a <code class="notranslate">useEffect</code>, <code class="notranslate">react-hooks/exhaustive-deps</code> does not require me to add the ref to the dependencies list of a <code class="notranslate">useEffect</code>, but using <code class="notranslate">usePrevious</code> does.</p> <p dir="auto">React version: <code class="notranslate">"react": "^17.0.1",</code></p> <h2 dir="auto">Steps To Reproduce</h2> <p dir="auto">Link to code example: <a href="https://codepen.io/spassvogel/pen/JjbXKJL?editors=1111" rel="nofollow">https://codepen.io/spassvogel/pen/JjbXKJL?editors=1111</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const usePrevious = (value) =&gt; { const ref = React.useRef(); React.useEffect(() =&gt; { ref.current = value; }, [value]); return ref.current; }; const TestComponent = () =&gt; { const [state, setState] = React.useState(0); const previousState = usePrevious(state) React.useEffect(() =&gt; { console.log('current state', state) console.log('previous state', previousState) }, [state]); // ESLINT COMPLAINS return null; };"><pre class="notranslate"><code class="notranslate">const usePrevious = (value) =&gt; { const ref = React.useRef(); React.useEffect(() =&gt; { ref.current = value; }, [value]); return ref.current; }; const TestComponent = () =&gt; { const [state, setState] = React.useState(0); const previousState = usePrevious(state) React.useEffect(() =&gt; { console.log('current state', state) console.log('previous state', previousState) }, [state]); // ESLINT COMPLAINS return null; }; </code></pre></div> <h2 dir="auto">The current behavior</h2> <p dir="auto"><code class="notranslate">react-hooks/exhaustive-deps</code> complains about the dependency list of <code class="notranslate">useEffect</code> is missing <code class="notranslate">previousState</code>.</p> <h2 dir="auto">The expected behavior</h2> <p dir="auto"><code class="notranslate">react-hooks/exhaustive-deps</code> realizes that <code class="notranslate">usePrevious</code> is leveraging <code class="notranslate">useRef</code> and thus doesn't need its return value in the dependency list.</p> <p dir="auto">A workaround would be to duplicate the code of <code class="notranslate">usePrevious</code> in every component, then <code class="notranslate">react-hooks/exhaustive-deps</code> does not complain. but yeah...</p>
<p dir="auto">Describe what you were doing when the bug occurred:<br> 1.<br> 2.<br> 3.</p> <hr> <h2 dir="auto">Please do not remove the text below this line</h2> <p dir="auto">DevTools version: 4.2.1-3816ae7c3</p> <p dir="auto">Call stack: at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157108<br> at Map.forEach ()<br> at commitIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157054)<br> at e.getRankedChartData (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157577)<br> at vl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:314907)<br> at gi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:59907)<br> at jl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:107381)<br> at Lc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:92715)<br> at Pc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:92640)<br> at wc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:89544)</p> <p dir="auto">Component stack: in vl<br> in div<br> in div<br> in div<br> in wo<br> in Unknown<br> in n<br> in Unknown<br> in div<br> in div<br> in Li<br> in $e<br> in dn<br> in Ca<br> in Pc</p>
0