text1
stringlengths
0
536k
text2
stringlengths
0
536k
label
int64
0
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">All valid children of the Table component should be rendered.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">Only the last instance of each valid component is rendered</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>Create a table with two TableBody children</li> <li>Render the table and verify that only the second TableBody is rendered</li> </ol> <p dir="auto"><a href="https://jsfiddle.net/432yz8qg/334/" rel="nofollow">JSFiddle Example</a></p> <h2 dir="auto">Context</h2> <p dir="auto">I am attempting to create draggable table sections.</p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>^0.19.2</td> </tr> <tr> <td>React</td> <td>^15.6.1</td> </tr> <tr> <td>browser</td> <td>chrome v61</td> </tr> </tbody> </table>
<p dir="auto">An asterisk (*) is hard-coded to required fields. I think we should allow users to customise the asterisk or remove it if they want to.<br> <a href="https://github.com/callemall/material-ui/blob/fb3a42f421d9a00cbc31e69e06e5e30c7b1998fc/src/Form/FormLabel.js#L125-L127">https://github.com/callemall/material-ui/blob/fb3a42f421d9a00cbc31e69e06e5e30c7b1998fc/src/Form/FormLabel.js#L125-L127</a></p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">Be able to pass in a <code class="notranslate">requiredText: Node</code> to be displayed instead of the hard-coded asterisk, or <code class="notranslate">false</code> to completely remove it.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">There is no way to override the asterisk at the moment.</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <p dir="auto">Not a bug</p> <h2 dir="auto">Context</h2> <p dir="auto">For some forms that all fields are required, I'd like to display a label somewhere (<code class="notranslate">All fields are required</code>) and remove all the asterisks in each TextField.<br> The form looks cleaner without those.</p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>1.0.0-beta.9</td> </tr> <tr> <td>React</td> <td>15.4.1</td> </tr> <tr> <td>browser</td> <td>Chrome</td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table>
0
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; <g-emoji class="g-emoji" alias="grey_question" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2754.png">❔</g-emoji></li> <li>Operating System / Platform =&gt; <g-emoji class="g-emoji" alias="grey_question" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2754.png">❔</g-emoji></li> <li>Compiler =&gt; <g-emoji class="g-emoji" alias="grey_question" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2754.png">❔</g-emoji></li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">The stereo_match.cpp code (<a href="https://github.com/opencv/opencv/blob/master/samples/cpp/stereo_match.cpp">https://github.com/opencv/opencv/blob/master/samples/cpp/stereo_match.cpp</a>) has a scaling issue that took me 2 days to track down. The computed disparity is a signed int16, and is scaled by a factor of 16 compared to the true disparity, as per the documentation. The disparity thus must be converted to float and divided by 16.0 before invoking reprojectImageTo3D(). As it is now, since this division is not done, the result of reprojectImageTo3D() is wrong, as is at 1/16-the the scale.</p> <p dir="auto">Suggested fix:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Mat float_disp; disp.convertTo(float_disp, CV_32F, 1.0f/16.0f); reprojectImageTo3D(float_disp, xyz, Q, true);"><pre class="notranslate"><code class="notranslate">Mat float_disp; disp.convertTo(float_disp, CV_32F, 1.0f/16.0f); reprojectImageTo3D(float_disp, xyz, Q, true); </code></pre></div> <h5 dir="auto">Steps to reproduce</h5>
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 4.6.0</li> <li>Operating System / Platform =&gt; Windows 64 Bit</li> <li>Compiler =&gt; Visual Studio 2019</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">When I load onnx model which was quantified by script from <a href="https://github.com/opencv/opencv_zoo/tree/master/tools/quantize">opencv_zoo</a> with the Intel <code class="notranslate">neural-compressor&gt;1.10.1</code>, it will cause an error. (This model can be run correctly by onnx_runtime)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ERROR:[email protected]] global D:\a\opencv-python\opencv-python\opencv\modules\dnn\src\onnx\onnx_importer.cpp (1021) cv::dnn::dnn4_v20220524::ONNXImporter::handleNode DNN/ONNX: ERROR during processing node with 11 inputs and 1 outputs: [QLinearConcat]:(onnx_node!StatefulPartitionedCall/model/regressors/concat_quant) from domain='com.microsoft' Traceback (most recent call last): File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt; cv2.error: OpenCV(4.6.0) D:\a\opencv-python\opencv-python\opencv\modules\dnn\src\onnx\onnx_importer.cpp:1040: error: (-2:Unspecified error) in function 'cv::dnn::dnn4_v20220524::ONNXImporter::handleNode' &gt; Node [[email protected]]:(onnx_node!StatefulPartitionedCall/model/regressors/concat_quant) parse error: OpenCV(4.6.0) D:\a\opencv-python\opencv-python\opencv\modules\dnn\src\onnx\onnx_importer.cpp:571: error: (-5:Bad argument) Blob StatefulPartitionedCall/model/regressors/concascale not found in const blobs in function 'cv::dnn::dnn4_v20220524::ONNXImporter::getBlob'"><pre class="notranslate"><code class="notranslate">[ERROR:[email protected]] global D:\a\opencv-python\opencv-python\opencv\modules\dnn\src\onnx\onnx_importer.cpp (1021) cv::dnn::dnn4_v20220524::ONNXImporter::handleNode DNN/ONNX: ERROR during processing node with 11 inputs and 1 outputs: [QLinearConcat]:(onnx_node!StatefulPartitionedCall/model/regressors/concat_quant) from domain='com.microsoft' Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; cv2.error: OpenCV(4.6.0) D:\a\opencv-python\opencv-python\opencv\modules\dnn\src\onnx\onnx_importer.cpp:1040: error: (-2:Unspecified error) in function 'cv::dnn::dnn4_v20220524::ONNXImporter::handleNode' &gt; Node [[email protected]]:(onnx_node!StatefulPartitionedCall/model/regressors/concat_quant) parse error: OpenCV(4.6.0) D:\a\opencv-python\opencv-python\opencv\modules\dnn\src\onnx\onnx_importer.cpp:571: error: (-5:Bad argument) Blob StatefulPartitionedCall/model/regressors/concascale not found in const blobs in function 'cv::dnn::dnn4_v20220524::ONNXImporter::getBlob' </code></pre></div> <p dir="auto">When I use Intel <code class="notranslate">neural-compressor==1.10.1</code>, the mdoel can be loaded. Several models have this problem as well.</p> <h5 dir="auto">Steps to reproduce</h5> <p dir="auto">Demo model file: <a href="https://drive.google.com/file/d/1l0p2kP5ajE9sZfO8bFw1Z3pypEcvuWKH/view?usp=sharing" rel="nofollow">palm_detection_mediapipe_2022may-int8-quantized.onnx</a></p> <p dir="auto">Python code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import cv2 net = cv2.dnn.readNetFromONNX(&quot;path/to/model&quot;)"><pre class="notranslate"><code class="notranslate">import cv2 net = cv2.dnn.readNetFromONNX("path/to/model") </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" checked=""> I report the issue, it's not a question </li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I checked the problem with documentation, FAQ, open issues,<br> forum.opencv.org, Stack Overflow, etc and have not found any solution </li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I updated to the latest OpenCV version and the issue is still there </li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> There is reproducer code and related data files: videos, images, onnx, etc </li> </ul>
0
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report [ ] feature request [ ] support request"><pre class="notranslate"><code class="notranslate">[x] bug report [ ] feature request [ ] support request </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> Having several times an element in the DOM tree with the selector associated to a component will only bootstrap the first DOM node found in the tree.</p> <p dir="auto"><strong>Expected behavior</strong><br> All nodes matching the correct selector should be bootstrapped not only the first appearance in the tree.</p> <p dir="auto"><strong>Reproduction of the problem</strong><br> <a href="http://plnkr.co/edit/bLCsmIRG7pkMu6GohOxS?p=preview" rel="nofollow">http://plnkr.co/edit/bLCsmIRG7pkMu6GohOxS?p=preview</a></p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br> I need to bootstrap several time the same component on my page.<br> (For my special case I am bootstrapping 2 time the same ui-element that are at 2 different places in the DOM tree)</p> <ul dir="auto"> <li><strong>Angular version:</strong> 2.0.0-rc.6</li> <li><strong>Browser:</strong> Chrome</li> <li><strong>Language:</strong> TypeScript</li> </ul>
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report =&gt; search github for a similar issue or PR before submitting [] feature request"><pre class="notranslate"><code class="notranslate">[x] bug report =&gt; search github for a similar issue or PR before submitting [] feature request </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> Platform server fully renders a lazy module, and the view on the browser is changed several times:</p> <ol dir="auto"> <li>The html rendered on the server is shown.</li> <li>As the application starts to bootstrap, the page is shown without the lazy loaded component.</li> <li>As the chunk is downloaded, the lazy loaded component is rendered.</li> </ol> <p dir="auto">In case of a heavy chunk, or alternatively a slow connection, it looks like the application flickers on the transition between the views.</p> <p dir="auto"><strong>Expected behavior</strong></p> <p dir="auto">The transition between the server rendered page and the client side bootstrapped page should be smooth and invisible to the user.</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p> <p dir="auto"><a href="https://github.com/nglibs/universal-example-app">Universal example app</a> was provided as an example in the <a href="https://github.com/angular/angular/issues/13822" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/13822/hovercard">roadmap</a>. Running the application in chrome and throttling the network should be enough for reproducing the behavior (The lazy loaded components will flicker as described above).</p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p> <p dir="auto">It makes the application look bad and unprofessional.</p> <p dir="auto">I've used Angular Universal previously, and managed to solve the issue using preboot (rendered the application to a hidden div, and called preboot.complete() manually as the lazy loaded module view was initialized). I've integrated preboot to the current version and tried to use the same approach, but encountered style issues.</p> <p dir="auto"><strong>Please tell us about your environment:</strong></p> <ul dir="auto"> <li><strong>Angular version:</strong> 4.0.0</li> </ul> <ul dir="auto"> <li><strong>Browser:</strong> [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]</li> </ul> <p dir="auto">Tried on Chrome 56, Firefox</p> <ul dir="auto"> <li> <p dir="auto"><strong>Language:</strong> [all | TypeScript X.X | ES6/7 | ES5]<br> Typescript 2.2.2</p> </li> <li> <p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> =<br> node v6.9.10 (I'm running LTS)</p> </li> </ul>
0
<p dir="auto">When I follow the configuration below it is invalid<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/45256940/136534807-f734eb18-f867-4560-b53c-b953762acfc0.png"><img src="https://user-images.githubusercontent.com/45256940/136534807-f734eb18-f867-4560-b53c-b953762acfc0.png" alt="image" style="max-width: 100%;"></a><br> Must be configured below the table to take effect<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/45256940/136535042-257f4723-4eab-406f-b922-28b3864f20ca.png"><img src="https://user-images.githubusercontent.com/45256940/136535042-257f4723-4eab-406f-b922-28b3864f20ca.png" alt="image" style="max-width: 100%;"></a></p>
<h2 dir="auto">Bug Report</h2> <h3 dir="auto">Which version of ShardingSphere did you use?</h3> <p dir="auto">3.0.0</p> <h3 dir="auto">Which project did you use? Sharding-JDBC or Sharding-Proxy?</h3> <p dir="auto">Sharding-Proxy</p> <h3 dir="auto">Expected behavior</h3> <p dir="auto">I have a logic table 't' with 2 shards, actual table are 't_0' and 't_1'.<br> When I excute "select code from t group by code" on Sharding-Proxy-3.0.0,<br> it should returns code without duplicate.</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">but in fact, it returns duplicate records.</p> <h3 dir="auto">Reason analyze (If you can)</h3> <p dir="auto">My backend db is mysql5.7.<br> COLLATE is 'utf8mb4_unicode_ci'.</p> <p dir="auto">The group-by merger may add 'order by code' clause for using stream merge,<br> and the result set is sorted by case insensitive.<br> But the merger compares value with case sensitive(because use java compareTo method).</p> <h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.</h3> <h4 dir="auto">sharding rule:</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" tables: t: actualDataNodes: ds_${0}.t_${0..1} tableStrategy: inline: shardingColumn: id algorithmExpression: t_${id % 2}"><pre class="notranslate"><code class="notranslate"> tables: t: actualDataNodes: ds_${0}.t_${0..1} tableStrategy: inline: shardingColumn: id algorithmExpression: t_${id % 2} </code></pre></div> <h4 dir="auto">prepare sql script:</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="CREATE TABLE `t_0` ( `id` INT NOT NULL, `code` VARCHAR(40) NOT NULL, PRIMARY KEY (`id`) ) COLLATE='utf8mb4_unicode_ci' ; CREATE TABLE `t_1` ( `id` INT NOT NULL, `code` VARCHAR(40) NOT NULL, PRIMARY KEY (`id`) ) COLLATE='utf8mb4_unicode_ci' ; insert into t values (11, '11035801128253'); insert into t values (13, '110358011282f5'); insert into t values (15, '110358011282G1'); insert into t values (17, '110358011282H5'); insert into t values (19, '110358011282T4'); insert into t values (21, '110358011282U5'); insert into t values (23, '110358011282z1'); insert into t values (22, '110358011282D4'); insert into t values (24, '110358011282E9'); insert into t values (26, '110358011282h8'); insert into t values (28, '110358011282I0'); insert into t values (30, '110358011282l1'); insert into t values (32, '110358011282O7'); insert into t values (34, '110358011282P0'); insert into t values (36, '110358011282T4'); insert into t values (38, '110358011282w6'); mysql&gt; select 't_0' as tab, code from t_0; +------+----------------+ | tab | code | +------+----------------+ | t_0 | 110358011282D4 | | t_0 | 110358011282E9 | | t_0 | 110358011282h8 | | t_0 | 110358011282I0 | | t_0 | 110358011282l1 | | t_0 | 110358011282O7 | | t_0 | 110358011282P0 | | t_0 | 110358011282T4 | | t_0 | 110358011282w6 | +------+----------------+ 9 rows in set (0.00 sec) mysql&gt; select 't_1' as tab, code from t_1; +------+----------------+ | tab | code | +------+----------------+ | t_1 | 11035801128253 | | t_1 | 110358011282f5 | | t_1 | 110358011282G1 | | t_1 | 110358011282H5 | | t_1 | 110358011282T4 | | t_1 | 110358011282U5 | | t_1 | 110358011282z1 | +------+----------------+ 7 rows in set (0.00 sec)"><pre class="notranslate"><code class="notranslate">CREATE TABLE `t_0` ( `id` INT NOT NULL, `code` VARCHAR(40) NOT NULL, PRIMARY KEY (`id`) ) COLLATE='utf8mb4_unicode_ci' ; CREATE TABLE `t_1` ( `id` INT NOT NULL, `code` VARCHAR(40) NOT NULL, PRIMARY KEY (`id`) ) COLLATE='utf8mb4_unicode_ci' ; insert into t values (11, '11035801128253'); insert into t values (13, '110358011282f5'); insert into t values (15, '110358011282G1'); insert into t values (17, '110358011282H5'); insert into t values (19, '110358011282T4'); insert into t values (21, '110358011282U5'); insert into t values (23, '110358011282z1'); insert into t values (22, '110358011282D4'); insert into t values (24, '110358011282E9'); insert into t values (26, '110358011282h8'); insert into t values (28, '110358011282I0'); insert into t values (30, '110358011282l1'); insert into t values (32, '110358011282O7'); insert into t values (34, '110358011282P0'); insert into t values (36, '110358011282T4'); insert into t values (38, '110358011282w6'); mysql&gt; select 't_0' as tab, code from t_0; +------+----------------+ | tab | code | +------+----------------+ | t_0 | 110358011282D4 | | t_0 | 110358011282E9 | | t_0 | 110358011282h8 | | t_0 | 110358011282I0 | | t_0 | 110358011282l1 | | t_0 | 110358011282O7 | | t_0 | 110358011282P0 | | t_0 | 110358011282T4 | | t_0 | 110358011282w6 | +------+----------------+ 9 rows in set (0.00 sec) mysql&gt; select 't_1' as tab, code from t_1; +------+----------------+ | tab | code | +------+----------------+ | t_1 | 11035801128253 | | t_1 | 110358011282f5 | | t_1 | 110358011282G1 | | t_1 | 110358011282H5 | | t_1 | 110358011282T4 | | t_1 | 110358011282U5 | | t_1 | 110358011282z1 | +------+----------------+ 7 rows in set (0.00 sec) </code></pre></div> <h4 dir="auto">execute result ( duplicate code is 110358011282T4 .)</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="mysql&gt; select code from t group by code; +----------------+ | code | +----------------+ | 11035801128253 | | 110358011282D4 | | 110358011282E9 | | 110358011282f5 | | 110358011282G1 | | 110358011282H5 | | 110358011282T4 | | 110358011282U5 | | 110358011282h8 | | 110358011282I0 | | 110358011282l1 | | 110358011282O7 | | 110358011282P0 | | 110358011282T4 | | 110358011282w6 | | 110358011282z1 | +----------------+ 16 rows in set (0.01 sec)"><pre class="notranslate"><code class="notranslate">mysql&gt; select code from t group by code; +----------------+ | code | +----------------+ | 11035801128253 | | 110358011282D4 | | 110358011282E9 | | 110358011282f5 | | 110358011282G1 | | 110358011282H5 | | 110358011282T4 | | 110358011282U5 | | 110358011282h8 | | 110358011282I0 | | 110358011282l1 | | 110358011282O7 | | 110358011282P0 | | 110358011282T4 | | 110358011282w6 | | 110358011282z1 | +----------------+ 16 rows in set (0.01 sec) </code></pre></div> <p dir="auto">I tried following SQL then I got right result.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="mysql&gt; select max(code) from t group by upper(code); +----------------+ | max(code) | +----------------+ | 11035801128253 | | 110358011282D4 | | 110358011282E9 | | 110358011282f5 | | 110358011282G1 | | 110358011282H5 | | 110358011282h8 | | 110358011282I0 | | 110358011282l1 | | 110358011282O7 | | 110358011282P0 | | 110358011282T4 | | 110358011282U5 | | 110358011282w6 | | 110358011282z1 | +----------------+ 15 rows in set (0.01 sec) "><pre class="notranslate"><code class="notranslate">mysql&gt; select max(code) from t group by upper(code); +----------------+ | max(code) | +----------------+ | 11035801128253 | | 110358011282D4 | | 110358011282E9 | | 110358011282f5 | | 110358011282G1 | | 110358011282H5 | | 110358011282h8 | | 110358011282I0 | | 110358011282l1 | | 110358011282O7 | | 110358011282P0 | | 110358011282T4 | | 110358011282U5 | | 110358011282w6 | | 110358011282z1 | +----------------+ 15 rows in set (0.01 sec) </code></pre></div> <h3 dir="auto">Example codes for reproduce this issue (such as a github link).</h3>
0
<p dir="auto"><strong>TypeScript Version:</strong></p> <p dir="auto">1.8.10</p> <p dir="auto"><strong>Code</strong></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" import * as ts from &quot;typescript&quot;; // Note: this uses ts.formatting which is part of the typescript 1.4 package but is not currently // exposed in the public typescript.d.ts. The typings should be exposed in the next release. function format(text: string) { let options = getDefaultOptions(); // Parse the source text let sourceFile = ts.createSourceFile(&quot;file.ts&quot;, text, ts.ScriptTarget.Latest, /*setParentPointers*/ true); // Get the formatting edits on the input sources let edits = (&lt;any&gt;ts).formatting.formatDocument(sourceFile, getRuleProvider(options), options); // Apply the edits on the input code return applyEdits(text, edits); function getRuleProvider(options: ts.FormatCodeOptions) { // Share this between multiple formatters using the same options. // This represents the bulk of the space the formatter uses. let ruleProvider = new (&lt;any&gt;ts).formatting.RulesProvider(); ruleProvider.ensureUpToDate(options); return ruleProvider; } function applyEdits(text: string, edits: ts.TextChange[]): string { // Apply edits in reverse on the existing text let result = text; for (let i = edits.length - 1; i &gt;= 0; i--) { let change = edits[i]; let head = result.slice(0, change.span.start); let tail = result.slice(change.span.start + change.span.length) result = head + change.newText + tail; } return result; } function getDefaultOptions(): ts.FormatCodeOptions { return { IndentSize: 4, IndentStyle: 1, TabSize: 4, NewLineCharacter: '\n', ConvertTabsToSpaces: false, InsertSpaceAfterCommaDelimiter: true, InsertSpaceAfterSemicolonInForStatements: true, InsertSpaceBeforeAndAfterBinaryOperators: true, InsertSpaceAfterKeywordsInControlFlowStatements: true, InsertSpaceAfterFunctionKeywordForAnonymousFunctions: false, InsertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis: false, InsertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets: false, InsertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces: false, PlaceOpenBraceOnNewLineForFunctions: false, PlaceOpenBraceOnNewLineForControlBlocks: false, }; } } let code = &quot;var a=function(v:number){\n return 0+1+2+3;\n}&quot;; let result = format(code); console.log(result); "><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-c1">*</span> <span class="pl-k">as</span> <span class="pl-s1">ts</span> <span class="pl-k">from</span> <span class="pl-s">"typescript"</span><span class="pl-kos">;</span> <span class="pl-c">// Note: this uses ts.formatting which is part of the typescript 1.4 package but is not currently </span> <span class="pl-c">// exposed in the public typescript.d.ts. The typings should be exposed in the next release. </span> <span class="pl-k">function</span> <span class="pl-en">format</span><span class="pl-kos">(</span><span class="pl-s1">text</span>: <span class="pl-smi">string</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> <span class="pl-s1">options</span> <span class="pl-c1">=</span> <span class="pl-en">getDefaultOptions</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Parse the source text</span> <span class="pl-k">let</span> <span class="pl-s1">sourceFile</span> <span class="pl-c1">=</span> <span class="pl-s1">ts</span><span class="pl-kos">.</span><span class="pl-en">createSourceFile</span><span class="pl-kos">(</span><span class="pl-s">"file.ts"</span><span class="pl-kos">,</span> <span class="pl-s1">text</span><span class="pl-kos">,</span> <span class="pl-s1">ts</span><span class="pl-kos">.</span><span class="pl-c1">ScriptTarget</span><span class="pl-kos">.</span><span class="pl-c1">Latest</span><span class="pl-kos">,</span> <span class="pl-c">/*setParentPointers*/</span> <span class="pl-c1">true</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Get the formatting edits on the input sources</span> <span class="pl-k">let</span> <span class="pl-s1">edits</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">&lt;</span><span class="pl-smi">any</span><span class="pl-kos">&gt;</span><span class="pl-s1">ts</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">formatting</span><span class="pl-kos">.</span><span class="pl-en">formatDocument</span><span class="pl-kos">(</span><span class="pl-s1">sourceFile</span><span class="pl-kos">,</span> <span class="pl-en">getRuleProvider</span><span class="pl-kos">(</span><span class="pl-s1">options</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-s1">options</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Apply the edits on the input code</span> <span class="pl-k">return</span> <span class="pl-en">applyEdits</span><span class="pl-kos">(</span><span class="pl-s1">text</span><span class="pl-kos">,</span> <span class="pl-s1">edits</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">function</span> <span class="pl-en">getRuleProvider</span><span class="pl-kos">(</span><span class="pl-s1">options</span>: <span class="pl-s1">ts</span><span class="pl-kos">.</span><span class="pl-smi">FormatCodeOptions</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// Share this between multiple formatters using the same options.</span> <span class="pl-c">// This represents the bulk of the space the formatter uses.</span> <span class="pl-k">let</span> <span class="pl-s1">ruleProvider</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-kos">(</span><span class="pl-kos">&lt;</span><span class="pl-smi">any</span><span class="pl-kos">&gt;</span><span class="pl-s1">ts</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">formatting</span><span class="pl-kos">.</span><span class="pl-c1">RulesProvider</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">ruleProvider</span><span class="pl-kos">.</span><span class="pl-en">ensureUpToDate</span><span class="pl-kos">(</span><span class="pl-s1">options</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-s1">ruleProvider</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">function</span> <span class="pl-en">applyEdits</span><span class="pl-kos">(</span><span class="pl-s1">text</span>: <span class="pl-smi">string</span><span class="pl-kos">,</span> <span class="pl-s1">edits</span>: <span class="pl-s1">ts</span><span class="pl-kos">.</span><span class="pl-smi">TextChange</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">)</span>: <span class="pl-smi">string</span> <span class="pl-kos">{</span> <span class="pl-c">// Apply edits in reverse on the existing text</span> <span class="pl-k">let</span> <span class="pl-s1">result</span> <span class="pl-c1">=</span> <span class="pl-s1">text</span><span class="pl-kos">;</span> <span class="pl-k">for</span> <span class="pl-kos">(</span><span class="pl-k">let</span> <span class="pl-s1">i</span> <span class="pl-c1">=</span> <span class="pl-s1">edits</span><span class="pl-kos">.</span><span class="pl-c1">length</span> <span class="pl-c1">-</span> <span class="pl-c1">1</span><span class="pl-kos">;</span> <span class="pl-s1">i</span> <span class="pl-c1">&gt;=</span> <span class="pl-c1">0</span><span class="pl-kos">;</span> <span class="pl-s1">i</span><span class="pl-c1">--</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> <span class="pl-s1">change</span> <span class="pl-c1">=</span> <span class="pl-s1">edits</span><span class="pl-kos">[</span><span class="pl-s1">i</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-k">let</span> <span class="pl-s1">head</span> <span class="pl-c1">=</span> <span class="pl-s1">result</span><span class="pl-kos">.</span><span class="pl-en">slice</span><span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-s1">change</span><span class="pl-kos">.</span><span class="pl-c1">span</span><span class="pl-kos">.</span><span class="pl-c1">start</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">let</span> <span class="pl-s1">tail</span> <span class="pl-c1">=</span> <span class="pl-s1">result</span><span class="pl-kos">.</span><span class="pl-en">slice</span><span class="pl-kos">(</span><span class="pl-s1">change</span><span class="pl-kos">.</span><span class="pl-c1">span</span><span class="pl-kos">.</span><span class="pl-c1">start</span> <span class="pl-c1">+</span> <span class="pl-s1">change</span><span class="pl-kos">.</span><span class="pl-c1">span</span><span class="pl-kos">.</span><span class="pl-c1">length</span><span class="pl-kos">)</span> <span class="pl-s1">result</span> <span class="pl-c1">=</span> <span class="pl-s1">head</span> <span class="pl-c1">+</span> <span class="pl-s1">change</span><span class="pl-kos">.</span><span class="pl-c1">newText</span> <span class="pl-c1">+</span> <span class="pl-s1">tail</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">return</span> <span class="pl-s1">result</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">function</span> <span class="pl-en">getDefaultOptions</span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-s1">ts</span><span class="pl-kos">.</span><span class="pl-smi">FormatCodeOptions</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-kos">{</span> <span class="pl-c1">IndentSize</span>: <span class="pl-c1">4</span><span class="pl-kos">,</span> <span class="pl-c1">IndentStyle</span>: <span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">TabSize</span>: <span class="pl-c1">4</span><span class="pl-kos">,</span> <span class="pl-c1">NewLineCharacter</span>: <span class="pl-s">'\n'</span><span class="pl-kos">,</span> <span class="pl-c1">ConvertTabsToSpaces</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span> <span class="pl-c1">InsertSpaceAfterCommaDelimiter</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">InsertSpaceAfterSemicolonInForStatements</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">InsertSpaceBeforeAndAfterBinaryOperators</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">InsertSpaceAfterKeywordsInControlFlowStatements</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">InsertSpaceAfterFunctionKeywordForAnonymousFunctions</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span> <span class="pl-c1">InsertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span> <span class="pl-c1">InsertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span> <span class="pl-c1">InsertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span> <span class="pl-c1">PlaceOpenBraceOnNewLineForFunctions</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span> <span class="pl-c1">PlaceOpenBraceOnNewLineForControlBlocks</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">let</span> <span class="pl-s1">code</span> <span class="pl-c1">=</span> <span class="pl-s">"var a=function(v:number){\n return 0+1+2+3;\n}"</span><span class="pl-kos">;</span> <span class="pl-k">let</span> <span class="pl-s1">result</span> <span class="pl-c1">=</span> <span class="pl-en">format</span><span class="pl-kos">(</span><span class="pl-s1">code</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">result</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Expected behavior:</strong><br> The <code class="notranslate">return</code> line should be indented with tab.</p> <p dir="auto"><strong>Actual behavior:</strong><br> It's actually left untouched because at input it is already indented with 4 spaces and IndentSize is set to 4. This is, however, counter-intuitive, the formatter should fix the indentation to tabs, in my opinion.</p> <p dir="auto">The reason this happens is in <a href="https://github.com/Microsoft/TypeScript/blob/d960200dac73d077a66b8ac6ef0648895dc3493e/src/services/formatting/formatting.ts#L869">https://github.com/Microsoft/TypeScript/blob/d960200dac73d077a66b8ac6ef0648895dc3493e/src/services/formatting/formatting.ts#L869</a><br> where the token start position (4) is compared to expected indent size, but there is no check whether the indentation is made from spaces.</p>
<p dir="auto">We have a typescript application and a use a file per class. There are lots of benefits to this the major one being source control conflict reduction.</p> <p dir="auto">We compile our app using the --out compiler flag but I think there is room for some serious optimization of the compilers output for modules.</p> <p dir="auto">Currently if you have two classes defined in separate files the compile generates the following JavaScript.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var Example; (function (Example) { (function (Nested) { (function (Issue) { var bar = (function () { function bar() { } return bar; })(); Issue.bar = bar; })(Nested.Issue || (Nested.Issue = {})); var Issue = Nested.Issue; })(Example.Nested || (Example.Nested = {})); var Nested = Example.Nested; })(Example || (Example = {})); var Example; (function (Example) { (function (Nested) { (function (Issue) { var foo = (function () { function foo() { } return foo; })(); Issue.foo = foo; })(Nested.Issue || (Nested.Issue = {})); var Issue = Nested.Issue; })(Example.Nested || (Example.Nested = {})); var Nested = Example.Nested; })(Example || (Example = {}));"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-v">Example</span><span class="pl-kos">;</span> <span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-v">Example</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-v">Nested</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-v">Issue</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">bar</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">function</span> <span class="pl-s1">bar</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span> <span class="pl-k">return</span> <span class="pl-s1">bar</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-v">Issue</span><span class="pl-kos">.</span><span class="pl-c1">bar</span> <span class="pl-c1">=</span> <span class="pl-s1">bar</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-v">Nested</span><span class="pl-kos">.</span><span class="pl-c1">Issue</span> <span class="pl-c1">||</span> <span class="pl-kos">(</span><span class="pl-v">Nested</span><span class="pl-kos">.</span><span class="pl-c1">Issue</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-v">Issue</span> <span class="pl-c1">=</span> <span class="pl-v">Nested</span><span class="pl-kos">.</span><span class="pl-c1">Issue</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-v">Example</span><span class="pl-kos">.</span><span class="pl-c1">Nested</span> <span class="pl-c1">||</span> <span class="pl-kos">(</span><span class="pl-v">Example</span><span class="pl-kos">.</span><span class="pl-c1">Nested</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-v">Nested</span> <span class="pl-c1">=</span> <span class="pl-v">Example</span><span class="pl-kos">.</span><span class="pl-c1">Nested</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-v">Example</span> <span class="pl-c1">||</span> <span class="pl-kos">(</span><span class="pl-v">Example</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-v">Example</span><span class="pl-kos">;</span> <span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-v">Example</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-v">Nested</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-v">Issue</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">foo</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">function</span> <span class="pl-s1">foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span> <span class="pl-k">return</span> <span class="pl-s1">foo</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-v">Issue</span><span class="pl-kos">.</span><span class="pl-c1">foo</span> <span class="pl-c1">=</span> <span class="pl-s1">foo</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-v">Nested</span><span class="pl-kos">.</span><span class="pl-c1">Issue</span> <span class="pl-c1">||</span> <span class="pl-kos">(</span><span class="pl-v">Nested</span><span class="pl-kos">.</span><span class="pl-c1">Issue</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-v">Issue</span> <span class="pl-c1">=</span> <span class="pl-v">Nested</span><span class="pl-kos">.</span><span class="pl-c1">Issue</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-v">Example</span><span class="pl-kos">.</span><span class="pl-c1">Nested</span> <span class="pl-c1">||</span> <span class="pl-kos">(</span><span class="pl-v">Example</span><span class="pl-kos">.</span><span class="pl-c1">Nested</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-v">Nested</span> <span class="pl-c1">=</span> <span class="pl-v">Example</span><span class="pl-kos">.</span><span class="pl-c1">Nested</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-v">Example</span> <span class="pl-c1">||</span> <span class="pl-kos">(</span><span class="pl-v">Example</span> <span class="pl-c1">=</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">I suggest a compiler flag that composes all classes/ functions etc under a single module declaration? So the output code would be like the example below. This would dramatically reduce the size of the JavaScript the compiler outputs. I estimate that our app which currently compiles to around 15,000 lines of probably be only be 2000 lines if this were available.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var Example; (function (Example) { (function (Nested) { (function (Issue) { var bar = (function () { function bar() { } return bar; })(); Issue.bar = bar; var foo = (function () { function foo() { } return foo; })(); Issue.foo = foo; })(Nested.Issue || (Nested.Issue = {})); var Issue = Nested.Issue; })(Example.Nested || (Example.Nested = {})); var Nested = Example.Nested; })(Example || (Example = {}));"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-v">Example</span><span class="pl-kos">;</span> <span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-v">Example</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-v">Nested</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-v">Issue</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">bar</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">function</span> <span class="pl-s1">bar</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span> <span class="pl-k">return</span> <span class="pl-s1">bar</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-v">Issue</span><span class="pl-kos">.</span><span class="pl-c1">bar</span> <span class="pl-c1">=</span> <span class="pl-s1">bar</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">foo</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">function</span> <span class="pl-s1">foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span> <span class="pl-k">return</span> <span class="pl-s1">foo</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-v">Issue</span><span class="pl-kos">.</span><span class="pl-c1">foo</span> <span class="pl-c1">=</span> <span class="pl-s1">foo</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-v">Nested</span><span class="pl-kos">.</span><span class="pl-c1">Issue</span> <span class="pl-c1">||</span> <span class="pl-kos">(</span><span class="pl-v">Nested</span><span class="pl-kos">.</span><span class="pl-c1">Issue</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-v">Issue</span> <span class="pl-c1">=</span> <span class="pl-v">Nested</span><span class="pl-kos">.</span><span class="pl-c1">Issue</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-v">Example</span><span class="pl-kos">.</span><span class="pl-c1">Nested</span> <span class="pl-c1">||</span> <span class="pl-kos">(</span><span class="pl-v">Example</span><span class="pl-kos">.</span><span class="pl-c1">Nested</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-v">Nested</span> <span class="pl-c1">=</span> <span class="pl-v">Example</span><span class="pl-kos">.</span><span class="pl-c1">Nested</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-v">Example</span> <span class="pl-c1">||</span> <span class="pl-kos">(</span><span class="pl-v">Example</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
0
<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): MAC Yosemite 10.10.5 (14F27)</p> </li> <li> <p dir="auto">TensorFlow installed from (source or binary):source</p> </li> <li> <p dir="auto">TensorFlow version: 1.13.1</p> </li> <li> <p dir="auto">Python version: Python 3.6.8 :: Anaconda, Inc.</p> </li> <li> <p dir="auto">Installed using virtualenv? pip? conda?: pip</p> </li> <li> <p dir="auto">GCC/Compiler version (if compiling from source):</p> </li> <li> <p dir="auto">CUDA/cuDNN version:</p> </li> <li> <p dir="auto">GPU model and memory: 4 GB 1600 MHz DDR3</p> </li> </ul> <p dir="auto"><strong>Describe the problem</strong></p> <p dir="auto"><strong>Provide the exact sequence of commands / steps that you executed before running into the problem</strong></p> <p dir="auto"><strong>Any other info / logs</strong><br> Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.<br> Although tensorflow is installed and pip install tensorflow shows that it is already satisfied, but I cannot import tensorflow library</p> <p dir="auto">File "/Users/botaduisenbay/Desktop/tester.py", line 9, in <br> import tensorflow as tf</p> <p dir="auto">File "/Users/botaduisenbay/anaconda3/lib/python3.6/site-packages/tensorflow/<strong>init</strong>.py", line 24, in <br> from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import</p> <p dir="auto">File "/Users/botaduisenbay/anaconda3/lib/python3.6/site-packages/tensorflow/python/<strong>init</strong>.py", line 49, in <br> from tensorflow.python import pywrap_tensorflow</p> <p dir="auto">File "/Users/botaduisenbay/anaconda3/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 74, in <br> raise ImportError(msg)</p> <p dir="auto">ImportError: Traceback (most recent call last):<br> File "/Users/botaduisenbay/anaconda3/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in <br> from tensorflow.python.pywrap_tensorflow_internal import *<br> File "/Users/botaduisenbay/anaconda3/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <br> _pywrap_tensorflow_internal = swig_import_helper()<br> File "/Users/botaduisenbay/anaconda3/lib/python3.6/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 "/Users/botaduisenbay/anaconda3/lib/python3.6/imp.py", line 243, in load_module<br> return load_dynamic(name, filename, file)<br> File "/Users/botaduisenbay/anaconda3/lib/python3.6/imp.py", line 343, in load_dynamic<br> return _load(spec)<br> ImportError: dlopen(/Users/botaduisenbay/anaconda3/lib/python3.6/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so, 6): no suitable image found. Did find:<br> /Users/botaduisenbay/anaconda3/lib/python3.6/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so: truncated mach-o error: segment __LINKEDIT extends to 365926664 which is past end of file 154042368</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"><em>Please make sure that this is a bug. 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:bug_template</em></p> <p dir="auto"><strong>System information</strong></p> <ul dir="auto"> <li>OS Platform and Distribution Windows 10 64 bit</li> <li>TensorFlow installed from (source or binary): pip install tensorflow</li> <li>TensorFlow version: 1.12.0</li> <li>Python version:3.6.5</li> <li>GPU model and memory: Geforce 150mx 4gb</li> </ul> <p dir="auto"><strong>Describe the problem</strong><br> I'm unable to import keras using <em>"Tensorflow backend"</em><br> when I try to import <em>"from keras.models import Sequential"</em> I get the error shown bellow</p> <p dir="auto"><strong>These are the steps that I did when I installed the libraries</strong><br> 1- conda create -n tensorflow python=3.5 anaconda.</p> <p dir="auto">2- activate tensorflow.</p> <p dir="auto">3- conda install theano.</p> <p dir="auto">4- conda install mingw libpython.</p> <p dir="auto">5-pip install tensorflow.</p> <p dir="auto">6- pip install keras.</p> <p dir="auto">7- conda update --all</p> <p dir="auto">8- pip install tensorflow-gpu</p> <p dir="auto"><strong>Other info / logs</strong><br> Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.</p> <p dir="auto">Error shown:</p> <p dir="auto">`from keras.models import Sequential<br> Using TensorFlow backend.<br> Traceback (most recent call last):</p> <p dir="auto">File "", line 1, in <br> from keras.models import Sequential</p> <p dir="auto">File "C:\Users\MHD\Anaconda3\lib\site-packages\keras_<em>init</em>_.py", line 3, in <br> from . import utils</p> <p dir="auto">File "C:\Users\MHD\Anaconda3\lib\site-packages\keras\utils_<em>init</em>_.py", line 6, in <br> from . import conv_utils</p> <p dir="auto">File "C:\Users\MHD\Anaconda3\lib\site-packages\keras\utils\conv_utils.py", line 9, in <br> from .. import backend as K</p> <p dir="auto">File "C:\Users\MHD\Anaconda3\lib\site-packages\keras\backend_<em>init</em>_.py", line 89, in <br> from .tensorflow_backend import *</p> <p dir="auto">File "C:\Users\MHD\Anaconda3\lib\site-packages\keras\backend\tensorflow_backend.py", line 5, in <br> import tensorflow as tf</p> <p dir="auto">File "C:\Users\MHD\Anaconda3\lib\site-packages\tensorflow_<em>init</em>_.py", line 24, in <br> from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import</p> <p dir="auto">File "C:\Users\MHD\Anaconda3\lib\site-packages\tensorflow\python_<em>init</em>_.py", line 49, in <br> from tensorflow.python import pywrap_tensorflow</p> <p dir="auto">File "C:\Users\MHD\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 74, in <br> raise ImportError(msg)</p> <p dir="auto">ImportError: Traceback (most recent call last):<br> File "C:\Users\MHD\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <br> from tensorflow.python.pywrap_tensorflow_internal import *<br> File "C:\Users\MHD\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <br> _pywrap_tensorflow_internal = swig_import_helper()<br> File "C:\Users\MHD\Anaconda3\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\MHD\Anaconda3\lib\imp.py", line 243, in load_module<br> return load_dynamic(name, filename, file)<br> File "C:\Users\MHD\Anaconda3\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>
0
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd] Windows Terminal version (if applicable): Microsoft Windows NT 10.0.18362.0 Any other software? msbuild"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd] Windows Terminal version (if applicable): Microsoft Windows NT 10.0.18362.0 Any other software? msbuild </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <ol dir="auto"> <li>Log into a machine over RDP</li> <li>Open a terminal cmd session</li> <li>Start a build using msbuild.exe</li> <li>Close RDP session</li> </ol> <h1 dir="auto">Expected behavior</h1> <p dir="auto">It's expected that the build will continue in the background even after the RDP session is disconnected.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">Terminal output is blocked, causing the build to be blocked as well. This means that the build will not proceed until reconnecting the RDP session or logging into the host machine.</p>
<p dir="auto">The petty thing I miss most when I pop into Windows is having a separate hot key terminal for each of my three monitors. The closest i've ever been to believing in god was when I realized that was obtainable and if you could make that happen in Windows I just might have to kiss you.</p>
0
<p dir="auto"><strong>Is this a request for help?</strong> (If yes, you should use our troubleshooting guide and community support channels, see <a href="http://kubernetes.io/docs/troubleshooting/" rel="nofollow">http://kubernetes.io/docs/troubleshooting/</a>.):</p> <p dir="auto">No, this is a bug report</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> <p dir="auto">Searched for: "error validating data: couldn't find type: v1beta1.StorageClass"</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>):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Client Version: version.Info{Major:&quot;1&quot;, Minor:&quot;3&quot;, GitVersion:&quot;v1.3.0+2831379&quot;, GitCommit:&quot;283137936a498aed572ee22af6774b6fb6e9fd94&quot;, GitTreeState:&quot;not a git tree&quot;, BuildDate:&quot;2016-07-05T15:40:13Z&quot;, GoVersion:&quot;go1.6.2&quot;, Compiler:&quot;gc&quot;, Platform:&quot;darwin/amd64&quot;} Server Version: version.Info{Major:&quot;1&quot;, Minor:&quot;3&quot;, GitVersion:&quot;v1.3.5+coreos.0&quot;, GitCommit:&quot;d7a04b1c6044647f5919fadf3cecb9ee70c10fc5&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2016-08-15T21:01:42Z&quot;, GoVersion:&quot;go1.6.2&quot;, Compiler:&quot;gc&quot;, Platform:&quot;linux/amd64&quot;}"><pre class="notranslate"><code class="notranslate">Client Version: version.Info{Major:"1", Minor:"3", GitVersion:"v1.3.0+2831379", GitCommit:"283137936a498aed572ee22af6774b6fb6e9fd94", GitTreeState:"not a git tree", BuildDate:"2016-07-05T15:40:13Z", GoVersion:"go1.6.2", Compiler:"gc", Platform:"darwin/amd64"} Server Version: version.Info{Major:"1", Minor:"3", GitVersion:"v1.3.5+coreos.0", GitCommit:"d7a04b1c6044647f5919fadf3cecb9ee70c10fc5", GitTreeState:"clean", BuildDate:"2016-08-15T21:01:42Z", GoVersion:"go1.6.2", Compiler:"gc", Platform:"linux/amd64"} </code></pre></div> <p dir="auto"><strong>Environment</strong>:</p> <ul dir="auto"> <li><strong>Cloud provider or hardware configuration</strong>: AWS</li> <li><strong>OS</strong> (e.g. from /etc/os-release): Mac OSX 10.11.5</li> <li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>): Darwin Adams-MacBook-Pro.local 15.5.0 Darwin Kernel Version 15.5.0: Tue Apr 19 18:36:36 PDT 2016; root:xnu-3248.50.21~8/RELEASE_X86_64 x86_64</li> <li><strong>Install tools</strong>:</li> <li><strong>Others</strong>:</li> </ul> <p dir="auto"><strong>What happened</strong>: I want to create a StorageClass. I ran the following code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="kubectl create -f - &lt;&lt;EOF kind: StorageClass apiVersion: extensions/v1beta1 metadata: name: slow provisioner: kubernetes.io/aws-ebs parameters: type: io1 zone: us-east-1d iopsPerGB: &quot;10&quot; EOF"><pre class="notranslate"><code class="notranslate">kubectl create -f - &lt;&lt;EOF kind: StorageClass apiVersion: extensions/v1beta1 metadata: name: slow provisioner: kubernetes.io/aws-ebs parameters: type: io1 zone: us-east-1d iopsPerGB: "10" EOF </code></pre></div> <p dir="auto">And got the following error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error validating &quot;STDIN&quot;: error validating data: couldn't find type: v1beta1.StorageClass; if you choose to ignore these errors, turn validation off with --validate=false"><pre class="notranslate"><code class="notranslate">error validating "STDIN": error validating data: couldn't find type: v1beta1.StorageClass; if you choose to ignore these errors, turn validation off with --validate=false </code></pre></div> <p dir="auto"><strong>What you expected to happen</strong>:<br> A StorageClass is created succesfully</p> <p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):<br> Run this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="kubectl create -f - &lt;&lt;EOF kind: StorageClass apiVersion: extensions/v1beta1 metadata: name: slow provisioner: kubernetes.io/aws-ebs parameters: type: io1 zone: us-east-1d iopsPerGB: &quot;10&quot; EOF"><pre class="notranslate"><code class="notranslate">kubectl create -f - &lt;&lt;EOF kind: StorageClass apiVersion: extensions/v1beta1 metadata: name: slow provisioner: kubernetes.io/aws-ebs parameters: type: io1 zone: us-east-1d iopsPerGB: "10" EOF </code></pre></div> <p dir="auto"><strong>Anything else do we need to know</strong>:</p>
<p dir="auto">Note: I'm happy to write a more formal proposal out, I just wanted to quickly float the idea and see if it makes any sense to have.</p> <h3 dir="auto">Introduction</h3> <p dir="auto">A hostPath volume source is probably the simplest one to define, needing only a single path. However, that simplicity comes with many assumptions and caveats.</p> <p dir="auto">Right now, the largest caveat with a hostPath volume under Docker is that the given target will be created as an empty directory owned by root if it does not already exist. This is rarely what the user actually wants because hostPath volumes are typically used to express a dependency on an existing external file or directory.</p> <p dir="auto">To copy from a <a href="https://github.com/appc/spec/issues/648#issuecomment-241143645" data-hovercard-type="issue" data-hovercard-url="/appc/spec/issues/648/hovercard">different comment</a>: hostPath volumes have the following uses:</p> <h4 dir="auto">Hostpath use-cases</h4> <ol dir="auto"> <li>Communicating with an external system that produced data, is producing data, or is listening on a unix socket, such as a user who produced a configuration directory for the application, or X and the X11 socket.</li> <li>Communicating with external systems that will consume data created by the application; e.g. a container that produces logs at /var/log/fooApp and wishes to bindmount it to the host at /var/log/fooApp as well because the operator knows an external logging process will scan through that directory and collect them.</li> <li>Communicating between instances of yourself: e.g. a container that bindmounts in /var/cache/appName/thumbnails for each run and populates it with any thumbnails not present, but prefers to re-use existing ones between invocations simply to avoid unneeded processing.</li> </ol> <h3 dir="auto">Proposed API change</h3> <p dir="auto">I propose that the <code class="notranslate">v1.HostPathVolumeSource</code> be changed to include the following field:</p> <ol dir="auto"> <li><code class="notranslate">type</code> - optional string of <code class="notranslate">auto|exists|file|device|socket|directory</code> - If not set, defaults to <code class="notranslate">auto</code>, whereby any existing path will be accepted, and non-existent paths be created as new directories If set to a given value, something of the given type must be present at that path. If there is nothing present, or it is not of the specified type, the pod will fail to run.</li> </ol> <p dir="auto"><em>Note</em>: For the default case, the presence or absence of the given path is resolved at container-runtime for any container that references the given path. For the other cases, it is resolved when the pod is placed prior to any containers being run.</p> <h3 dir="auto">Reason for change</h3> <p dir="auto">In the first use-case above, creating the nonexistent thing is not a desirable action and can end up breaking things (aside, docker once had a bug where it created the <code class="notranslate">docker.sock</code> after starting old containers, so any restart=always containers bindmounting the <code class="notranslate">docker.sock</code> would create a directory there and crashloop the daemon).</p> <p dir="auto">In the second and third use-cases, you do want the directory created. I think the first use-case is, however, the most common one.</p> <p dir="auto">Because Kubernetes runs across many machines and should value correctness, I propose that the <code class="notranslate">hostPath</code> volume should allow a user to specify additional expectations about what already exists, or does not, at that path such that it can fail quickly if those assumptions are not met, rather than mutate the host filesystem.</p> <p dir="auto">This ensures that a host that is in an odd state (e.g. with some socket not existing that should) does not end up in a worse state, and also allows a pod to more clearly express the dependency it has such that an operator who accidentally runs it on a system it is not suited for can see quickly and clearly what went wrong.</p> <h4 dir="auto">Other considerations</h4> <p dir="auto">the <code class="notranslate">subPath</code> feature is also relevant because it is a way in which one can reference directories which might-or-might not exist within a volume as well. One possible way to resolve both hostPath and subPath at the same time would be making my above proposed api-changes attributes of the reference within the container, not the volume source outside of it. I think that having the attribute of the volume on the host attached to the source is neater and makes more logical sense however, so I'd prefer keeping it there. Other solutions are to simply assume subPaths should always be created, or to duplicate these options for subPath as well. Opinions welcome!</p> <p dir="auto">The examples folder contains many examples of pods where this feature would be useful. For example:</p> <ol dir="auto"> <li>sysdig-cloud example -- If <code class="notranslate">/boot</code> does not exist or <code class="notranslate">/var/run/docker.sock</code> is at an alternate location, this should fail to run and the operator should edit the pod, not clobber the host</li> <li>storage/vitess example -- If <code class="notranslate">/etc/ssl/certs</code> is not present (e.g. on <code class="notranslate">/etc/pki/</code> distros) it should not be created, it should be an error</li> <li>newrelic example -- Same as sysdig, a <code class="notranslate">docker.sock</code> reference</li> <li>... many others in the wild I'm sure</li> </ol> <p dir="auto">Opinions on whether this increase in expressiveness is worth the increased API surface area. I think it is, but second opinions would be much appreciated.</p> <p dir="auto">cc @kubernetes/sig-storage <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/thockin/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/thockin">@thockin</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jonboulle/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jonboulle">@jonboulle</a></p>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">I would expect that when I programmatically set the value of the multiline TextField to '', the text inside it would disappear.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">Currently, the previous value inside the multiline TextField is NOT being cleared after setting the value to ''.</p> <h2 dir="auto">Steps to Reproduce</h2> <p dir="auto">You can directly reproduce the bug here: <a href="https://codesandbox.io/s/wwpojv800k" rel="nofollow">https://codesandbox.io/s/wwpojv800k</a></p> <ol dir="auto"> <li>Type something in the multiline TextField.</li> <li>Press the Reset button</li> </ol> <p dir="auto">Results:<br> The content of the multiline TextField is not cleared.</p> <p dir="auto">Here is a very simple component you can directly add to your code to reproduce the bug:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import React from 'react'; import TextField from 'material-ui/TextField'; import Button from 'material-ui/Button'; class Test extends React.Component { constructor() { super(); this.state = { content: '', }; } handleChange() { return (event) =&gt; { this.setState({content: event.target.value}); }; } resetContent() { this.setState({content: ''}); } render() { return ( &lt;div&gt; &lt;TextField onChange={this.handleChange()} value={this.state.content} rows='5' rowsMax='5' label='Content' multiline fullWidth/&gt; &lt;Button raised onClick={this.resetContent.bind(this)}&gt;Reset&lt;/Button&gt; &lt;/div&gt; ); } } export default Test;"><pre class="notranslate"><code class="notranslate">import React from 'react'; import TextField from 'material-ui/TextField'; import Button from 'material-ui/Button'; class Test extends React.Component { constructor() { super(); this.state = { content: '', }; } handleChange() { return (event) =&gt; { this.setState({content: event.target.value}); }; } resetContent() { this.setState({content: ''}); } render() { return ( &lt;div&gt; &lt;TextField onChange={this.handleChange()} value={this.state.content} rows='5' rowsMax='5' label='Content' multiline fullWidth/&gt; &lt;Button raised onClick={this.resetContent.bind(this)}&gt;Reset&lt;/Button&gt; &lt;/div&gt; ); } } export default Test; </code></pre></div> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>1.0.0-beta.13</td> </tr> <tr> <td>React</td> <td>15.6.1</td> </tr> <tr> <td>browser</td> <td>Firefox 56.0 (32-bit), Firefox Dev Edition 57.0b5 (64-bit), Chrome 61.0.3163.100 (64 bit)</td> </tr> </tbody> </table>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">I should be able to somehow use a <code class="notranslate">&lt;ListItem&gt;</code> with a <code class="notranslate">Link</code> in TypeScript.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">I've found a few examples that suggest using:</p> <div class="highlight highlight-source-tsx notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;ListItem button component={Link} to=&quot;/somelink&quot;&gt;&lt;/ListItem&gt;"><pre class="notranslate"><span class="pl-c1">&lt;</span><span class="pl-smi">ListItem</span> <span class="pl-c1">button</span> <span class="pl-c1">component</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-smi">Link</span><span class="pl-kos">}</span> <span class="pl-c1">to</span><span class="pl-c1">=</span><span class="pl-s">"/somelink"</span><span class="pl-c1">&gt;</span><span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-smi">ListItem</span><span class="pl-c1">&gt;</span></pre></div> <p dir="auto">But I use TypeScript, and using <code class="notranslate">to</code> attr throws a compilation error since <code class="notranslate">to</code> is not a property of <code class="notranslate">ListItem</code>.</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>Use <code class="notranslate">create-react-app my-app --scripts-version=react-scripts-ts</code> to create a simple react app with TS</li> <li>Add <code class="notranslate">react-router</code> as dep and install it</li> <li>Use a <code class="notranslate">List</code> in the app template and try to add an item with <code class="notranslate">&lt;ListItem button component={Link} to="/somelink"&gt;&lt;/ListItem&gt;</code></li> </ol> <h2 dir="auto">Context</h2> <p dir="auto">I'm trying to setup Material UI with react-router.</p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>next</td> </tr> <tr> <td>React</td> <td>16.1.0</td> </tr> <tr> <td>browser</td> <td>Chrome</td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table>
0
<p dir="auto">[Enter steps to reproduce below:]</p> <ol dir="auto"> <li>Right-click in Atom.</li> <li>Sad face :(</li> </ol> <p dir="auto"><strong>Atom Version</strong>: 1.0.0<br> <strong>System</strong>: Microsoft Windows 7 Enterprise<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\CP527926\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\CP527926\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)<br> at EventEmitter. (C:\Users\CP527926\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\CP527926\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\CP527926\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\CP527926\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\CP527926\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\CP527926\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\CP527926\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\CP527926\AppData\Local\atom\app-1.0.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\CP527926\AppData\Local\atom\app-1.0.0\resources\app.asar\src\window-event-handler.js:150:33) at HTMLDocument.handler (C:\Users\CP527926\AppData\Local\atom\app-1.0.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\CP527926\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\CP527926\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\CP527926\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\CP527926\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\CP527926\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\CP527926\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\CP527926\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\CP527926\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\CP527926\AppData\Local\atom\app-1.0.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\CP527926\AppData\Local\atom\app-1.0.0\resources\app.asar\src\window-event-handler.js:150:33) at HTMLDocument.handler (C:\Users\CP527926\AppData\Local\atom\app-1.0.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\CP527926\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\CP527926\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=" -4:08.6.0 editor:newline (atom-text-editor.editor.is-focused) -4:08.5.0 emmet:insert-formatted-line-break-only (atom-text-editor.editor.is-focused) -4:08.5.0 editor:newline (atom-text-editor.editor.is-focused) -4:08.4.0 core:paste (atom-text-editor.editor.is-focused) -4:07.1.0 core:save (atom-text-editor.editor.is-focused) 5x -3:37.7.0 core:delete (atom-text-editor.editor.is-focused) -3:34.6.0 core:select-all (atom-text-editor.editor.is-focused) -3:34.4.0 core:copy (atom-text-editor.editor.is-focused) -2:22.8.0 find-and-replace:show (atom-text-editor.editor.is-focused) -2:21.5.0 core:confirm (atom-text-editor.editor.mini.is-focused) -2:19.3.0 editor:consolidate-selections (atom-text-editor.editor.mini.is-focused) -2:19.3.0 core:cancel (atom-text-editor.editor.mini.is-focused) 5x -1:18.4.0 core:backspace (atom-text-editor.editor.is-focused) 6x -1:12.5.0 core:move-left (atom-text-editor.editor.is-focused) 6x -1:11.2.0 core:move-right (atom-text-editor.editor.is-focused) -1:09.8.0 core:move-left (atom-text-editor.editor.is-focused)"><pre class="notranslate"><code class="notranslate"> -4:08.6.0 editor:newline (atom-text-editor.editor.is-focused) -4:08.5.0 emmet:insert-formatted-line-break-only (atom-text-editor.editor.is-focused) -4:08.5.0 editor:newline (atom-text-editor.editor.is-focused) -4:08.4.0 core:paste (atom-text-editor.editor.is-focused) -4:07.1.0 core:save (atom-text-editor.editor.is-focused) 5x -3:37.7.0 core:delete (atom-text-editor.editor.is-focused) -3:34.6.0 core:select-all (atom-text-editor.editor.is-focused) -3:34.4.0 core:copy (atom-text-editor.editor.is-focused) -2:22.8.0 find-and-replace:show (atom-text-editor.editor.is-focused) -2:21.5.0 core:confirm (atom-text-editor.editor.mini.is-focused) -2:19.3.0 editor:consolidate-selections (atom-text-editor.editor.mini.is-focused) -2:19.3.0 core:cancel (atom-text-editor.editor.mini.is-focused) 5x -1:18.4.0 core:backspace (atom-text-editor.editor.is-focused) 6x -1:12.5.0 core:move-left (atom-text-editor.editor.is-focused) 6x -1:11.2.0 core:move-right (atom-text-editor.editor.is-focused) -1:09.8.0 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;core&quot;: {}, &quot;editor&quot;: { &quot;invisibles&quot;: {}, &quot;fontSize&quot;: 13 } }"><pre class="notranslate">{ <span class="pl-ent">"core"</span>: {}, <span class="pl-ent">"editor"</span>: { <span class="pl-ent">"invisibles"</span>: {}, <span class="pl-ent">"fontSize"</span>: <span class="pl-c1">13</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">There needs to be a waypoint or a series of waypoints that explain how to properly use GitHub in general, and how to search for and report issues in particular, since people are posting a lot of duplicate issues (see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="90207105" data-permission-text="Title is private" data-url="https://github.com/freeCodeCamp/freeCodeCamp/issues/1062" data-hovercard-type="issue" data-hovercard-url="/freeCodeCamp/freeCodeCamp/issues/1062/hovercard" href="https://github.com/freeCodeCamp/freeCodeCamp/issues/1062">#1062</a>, and it's 7 duplicates, about a bug that was already fixed in <code class="notranslate">staging</code>).</p> <p dir="auto">I think I have seen this mentioned already, but my inability to find a relevant issue, if there is one, sort of just strengthens my point.</p>
<p dir="auto">When I added my solution it was this error. Then after some research, I tried in Firefox and it worked.<br> So basically this is stack issue from chrome so I thought of reporting as other campers might get the same issue.</p>
0
<p dir="auto">You can have a large frame in memory and want to drop a small percentage of labels with NA data just to clean things up. If you use drop() or dropna(), you will get a new object and effectively double the memory footprint. Favoring immutability is great, but under memory constraints this can be a killer.</p>
<p dir="auto">see related discussion in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="8580418" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/2325" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/2325/hovercard" href="https://github.com/pandas-dev/pandas/issues/2325">#2325</a></p> <p dir="auto">Possible and/or desirable to add an inplace keyword to dropna? Maybe an out keyword, so you can avoid typing the assignment? [<strong>Edit:</strong> I guess out doesn't really make sense like it does for numpy ufuncs.] Don't really mind if there's a copy even I just get tired of always doing assignment to the same name when I'm doing pre-, post-processing, etc.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="dataframe = dataframe.action()"><pre class="notranslate"><code class="notranslate">dataframe = dataframe.action() </code></pre></div>
1
<p dir="auto">It would be great to be able to have a custom checksum validator that can ignore certain branches of the DOM-tree when attempting to reuse markup.</p> <p dir="auto">The use case is for rendering static components. For static components that only need to be rendered once, we can just do the rendering on the server, and not have to render again on the client. Currently we have to pass down both the react markup AND the props used to generate the static markup. However, it is a waste to send those props down, if this component doesn't need to be rendered client-side.</p> <p dir="auto">One of the major performance concerns for using React is that apps not only have to send down markup but props as well, usually duplicating the data sent down to the client.</p> <p dir="auto">Being able to specify certain components as not needing a client side re-render, thus skipping check-sum, would save k-weight of the initial page load.</p>
<p dir="auto">React version:16.13.1</p> <h2 dir="auto">Steps To Reproduce</h2> <p dir="auto">1.在package.json中引用react-file-viewer<br> 2.npm install下载依赖<br> 3.npm run build 打包 ,出奇的慢</p> <p dir="auto">Link to code example:</p> <h2 dir="auto">The current behavior</h2> <h2 dir="auto">The expected behavior</h2>
0
<h5 dir="auto">Issue Type:</h5> <p dir="auto">Bug Report</p> <h5 dir="auto">Ansible Version:</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.0.0.2 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">ansible 2.0.0.2 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides </code></pre></div> <h5 dir="auto">Ansible Configuration:</h5> <p dir="auto">Using default ansible.cfg.</p> <p dir="auto">Inventory:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[all:vars] ansible_python_interpreter=/usr/bin/python2 [kubernetes] kubemaster1 ansible_ssh_host=192.168.0.150 kubemaster2 ansible_ssh_host=192.168.0.220 kubenode1 ansible_ssh_host=192.168.0.157 kubenode2 ansible_ssh_host=192.168.0.73"><pre class="notranslate"><code class="notranslate">[all:vars] ansible_python_interpreter=/usr/bin/python2 [kubernetes] kubemaster1 ansible_ssh_host=192.168.0.150 kubemaster2 ansible_ssh_host=192.168.0.220 kubenode1 ansible_ssh_host=192.168.0.157 kubenode2 ansible_ssh_host=192.168.0.73 </code></pre></div> <h5 dir="auto">Environment:</h5> <p dir="auto">Arch Linux (up to date) on all machines.</p> <h5 dir="auto">Summary:</h5> <p dir="auto">When using any module (I'm using <code class="notranslate">ping</code> for testing), Ansible sometimes fails on a host. It never happens when I use one single host and it fails in about 8/10 cases. The failing hosts are differing.</p> <p dir="auto">I'm calling Ansible like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible -vvvv -e 'ansible_ssh_user=root' kubernetes -m ping"><pre class="notranslate"><code class="notranslate">ansible -vvvv -e 'ansible_ssh_user=root' kubernetes -m ping </code></pre></div> <p dir="auto">Full log output of a failed run:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Using /etc/ansible/ansible.cfg as config file Loaded callback minimal of type stdout, v2.0 &lt;192.168.0.220&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;192.168.0.150&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;192.168.0.220&gt; SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/janne/.ansible/cp/ansible-ssh-%h-%p-%r -tt 192.168.0.220 'mkdir -p &quot;$( echo $HOME/.ansible/tmp/ansible-tmp-1455401136.3-129748284741880 )&quot; &amp;&amp; echo &quot;$( echo $HOME/.ansible/tmp/ansible-tmp-1455401136.3-129748284741880 )&quot;' &lt;192.168.0.150&gt; SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/janne/.ansible/cp/ansible-ssh-%h-%p-%r -tt 192.168.0.150 'mkdir -p &quot;$( echo $HOME/.ansible/tmp/ansible-tmp-1455401136.3-110669559663006 )&quot; &amp;&amp; echo &quot;$( echo $HOME/.ansible/tmp/ansible-tmp-1455401136.3-110669559663006 )&quot;' &lt;192.168.0.73&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;192.168.0.157&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;192.168.0.73&gt; SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/janne/.ansible/cp/ansible-ssh-%h-%p-%r -tt 192.168.0.73 'mkdir -p &quot;$( echo $HOME/.ansible/tmp/ansible-tmp-1455401136.32-132910215829706 )&quot; &amp;&amp; echo &quot;$( echo $HOME/.ansible/tmp/ansible-tmp-1455401136.32-132910215829706 )&quot;' &lt;192.168.0.220&gt; PUT /tmp/janne/tmpqd8UFn TO /root/.ansible/tmp/ansible-tmp-1455401136.3-129748284741880/ping &lt;192.168.0.220&gt; SSH: EXEC sftp -b - -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/janne/.ansible/cp/ansible-ssh-%h-%p-%r '[192.168.0.220]' &lt;192.168.0.157&gt; SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/janne/.ansible/cp/ansible-ssh-%h-%p-%r -tt 192.168.0.157 'mkdir -p &quot;$( echo $HOME/.ansible/tmp/ansible-tmp-1455401136.32-263198601926357 )&quot; &amp;&amp; echo &quot;$( echo $HOME/.ansible/tmp/ansible-tmp-1455401136.32-263198601926357 )&quot;' &lt;192.168.0.150&gt; PUT /tmp/janne/tmpvvf2uM TO /root/.ansible/tmp/ansible-tmp-1455401136.3-110669559663006/ping &lt;192.168.0.150&gt; SSH: EXEC sftp -b - -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/janne/.ansible/cp/ansible-ssh-%h-%p-%r '[192.168.0.150]' kubenode2 | FAILED! =&gt; { &quot;failed&quot;: true, &quot;msg&quot;: &quot;ERROR! failed to resolve remote temporary directory from ansible-tmp-1455401136.32-132910215829706: `mkdir -p \&quot;$( echo $HOME/.ansible/tmp/ansible-tmp-1455401136.32-132910215829706 )\&quot; &amp;&amp; echo \&quot;$( echo $HOME/.ansible/tmp/ansible-tmp-1455401136.32-132910215829706 )\&quot;` returned empty string&quot; } &lt;192.168.0.220&gt; ESTABLISH SSH CONNECTION FOR USER: root kubenode1 | FAILED! =&gt; { &quot;failed&quot;: true, &quot;msg&quot;: &quot;ERROR! failed to resolve remote temporary directory from ansible-tmp-1455401136.32-263198601926357: `mkdir -p \&quot;$( echo $HOME/.ansible/tmp/ansible-tmp-1455401136.32-263198601926357 )\&quot; &amp;&amp; echo \&quot;$( echo $HOME/.ansible/tmp/ansible-tmp-1455401136.32-263198601926357 )\&quot;` returned empty string&quot; } &lt;192.168.0.220&gt; SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/janne/.ansible/cp/ansible-ssh-%h-%p-%r -tt 192.168.0.220 'LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python2 /root/.ansible/tmp/ansible-tmp-1455401136.3-129748284741880/ping; rm -rf &quot;/root/.ansible/tmp/ansible-tmp-1455401136.3-129748284741880/&quot; &gt; /dev/null 2&gt;&amp;1' &lt;192.168.0.150&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;192.168.0.150&gt; SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/janne/.ansible/cp/ansible-ssh-%h-%p-%r -tt 192.168.0.150 'LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python2 /root/.ansible/tmp/ansible-tmp-1455401136.3-110669559663006/ping; rm -rf &quot;/root/.ansible/tmp/ansible-tmp-1455401136.3-110669559663006/&quot; &gt; /dev/null 2&gt;&amp;1' kubemaster2 | SUCCESS =&gt; { &quot;changed&quot;: false, &quot;invocation&quot;: { &quot;module_args&quot;: { &quot;data&quot;: null }, &quot;module_name&quot;: &quot;ping&quot; }, &quot;ping&quot;: &quot;pong&quot; } kubemaster1 | SUCCESS =&gt; { &quot;changed&quot;: false, &quot;invocation&quot;: { &quot;module_args&quot;: { &quot;data&quot;: null }, &quot;module_name&quot;: &quot;ping&quot; }, &quot;ping&quot;: &quot;pong&quot; }"><pre class="notranslate"><code class="notranslate">Using /etc/ansible/ansible.cfg as config file Loaded callback minimal of type stdout, v2.0 &lt;192.168.0.220&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;192.168.0.150&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;192.168.0.220&gt; SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/janne/.ansible/cp/ansible-ssh-%h-%p-%r -tt 192.168.0.220 'mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1455401136.3-129748284741880 )" &amp;&amp; echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1455401136.3-129748284741880 )"' &lt;192.168.0.150&gt; SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/janne/.ansible/cp/ansible-ssh-%h-%p-%r -tt 192.168.0.150 'mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1455401136.3-110669559663006 )" &amp;&amp; echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1455401136.3-110669559663006 )"' &lt;192.168.0.73&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;192.168.0.157&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;192.168.0.73&gt; SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/janne/.ansible/cp/ansible-ssh-%h-%p-%r -tt 192.168.0.73 'mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1455401136.32-132910215829706 )" &amp;&amp; echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1455401136.32-132910215829706 )"' &lt;192.168.0.220&gt; PUT /tmp/janne/tmpqd8UFn TO /root/.ansible/tmp/ansible-tmp-1455401136.3-129748284741880/ping &lt;192.168.0.220&gt; SSH: EXEC sftp -b - -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/janne/.ansible/cp/ansible-ssh-%h-%p-%r '[192.168.0.220]' &lt;192.168.0.157&gt; SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/janne/.ansible/cp/ansible-ssh-%h-%p-%r -tt 192.168.0.157 'mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1455401136.32-263198601926357 )" &amp;&amp; echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1455401136.32-263198601926357 )"' &lt;192.168.0.150&gt; PUT /tmp/janne/tmpvvf2uM TO /root/.ansible/tmp/ansible-tmp-1455401136.3-110669559663006/ping &lt;192.168.0.150&gt; SSH: EXEC sftp -b - -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/janne/.ansible/cp/ansible-ssh-%h-%p-%r '[192.168.0.150]' kubenode2 | FAILED! =&gt; { "failed": true, "msg": "ERROR! failed to resolve remote temporary directory from ansible-tmp-1455401136.32-132910215829706: `mkdir -p \"$( echo $HOME/.ansible/tmp/ansible-tmp-1455401136.32-132910215829706 )\" &amp;&amp; echo \"$( echo $HOME/.ansible/tmp/ansible-tmp-1455401136.32-132910215829706 )\"` returned empty string" } &lt;192.168.0.220&gt; ESTABLISH SSH CONNECTION FOR USER: root kubenode1 | FAILED! =&gt; { "failed": true, "msg": "ERROR! failed to resolve remote temporary directory from ansible-tmp-1455401136.32-263198601926357: `mkdir -p \"$( echo $HOME/.ansible/tmp/ansible-tmp-1455401136.32-263198601926357 )\" &amp;&amp; echo \"$( echo $HOME/.ansible/tmp/ansible-tmp-1455401136.32-263198601926357 )\"` returned empty string" } &lt;192.168.0.220&gt; SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/janne/.ansible/cp/ansible-ssh-%h-%p-%r -tt 192.168.0.220 'LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python2 /root/.ansible/tmp/ansible-tmp-1455401136.3-129748284741880/ping; rm -rf "/root/.ansible/tmp/ansible-tmp-1455401136.3-129748284741880/" &gt; /dev/null 2&gt;&amp;1' &lt;192.168.0.150&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;192.168.0.150&gt; SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/janne/.ansible/cp/ansible-ssh-%h-%p-%r -tt 192.168.0.150 'LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python2 /root/.ansible/tmp/ansible-tmp-1455401136.3-110669559663006/ping; rm -rf "/root/.ansible/tmp/ansible-tmp-1455401136.3-110669559663006/" &gt; /dev/null 2&gt;&amp;1' kubemaster2 | SUCCESS =&gt; { "changed": false, "invocation": { "module_args": { "data": null }, "module_name": "ping" }, "ping": "pong" } kubemaster1 | SUCCESS =&gt; { "changed": false, "invocation": { "module_args": { "data": null }, "module_name": "ping" }, "ping": "pong" } </code></pre></div> <p dir="auto">Note that different hosts fail sometimes.</p> <h5 dir="auto">Steps To Reproduce:</h5> <p dir="auto">Run the command above on a small group of Arch Linux hosts. Sometimes, it fails.</p> <h5 dir="auto">Expected Results:</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Using /etc/ansible/ansible.cfg as config file Loaded callback minimal of type stdout, v2.0 &lt;192.168.0.157&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;192.168.0.150&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;192.168.0.157&gt; SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/janne/.ansible/cp/ansible-ssh-%h-%p-%r -tt 192.168.0.157 'mkdir -p &quot;$( echo $HOME/.ansible/tmp/ansible-tmp-1455401324.79-221794005648841 )&quot; &amp;&amp; echo &quot;$( echo $HOME/.ansible/tmp/ansible-tmp-1455401324.7 9-221794005648841 )&quot;' &lt;192.168.0.150&gt; SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/janne/.ansible/cp/ansible-ssh-%h-%p-%r -tt 192.168.0.150 'mkdir -p &quot;$( echo $HOME/.ansible/tmp/ansible-tmp-1455401324.79-182183570705768 )&quot; &amp;&amp; echo &quot;$( echo $HOME/.ansible/tmp/ansible-tmp-1455401324.7 9-182183570705768 )&quot;' &lt;192.168.0.73&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;192.168.0.73&gt; SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o C onnectTimeout=10 -o ControlPath=/home/janne/.ansible/cp/ansible-ssh-%h-%p-%r -tt 192.168.0.73 'mkdir -p &quot;$( echo $HOME/.ansible/tmp/ansible-tmp-1455401324.79-134588512123476 )&quot; &amp;&amp; echo &quot;$( echo $HOME/.ansible/tmp/ansible-tmp-1455401324.79- 134588512123476 )&quot;' &lt;192.168.0.220&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;192.168.0.220&gt; SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/janne/.ansible/cp/ansible-ssh-%h-%p-%r -tt 192.168.0.220 'mkdir -p &quot;$( echo $HOME/.ansible/tmp/ansible-tmp-1455401324.8-245049243481998 )&quot; &amp;&amp; echo &quot;$( echo $HOME/.ansible/tmp/ansible-tmp-1455401324.8- 245049243481998 )&quot;' &lt;192.168.0.157&gt; PUT /tmp/janne/tmpU2Q_8L TO /root/.ansible/tmp/ansible-tmp-1455401324.79-221794005648841/ping &lt;192.168.0.157&gt; SSH: EXEC sftp -b - -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ro ot -o ConnectTimeout=10 -o ControlPath=/home/janne/.ansible/cp/ansible-ssh-%h-%p-%r '[192.168.0.157]' &lt;192.168.0.150&gt; PUT /tmp/janne/tmpiBTinc TO /root/.ansible/tmp/ansible-tmp-1455401324.79-182183570705768/ping &lt;192.168.0.150&gt; SSH: EXEC sftp -b - -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ro ot -o ConnectTimeout=10 -o ControlPath=/home/janne/.ansible/cp/ansible-ssh-%h-%p-%r '[192.168.0.150]' &lt;192.168.0.73&gt; PUT /tmp/janne/tmpV_eY8S TO /root/.ansible/tmp/ansible-tmp-1455401324.79-134588512123476/ping &lt;192.168.0.73&gt; SSH: EXEC sftp -b - -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=roo t -o ConnectTimeout=10 -o ControlPath=/home/janne/.ansible/cp/ansible-ssh-%h-%p-%r '[192.168.0.73]' &lt;192.168.0.220&gt; PUT /tmp/janne/tmpbllWlE TO /root/.ansible/tmp/ansible-tmp-1455401324.8-245049243481998/ping &lt;192.168.0.220&gt; SSH: EXEC sftp -b - -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ro ot -o ConnectTimeout=10 -o ControlPath=/home/janne/.ansible/cp/ansible-ssh-%h-%p-%r '[192.168.0.220]' &lt;192.168.0.150&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;192.168.0.150&gt; SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/janne/.ansible/cp/ansible-ssh-%h-%p-%r -tt 192.168.0.150 'LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python2 /root/.ansible/tmp/ansible-tmp-1455401324.79-182183570705768/ping ; rm -rf &quot;/root/.ansible/tmp/ansible-tmp-1455401324.79-182183570705768/&quot; &gt; /dev/null 2&gt;&amp;1' &lt;192.168.0.157&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;192.168.0.157&gt; SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/janne/.ansible/cp/ansible-ssh-%h-%p-%r -tt 192.168.0.157 'LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python2 /root/.ansible/tmp/ansible-tmp-1455401324.79-221794005648841/ping ; rm -rf &quot;/root/.ansible/tmp/ansible-tmp-1455401324.79-221794005648841/&quot; &gt; /dev/null 2&gt;&amp;1' &lt;192.168.0.220&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;192.168.0.220&gt; SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/janne/.ansible/cp/ansible-ssh-%h-%p-%r -tt 192.168.0.220 'LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python2 /root/.ansible/tmp/ansible-tmp-1455401324.8-245049243481998/ping; rm -rf &quot;/root/.ansible/tmp/ansible-tmp-1455401324.8-245049243481998/&quot; &gt; /dev/null 2&gt;&amp;1' &lt;192.168.0.73&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;192.168.0.73&gt; SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o C onnectTimeout=10 -o ControlPath=/home/janne/.ansible/cp/ansible-ssh-%h-%p-%r -tt 192.168.0.73 'LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python2 /root/.ansible/tmp/ansible-tmp-1455401324.79-134588512123476/ping; rm -rf &quot;/root/.ansible/tmp/ansible-tmp-1455401324.79-134588512123476/&quot; &gt; /dev/null 2&gt;&amp;1' kubemaster1 | SUCCESS =&gt; { &quot;changed&quot;: false, &quot;invocation&quot;: { &quot;module_args&quot;: { &quot;data&quot;: null }, &quot;module_name&quot;: &quot;ping&quot; }, &quot;ping&quot;: &quot;pong&quot; } kubenode1 | SUCCESS =&gt; { &quot;changed&quot;: false, &quot;invocation&quot;: { &quot;module_args&quot;: { &quot;data&quot;: null }, &quot;module_name&quot;: &quot;ping&quot; }, &quot;ping&quot;: &quot;pong&quot; } kubemaster2 | SUCCESS =&gt; { &quot;changed&quot;: false, &quot;invocation&quot;: { &quot;module_args&quot;: { &quot;data&quot;: null }, &quot;module_name&quot;: &quot;ping&quot; }, &quot;ping&quot;: &quot;pong&quot; } kubenode2 | SUCCESS =&gt; { &quot;changed&quot;: false, &quot;invocation&quot;: { &quot;module_args&quot;: { &quot;data&quot;: null }, &quot;module_name&quot;: &quot;ping&quot; }, &quot;ping&quot;: &quot;pong&quot; }"><pre class="notranslate"><code class="notranslate">Using /etc/ansible/ansible.cfg as config file Loaded callback minimal of type stdout, v2.0 &lt;192.168.0.157&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;192.168.0.150&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;192.168.0.157&gt; SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/janne/.ansible/cp/ansible-ssh-%h-%p-%r -tt 192.168.0.157 'mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1455401324.79-221794005648841 )" &amp;&amp; echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1455401324.7 9-221794005648841 )"' &lt;192.168.0.150&gt; SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/janne/.ansible/cp/ansible-ssh-%h-%p-%r -tt 192.168.0.150 'mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1455401324.79-182183570705768 )" &amp;&amp; echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1455401324.7 9-182183570705768 )"' &lt;192.168.0.73&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;192.168.0.73&gt; SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o C onnectTimeout=10 -o ControlPath=/home/janne/.ansible/cp/ansible-ssh-%h-%p-%r -tt 192.168.0.73 'mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1455401324.79-134588512123476 )" &amp;&amp; echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1455401324.79- 134588512123476 )"' &lt;192.168.0.220&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;192.168.0.220&gt; SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/janne/.ansible/cp/ansible-ssh-%h-%p-%r -tt 192.168.0.220 'mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1455401324.8-245049243481998 )" &amp;&amp; echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1455401324.8- 245049243481998 )"' &lt;192.168.0.157&gt; PUT /tmp/janne/tmpU2Q_8L TO /root/.ansible/tmp/ansible-tmp-1455401324.79-221794005648841/ping &lt;192.168.0.157&gt; SSH: EXEC sftp -b - -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ro ot -o ConnectTimeout=10 -o ControlPath=/home/janne/.ansible/cp/ansible-ssh-%h-%p-%r '[192.168.0.157]' &lt;192.168.0.150&gt; PUT /tmp/janne/tmpiBTinc TO /root/.ansible/tmp/ansible-tmp-1455401324.79-182183570705768/ping &lt;192.168.0.150&gt; SSH: EXEC sftp -b - -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ro ot -o ConnectTimeout=10 -o ControlPath=/home/janne/.ansible/cp/ansible-ssh-%h-%p-%r '[192.168.0.150]' &lt;192.168.0.73&gt; PUT /tmp/janne/tmpV_eY8S TO /root/.ansible/tmp/ansible-tmp-1455401324.79-134588512123476/ping &lt;192.168.0.73&gt; SSH: EXEC sftp -b - -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=roo t -o ConnectTimeout=10 -o ControlPath=/home/janne/.ansible/cp/ansible-ssh-%h-%p-%r '[192.168.0.73]' &lt;192.168.0.220&gt; PUT /tmp/janne/tmpbllWlE TO /root/.ansible/tmp/ansible-tmp-1455401324.8-245049243481998/ping &lt;192.168.0.220&gt; SSH: EXEC sftp -b - -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ro ot -o ConnectTimeout=10 -o ControlPath=/home/janne/.ansible/cp/ansible-ssh-%h-%p-%r '[192.168.0.220]' &lt;192.168.0.150&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;192.168.0.150&gt; SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/janne/.ansible/cp/ansible-ssh-%h-%p-%r -tt 192.168.0.150 'LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python2 /root/.ansible/tmp/ansible-tmp-1455401324.79-182183570705768/ping ; rm -rf "/root/.ansible/tmp/ansible-tmp-1455401324.79-182183570705768/" &gt; /dev/null 2&gt;&amp;1' &lt;192.168.0.157&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;192.168.0.157&gt; SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/janne/.ansible/cp/ansible-ssh-%h-%p-%r -tt 192.168.0.157 'LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python2 /root/.ansible/tmp/ansible-tmp-1455401324.79-221794005648841/ping ; rm -rf "/root/.ansible/tmp/ansible-tmp-1455401324.79-221794005648841/" &gt; /dev/null 2&gt;&amp;1' &lt;192.168.0.220&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;192.168.0.220&gt; SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/janne/.ansible/cp/ansible-ssh-%h-%p-%r -tt 192.168.0.220 'LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python2 /root/.ansible/tmp/ansible-tmp-1455401324.8-245049243481998/ping; rm -rf "/root/.ansible/tmp/ansible-tmp-1455401324.8-245049243481998/" &gt; /dev/null 2&gt;&amp;1' &lt;192.168.0.73&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;192.168.0.73&gt; SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o C onnectTimeout=10 -o ControlPath=/home/janne/.ansible/cp/ansible-ssh-%h-%p-%r -tt 192.168.0.73 'LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python2 /root/.ansible/tmp/ansible-tmp-1455401324.79-134588512123476/ping; rm -rf "/root/.ansible/tmp/ansible-tmp-1455401324.79-134588512123476/" &gt; /dev/null 2&gt;&amp;1' kubemaster1 | SUCCESS =&gt; { "changed": false, "invocation": { "module_args": { "data": null }, "module_name": "ping" }, "ping": "pong" } kubenode1 | SUCCESS =&gt; { "changed": false, "invocation": { "module_args": { "data": null }, "module_name": "ping" }, "ping": "pong" } kubemaster2 | SUCCESS =&gt; { "changed": false, "invocation": { "module_args": { "data": null }, "module_name": "ping" }, "ping": "pong" } kubenode2 | SUCCESS =&gt; { "changed": false, "invocation": { "module_args": { "data": null }, "module_name": "ping" }, "ping": "pong" } </code></pre></div> <h5 dir="auto">Actual Results:</h5> <p dir="auto">The error that I added above.</p>
<p dir="auto">After I upgrade ansible 2.0.0.1 from 1.9.4, when performing a playlook always encounter intermittent fault "failed to resolve remote temporary directory from".</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ansible-playbook playlooks/playlook-filters.yml PLAY *************************************************************************** TASK [command] ***************************************************************** fatal: [YT_8_22]: FAILED! =&gt; {&quot;failed&quot;: true, &quot;msg&quot;: &quot;ERROR! failed to resolve remote temporary directory from ansible-tmp-1452759681.1-95441304852350: `( umask 22 &amp;&amp; mkdir -p \&quot;$( echo /tmp/.ansible/tmp/ansible-tmp-1452759681.1-95441304852350 )\&quot; &amp;&amp; echo \&quot;$( echo /tmp/.ansible/tmp/ansible-tmp-1452759681.1-95441304852350 )\&quot; )` returned empty string&quot;} ...ignoring TASK [debug] ******************************************************************* ok: [YT_8_22] =&gt; { &quot;msg&quot;: &quot;it failed&quot; } PLAY RECAP ********************************************************************* YT_8_22 : ok=2 changed=0 unreachable=0 failed=0"><pre class="notranslate"><code class="notranslate">$ ansible-playbook playlooks/playlook-filters.yml PLAY *************************************************************************** TASK [command] ***************************************************************** fatal: [YT_8_22]: FAILED! =&gt; {"failed": true, "msg": "ERROR! failed to resolve remote temporary directory from ansible-tmp-1452759681.1-95441304852350: `( umask 22 &amp;&amp; mkdir -p \"$( echo /tmp/.ansible/tmp/ansible-tmp-1452759681.1-95441304852350 )\" &amp;&amp; echo \"$( echo /tmp/.ansible/tmp/ansible-tmp-1452759681.1-95441304852350 )\" )` returned empty string"} ...ignoring TASK [debug] ******************************************************************* ok: [YT_8_22] =&gt; { "msg": "it failed" } PLAY RECAP ********************************************************************* YT_8_22 : ok=2 changed=0 unreachable=0 failed=0 </code></pre></div> <p dir="auto">This is happening for one of the tasks randomly, following are those tasks:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" --- - hosts: YT_8_22 tasks: - shell: /bin/true register: result ignore_errors: True - debug: msg=&quot;it failed&quot; when: result|failed"><pre class="notranslate"><code class="notranslate"> --- - hosts: YT_8_22 tasks: - shell: /bin/true register: result ignore_errors: True - debug: msg="it failed" when: result|failed </code></pre></div> <p dir="auto">I try on 1.9.4, have not seen the phenomenon. Can anybody tell me how to do that ?</p> <p dir="auto">I found another links to similar problems: <a href="https://groups.google.com/forum/#!searchin/ansible-project/Intermittent$20error%7Csort:relevance/ansible-project/FyK6au2O9KY/tWuf31P9AQAJ" rel="nofollow">https://groups.google.com/forum/#!searchin/ansible-project/Intermittent$20error%7Csort:relevance/ansible-project/FyK6au2O9KY/tWuf31P9AQAJ</a></p>
1
<p dir="auto">I want to use <a href="https://sourcegraph.com" rel="nofollow">Sourcegraph code search and code review</a> with scikit-learn. A project maintainer needs to enable it to set up a webhook so the code is up-to-date there.</p> <p dir="auto">Could you please enable scikit-learn on <a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/sourcegraph/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/sourcegraph">@sourcegraph</a> by going to <a href="https://sourcegraph.com/github.com/scikit-learn/scikit-learn" rel="nofollow">https://sourcegraph.com/github.com/scikit-learn/scikit-learn</a> and clicking on Settings? (It should only take 15 seconds.)</p> <p dir="auto">Thank you!</p>
<p dir="auto">I want to use <a href="https://sourcegraph.com" rel="nofollow">Sourcegraph code search and code review</a> with scikit-learn. A project maintainer needs to enable it to set up a webhook so the code is up-to-date there.</p> <p dir="auto">Could you please enable scikit-learn on <a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/sourcegraph/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/sourcegraph">@sourcegraph</a> by going to <a href="https://sourcegraph.com/github.com/scikit-learn/scikit-learn" rel="nofollow">https://sourcegraph.com/github.com/scikit-learn/scikit-learn</a> and clicking on Settings? (It should only take 15 seconds.)</p> <p dir="auto">Thank you!</p>
1
<p dir="auto">Is it possible to encrypt snapshots before it leaves the node ?<br> So that data is encrypted in flight ? May be a config variable to<br> set up password for encryption and decryption ?</p>
<p dir="auto">This concerns the encryption of snapshot data before it leaves the nodes.</p> <p dir="auto">We have 3 types of cloud snapshot repository types: Google Cloud Storage, Azure Storage and Amazon S3. <a href="https://aws.amazon.com/articles/client-side-data-encryption-with-the-aws-sdk-for-java-and-amazon-s3/" rel="nofollow">Amazon</a> and <a href="https://docs.microsoft.com/en-us/azure/storage/common/storage-client-side-encryption-java" rel="nofollow">Azure</a> support client side encryption for their java clients, but <a href="https://cloud.google.com/storage/docs/encryption/client-side-keys" rel="nofollow">Google</a> does <strong>not</strong>.</p> <p dir="auto">Amazon and Azure, which support client side encryption, allow the keys to be managed by the client (us) or by their <em>Key Management Service</em> (Vault-like). They both use the <a href="https://cloud.google.com/kms/docs/envelope-encryption" rel="nofollow">Envelope Encryption</a> method; each blob is individually AES-256 encrypted with a randomly generated (locally) key, and this key (Data/Content Encryption Key) is also encrypted with another <em>Master Key</em> (locally or by the <em>Vault</em> service) and then stored alongside the blob in its metadata. The envelope encryption facilitates <em>Master Key</em> rotation because only the small <em>(D/C)EK</em> key has to be re-encrypted, rather than the complete blob.</p> <p dir="auto">On the ES side we discussed on having a <em>single fixed URN key handler</em> at the repository settings level.<br> This URN identifies the <em>Master Key</em>; for example this could point to a key on the Amazon Vault Service or the Keys on each node's keystore. In this alternative it is not possible to rotate the keys via the repository API (it might be possible to do it outside ES, which is obviously preferable, but see below).</p> <p dir="auto">I believe this is the rough picture of the puzzle that we need to put together.</p> <p dir="auto">We oscillated between implementation alternatives, and I will lay out the one which I think is favorable. Whatever solution we initially implement, given that the <em>Master Key</em> identifier is an URN we can multiplex multiple implementations for the same repository type.</p> <p dir="auto">We mirror the <em>Envelope Encryption</em> algorithm, employed by Amazon and Azure, at the <code class="notranslate">BlobContainer</code> level. The key is stored on each node's keystore (and is pointed to by the repository level URN reference).</p> <p dir="auto">Advantages:</p> <ul dir="auto"> <li>Implement once for all cloud repository types and it will even work for the file system repository type!</li> <li>Testing! We can have unit tests for the base implementation of the ~<code class="notranslate">EncryptedBlobContainer</code> and end-to-end integration tests in only one of the implementation (Amazon or FS), where we can decrypt the data on the service fixture.</li> </ul> <p dir="auto">Disadvantages:</p> <ul dir="auto"> <li>Duplicates code in one SDK</li> <li>We're in the open with Key Rotation. We might need to implement our own cmd line tool to rotate keys (download objects metadata, decrypt the key and re-encrypt it). Tool will be "easy" to implement.</li> <li>Does not support <em>Vault</em> keys.</li> </ul> <p dir="auto">In the opposite corner, there could be this alternative:<br> We use the AWS cloud library facility to implement it only for the S3 repository type. The key is stored either on the node's keystore or on the AWS Key Management Service.</p> <p dir="auto">Advantages:</p> <ul dir="auto"> <li>Easiest to implement</li> <li>Supports AWS's Vault Service</li> <li>We <em>might</em> have support for key rotation, using amazon's <a href="https://aws.amazon.com/blogs/security/how-to-encrypt-and-decrypt-your-data-with-the-aws-encryption-cli/" rel="nofollow">command line tool</a></li> </ul> <p dir="auto">Disadvantages:</p> <ul dir="auto"> <li>Only S3 repository type is supported</li> <li>Testing. We either mock the client and check that the code indeed calls the "crypto" APIs or we do an end-to-end integration test, where we decrypt the data on the fixture. Either way we kinda "test the library" rather than our code. This is pointless and brittle, but we need testing because the risks are too great.</li> </ul> <p dir="auto">Relates <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="370145189" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/34454" data-hovercard-type="issue" data-hovercard-url="/elastic/elasticsearch/issues/34454/hovercard" href="https://github.com/elastic/elasticsearch/issues/34454">#34454</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="424973630" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/40416" data-hovercard-type="pull_request" data-hovercard-url="/elastic/elasticsearch/pull/40416/hovercard" href="https://github.com/elastic/elasticsearch/pull/40416">#40416</a></p> <hr> <p dir="auto"><strong>EDITED 28.01.2021 Backlog:</strong></p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Add the new API that changes the password for a given encrypted repository.<br> The encrypted repository must already be configured with the correct password. The API iterates over all the associated<br> wrapped DEKs (contained inside a dedicated blob container under the repository's base path), and proceeds to unwrap and re-wrap all the DEKs with the new password.<br> Finally, the old DEKs are removed, so that the old password cannot be used any longer.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> implement searchable and encrypted repositories.<br> This mainly requires implementing the AbstractBlobContainer#readBlob interface. This is slightly problematic because the association id between an encrypted blob and its DEK is prepended at the beginning of the blob, so that decryption at an internal position currently requires a seek at the beginning. Double check that the definition structure is reasonable (ie. is it searchable and encrypted or vice-versa, ping David about this).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> ensure compressed &amp; encrypted repositories work</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> investigate metered and encrypted repositories</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> thoroughly test failure scenarios where IOExceptions are thrown. Generally speaking, (although nor really true in practice) reads and writes contain<br> two operations that can fail independently. Make sure testing covers this.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> create benchmarks (distributed team is working on something that measures the throughput of a repository)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> permit (and test) encrypted HDFS repositories (it should work)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> double check that AbstractBlobContainer#blobExists and EncryptedBlobContainer#listBlobs/listBlobsByPrefix for EncryptedBlobContainer can return <code class="notranslate">true</code> and then reading to fail because of decryption problems</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> double check that we're not relying on system encoding (that strings are always written UTF-8 encoded, and reads are always decoded with the same UTF-8)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> ensure that there's no problem that EncryptedBlobContainer#writeBlobAtomic is not atomic (in general, it cann't be because a write might also generate and write the DEK, so there are two operations that can fail independently)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> ensure that it's alright for EncryptedBlobContainer#listBlobs/listBlobsByPrefix to return the encrypted blob size (which is larger), instead of the expected blob size of the decrypted blob</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> think about possibly renaming "password name" to "password label"</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> investigate repository password situation on cloud.<br> On-premise repository passwords are cached in memory when the node starts, usually requiring a node restart when configuring a new snapshot repository. The security settings implementation on cloud is different, so that maybe we can read the repository passwords immediately after they've been added, changed, without requiring a restart.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> repository password min-length limit (an encrypted repository with a short password )</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> make KDF parameters configurable</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> investigate the naming of the delegating and delegated repositories (they are the same currently, is this a problem?)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> make crypto provider selectable for operations on the client side-encrypted repo</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> test that encrypted repos can share the bucker (but different base path, otherwise we already test that the passwords must be the same) and can also share the repository client</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Revisit definition of password name in repository settings (see: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="578762432" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/53352" data-hovercard-type="pull_request" data-hovercard-url="/elastic/elasticsearch/pull/53352/hovercard?comment_id=409314119&amp;comment_type=review_comment" href="https://github.com/elastic/elasticsearch/pull/53352#discussion_r409314119">#53352 (comment)</a> )</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Settle on the specification for encrypted and searchable snapshots (ping David about it)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Investigate if versioning if individual encrypted blobs is necessary <a href="https://github.com/elastic/elasticsearch/pull/53352/files#r444383568">https://github.com/elastic/elasticsearch/pull/53352/files#r444383568</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Investigate if we can guarantee that DEKs do not change inside a given shard</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Report encryption stats (from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="578762432" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/53352" data-hovercard-type="pull_request" data-hovercard-url="/elastic/elasticsearch/pull/53352/hovercard?comment_id=432261031&amp;comment_type=review_comment" href="https://github.com/elastic/elasticsearch/pull/53352#discussion_r432261031">#53352 (comment)</a>)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> test FIPS negative behaviour (that a short password doesn't crash the node or something).</li> </ul>
1
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">core<br> (It concerns strings encrypted via <code class="notranslate">ansible-vault</code>.)</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.4.1.0 config file = /home/flaf/MesDocs/informatique/docs/mes_notes/git/ansible-tice/ansible.cfg configured module search path = [u'/home/flaf/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/dist-packages/ansible executable location = /usr/bin/ansible python version = 2.7.13 (default, Jan 19 2017, 14:48:08) [GCC 6.3.0 20170118]"><pre class="notranslate"><code class="notranslate">ansible 2.4.1.0 config file = /home/flaf/MesDocs/informatique/docs/mes_notes/git/ansible-tice/ansible.cfg configured module search path = [u'/home/flaf/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/dist-packages/ansible executable location = /usr/bin/ansible python version = 2.7.13 (default, Jan 19 2017, 14:48:08) [GCC 6.3.0 20170118] </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ANSIBLE_NOCOWS(/home/flaf/MesDocs/informatique/docs/mes_notes/git/ansible-tice/ansible.cfg) = True DEFAULT_BECOME(/home/flaf/MesDocs/informatique/docs/mes_notes/git/ansible-tice/ansible.cfg) = True DEFAULT_HOST_LIST(/home/flaf/MesDocs/informatique/docs/mes_notes/git/ansible-tice/ansible.cfg) = [u'/home/flaf/MesDocs/informatique/docs/mes_n DEFAULT_ROLES_PATH(/home/flaf/MesDocs/informatique/docs/mes_notes/git/ansible-tice/ansible.cfg) = [u'/home/flaf/MesDocs/informatique/docs/mes_"><pre class="notranslate"><code class="notranslate">ANSIBLE_NOCOWS(/home/flaf/MesDocs/informatique/docs/mes_notes/git/ansible-tice/ansible.cfg) = True DEFAULT_BECOME(/home/flaf/MesDocs/informatique/docs/mes_notes/git/ansible-tice/ansible.cfg) = True DEFAULT_HOST_LIST(/home/flaf/MesDocs/informatique/docs/mes_notes/git/ansible-tice/ansible.cfg) = [u'/home/flaf/MesDocs/informatique/docs/mes_n DEFAULT_ROLES_PATH(/home/flaf/MesDocs/informatique/docs/mes_notes/git/ansible-tice/ansible.cfg) = [u'/home/flaf/MesDocs/informatique/docs/mes_ </code></pre></div> <h5 dir="auto">OS / ENVIRONMENT</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="~$ lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 9.2 (stretch) Release: 9.2 Codename: stretch"><pre class="notranslate"><code class="notranslate">~$ lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 9.2 (stretch) Release: 9.2 Codename: stretch </code></pre></div> <h5 dir="auto">SUMMARY</h5> <p dir="auto">If a string variable is encrypted via <code class="notranslate">ansible-vault</code>, its type is not string.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">Here is the playbook to reproduce the problem:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="--- - hosts: localhost gather_facts: False vars: key1: 'abcdef' # key2 is equal to 'abcdef' too but encrypted via `ansible-vault`. key2: !vault | $ANSIBLE_VAULT;1.1;AES256 65326230313463613961666434396131646432343565333835383433336436653661643835363336 3133653264363162376164373630343238353833383631370a616632303532666161643936383266 30623564373335633431323532313264366533313366626635303963303431383135633435303364 3036333436663037650a373336643666313761653564393963313162616339643436316463313938 3664 tasks: - debug: msg: 'value of key1 =&gt; {{ key1 }}' - debug: msg: 'value of key2 =&gt; {{ key2 }}' - debug: msg: 'result of the test [key1 is string] =&gt; {{ key1 is string }}' - debug: msg: 'result of the test [(key1 | length) &gt; 0] =&gt; {{ (key1 | length) &gt; 0 }}' - debug: msg: 'result of the test [key2 is string] =&gt; {{ key2 is string }}' - debug: msg: 'result of the test [(key2 | length) &gt; 0] =&gt; {{ (key2 | length) &gt; 0 }}'"><pre class="notranslate">--- - <span class="pl-ent">hosts</span>: <span class="pl-s">localhost</span> <span class="pl-ent">gather_facts</span>: <span class="pl-c1">False</span> <span class="pl-ent">vars</span>: <span class="pl-ent">key1</span>: <span class="pl-s"><span class="pl-pds">'</span>abcdef<span class="pl-pds">'</span></span> <span class="pl-c"><span class="pl-c">#</span> key2 is equal to 'abcdef' too but encrypted via `ansible-vault`.</span> <span class="pl-ent">key2</span>: <span class="pl-k">!vault</span> <span class="pl-s">|</span> <span class="pl-s"> $ANSIBLE_VAULT;1.1;AES256</span> <span class="pl-s"> 65326230313463613961666434396131646432343565333835383433336436653661643835363336</span> <span class="pl-s"> 3133653264363162376164373630343238353833383631370a616632303532666161643936383266</span> <span class="pl-s"> 30623564373335633431323532313264366533313366626635303963303431383135633435303364</span> <span class="pl-s"> 3036333436663037650a373336643666313761653564393963313162616339643436316463313938</span> <span class="pl-s"> 3664</span> <span class="pl-s"></span> <span class="pl-ent">tasks</span>: - <span class="pl-ent">debug</span>: <span class="pl-ent">msg</span>: <span class="pl-s"><span class="pl-pds">'</span>value of key1 =&gt; {{ key1 }}<span class="pl-pds">'</span></span> - <span class="pl-ent">debug</span>: <span class="pl-ent">msg</span>: <span class="pl-s"><span class="pl-pds">'</span>value of key2 =&gt; {{ key2 }}<span class="pl-pds">'</span></span> - <span class="pl-ent">debug</span>: <span class="pl-ent">msg</span>: <span class="pl-s"><span class="pl-pds">'</span>result of the test [key1 is string] =&gt; {{ key1 is string }}<span class="pl-pds">'</span></span> - <span class="pl-ent">debug</span>: <span class="pl-ent">msg</span>: <span class="pl-s"><span class="pl-pds">'</span>result of the test [(key1 | length) &gt; 0] =&gt; {{ (key1 | length) &gt; 0 }}<span class="pl-pds">'</span></span> - <span class="pl-ent">debug</span>: <span class="pl-ent">msg</span>: <span class="pl-s"><span class="pl-pds">'</span>result of the test [key2 is string] =&gt; {{ key2 is string }}<span class="pl-pds">'</span></span> - <span class="pl-ent">debug</span>: <span class="pl-ent">msg</span>: <span class="pl-s"><span class="pl-pds">'</span>result of the test [(key2 | length) &gt; 0] =&gt; {{ (key2 | length) &gt; 0 }}<span class="pl-pds">'</span></span></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">According to me, the expected result should be:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="### Warning this is not the real case. ### ~$ ansible-playbook --ask-vault-pass /tmp/playbook.yaml Vault password: PLAY [localhost] **************************************************************** TASK [debug] ******************************************************************** ok: [localhost] =&gt; { &quot;msg&quot;: &quot;value of key1 =&gt; abcdef&quot; } TASK [debug] ******************************************************************** ok: [localhost] =&gt; { &quot;msg&quot;: &quot;value of key2 =&gt; abcedf&quot; } TASK [debug] ******************************************************************** ok: [localhost] =&gt; { &quot;msg&quot;: &quot;result of the test [key1 is string] =&gt; True&quot; } TASK [debug] ******************************************************************** ok: [localhost] =&gt; { &quot;msg&quot;: &quot;result of the test [(key1 | length) &gt; 0] =&gt; True&quot; } TASK [debug] ******************************************************************** ok: [localhost] =&gt; { &quot;msg&quot;: &quot;result of the test [key2 is string] =&gt; True&quot; ### [1] ### } TASK [debug] ******************************************************************** ok: [localhost] =&gt; { &quot;msg&quot;: &quot;result of the test [(key2 | length) &gt; 0] =&gt; True&quot; ### [2] ### } PLAY RECAP ********************************************************************** localhost : ok=6 changed=0 unreachable=0 failed=0 "><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span>## Warning this is not the real case. ###</span> <span class="pl-k">~</span>$ ansible-playbook --ask-vault-pass /tmp/playbook.yaml Vault password: PLAY [localhost] <span class="pl-k">****************************************************************</span> TASK [debug] <span class="pl-k">********************************************************************</span> ok: [localhost] =<span class="pl-k">&gt;</span> { <span class="pl-s"><span class="pl-pds">"</span>msg<span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>value of key1 =&gt; abcdef<span class="pl-pds">"</span></span> } TASK [debug] <span class="pl-k">********************************************************************</span> ok: [localhost] =<span class="pl-k">&gt;</span> { <span class="pl-s"><span class="pl-pds">"</span>msg<span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>value of key2 =&gt; abcedf<span class="pl-pds">"</span></span> } TASK [debug] <span class="pl-k">********************************************************************</span> ok: [localhost] =<span class="pl-k">&gt;</span> { <span class="pl-s"><span class="pl-pds">"</span>msg<span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>result of the test [key1 is string] =&gt; True<span class="pl-pds">"</span></span> } TASK [debug] <span class="pl-k">********************************************************************</span> ok: [localhost] =<span class="pl-k">&gt;</span> { <span class="pl-s"><span class="pl-pds">"</span>msg<span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>result of the test [(key1 | length) &gt; 0] =&gt; True<span class="pl-pds">"</span></span> } TASK [debug] <span class="pl-k">********************************************************************</span> ok: [localhost] =<span class="pl-k">&gt;</span> { <span class="pl-s"><span class="pl-pds">"</span>msg<span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>result of the test [key2 is string] =&gt; True<span class="pl-pds">"</span></span> <span class="pl-c"><span class="pl-c">#</span>## [1] ###</span> } TASK [debug] <span class="pl-k">********************************************************************</span> ok: [localhost] =<span class="pl-k">&gt;</span> { <span class="pl-s"><span class="pl-pds">"</span>msg<span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>result of the test [(key2 | length) &gt; 0] =&gt; True<span class="pl-pds">"</span></span> <span class="pl-c"><span class="pl-c">#</span>## [2] ###</span> } PLAY RECAP <span class="pl-k">**********************************************************************</span> localhost <span class="pl-c1">:</span> ok=6 changed=0 unreachable=0 failed=0 </pre></div> <p dir="auto">See carefully the tasks with the mention <code class="notranslate">### [1] ###</code> and <code class="notranslate">### [2] ###</code>. The result is different is the real case below.</p> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">But the result is:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="### Here is the real case. ### ~$ ansible-playbook --ask-vault-pass /tmp/playbook.yaml Vault password: PLAY [localhost] **************************************************************** TASK [debug] ******************************************************************** ok: [localhost] =&gt; { &quot;msg&quot;: &quot;value of key1 =&gt; abcdef&quot; } TASK [debug] ******************************************************************** ok: [localhost] =&gt; { &quot;msg&quot;: &quot;value of key2 =&gt; abcedf&quot; } TASK [debug] ******************************************************************** ok: [localhost] =&gt; { &quot;msg&quot;: &quot;result of the test [key1 is string] =&gt; True&quot; } TASK [debug] ******************************************************************** ok: [localhost] =&gt; { &quot;msg&quot;: &quot;result of the test [(key1 | length) &gt; 0] =&gt; True&quot; } TASK [debug] ******************************************************************** ok: [localhost] =&gt; { &quot;msg&quot;: &quot;result of the test [key2 is string] =&gt; False&quot; ### [1] ### } TASK [debug] ******************************************************************** fatal: [localhost]: FAILED! =&gt; {&quot;msg&quot;: &quot;Unexpected templating type error occurred on (result of the test [(key2 | length) &gt; 0] =&gt; {{ (key2 | length) &gt; 0 }}): object of type 'AnsibleVaultEncryptedUnicode' has no len()&quot;} to retry, use: --limit @/tmp/playbook.retry ### [2] ### PLAY RECAP ********************************************************************** localhost : ok=5 changed=0 unreachable=0 failed=1"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span>## Here is the real case. ###</span> <span class="pl-k">~</span>$ ansible-playbook --ask-vault-pass /tmp/playbook.yaml Vault password: PLAY [localhost] <span class="pl-k">****************************************************************</span> TASK [debug] <span class="pl-k">********************************************************************</span> ok: [localhost] =<span class="pl-k">&gt;</span> { <span class="pl-s"><span class="pl-pds">"</span>msg<span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>value of key1 =&gt; abcdef<span class="pl-pds">"</span></span> } TASK [debug] <span class="pl-k">********************************************************************</span> ok: [localhost] =<span class="pl-k">&gt;</span> { <span class="pl-s"><span class="pl-pds">"</span>msg<span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>value of key2 =&gt; abcedf<span class="pl-pds">"</span></span> } TASK [debug] <span class="pl-k">********************************************************************</span> ok: [localhost] =<span class="pl-k">&gt;</span> { <span class="pl-s"><span class="pl-pds">"</span>msg<span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>result of the test [key1 is string] =&gt; True<span class="pl-pds">"</span></span> } TASK [debug] <span class="pl-k">********************************************************************</span> ok: [localhost] =<span class="pl-k">&gt;</span> { <span class="pl-s"><span class="pl-pds">"</span>msg<span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>result of the test [(key1 | length) &gt; 0] =&gt; True<span class="pl-pds">"</span></span> } TASK [debug] <span class="pl-k">********************************************************************</span> ok: [localhost] =<span class="pl-k">&gt;</span> { <span class="pl-s"><span class="pl-pds">"</span>msg<span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>result of the test [key2 is string] =&gt; False<span class="pl-pds">"</span></span> <span class="pl-c"><span class="pl-c">#</span>## [1] ###</span> } TASK [debug] <span class="pl-k">********************************************************************</span> fatal: [localhost]: FAILED<span class="pl-k">!</span> =<span class="pl-k">&gt;</span> {<span class="pl-s"><span class="pl-pds">"</span>msg<span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>Unexpected templating type error occurred</span> <span class="pl-s">on (result of the test [(key2 | length) &gt; 0] =&gt; {{ (key2 | length) &gt; 0 }}): object of type</span> <span class="pl-s">'AnsibleVaultEncryptedUnicode' has no len()<span class="pl-pds">"</span></span>} to retry, use: --limit @/tmp/playbook.retry <span class="pl-c"><span class="pl-c">#</span>## [2] ###</span> PLAY RECAP <span class="pl-k">**********************************************************************</span> localhost <span class="pl-c1">:</span> ok=5 changed=0 unreachable=0 failed=1</pre></div> <p dir="auto">There are differences in the 2 last tasks.</p> <p dir="auto">Regards.</p>
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">vault</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="devel"><pre class="notranslate"><code class="notranslate">devel </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <h5 dir="auto">OS / ENVIRONMENT</h5> <h5 dir="auto">SUMMARY</h5> <p dir="auto">A single vault encrypted value does not get decrypted in a jinja2 pipeline.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">Don't worry the below vault data is just useless strings.</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="--- - hosts: localhost gather_facts: false vars: the_password: !vault | $ANSIBLE_VAULT;1.1;AES256 66653436353263336535316333313533666563386463623562396234313064643430323066626538 3234393066313964393861613431313832306439383633340a653361636537303033313137613933 33653333633139353736636332333237613761636430356665383839663164363739323337643333 6466313434306462370a663539346162623836626165343830666536646631616165636438646639 6134 tasks: - command: 'echo {{ the_password|string|type_debug }}'"><pre class="notranslate">--- - <span class="pl-ent">hosts</span>: <span class="pl-s">localhost</span> <span class="pl-ent">gather_facts</span>: <span class="pl-c1">false</span> <span class="pl-ent">vars</span>: <span class="pl-ent">the_password</span>: <span class="pl-k">!vault</span> <span class="pl-s">|</span> <span class="pl-s"> $ANSIBLE_VAULT;1.1;AES256</span> <span class="pl-s"> 66653436353263336535316333313533666563386463623562396234313064643430323066626538</span> <span class="pl-s"> 3234393066313964393861613431313832306439383633340a653361636537303033313137613933</span> <span class="pl-s"> 33653333633139353736636332333237613761636430356665383839663164363739323337643333</span> <span class="pl-s"> 6466313434306462370a663539346162623836626165343830666536646631616165636438646639</span> <span class="pl-s"> 6134</span> <span class="pl-s"></span> <span class="pl-ent">tasks</span>: - <span class="pl-ent">command</span>: <span class="pl-s"><span class="pl-pds">'</span>echo {{ the_password|string|type_debug }}<span class="pl-pds">'</span></span></pre></div> <p dir="auto">This outputs:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&quot;stdout&quot;: &quot;AnsibleVaultEncryptedUnicode&quot;"><pre class="notranslate"><code class="notranslate">"stdout": "AnsibleVaultEncryptedUnicode" </code></pre></div> <p dir="auto">This is a little bit of a contrived example, but what it shows, is that if you want to do something like:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- command: &quot;some_command {{ the_password|quote }}&quot;"><pre class="notranslate"><code class="notranslate">- command: "some_command {{ the_password|quote }}" </code></pre></div> <p dir="auto">You will end up with the <code class="notranslate">$ANSIBLE_VAULT;...</code> string instead of the decrypted value</p> <h5 dir="auto">EXPECTED 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">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>
1
<h2 dir="auto">Reproducible example</h2> <p dir="auto">Install Celery 4.4.7:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="python3 -m pip install -U 'celery[redis]==4.4.7'"><pre class="notranslate">python3 -m pip install -U <span class="pl-s"><span class="pl-pds">'</span>celery[redis]==4.4.7<span class="pl-pds">'</span></span></pre></div> <p dir="auto">Start Redis on 6395:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="redis-server --daemonize yes --port 6395"><pre class="notranslate">redis-server --daemonize yes --port 6395</pre></div> <p dir="auto">Create <code class="notranslate">celeryfoo.py</code>:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import time from celery import Celery celery = Celery(&quot;hi&quot;) redis_host = &quot;redis://127.0.0.1:6395/0&quot; celery.conf.broker_url = redis_host celery.conf.result_backend = redis_host celery.conf.beat_schedule = { &quot;update-foo&quot;: { &quot;task&quot;: 'celeryfoo.update', &quot;schedule&quot;: 15, &quot;args&quot;: (1, 2, 3) }, } celery.conf.worker_redirect_stdouts = False celery.conf.worker_log_color = False @celery.task def update(a, b, c): with open(&quot;foo.log&quot;, &quot;a&quot;) as f: f.write(str(time.time()) + &quot;\n&quot;) return a, b, c"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">time</span> <span class="pl-k">from</span> <span class="pl-s1">celery</span> <span class="pl-k">import</span> <span class="pl-v">Celery</span> <span class="pl-s1">celery</span> <span class="pl-c1">=</span> <span class="pl-v">Celery</span>(<span class="pl-s">"hi"</span>) <span class="pl-s1">redis_host</span> <span class="pl-c1">=</span> <span class="pl-s">"redis://127.0.0.1:6395/0"</span> <span class="pl-s1">celery</span>.<span class="pl-s1">conf</span>.<span class="pl-s1">broker_url</span> <span class="pl-c1">=</span> <span class="pl-s1">redis_host</span> <span class="pl-s1">celery</span>.<span class="pl-s1">conf</span>.<span class="pl-s1">result_backend</span> <span class="pl-c1">=</span> <span class="pl-s1">redis_host</span> <span class="pl-s1">celery</span>.<span class="pl-s1">conf</span>.<span class="pl-s1">beat_schedule</span> <span class="pl-c1">=</span> { <span class="pl-s">"update-foo"</span>: { <span class="pl-s">"task"</span>: <span class="pl-s">'celeryfoo.update'</span>, <span class="pl-s">"schedule"</span>: <span class="pl-c1">15</span>, <span class="pl-s">"args"</span>: (<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>) }, } <span class="pl-s1">celery</span>.<span class="pl-s1">conf</span>.<span class="pl-s1">worker_redirect_stdouts</span> <span class="pl-c1">=</span> <span class="pl-c1">False</span> <span class="pl-s1">celery</span>.<span class="pl-s1">conf</span>.<span class="pl-s1">worker_log_color</span> <span class="pl-c1">=</span> <span class="pl-c1">False</span> <span class="pl-en">@<span class="pl-s1">celery</span>.<span class="pl-s1">task</span></span> <span class="pl-k">def</span> <span class="pl-en">update</span>(<span class="pl-s1">a</span>, <span class="pl-s1">b</span>, <span class="pl-s1">c</span>): <span class="pl-k">with</span> <span class="pl-en">open</span>(<span class="pl-s">"foo.log"</span>, <span class="pl-s">"a"</span>) <span class="pl-k">as</span> <span class="pl-s1">f</span>: <span class="pl-s1">f</span>.<span class="pl-en">write</span>(<span class="pl-en">str</span>(<span class="pl-s1">time</span>.<span class="pl-en">time</span>()) <span class="pl-c1">+</span> <span class="pl-s">"<span class="pl-cce">\n</span>"</span>) <span class="pl-k">return</span> <span class="pl-s1">a</span>, <span class="pl-s1">b</span>, <span class="pl-s1">c</span></pre></div> <p dir="auto">Start celery worker:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="celery --no-color -A celeryfoo:celery worker --detach -l DEBUG --logfile celery.log"><pre class="notranslate">celery --no-color -A celeryfoo:celery worker --detach -l DEBUG --logfile celery.log</pre></div> <p dir="auto">Check <code class="notranslate">tail -f celery.log</code>:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[2020-09-28 11:01:51,908: ERROR/MainProcess] consumer: Cannot connect to amqp://guest:**@127.0.0.1:5672//: [Errno 61] Connection refused. Trying again in 32.00 seconds... (16/100) [2020-09-28 11:02:24,029: ERROR/MainProcess] consumer: Cannot connect to amqp://guest:**@127.0.0.1:5672//: [Errno 61] Connection refused. Trying again in 32.00 seconds... (16/100) [2020-09-28 11:02:56,118: ERROR/MainProcess] consumer: Cannot connect to amqp://guest:**@127.0.0.1:5672//: [Errno 61] Connection refused. Trying again in 32.00 seconds... (16/100) [2020-09-28 11:03:28,221: ERROR/MainProcess] consumer: Cannot connect to amqp://guest:**@127.0.0.1:5672//: [Errno 61] Connection refused. Trying again in 32.00 seconds... (16/100)"><pre class="notranslate">[2020-09-28 11:01:51,908: ERROR/MainProcess] consumer: Cannot connect to amqp://guest:<span class="pl-k">**</span>@127.0.0.1:5672//: [Errno 61] Connection refused. Trying again <span class="pl-k">in</span> 32.00 seconds... (16/100) [2020-09-28 11:02:24,029: ERROR/MainProcess] consumer: Cannot connect to amqp://guest:<span class="pl-k">**</span>@127.0.0.1:5672//: [Errno 61] Connection refused. Trying again <span class="pl-k">in</span> 32.00 seconds... (16/100) [2020-09-28 11:02:56,118: ERROR/MainProcess] consumer: Cannot connect to amqp://guest:<span class="pl-k">**</span>@127.0.0.1:5672//: [Errno 61] Connection refused. Trying again <span class="pl-k">in</span> 32.00 seconds... (16/100) [2020-09-28 11:03:28,221: ERROR/MainProcess] consumer: Cannot connect to amqp://guest:<span class="pl-k">**</span>@127.0.0.1:5672//: [Errno 61] Connection refused. Trying again <span class="pl-k">in</span> 32.00 seconds... (16/100)</pre></div> <h2 dir="auto">Mandatory Debugging Information</h2> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ sw_vers ProductName: Mac OS X ProductVersion: 10.15.7 BuildVersion: 19H2 $ redis-cli -p 6395 PING PONG $ celery --version 4.4.7 (cliffs) $ python3 --version Python 3.8.5"><pre class="notranslate">$ sw_vers ProductName: Mac OS X ProductVersion: 10.15.7 BuildVersion: 19H2 $ redis-cli -p 6395 PING PONG $ celery --version 4.4.7 (cliffs) $ python3 --version Python 3.8.5</pre></div>
<p dir="auto">Hi have an application running with Celery 4.4.2 with the following Daemonizing code:</p> <p dir="auto">/etc/default/my_celery_service</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# Names of nodes to start # most people will only start one node: CELERYD_NODES=&quot;worker1&quot; # but you can also start multiple and configure settings # for each in CELERYD_OPTS #CELERYD_NODES=&quot;worker1 worker2 worker3&quot; # alternatively, you can specify the number of nodes to start: #CELERYD_NODES=10 # Absolute or relative path to the 'celery' command: CELERY_BIN=&quot;/opt/climmob_env/bin/celery&quot; #CELERY_BIN=&quot;/virtualenvs/def/bin/celery&quot; # App instance to use # comment out this line if you don't use an app #CELERY_APP=&quot;proj&quot; # or fully qualified: CELERY_APP=&quot;climmob.config.celery_app&quot; # Where to chdir at start. CELERYD_CHDIR=&quot;/opt/climmob/&quot; # Extra command-line arguments to the worker CELERYD_OPTS=&quot;--time-limit=300 --concurrency=8&quot; # Configure node-specific settings by appending node name to arguments: #CELERYD_OPTS=&quot;--time-limit=300 -c 8 -c:worker2 4 -c:worker3 2 -Ofair:worker1&quot; # Set logging level to DEBUG #CELERYD_LOG_LEVEL=&quot;DEBUG&quot; # %n will be replaced with the first part of the nodename. CELERYD_LOG_FILE=&quot;/opt/climmob_celery/log/%n%I.log&quot; CELERYD_PID_FILE=&quot;/opt/climmob_celery/run/%n.pid&quot; # Workers should run as an unprivileged user. # You need to create this user manually (or you can choose # a user/group combination that already exists (e.g., nobody). CELERYD_USER=&quot;root&quot; CELERYD_GROUP=&quot;root&quot; # If enabled pid and log directories will be created if missing, # and owned by the userid/group configured. CELERY_CREATE_DIRS=1"><pre class="notranslate"><code class="notranslate"># Names of nodes to start # most people will only start one node: CELERYD_NODES="worker1" # but you can also start multiple and configure settings # for each in CELERYD_OPTS #CELERYD_NODES="worker1 worker2 worker3" # alternatively, you can specify the number of nodes to start: #CELERYD_NODES=10 # Absolute or relative path to the 'celery' command: CELERY_BIN="/opt/climmob_env/bin/celery" #CELERY_BIN="/virtualenvs/def/bin/celery" # App instance to use # comment out this line if you don't use an app #CELERY_APP="proj" # or fully qualified: CELERY_APP="climmob.config.celery_app" # Where to chdir at start. CELERYD_CHDIR="/opt/climmob/" # Extra command-line arguments to the worker CELERYD_OPTS="--time-limit=300 --concurrency=8" # Configure node-specific settings by appending node name to arguments: #CELERYD_OPTS="--time-limit=300 -c 8 -c:worker2 4 -c:worker3 2 -Ofair:worker1" # Set logging level to DEBUG #CELERYD_LOG_LEVEL="DEBUG" # %n will be replaced with the first part of the nodename. CELERYD_LOG_FILE="/opt/climmob_celery/log/%n%I.log" CELERYD_PID_FILE="/opt/climmob_celery/run/%n.pid" # Workers should run as an unprivileged user. # You need to create this user manually (or you can choose # a user/group combination that already exists (e.g., nobody). CELERYD_USER="root" CELERYD_GROUP="root" # If enabled pid and log directories will be created if missing, # and owned by the userid/group configured. CELERY_CREATE_DIRS=1 </code></pre></div> <p dir="auto">/etc/init.d/my_celery_service</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#!/bin/sh -e # ============================================ # celeryd - Starts the Celery worker daemon. # ============================================ # # :Usage: /etc/init.d/celeryd {start|stop|force-reload|restart|try-restart|status} # :Configuration file: /etc/default/celeryd (or /usr/local/etc/celeryd on BSD) # # See http://docs.celeryproject.org/en/latest/userguide/daemonizing.html#generic-init-scripts ### BEGIN INIT INFO # Provides: celeryd # Required-Start: $network $local_fs $remote_fs # Required-Stop: $network $local_fs $remote_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: celery task worker daemon ### END INIT INFO # # # To implement separate init-scripts, copy this script and give it a different # name. That is, if your new application named &quot;little-worker&quot; needs an init, # you should use: # # cp /etc/init.d/celeryd /etc/init.d/little-worker # # You can then configure this by manipulating /etc/default/little-worker. # VERSION=10.1 echo &quot;celery init v${VERSION}.&quot; if [ $(id -u) -ne 0 ]; then echo &quot;Error: This program can only be used by the root user.&quot; echo &quot; Unprivileged users must use the 'celery multi' utility, &quot; echo &quot; or 'celery worker --detach'.&quot; exit 1 fi origin_is_runlevel_dir () { set +e dirname $0 | grep -q &quot;/etc/rc.\.d&quot; echo $? } # Can be a runlevel symlink (e.g., S02celeryd) if [ $(origin_is_runlevel_dir) -eq 0 ]; then SCRIPT_FILE=$(readlink &quot;$0&quot;) else SCRIPT_FILE=&quot;$0&quot; fi SCRIPT_NAME=&quot;$(basename &quot;$SCRIPT_FILE&quot;)&quot; DEFAULT_USER=&quot;celery&quot; DEFAULT_PID_FILE=&quot;/var/run/celery/%n.pid&quot; DEFAULT_LOG_FILE=&quot;/var/log/celery/%n%I.log&quot; DEFAULT_LOG_LEVEL=&quot;INFO&quot; DEFAULT_NODES=&quot;celery&quot; DEFAULT_CELERYD=&quot;-m celery worker --detach&quot; if [ -d &quot;/etc/default&quot; ]; then CELERY_CONFIG_DIR=&quot;/etc/default&quot; else CELERY_CONFIG_DIR=&quot;/usr/local/etc&quot; fi CELERY_DEFAULTS=${CELERY_DEFAULTS:-&quot;$CELERY_CONFIG_DIR/${SCRIPT_NAME}&quot;} # Make sure executable configuration script is owned by root _config_sanity() { local path=&quot;$1&quot; local owner=$(ls -ld &quot;$path&quot; | awk '{print $3}') local iwgrp=$(ls -ld &quot;$path&quot; | cut -b 6) local iwoth=$(ls -ld &quot;$path&quot; | cut -b 9) if [ &quot;$(id -u $owner)&quot; != &quot;0&quot; ]; then echo &quot;Error: Config script '$path' must be owned by root!&quot; echo echo &quot;Resolution:&quot; echo &quot;Review the file carefully, and make sure it hasn't been &quot; echo &quot;modified with mailicious intent. When sure the &quot; echo &quot;script is safe to execute with superuser privileges &quot; echo &quot;you can change ownership of the script:&quot; echo &quot; $ sudo chown root '$path'&quot; exit 1 fi if [ &quot;$iwoth&quot; != &quot;-&quot; ]; then # S_IWOTH echo &quot;Error: Config script '$path' cannot be writable by others!&quot; echo echo &quot;Resolution:&quot; echo &quot;Review the file carefully, and make sure it hasn't been &quot; echo &quot;modified with malicious intent. When sure the &quot; echo &quot;script is safe to execute with superuser privileges &quot; echo &quot;you can change the scripts permissions:&quot; echo &quot; $ sudo chmod 640 '$path'&quot; exit 1 fi if [ &quot;$iwgrp&quot; != &quot;-&quot; ]; then # S_IWGRP echo &quot;Error: Config script '$path' cannot be writable by group!&quot; echo echo &quot;Resolution:&quot; echo &quot;Review the file carefully, and make sure it hasn't been &quot; echo &quot;modified with malicious intent. When sure the &quot; echo &quot;script is safe to execute with superuser privileges &quot; echo &quot;you can change the scripts permissions:&quot; echo &quot; $ sudo chmod 640 '$path'&quot; exit 1 fi } if [ -f &quot;$CELERY_DEFAULTS&quot; ]; then _config_sanity &quot;$CELERY_DEFAULTS&quot; echo &quot;Using config script: $CELERY_DEFAULTS&quot; . &quot;$CELERY_DEFAULTS&quot; fi # Sets --app argument for CELERY_BIN CELERY_APP_ARG=&quot;&quot; if [ ! -z &quot;$CELERY_APP&quot; ]; then CELERY_APP_ARG=&quot;--app=$CELERY_APP&quot; fi # Options to su # can be used to enable login shell (CELERYD_SU_ARGS=&quot;-l&quot;), # or even to use start-stop-daemon instead of su. CELERYD_SU=${CELERY_SU:-&quot;su&quot;} CELERYD_SU_ARGS=${CELERYD_SU_ARGS:-&quot;-s /bin/bash&quot;} CELERYD_USER=${CELERYD_USER:-$DEFAULT_USER} # Set CELERY_CREATE_DIRS to always create log/pid dirs. CELERY_CREATE_DIRS=${CELERY_CREATE_DIRS:-0} CELERY_CREATE_RUNDIR=$CELERY_CREATE_DIRS CELERY_CREATE_LOGDIR=$CELERY_CREATE_DIRS if [ -z &quot;$CELERYD_PID_FILE&quot; ]; then CELERYD_PID_FILE=&quot;$DEFAULT_PID_FILE&quot; CELERY_CREATE_RUNDIR=1 fi if [ -z &quot;$CELERYD_LOG_FILE&quot; ]; then CELERYD_LOG_FILE=&quot;$DEFAULT_LOG_FILE&quot; CELERY_CREATE_LOGDIR=1 fi CELERYD_LOG_LEVEL=${CELERYD_LOG_LEVEL:-${CELERYD_LOGLEVEL:-$DEFAULT_LOG_LEVEL}} CELERY_BIN=${CELERY_BIN:-&quot;celery&quot;} CELERYD_MULTI=${CELERYD_MULTI:-&quot;$CELERY_BIN multi&quot;} CELERYD_NODES=${CELERYD_NODES:-$DEFAULT_NODES} export CELERY_LOADER if [ -n &quot;$2&quot; ]; then CELERYD_OPTS=&quot;$CELERYD_OPTS $2&quot; fi CELERYD_LOG_DIR=`dirname $CELERYD_LOG_FILE` CELERYD_PID_DIR=`dirname $CELERYD_PID_FILE` # Extra start-stop-daemon options, like user/group. if [ -n &quot;$CELERYD_CHDIR&quot; ]; then DAEMON_OPTS=&quot;$DAEMON_OPTS --workdir=$CELERYD_CHDIR&quot; fi check_dev_null() { if [ ! -c /dev/null ]; then echo &quot;/dev/null is not a character device!&quot; exit 75 # EX_TEMPFAIL fi } maybe_die() { if [ $? -ne 0 ]; then echo &quot;Exiting: $* (errno $?)&quot; exit 77 # EX_NOPERM fi } create_default_dir() { if [ ! -d &quot;$1&quot; ]; then echo &quot;- Creating default directory: '$1'&quot; mkdir -p &quot;$1&quot; maybe_die &quot;Couldn't create directory $1&quot; echo &quot;- Changing permissions of '$1' to 02755&quot; chmod 02755 &quot;$1&quot; maybe_die &quot;Couldn't change permissions for $1&quot; if [ -n &quot;$CELERYD_USER&quot; ]; then echo &quot;- Changing owner of '$1' to '$CELERYD_USER'&quot; chown &quot;$CELERYD_USER&quot; &quot;$1&quot; maybe_die &quot;Couldn't change owner of $1&quot; fi if [ -n &quot;$CELERYD_GROUP&quot; ]; then echo &quot;- Changing group of '$1' to '$CELERYD_GROUP'&quot; chgrp &quot;$CELERYD_GROUP&quot; &quot;$1&quot; maybe_die &quot;Couldn't change group of $1&quot; fi fi } check_paths() { if [ $CELERY_CREATE_LOGDIR -eq 1 ]; then create_default_dir &quot;$CELERYD_LOG_DIR&quot; fi if [ $CELERY_CREATE_RUNDIR -eq 1 ]; then create_default_dir &quot;$CELERYD_PID_DIR&quot; fi } create_paths() { create_default_dir &quot;$CELERYD_LOG_DIR&quot; create_default_dir &quot;$CELERYD_PID_DIR&quot; } export PATH=&quot;${PATH:+$PATH:}/usr/sbin:/sbin&quot; _get_pidfiles () { # note: multi &lt; 3.1.14 output to stderr, not stdout, hence the redirect. ${CELERYD_MULTI} expand &quot;${CELERYD_PID_FILE}&quot; ${CELERYD_NODES} 2&gt;&amp;1 } _get_pids() { found_pids=0 my_exitcode=0 for pidfile in $(_get_pidfiles); do local pid=`cat &quot;$pidfile&quot;` local cleaned_pid=`echo &quot;$pid&quot; | sed -e 's/[^0-9]//g'` if [ -z &quot;$pid&quot; ] || [ &quot;$cleaned_pid&quot; != &quot;$pid&quot; ]; then echo &quot;bad pid file ($pidfile)&quot; one_failed=true my_exitcode=1 else found_pids=1 echo &quot;$pid&quot; fi if [ $found_pids -eq 0 ]; then echo &quot;${SCRIPT_NAME}: All nodes down&quot; exit $my_exitcode fi done } _chuid () { ${CELERYD_SU} ${CELERYD_SU_ARGS} &quot;$CELERYD_USER&quot; -c &quot;$CELERYD_MULTI $*&quot; } start_workers () { if [ ! -z &quot;$CELERYD_ULIMIT&quot; ]; then ulimit $CELERYD_ULIMIT fi _chuid $* start $CELERYD_NODES $DAEMON_OPTS \ --pidfile=&quot;$CELERYD_PID_FILE&quot; \ --logfile=&quot;$CELERYD_LOG_FILE&quot; \ --loglevel=&quot;$CELERYD_LOG_LEVEL&quot; \ $CELERY_APP_ARG \ $CELERYD_OPTS } dryrun () { (C_FAKEFORK=1 start_workers --verbose) } stop_workers () { _chuid stopwait $CELERYD_NODES --pidfile=&quot;$CELERYD_PID_FILE&quot; } restart_workers () { _chuid restart $CELERYD_NODES $DAEMON_OPTS \ --pidfile=&quot;$CELERYD_PID_FILE&quot; \ --logfile=&quot;$CELERYD_LOG_FILE&quot; \ --loglevel=&quot;$CELERYD_LOG_LEVEL&quot; \ $CELERY_APP_ARG \ $CELERYD_OPTS } kill_workers() { _chuid kill $CELERYD_NODES --pidfile=&quot;$CELERYD_PID_FILE&quot; } restart_workers_graceful () { echo &quot;WARNING: Use with caution in production&quot; echo &quot;The workers will attempt to restart, but they may not be able to.&quot; local worker_pids= worker_pids=`_get_pids` [ &quot;$one_failed&quot; ] &amp;&amp; exit 1 for worker_pid in $worker_pids; do local failed= kill -HUP $worker_pid 2&gt; /dev/null || failed=true if [ &quot;$failed&quot; ]; then echo &quot;${SCRIPT_NAME} worker (pid $worker_pid) could not be restarted&quot; one_failed=true else echo &quot;${SCRIPT_NAME} worker (pid $worker_pid) received SIGHUP&quot; fi done [ &quot;$one_failed&quot; ] &amp;&amp; exit 1 || exit 0 } check_status () { my_exitcode=0 found_pids=0 local one_failed= for pidfile in $(_get_pidfiles); do if [ ! -r $pidfile ]; then echo &quot;${SCRIPT_NAME} down: no pidfiles found&quot; one_failed=true break fi local node=`basename &quot;$pidfile&quot; .pid` local pid=`cat &quot;$pidfile&quot;` local cleaned_pid=`echo &quot;$pid&quot; | sed -e 's/[^0-9]//g'` if [ -z &quot;$pid&quot; ] || [ &quot;$cleaned_pid&quot; != &quot;$pid&quot; ]; then echo &quot;bad pid file ($pidfile)&quot; one_failed=true else local failed= kill -0 $pid 2&gt; /dev/null || failed=true if [ &quot;$failed&quot; ]; then echo &quot;${SCRIPT_NAME} (node $node) (pid $pid) is down, but pidfile exists!&quot; one_failed=true else echo &quot;${SCRIPT_NAME} (node $node) (pid $pid) is up...&quot; fi fi done [ &quot;$one_failed&quot; ] &amp;&amp; exit 1 || exit 0 } case &quot;$1&quot; in start) check_dev_null check_paths start_workers ;; stop) check_dev_null check_paths stop_workers ;; reload|force-reload) echo &quot;Use restart&quot; ;; status) check_status ;; restart) check_dev_null check_paths restart_workers ;; graceful) check_dev_null restart_workers_graceful ;; kill) check_dev_null kill_workers ;; dryrun) check_dev_null dryrun ;; try-restart) check_dev_null check_paths restart_workers ;; create-paths) check_dev_null create_paths ;; check-paths) check_dev_null check_paths ;; *) echo &quot;Usage: /etc/init.d/${SCRIPT_NAME} {start|stop|restart|graceful|kill|dryrun|create-paths}&quot; exit 64 # EX_USAGE ;; esac exit 0"><pre class="notranslate"><code class="notranslate">#!/bin/sh -e # ============================================ # celeryd - Starts the Celery worker daemon. # ============================================ # # :Usage: /etc/init.d/celeryd {start|stop|force-reload|restart|try-restart|status} # :Configuration file: /etc/default/celeryd (or /usr/local/etc/celeryd on BSD) # # See http://docs.celeryproject.org/en/latest/userguide/daemonizing.html#generic-init-scripts ### BEGIN INIT INFO # Provides: celeryd # Required-Start: $network $local_fs $remote_fs # Required-Stop: $network $local_fs $remote_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: celery task worker daemon ### END INIT INFO # # # To implement separate init-scripts, copy this script and give it a different # name. That is, if your new application named "little-worker" needs an init, # you should use: # # cp /etc/init.d/celeryd /etc/init.d/little-worker # # You can then configure this by manipulating /etc/default/little-worker. # VERSION=10.1 echo "celery init v${VERSION}." if [ $(id -u) -ne 0 ]; then echo "Error: This program can only be used by the root user." echo " Unprivileged users must use the 'celery multi' utility, " echo " or 'celery worker --detach'." exit 1 fi origin_is_runlevel_dir () { set +e dirname $0 | grep -q "/etc/rc.\.d" echo $? } # Can be a runlevel symlink (e.g., S02celeryd) if [ $(origin_is_runlevel_dir) -eq 0 ]; then SCRIPT_FILE=$(readlink "$0") else SCRIPT_FILE="$0" fi SCRIPT_NAME="$(basename "$SCRIPT_FILE")" DEFAULT_USER="celery" DEFAULT_PID_FILE="/var/run/celery/%n.pid" DEFAULT_LOG_FILE="/var/log/celery/%n%I.log" DEFAULT_LOG_LEVEL="INFO" DEFAULT_NODES="celery" DEFAULT_CELERYD="-m celery worker --detach" if [ -d "/etc/default" ]; then CELERY_CONFIG_DIR="/etc/default" else CELERY_CONFIG_DIR="/usr/local/etc" fi CELERY_DEFAULTS=${CELERY_DEFAULTS:-"$CELERY_CONFIG_DIR/${SCRIPT_NAME}"} # Make sure executable configuration script is owned by root _config_sanity() { local path="$1" local owner=$(ls -ld "$path" | awk '{print $3}') local iwgrp=$(ls -ld "$path" | cut -b 6) local iwoth=$(ls -ld "$path" | cut -b 9) if [ "$(id -u $owner)" != "0" ]; then echo "Error: Config script '$path' must be owned by root!" echo echo "Resolution:" echo "Review the file carefully, and make sure it hasn't been " echo "modified with mailicious intent. When sure the " echo "script is safe to execute with superuser privileges " echo "you can change ownership of the script:" echo " $ sudo chown root '$path'" exit 1 fi if [ "$iwoth" != "-" ]; then # S_IWOTH echo "Error: Config script '$path' cannot be writable by others!" echo echo "Resolution:" echo "Review the file carefully, and make sure it hasn't been " echo "modified with malicious intent. When sure the " echo "script is safe to execute with superuser privileges " echo "you can change the scripts permissions:" echo " $ sudo chmod 640 '$path'" exit 1 fi if [ "$iwgrp" != "-" ]; then # S_IWGRP echo "Error: Config script '$path' cannot be writable by group!" echo echo "Resolution:" echo "Review the file carefully, and make sure it hasn't been " echo "modified with malicious intent. When sure the " echo "script is safe to execute with superuser privileges " echo "you can change the scripts permissions:" echo " $ sudo chmod 640 '$path'" exit 1 fi } if [ -f "$CELERY_DEFAULTS" ]; then _config_sanity "$CELERY_DEFAULTS" echo "Using config script: $CELERY_DEFAULTS" . "$CELERY_DEFAULTS" fi # Sets --app argument for CELERY_BIN CELERY_APP_ARG="" if [ ! -z "$CELERY_APP" ]; then CELERY_APP_ARG="--app=$CELERY_APP" fi # Options to su # can be used to enable login shell (CELERYD_SU_ARGS="-l"), # or even to use start-stop-daemon instead of su. CELERYD_SU=${CELERY_SU:-"su"} CELERYD_SU_ARGS=${CELERYD_SU_ARGS:-"-s /bin/bash"} CELERYD_USER=${CELERYD_USER:-$DEFAULT_USER} # Set CELERY_CREATE_DIRS to always create log/pid dirs. CELERY_CREATE_DIRS=${CELERY_CREATE_DIRS:-0} CELERY_CREATE_RUNDIR=$CELERY_CREATE_DIRS CELERY_CREATE_LOGDIR=$CELERY_CREATE_DIRS if [ -z "$CELERYD_PID_FILE" ]; then CELERYD_PID_FILE="$DEFAULT_PID_FILE" CELERY_CREATE_RUNDIR=1 fi if [ -z "$CELERYD_LOG_FILE" ]; then CELERYD_LOG_FILE="$DEFAULT_LOG_FILE" CELERY_CREATE_LOGDIR=1 fi CELERYD_LOG_LEVEL=${CELERYD_LOG_LEVEL:-${CELERYD_LOGLEVEL:-$DEFAULT_LOG_LEVEL}} CELERY_BIN=${CELERY_BIN:-"celery"} CELERYD_MULTI=${CELERYD_MULTI:-"$CELERY_BIN multi"} CELERYD_NODES=${CELERYD_NODES:-$DEFAULT_NODES} export CELERY_LOADER if [ -n "$2" ]; then CELERYD_OPTS="$CELERYD_OPTS $2" fi CELERYD_LOG_DIR=`dirname $CELERYD_LOG_FILE` CELERYD_PID_DIR=`dirname $CELERYD_PID_FILE` # Extra start-stop-daemon options, like user/group. if [ -n "$CELERYD_CHDIR" ]; then DAEMON_OPTS="$DAEMON_OPTS --workdir=$CELERYD_CHDIR" fi check_dev_null() { if [ ! -c /dev/null ]; then echo "/dev/null is not a character device!" exit 75 # EX_TEMPFAIL fi } maybe_die() { if [ $? -ne 0 ]; then echo "Exiting: $* (errno $?)" exit 77 # EX_NOPERM fi } create_default_dir() { if [ ! -d "$1" ]; then echo "- Creating default directory: '$1'" mkdir -p "$1" maybe_die "Couldn't create directory $1" echo "- Changing permissions of '$1' to 02755" chmod 02755 "$1" maybe_die "Couldn't change permissions for $1" if [ -n "$CELERYD_USER" ]; then echo "- Changing owner of '$1' to '$CELERYD_USER'" chown "$CELERYD_USER" "$1" maybe_die "Couldn't change owner of $1" fi if [ -n "$CELERYD_GROUP" ]; then echo "- Changing group of '$1' to '$CELERYD_GROUP'" chgrp "$CELERYD_GROUP" "$1" maybe_die "Couldn't change group of $1" fi fi } check_paths() { if [ $CELERY_CREATE_LOGDIR -eq 1 ]; then create_default_dir "$CELERYD_LOG_DIR" fi if [ $CELERY_CREATE_RUNDIR -eq 1 ]; then create_default_dir "$CELERYD_PID_DIR" fi } create_paths() { create_default_dir "$CELERYD_LOG_DIR" create_default_dir "$CELERYD_PID_DIR" } export PATH="${PATH:+$PATH:}/usr/sbin:/sbin" _get_pidfiles () { # note: multi &lt; 3.1.14 output to stderr, not stdout, hence the redirect. ${CELERYD_MULTI} expand "${CELERYD_PID_FILE}" ${CELERYD_NODES} 2&gt;&amp;1 } _get_pids() { found_pids=0 my_exitcode=0 for pidfile in $(_get_pidfiles); do local pid=`cat "$pidfile"` local cleaned_pid=`echo "$pid" | sed -e 's/[^0-9]//g'` if [ -z "$pid" ] || [ "$cleaned_pid" != "$pid" ]; then echo "bad pid file ($pidfile)" one_failed=true my_exitcode=1 else found_pids=1 echo "$pid" fi if [ $found_pids -eq 0 ]; then echo "${SCRIPT_NAME}: All nodes down" exit $my_exitcode fi done } _chuid () { ${CELERYD_SU} ${CELERYD_SU_ARGS} "$CELERYD_USER" -c "$CELERYD_MULTI $*" } start_workers () { if [ ! -z "$CELERYD_ULIMIT" ]; then ulimit $CELERYD_ULIMIT fi _chuid $* start $CELERYD_NODES $DAEMON_OPTS \ --pidfile="$CELERYD_PID_FILE" \ --logfile="$CELERYD_LOG_FILE" \ --loglevel="$CELERYD_LOG_LEVEL" \ $CELERY_APP_ARG \ $CELERYD_OPTS } dryrun () { (C_FAKEFORK=1 start_workers --verbose) } stop_workers () { _chuid stopwait $CELERYD_NODES --pidfile="$CELERYD_PID_FILE" } restart_workers () { _chuid restart $CELERYD_NODES $DAEMON_OPTS \ --pidfile="$CELERYD_PID_FILE" \ --logfile="$CELERYD_LOG_FILE" \ --loglevel="$CELERYD_LOG_LEVEL" \ $CELERY_APP_ARG \ $CELERYD_OPTS } kill_workers() { _chuid kill $CELERYD_NODES --pidfile="$CELERYD_PID_FILE" } restart_workers_graceful () { echo "WARNING: Use with caution in production" echo "The workers will attempt to restart, but they may not be able to." local worker_pids= worker_pids=`_get_pids` [ "$one_failed" ] &amp;&amp; exit 1 for worker_pid in $worker_pids; do local failed= kill -HUP $worker_pid 2&gt; /dev/null || failed=true if [ "$failed" ]; then echo "${SCRIPT_NAME} worker (pid $worker_pid) could not be restarted" one_failed=true else echo "${SCRIPT_NAME} worker (pid $worker_pid) received SIGHUP" fi done [ "$one_failed" ] &amp;&amp; exit 1 || exit 0 } check_status () { my_exitcode=0 found_pids=0 local one_failed= for pidfile in $(_get_pidfiles); do if [ ! -r $pidfile ]; then echo "${SCRIPT_NAME} down: no pidfiles found" one_failed=true break fi local node=`basename "$pidfile" .pid` local pid=`cat "$pidfile"` local cleaned_pid=`echo "$pid" | sed -e 's/[^0-9]//g'` if [ -z "$pid" ] || [ "$cleaned_pid" != "$pid" ]; then echo "bad pid file ($pidfile)" one_failed=true else local failed= kill -0 $pid 2&gt; /dev/null || failed=true if [ "$failed" ]; then echo "${SCRIPT_NAME} (node $node) (pid $pid) is down, but pidfile exists!" one_failed=true else echo "${SCRIPT_NAME} (node $node) (pid $pid) is up..." fi fi done [ "$one_failed" ] &amp;&amp; exit 1 || exit 0 } case "$1" in start) check_dev_null check_paths start_workers ;; stop) check_dev_null check_paths stop_workers ;; reload|force-reload) echo "Use restart" ;; status) check_status ;; restart) check_dev_null check_paths restart_workers ;; graceful) check_dev_null restart_workers_graceful ;; kill) check_dev_null kill_workers ;; dryrun) check_dev_null dryrun ;; try-restart) check_dev_null check_paths restart_workers ;; create-paths) check_dev_null create_paths ;; check-paths) check_dev_null check_paths ;; *) echo "Usage: /etc/init.d/${SCRIPT_NAME} {start|stop|restart|graceful|kill|dryrun|create-paths}" exit 64 # EX_USAGE ;; esac exit 0 </code></pre></div> <p dir="auto">Even my celery_app is the same.<br> <code class="notranslate">celeryApp = Celery("clmtask", broker="redis://localhost:6379/0", backend="redis://localhost:6379/0")</code></p> <p dir="auto">But If I move to 4.4.7 the same code does not work with the following message:</p> <blockquote> <p dir="auto">[2020-08-17 09:41:22,546: ERROR/MainProcess] consumer: Cannot connect to amqp://guest:**@127.0.0.1:5672//: [Errno 111] Connection refused.<br> Trying again in 2.00 seconds... (1/100)</p> </blockquote> <p dir="auto">It seems that 4.4.7 is ignoring my broker and backend parameters or not reading properly CELERY_APP in /etc/default/my_celery_service</p>
1
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=jhermann" rel="nofollow">Jürgen Hermann</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-4370?redirect=false" rel="nofollow">SPR-4370</a></strong> and commented</p> <p dir="auto">The API docs do not mention in what order (priority) duplicated properties are resolved. When using setLocations(a, b), is a:foo preferred over b:foo or vice versa?</p> <p dir="auto"><a href="http://static.springframework.org/spring/docs/2.5.x/api/org/springframework/core/io/support/PropertiesLoaderSupport.html#setLocations(org.springframework.core.io.Resource%5B%5D)" rel="nofollow">http://static.springframework.org/spring/docs/2.5.x/api/org/springframework/core/io/support/PropertiesLoaderSupport.html#setLocations(org.springframework.core.io.Resource[])</a></p> <hr> <p dir="auto"><strong>Affects:</strong> 2.0.8, 2.5 final</p> <p dir="auto"><strong>Backported to:</strong> <a href="https://github.com/spring-projects/spring-framework/milestone/46?closed=1">2.0.9</a></p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=andre.rouel" rel="nofollow">André Rouél</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8652?redirect=false" rel="nofollow">SPR-8652</a></strong> and commented</p> <p dir="auto">In a table column we use 19-digit IDs. The column type is set to NUMBER. An example of an ID is "1000000009704976470". Now, if we access by using <code class="notranslate">NamedParameterJdbcTemplate.queryForLong (String sql, SqlParameterSource paramSource)</code> or overloaded methods, it returns the for example the long <code class="notranslate">1000000009704976512L</code> instead of <code class="notranslate">1000000009704976470L</code>. The cause lies in the implementation of the method <code class="notranslate">queryForLong</code>.</p> <p dir="auto">The current implementation looks like this:<br> <code class="notranslate">public long queryForLong(String sql, SqlParameterSource paramSource) throws DataAccessException {</code><br> <code class="notranslate">Number number = queryForObject(sql, paramSource, *Number.class*);</code><br> <code class="notranslate">return (number != null ? number.longValue() : 0);</code><br> <code class="notranslate">}</code></p> <p dir="auto">A solution could look like this:<br> <code class="notranslate">public long queryForLong(String sql, SqlParameterSource paramSource) throws DataAccessException {</code><br> <code class="notranslate">Number number = queryForObject(sql, paramSource, *Long.class*);</code><br> <code class="notranslate">return (number != null ? number.longValue() : 0);</code><br> <code class="notranslate">}</code></p> <p dir="auto">One note, the <code class="notranslate">JdbcTemplate</code> class implements the method <code class="notranslate">queryForLong</code> properly.</p> <hr> <p dir="auto"><strong>Affects:</strong> 2.5.6, 3.0.5</p> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a href="https://jira.spring.io/browse/DATAJDBC-15" rel="nofollow">DATAJDBC-15</a> Incorrect output of big numbers when using NamedParameterJdbcTemplate.queryForLong (<em><strong>"is duplicated by"</strong></em>)</li> </ul> <p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/77372d7cdb9cbb70ebc99ca86fc9eb949b4dba93/hovercard" href="https://github.com/spring-projects/spring-framework/commit/77372d7cdb9cbb70ebc99ca86fc9eb949b4dba93"><tt>77372d7</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/9b0412f35fd9cc3a14b1a737af98f5c3119cea41/hovercard" href="https://github.com/spring-projects/spring-framework/commit/9b0412f35fd9cc3a14b1a737af98f5c3119cea41"><tt>9b0412f</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/118ee3fce89f305ea2fc938d539435218fa4e9cc/hovercard" href="https://github.com/spring-projects/spring-framework/commit/118ee3fce89f305ea2fc938d539435218fa4e9cc"><tt>118ee3f</tt></a></p>
0
<p dir="auto">in html file-type<br> vscode version 0.10.6</p> <p dir="auto">My User Settings config says:<br> "editor.autoClosingBrackets": true,</p> <p dir="auto">but it still doesn't work.</p> <p dir="auto">For example, when you type in "&lt;script" the IntelliSense suggestions pops up and you press enter on "script" it doesn't close the tag like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;script&gt; &lt;/script&gt;"><pre class="notranslate"><code class="notranslate">&lt;script&gt; &lt;/script&gt; </code></pre></div> <p dir="auto">but it stays like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;script&gt;"><pre class="notranslate"><code class="notranslate">&lt;script&gt; </code></pre></div>
<p dir="auto">Right now you have to type <code class="notranslate">&lt;/</code> and press enter to close the last tag it would be much simpler to just press enter and have it close</p>
1
<p dir="auto">I installed the terminal from the windows app store, created a powershell tab, ran a command.</p> <p dir="auto">I then wanted to copy that command text, so I highlighted it, then pressed ctrl + c but it doesn't appear to have copied the command text. I also tried ctrl + shift + c. Getting desperate I right clicked on the tab item itself, looking for a menu where I could select "copy" but no such menu seems to exist. I also tried right clicking with the text selected hoping for a menu where I could select "copy selection" but again no such menu exists. In desperation I gave up - copying text does not appear possible. What am I doing wrong?</p>
<p dir="auto">Split screen in Windows Terminal opens the default shell in a new pane. Wouldn't be better to open the same kind of shell? (e.g. if I'm in #PowerShell Core, don't open Windows PowerShell in a new pane, open PowerShell Core again).</p>
0
<p dir="auto">I notice that Next.js assumes that all source code is basically put in the root, e.g. pages directory.</p> <p dir="auto">I prefer to keep a separate src directory, so it's clear what's source and what is not (build, passwords, etc). Is this possible / easy? How do I do it?</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?q=is%3Aissue">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">The <code class="notranslate">with-apollo-auth</code> example (<a href="https://github.com/zeit/next.js/tree/canary/examples/with-apollo-auth">https://github.com/zeit/next.js/tree/canary/examples/with-apollo-auth</a>) should be updated to use the new <code class="notranslate">_app.js</code> functionality <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="320634227" data-permission-text="Title is private" data-url="https://github.com/vercel/next.js/issues/4286" data-hovercard-type="pull_request" data-hovercard-url="/vercel/next.js/pull/4286/hovercard" href="https://github.com/vercel/next.js/pull/4286">#4286</a>. Each pages <code class="notranslate">getInitialProps</code> to check if a user is logged in should be moved to _app.js to reduce duplication of code.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">The <code class="notranslate">with-apollo-auth</code> example (<a href="https://github.com/zeit/next.js/tree/canary/examples/with-apollo-auth">https://github.com/zeit/next.js/tree/canary/examples/with-apollo-auth</a>) has not yet been updated.</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <p dir="auto">N/A</p> <h2 dir="auto">Context</h2> <p dir="auto">Doing something similar to the following would be ideal, rather than having to put <code class="notranslate">getInitialProps</code> on each page that you want to authorize/redirect a user on via the <code class="notranslate">checkLoggedIn</code> function.</p> <p dir="auto"><strong>Note</strong>: I had an issue doing the following code however; seemed to be getting an infinite loop.. so hoping someone else can take a look and figure out a solution :D</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import App, { Container } from 'next/app' import React from 'react' import redirect from '../lib/redirect' import withData from '../lib/Apollo/withData' import checkLoggedIn from '../lib/Apollo/checkLoggedIn' class MyApp extends App { static async getInitialProps({ Component, router, ctx }, apolloClient) { let pageProps = {} const { loggedInUser } = await checkLoggedIn(ctx, apolloClient) if (!loggedInUser.me) { // If not signed in, send them to the login page redirect(ctx, '/login') } if (Component.getInitialProps) { pageProps = await Component.getInitialProps(ctx) } return { pageProps, loggedInUser } } componentDidCatch(error, errorInfo) { console.log('Error: ', error) super.componentDidCatch(error, errorInfo) } render() { const { Component, pageProps } = this.props return ( &lt;Container&gt; &lt;Component {...pageProps} /&gt; &lt;/Container&gt; ) } } export default withData(MyApp)"><pre class="notranslate"><code class="notranslate">import App, { Container } from 'next/app' import React from 'react' import redirect from '../lib/redirect' import withData from '../lib/Apollo/withData' import checkLoggedIn from '../lib/Apollo/checkLoggedIn' class MyApp extends App { static async getInitialProps({ Component, router, ctx }, apolloClient) { let pageProps = {} const { loggedInUser } = await checkLoggedIn(ctx, apolloClient) if (!loggedInUser.me) { // If not signed in, send them to the login page redirect(ctx, '/login') } if (Component.getInitialProps) { pageProps = await Component.getInitialProps(ctx) } return { pageProps, loggedInUser } } componentDidCatch(error, errorInfo) { console.log('Error: ', error) super.componentDidCatch(error, errorInfo) } render() { const { Component, pageProps } = this.props return ( &lt;Container&gt; &lt;Component {...pageProps} /&gt; &lt;/Container&gt; ) } } export default withData(MyApp) </code></pre></div> <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>6.0.2</td> </tr> <tr> <td>node</td> <td>9.11.1</td> </tr> <tr> <td>OS</td> <td>Windows 10</td> </tr> <tr> <td>browser</td> <td>Google Chrome</td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table>
0
<p dir="auto">Suppose we wish to classify some examples where one class is relatively rare.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd,numpy as np from sklearn.ensemble import RandomForestClassifier from sklearn.model_selection import cross_val_score from random import choice df0=pd.DataFrame(np.random.normal(size=(100,3))) df1=pd.Series([choice([-1,1]) for i in xrange(df0.shape[0])]) df1.iloc[-1]=0 df2=pd.Series(np.ones(df0.shape[0])/df0.shape[0]) clf=RandomForestClassifier(n_estimators=10) score=cross_val_score(clf,X=df0,y=df1,cv=10,scoring='neg_log_loss',fit_params={'sample_weight':df2.values}).mean()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span>,<span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">ensemble</span> <span class="pl-k">import</span> <span class="pl-v">RandomForestClassifier</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">model_selection</span> <span class="pl-k">import</span> <span class="pl-s1">cross_val_score</span> <span class="pl-k">from</span> <span class="pl-s1">random</span> <span class="pl-k">import</span> <span class="pl-s1">choice</span> <span class="pl-s1">df0</span><span class="pl-c1">=</span><span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>(<span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">normal</span>(<span class="pl-s1">size</span><span class="pl-c1">=</span>(<span class="pl-c1">100</span>,<span class="pl-c1">3</span>))) <span class="pl-s1">df1</span><span class="pl-c1">=</span><span class="pl-s1">pd</span>.<span class="pl-v">Series</span>([<span class="pl-en">choice</span>([<span class="pl-c1">-</span><span class="pl-c1">1</span>,<span class="pl-c1">1</span>]) <span class="pl-k">for</span> <span class="pl-s1">i</span> <span class="pl-c1">in</span> <span class="pl-en">xrange</span>(<span class="pl-s1">df0</span>.<span class="pl-s1">shape</span>[<span class="pl-c1">0</span>])]) <span class="pl-s1">df1</span>.<span class="pl-s1">iloc</span>[<span class="pl-c1">-</span><span class="pl-c1">1</span>]<span class="pl-c1">=</span><span class="pl-c1">0</span> <span class="pl-s1">df2</span><span class="pl-c1">=</span><span class="pl-s1">pd</span>.<span class="pl-v">Series</span>(<span class="pl-s1">np</span>.<span class="pl-en">ones</span>(<span class="pl-s1">df0</span>.<span class="pl-s1">shape</span>[<span class="pl-c1">0</span>])<span class="pl-c1">/</span><span class="pl-s1">df0</span>.<span class="pl-s1">shape</span>[<span class="pl-c1">0</span>]) <span class="pl-s1">clf</span><span class="pl-c1">=</span><span class="pl-v">RandomForestClassifier</span>(<span class="pl-s1">n_estimators</span><span class="pl-c1">=</span><span class="pl-c1">10</span>) <span class="pl-s1">score</span><span class="pl-c1">=</span><span class="pl-en">cross_val_score</span>(<span class="pl-s1">clf</span>,<span class="pl-v">X</span><span class="pl-c1">=</span><span class="pl-s1">df0</span>,<span class="pl-s1">y</span><span class="pl-c1">=</span><span class="pl-s1">df1</span>,<span class="pl-s1">cv</span><span class="pl-c1">=</span><span class="pl-c1">10</span>,<span class="pl-s1">scoring</span><span class="pl-c1">=</span><span class="pl-s">'neg_log_loss'</span>,<span class="pl-s1">fit_params</span><span class="pl-c1">=</span>{<span class="pl-s">'sample_weight'</span>:<span class="pl-s1">df2</span>.<span class="pl-s1">values</span>}).<span class="pl-en">mean</span>()</pre></div> <p dir="auto">This will spit the error:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="*** ValueError: y_true and y_pred contain different number of classes 3, 2. Please provide the true labels explicitly through the labels argument. Classes found in y_true: [-1 0 1]"><pre class="notranslate"><span class="pl-c1">**</span><span class="pl-c1">*</span> <span class="pl-v">ValueError</span>: <span class="pl-s1">y_true</span> <span class="pl-c1">and</span> <span class="pl-s1">y_pred</span> <span class="pl-s1">contain</span> <span class="pl-s1">different</span> <span class="pl-s1">number</span> <span class="pl-s1">of</span> <span class="pl-s1">classes</span> <span class="pl-c1">3</span>, <span class="pl-c1">2.</span> <span class="pl-v">Please</span> <span class="pl-s1">provide</span> <span class="pl-s1">the</span> <span class="pl-s1">true</span> <span class="pl-s1">labels</span> <span class="pl-s1">explicitly</span> <span class="pl-s1">through</span> <span class="pl-s1">the</span> <span class="pl-s1">labels</span> <span class="pl-s1">argument</span>. <span class="pl-v">Classes</span> <span class="pl-s1">found</span> <span class="pl-c1">in</span> <span class="pl-s1">y_true</span>: [<span class="pl-c1">-</span><span class="pl-c1">1</span> <span class="pl-c1">0</span> <span class="pl-c1">1</span>]</pre></div> <p dir="auto">This is a known problem for <em>log_loss</em>, which was fixed by adding an argument <strong>labels</strong> to that function: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="53133263" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/4033" data-hovercard-type="issue" data-hovercard-url="/scikit-learn/scikit-learn/issues/4033/hovercard" href="https://github.com/scikit-learn/scikit-learn/issues/4033">#4033</a></p> <p dir="auto">The problem above is, <em>cross_val_score</em> invokes that function, but does not allow us to pass the labels. Ideally, cross_val_score should be able to infer the true labels from y=df1.</p> <p dir="auto">sklearn version '0.18.1'</p>
<p dir="auto">Moving the discussion with <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/amueller/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/amueller">@amueller</a> from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="116300904" data-permission-text="Title is private" data-url="https://github.com/pydata/patsy/issues/77" data-hovercard-type="issue" data-hovercard-url="/pydata/patsy/issues/77/hovercard?comment_id=174335341&amp;comment_type=issue_comment" href="https://github.com/pydata/patsy/issues/77#issuecomment-174335341">pydata/patsy#77 (comment)</a>.</p> <p dir="auto">Proposing to:</p> <ul dir="auto"> <li>add an optional 'labels' argument to <code class="notranslate">log_loss</code></li> <li>add an argument to <code class="notranslate">make_scorer</code> to enable passing labels argument to the custom loss function</li> </ul> <p dir="auto">Related to this - perhaps also allow <code class="notranslate">make_scorer</code>'s <code class="notranslate">need_threshold = True</code> to be used for non-binary classification problems. Not sure why it's limited to binary. Totally meaningful for multi-class situations, where the metric might use the decision function to evaluate based on the rank order or something (for example, <code class="notranslate">SVC</code> doesn't have a cheap <code class="notranslate">predict_proba</code>, but has a cheap <code class="notranslate">decision_function</code>, so it would allow it to be used with rank-based metris). From <code class="notranslate">make_scorer</code> perspective, it just seems like a completely arbitrary restriction because it shouldn't care about what the custom loss function does with the <code class="notranslate">decision_function</code> output.</p>
1
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=gdub" rel="nofollow">Greg Wiley</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-3519?redirect=false" rel="nofollow">SPR-3519</a></strong> and commented</p> <p dir="auto">Using the AspectJ annotation configuration method.</p> <p dir="auto">If two advice apply to the same join point and the lower-priority advice has (non JP) parameters, those parameters will not be bound.</p> <p dir="auto">This occurs in Spring 2.0.5 but not in Spring 2.0.2.</p> <p dir="auto">Only jars on the CP are those in the -with-dependencies Spring distribution.</p> <p dir="auto">\spring-framework-2.0.5\lib\aspectj\aspectjrt.jar<br> \spring-framework-2.0.5\lib\aspectj\aspectjweaver.jar<br> \spring-framework-2.0.5\lib\asm\asm-2.2.3.jar<br> \spring-framework-2.0.5\dist\spring-aspects.jar<br> \spring-framework-2.0.5\dist\spring.jar<br> \spring-framework-2.0.5\lib\jakarta-commons\commons-logging.jar<br> \spring-framework-2.0.5\lib\asm\asm-commons-2.2.3.jar<br> \spring-framework-2.0.5\lib\asm\asm-util-2.2.3.jar</p> <p dir="auto">Demonstration spike attached.</p> <p dir="auto">Note that in the demonstration, the exception can be eliminated by either:</p> <ol dir="auto"> <li>removing one of the advice classes from the configuration</li> <li>re-ordering the advice (so that the non-arg advice is lower priority)</li> <li>switching to Spring 2.0.2</li> </ol> <p dir="auto">This problem has been documented by others in the Spring forums.</p> <p dir="auto">-dub</p> <hr> <p dir="auto"><strong>Affects:</strong> 2.0.5</p> <p dir="auto"><strong>Attachments:</strong></p> <ul dir="auto"> <li><a href="https://jira.spring.io/secure/attachment/12628/eg.zip" rel="nofollow">eg.zip</a> (<em>2.04 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="398077968" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8155" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8155/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8155">#8155</a> Bad interactions betwen advice when one binds the original method parameters and one does not. (<em><strong>"duplicates"</strong></em>)</li> </ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=tomdewire" rel="nofollow">Tom DeWire</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-3472?redirect=false" rel="nofollow">SPR-3472</a></strong> and commented</p> <p dir="auto">Repeated from my original forum post: (<a href="http://forum.springframework.org/showthread.php?t=38619" rel="nofollow">http://forum.springframework.org/showthread.php?t=38619</a>)</p> <p dir="auto">We have two pieces of advice that we would like to execute "around" a service method. The service method takes a single parameter.</p> <p dir="auto">The first piece of advice (AdviceA in this example) wants to capture all of the methods in the class. It does not care about the parameters passed into those methods.</p> <p dir="auto">The second piece of advice (AdviceB in this example) wants to capture a specific method. It does care about the parameter. It wants to record this transaction into the logs if certain criteria are met.</p> <p dir="auto">This was all working fine in spring 2.0.2. We recently attempted to upgrade to 2.0.5, and we ran into some failures. We backed off the versions and determined the root cause appears to be a change introduced with 2.0.3.</p> <p dir="auto">Specifically, we're receive this error immediately after calling proceed() from the first piece of advice:</p> <p dir="auto">Exception in thread "main" java.lang.IllegalStateException: Required to bind 2 arguments, but only bound 1 (JoinPointMatch was NOT bound in invocation)</p> <p dir="auto">It seems worth noting that either of these pieces of advice will execute just fine if they are allowed to execute alone. It is only when <strong>both</strong> pieces of advice are applied that we run into this issue.</p> <p dir="auto">I've managed to replicate this behavior in a very small test. I'll attempt to attach that to this bug (if i'm allowed to do that sort of thing).</p> <hr> <p dir="auto"><strong>Affects:</strong> 2.0.3, 2.0.4, 2.0.5</p> <p dir="auto"><strong>Attachments:</strong></p> <ul dir="auto"> <li><a href="https://jira.spring.io/secure/attachment/12591/aop-test.zip" rel="nofollow">aop-test.zip</a> (<em>12.96 kB</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/12595/aop-test-dependencies-corrected.zip" rel="nofollow">aop-test-dependencies-corrected.zip</a> (<em>13.13 kB</em>)</li> </ul> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398078267" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8202" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8202/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8202">#8202</a> around advice does not bind parameters if another advise is active on same join point (<em><strong>"is duplicated by"</strong></em>)</li> </ul>
1
<p dir="auto">although VS Code recognize that the markup is indeed handlebars, it is unable to format it.<br> So format code option does nothing</p>
<ul dir="auto"> <li>VSCode Version: 111</li> <li>OS Version: OSX current</li> </ul> <p dir="auto">Hello,<br> are there any reliable way to use auto format code on templates such as handlebars or ejs ?</p> <p dir="auto">I see that there is in user settings an indent setting support for handlebars, but this is not accessible in handlebars mode, only in html mode. This is inconsistent.</p> <p dir="auto">Also if I try a template language like EJS (for which there is an extension), in ejs mode there is no auto format, and in html mode every &lt;% is considered as opening html tag which produce catastrophic auto format code. And we have no intellisense for js code in ejs templates (html or ejs mode).</p> <p dir="auto">All in all, unless I miss something, I find it hard to work with templates in vscode and I suggest an improvement on this.</p>
1
<p dir="auto">Hi, when using it, simple switch the button up to xl one. When you try to generate a prediction of words; it will simply never load regardless of what all the other setting are on. Every other gpt2 model size works; expect the xl one. Tried it on Android and Linux same problem and different browsers Firefox and Google Chrome same problem nothing to with addons cause the same problem occurs with them all off.</p>
<p dir="auto">When setting the model size to <strong>gpt2/xl</strong>, WwT gets stuck on loading the autocomplete.<br> Checking Chrome's console tells me<br> "Failed to load resource: the server responded with a status of 502 (Bad Gateway)"</p> <p dir="auto">Having a quick look through the older tickets, I saw that this has happened before. <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="535593876" data-permission-text="Title is private" data-url="https://github.com/huggingface/transformers/issues/2121" data-hovercard-type="issue" data-hovercard-url="/huggingface/transformers/issues/2121/hovercard" href="https://github.com/huggingface/transformers/issues/2121">#2121</a></p>
1
<p dir="auto">after upgarde to 2.12.3 under win10, below issue is encountered, any suggestion?<br> File "d:\Anaconda3\lib\site-packages\requests-2.12.3-py3.5.egg\requests\sessions.py", line 535, in post<br> return self.request('POST', url, data=data, json=json, **kwargs)</p> <p dir="auto">File "d:\Anaconda3\lib\site-packages\requests-2.12.3-py3.5.egg\requests\sessions.py", line 488, in request<br> resp = self.send(prep, **send_kwargs)</p> <p dir="auto">File "d:\Anaconda3\lib\site-packages\requests-2.12.3-py3.5.egg\requests\sessions.py", line 609, in send<br> r = adapter.send(request, **kwargs)</p> <p dir="auto">File "d:\Anaconda3\lib\site-packages\requests-2.12.3-py3.5.egg\requests\adapters.py", line 423, in send<br> timeout=timeout</p> <p dir="auto">File "d:\Anaconda3\lib\site-packages\requests-2.12.3-py3.5.egg\requests\packages\urllib3\connectionpool.py", line 594, in urlopen<br> chunked=chunked)</p> <p dir="auto">File "d:\Anaconda3\lib\site-packages\requests-2.12.3-py3.5.egg\requests\packages\urllib3\connectionpool.py", line 350, in _make_request<br> self._validate_conn(conn)</p> <p dir="auto">File "d:\Anaconda3\lib\site-packages\requests-2.12.3-py3.5.egg\requests\packages\urllib3\connectionpool.py", line 835, in _validate_conn<br> conn.connect()</p> <p dir="auto">File "d:\Anaconda3\lib\site-packages\requests-2.12.3-py3.5.egg\requests\packages\urllib3\connection.py", line 330, in connect<br> cert = self.sock.getpeercert()</p> <p dir="auto">File "d:\Anaconda3\lib\site-packages\requests-2.12.3-py3.5.egg\requests\packages\urllib3\contrib\pyopenssl.py", line 324, in getpeercert<br> 'subjectAltName': get_subj_alt_name(x509)</p> <p dir="auto">File "d:\Anaconda3\lib\site-packages\requests-2.12.3-py3.5.egg\requests\packages\urllib3\contrib\pyopenssl.py", line 171, in get_subj_alt_name<br> ext = cert.extensions.get_extension_for_class(</p> <p dir="auto">AttributeError: 'Extensions' object has no attribute 'get_extension_for_class'</p>
<p dir="auto">This occurred after I upgraded form 2.11.1 to 2.12.1. The error occurs arbitrarily for the URLs I tried.</p> <blockquote> <p dir="auto">requests.get('<a href="http://google.com" rel="nofollow">http://google.com</a>') # works<br> requests.get('<a href="http://www.google.com" rel="nofollow">http://www.google.com</a>') # works<br> requests.get('<a href="https://google.com" rel="nofollow">https://google.com</a>') # does not work<br> requests.get('<a href="https://www.google.com" rel="nofollow">https://www.google.com</a>') # does not work<br> requests.get('<a href="http://amazon.com" rel="nofollow">http://amazon.com</a>') # sometimes works<br> requests.get('<a href="http://www.amazon.com" rel="nofollow">http://www.amazon.com</a>') # does not work<br> requests.get('<a href="https://amazon.com" rel="nofollow">https://amazon.com</a>') # does not work<br> requests.get('<a href="https://www.amazon.com" rel="nofollow">https://www.amazon.com</a>') # does not work</p> </blockquote> <p dir="auto">Below is the error:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/connectionpool.pyc in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw) 348 # Trigger any extra validation we need to do. 349 try: --&gt; 350 self._validate_conn(conn) 351 except (SocketTimeout, BaseSSLError) as e: 352 # Py2 raises this as a BaseSSLError, Py3 raises it as socket timeout. /usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/connectionpool.pyc in _validate_conn(self, conn) 833 # Force connect early to allow us to validate the connection. 834 if not getattr(conn, 'sock', None): # AppEngine might not have `.sock` --&gt; 835 conn.connect() 836 837 if not conn.is_verified: /usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/connection.pyc in connect(self) 328 elif context.verify_mode != ssl.CERT_NONE \ 329 and self.assert_hostname is not False: --&gt; 330 cert = self.sock.getpeercert() 331 if not cert.get('subjectAltName', ()): 332 warnings.warn(( /usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/contrib/pyopenssl.pyc in getpeercert(self, binary_form) 322 (('commonName', x509.get_subject().CN),), 323 ), --&gt; 324 'subjectAltName': get_subj_alt_name(x509) 325 } 326 /usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/contrib/pyopenssl.pyc in get_subj_alt_name(peer_cert) 169 # faster than looping in Python) 170 try: --&gt; 171 ext = cert.extensions.get_extension_for_class( 172 x509.SubjectAlternativeName 173 ).value AttributeError: 'Extensions' object has no attribute 'get_extension_for_class'"><pre class="notranslate"><span class="pl-c1">/</span><span class="pl-s1">usr</span><span class="pl-c1">/</span><span class="pl-s1">local</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python2</span>.<span class="pl-c1">7</span><span class="pl-c1">/</span><span class="pl-s1">dist</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">requests</span><span class="pl-c1">/</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">urllib3</span><span class="pl-c1">/</span><span class="pl-s1">connectionpool</span>.<span class="pl-s1">pyc</span> <span class="pl-c1">in</span> <span class="pl-en">_make_request</span>(<span class="pl-s1">self</span>, <span class="pl-s1">conn</span>, <span class="pl-s1">method</span>, <span class="pl-s1">url</span>, <span class="pl-s1">timeout</span>, <span class="pl-s1">chunked</span>, <span class="pl-c1">**</span><span class="pl-s1">httplib_request_kw</span>) <span class="pl-c1">348</span> <span class="pl-c"># Trigger any extra validation we need to do.</span> <span class="pl-c1">349</span> <span class="pl-k">try</span>: <span class="pl-c1">-</span><span class="pl-c1">-&gt;</span> <span class="pl-c1">350</span> <span class="pl-s1">self</span>.<span class="pl-en">_validate_conn</span>(<span class="pl-s1">conn</span>) <span class="pl-c1">351</span> <span class="pl-k">except</span> (<span class="pl-v">SocketTimeout</span>, <span class="pl-v">BaseSSLError</span>) <span class="pl-k">as</span> <span class="pl-s1">e</span>: <span class="pl-c1">352</span> <span class="pl-c"># Py2 raises this as a BaseSSLError, Py3 raises it as socket timeout.</span> <span class="pl-c1">/</span><span class="pl-s1">usr</span><span class="pl-c1">/</span><span class="pl-s1">local</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python2</span>.<span class="pl-c1">7</span><span class="pl-c1">/</span><span class="pl-s1">dist</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">requests</span><span class="pl-c1">/</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">urllib3</span><span class="pl-c1">/</span><span class="pl-s1">connectionpool</span>.<span class="pl-s1">pyc</span> <span class="pl-c1">in</span> <span class="pl-en">_validate_conn</span>(<span class="pl-s1">self</span>, <span class="pl-s1">conn</span>) <span class="pl-c1">833</span> <span class="pl-c"># Force connect early to allow us to validate the connection.</span> <span class="pl-c1">834</span> <span class="pl-k">if</span> <span class="pl-c1">not</span> <span class="pl-en">getattr</span>(<span class="pl-s1">conn</span>, <span class="pl-s">'sock'</span>, <span class="pl-c1">None</span>): <span class="pl-c"># AppEngine might not have `.sock`</span> <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">835</span> <span class="pl-s1">conn</span>.<span class="pl-en">connect</span>() <span class="pl-c1">836</span> <span class="pl-c1">837</span> <span class="pl-k">if</span> <span class="pl-c1">not</span> <span class="pl-s1">conn</span>.<span class="pl-s1">is_verified</span>: <span class="pl-c1">/</span><span class="pl-s1">usr</span><span class="pl-c1">/</span><span class="pl-s1">local</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python2</span>.<span class="pl-c1">7</span><span class="pl-c1">/</span><span class="pl-s1">dist</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">requests</span><span class="pl-c1">/</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">urllib3</span><span class="pl-c1">/</span><span class="pl-s1">connection</span>.<span class="pl-s1">pyc</span> <span class="pl-c1">in</span> <span class="pl-en">connect</span>(<span class="pl-s1">self</span>) <span class="pl-c1">328</span> <span class="pl-s1">elif</span> <span class="pl-s1">context</span>.<span class="pl-s1">verify_mode</span> <span class="pl-c1">!=</span> <span class="pl-s1">ssl</span>.<span class="pl-v">CERT_NONE</span> \ <span class="pl-c1">329</span> <span class="pl-c1">and</span> <span class="pl-s1">self</span>.<span class="pl-s1">assert_hostname</span> <span class="pl-c1">is</span> <span class="pl-c1">not</span> <span class="pl-c1">False</span>: <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">330</span> <span class="pl-s1">cert</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-s1">sock</span>.<span class="pl-en">getpeercert</span>() <span class="pl-c1">331</span> <span class="pl-k">if</span> <span class="pl-c1">not</span> <span class="pl-s1">cert</span>.<span class="pl-en">get</span>(<span class="pl-s">'subjectAltName'</span>, ()): <span class="pl-c1">332</span> <span class="pl-s1">warnings</span>.<span class="pl-s1">warn</span>(( <span class="pl-c1">/</span><span class="pl-s1">usr</span><span class="pl-c1">/</span><span class="pl-s1">local</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python2</span>.<span class="pl-c1">7</span><span class="pl-c1">/</span><span class="pl-s1">dist</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">requests</span><span class="pl-c1">/</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">urllib3</span><span class="pl-c1">/</span><span class="pl-s1">contrib</span><span class="pl-c1">/</span><span class="pl-s1">pyopenssl</span>.<span class="pl-s1">pyc</span> <span class="pl-c1">in</span> <span class="pl-en">getpeercert</span>(<span class="pl-s1">self</span>, <span class="pl-s1">binary_form</span>) <span class="pl-c1">322</span> ((<span class="pl-s">'commonName'</span>, <span class="pl-s1">x509</span>.<span class="pl-en">get_subject</span>().<span class="pl-v">CN</span>),), <span class="pl-c1">323</span> ), <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">324</span> <span class="pl-s">'subjectAltName'</span>: <span class="pl-en">get_subj_alt_name</span>(<span class="pl-s1">x509</span>) <span class="pl-c1">325</span> } <span class="pl-c1">326</span> <span class="pl-c1">/</span><span class="pl-s1">usr</span><span class="pl-c1">/</span><span class="pl-s1">local</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python2</span>.<span class="pl-c1">7</span><span class="pl-c1">/</span><span class="pl-s1">dist</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">requests</span><span class="pl-c1">/</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">urllib3</span><span class="pl-c1">/</span><span class="pl-s1">contrib</span><span class="pl-c1">/</span><span class="pl-s1">pyopenssl</span>.<span class="pl-s1">pyc</span> <span class="pl-c1">in</span> <span class="pl-en">get_subj_alt_name</span>(<span class="pl-s1">peer_cert</span>) <span class="pl-c1">169</span> <span class="pl-c"># faster than looping in Python)</span> <span class="pl-c1">170</span> <span class="pl-s1">try</span>: <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">171</span> <span class="pl-s1">ext</span> <span class="pl-c1">=</span> <span class="pl-s1">cert</span>.<span class="pl-s1">extensions</span>.<span class="pl-en">get_extension_for_class</span>( <span class="pl-c1">172</span> <span class="pl-s1">x509</span>.<span class="pl-v">SubjectAlternativeName</span> <span class="pl-c1">173</span> ).<span class="pl-s1">value</span> <span class="pl-v">AttributeError</span>: <span class="pl-s">'Extensions'</span> <span class="pl-s1">object</span> <span class="pl-s1">has</span> <span class="pl-s1">no</span> <span class="pl-s1">attribute</span> <span class="pl-s">'get_extension_for_class'</span></pre></div> <p dir="auto">Tried it on Ubuntu/Python 2.7.10 and macOS/Python 2.7.11. I have OpenSSL 1.0.2 for both. Same error on both.</p>
1
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 4.1.2</li> <li>Operating System / Platform =&gt; Mac</li> <li>Compiler =&gt; clang</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">Detected processor: armv7-a<br> sizeof(void) = 4 on 64 bit processor. Assume 32-bit compilation mode<br> Looking for ccache - not found<br> FP16 is not supported by C++ compiler<br> OpenCV disables pkg-config to avoid using of host libraries. Consider using PKG_CONFIG_LIBDIR to specify target SYSROOT<br> libjpeg-turbo: VERSION = 2.0.2, BUILD = opencv-4.1.2-libjpeg-turbo<br> Android SDK Tools: Ant (Eclipse) builds are NOT supported by Android SDK<br> Android SDK Build Tools: Gradle 3.0.0+ builds support is available<br> Android SDK Tools: Prepare Android projects for using Gradle 3.0.0+ build scripts<br> Android Gradle Plugin version: 3.2.1<br> Caffe: NO<br> Protobuf: NO<br> Glog: NO<br> freetype2: NO<br> harfbuzz: NO<br> Module opencv_ovis disabled because OGRE3D was not found<br> No preference for use of exported gflags CMake configuration set, and no hints for include/library directories provided. Defaulting to preferring an installed/exported gflags CMake configuration if available.<br> Failed to find installed gflags CMake configuration, searching for gflags build directories exported with CMake.<br> Failed to find gflags - Failed to find an installed/exported CMake configuration for gflags, will perform search for installed gflags components.<br> Failed to find gflags - Could not find gflags include directory, set GFLAGS_INCLUDE_DIR to directory containing gflags/gflags.h<br> Failed to find glog - Could not find glog include directory, set GLOG_INCLUDE_DIR to directory containing glog/logging.h<br> Module opencv_sfm disabled because the following dependencies are not found: Eigen Glog/Gflags<br> Module opencv_dnn_objdetect disabled because opencv_dnn dependency can't be resolved!<br> Module opencv_dnn_superres disabled because opencv_dnn dependency can't be resolved!<br> Module opencv_text disabled because opencv_dnn dependency can't be resolved!<br> Excluding from source files list: modules/imgproc/src/corner.avx.cpp<br> Excluding from source files list: modules/imgproc/src/imgwarp.avx2.cpp<br> Excluding from source files list: modules/imgproc/src/imgwarp.sse4_1.cpp<br> Excluding from source files list: modules/imgproc/src/resize.avx2.cpp<br> Excluding from source files list: modules/imgproc/src/resize.sse4_1.cpp<br> Excluding from source files list: modules/imgproc/src/sumpixels.avx512_skx.cpp<br> Excluding from source files list: modules/features2d/src/fast.avx2.cpp<br> Android OpenCV Manager is ignored</p> <p dir="auto">General configuration for OpenCV 4.1.2 =====================================<br> Version control: unknown</p> <p dir="auto">Extra modules:<br> Location (extra): /Users/Elvis/Downloads/OpenCV/opencv-contrib/modules<br> Version control (extra): unknown</p> <p dir="auto">Platform:<br> Timestamp: 2019-11-29T17:39:44Z<br> Host: Darwin 19.0.0 x86_64<br> Target: Android 1 armv7-a<br> CMake: 3.16.0-rc4<br> CMake generator: Unix Makefiles<br> CMake build tool: /usr/bin/make<br> Configuration: Release</p> <p dir="auto">CPU/HW features:<br> Baseline:<br> requested: DETECT</p> <p dir="auto">C/C++:<br> Built as dynamic libs?: NO<br> C++ Compiler: /Users/Elvis/Library/Android/sdk/ndk/19.2.5345600/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ (ver 8.0)<br> C++ flags (Release): -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -stdlib=libc++ -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Winconsistent-missing-override -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Qunused-arguments -fvisibility=hidden -fvisibility-inlines-hidden -O2 -DNDEBUG -DNDEBUG<br> C++ flags (Debug): -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -stdlib=libc++ -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Winconsistent-missing-override -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Qunused-arguments -fvisibility=hidden -fvisibility-inlines-hidden -O0 -fno-limit-debug-info -DDEBUG -D_DEBUG<br> C Compiler: /Users/Elvis/Library/Android/sdk/ndk/19.2.5345600/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang<br> C flags (Release): -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Winconsistent-missing-override -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Qunused-arguments -fvisibility=hidden -fvisibility-inlines-hidden -O2 -DNDEBUG -DNDEBUG<br> C flags (Debug): -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Winconsistent-missing-override -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Qunused-arguments -fvisibility=hidden -fvisibility-inlines-hidden -O0 -fno-limit-debug-info -DDEBUG -D_DEBUG<br> Linker flags (Release): -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a -static-libstdc++ -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now<br> Linker flags (Debug): -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a -static-libstdc++ -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now<br> ccache: NO<br> Precompiled headers: NO<br> Extra dependencies: /Users/Elvis/Library/Android/sdk/ndk/19.2.5345600/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/arm-linux-androideabi/libz.a dl m log<br> 3rdparty dependencies: libcpufeatures ittnotify libjpeg-turbo libwebp libpng libtiff libjasper IlmImf quirc tegra_hal</p> <p dir="auto">OpenCV modules:<br> To be built: aruco bgsegm bioinspired calib3d ccalib core dpm face features2d flann fuzzy hfs highgui img_hash imgcodecs imgproc java line_descriptor ml objdetect optflow phase_unwrapping photo plot quality rgbd saliency shape stereo stitching structured_light superres surface_matching tracking video videoio videostab xfeatures2d ximgproc xobjdetect xphoto<br> Disabled: datasets dnn reg world<br> Disabled by dependency: dnn_objdetect dnn_superres text<br> Unavailable: cnn_3dobj cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev cvv freetype gapi hdf js matlab ovis python2 python3 sfm ts viz<br> Applications: android_service<br> Documentation: NO<br> Non-free algorithms: YES</p> <p dir="auto">Android NDK: /Users/Elvis/Library/Android/sdk/ndk/19.2.5345600 (ver 19.2.5345600)<br> Android ABI: arm64-v8a<br> NDK toolchain: aarch64-linux-android-clang<br> STL type: c++_static<br> Native API level: 28<br> Android SDK: /Users/Elvis/Library/Android/sdk (tools: 26.1.1 build tools: 29.0.2)</p> <p dir="auto">GUI:</p> <p dir="auto">Media I/O:<br> ZLib: /Users/Elvis/Library/Android/sdk/ndk/19.2.5345600/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/arm-linux-androideabi/libz.a (ver 1.2.7)<br> JPEG: build-libjpeg-turbo (ver 2.0.2-62)<br> WEBP: build (ver encoder: 0x020e)<br> PNG: build (ver 1.6.37)<br> TIFF: build (ver 42 - 4.0.10)<br> JPEG 2000: build (ver 1.900.1)<br> OpenEXR: build (ver 2.3.0)<br> HDR: YES<br> SUNRASTER: YES<br> PXM: YES<br> PFM: YES</p> <p dir="auto">Video I/O:</p> <p dir="auto">Parallel framework: pthreads</p> <p dir="auto">Trace: YES (with Intel ITT)</p> <p dir="auto">Other third-party libraries:<br> Custom HAL: YES (carotene (ver 0.0.1))<br> Protobuf: build (3.5.1)</p> <p dir="auto">Python (for build): /usr/bin/python2.7</p> <p dir="auto">Java: export all functions<br> ant: NO<br> Java wrappers: YES<br> Java tests: NO</p> <h2 dir="auto">Install to: /Users/Elvis/Downloads/OpenCV/opencv-android/install</h2> <p dir="auto">Configuring done<br> Generating done</p> <h5 dir="auto">Steps to reproduce</h5> <p dir="auto">[ 99%] Built target opencv_java_android_source_copy<br> [ 99%] Linking CXX shared library ../../../jni/arm64-v8a/libopencv_java4.so<br> ../../../lib/arm64-v8a/libopencv_phase_unwrapping.a: error adding symbols: Archive has no index; run ranlib to add one<br> clang++: error: linker command failed with exit code 1 (use -v to see invocation)<br> make[2]: *** [jni/arm64-v8a/libopencv_java4.so] Error 1<br> make[1]: *** [modules/java/jni/CMakeFiles/opencv_java.dir/all] Error 2<br> make: *** [all] Error 2</p>
<ul dir="auto"> <li> <ul dir="auto"> <li>OpenCV =&gt; 3.4.4</li> <li>Operating System / Platform =&gt; Android (Windows 10 compile host)</li> <li>Compiler =&gt; MinGW 5.3.0 32bit</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">I am compiling OpenCV 3.4.4 (world) from source for Android on a Windows 10 host. The compilation of the shared OpenCV libraries seems to finish without error EXCEPT for when <code class="notranslate">hello_android</code> is being linked.</p> <h6 dir="auto">CMake config</h6> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="-- General configuration for OpenCV 3.4.4 ===================================== -- Version control: 3.4.4 -- -- Platform: -- Timestamp: 2019-03-01T03:15:46Z -- Host: Windows 10.0.17763 AMD64 -- Target: Android 1 aarch64 -- CMake: 3.13.0-rc2 -- CMake generator: MinGW Makefiles -- CMake build tool: C:/Qt/Qt5.11.2/Tools/mingw530_32/bin/mingw32-make.exe -- Configuration: Release -- -- CPU/HW features: -- Baseline: NEON FP16 -- required: NEON -- disabled: VFPV3 -- -- C/C++: -- Built as dynamic libs?: YES -- C++11: YES -- C++ Compiler: C:/android-ndk-r19b-windows-x86_64/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe (ver 8.0) -- C++ flags (Release): -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -stdlib=libc++ -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Winconsistent-missing-override -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Qunused-arguments -ffunction-sections -fdata-sections -fvisibility=hidden -fvisibility-inlines-hidden -O2 -DNDEBUG -DNDEBUG -- C++ flags (Debug): -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -stdlib=libc++ -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Winconsistent-missing-override -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Qunused-arguments -ffunction-sections -fdata-sections -fvisibility=hidden -fvisibility-inlines-hidden -O0 -fno-limit-debug-info -DDEBUG -D_DEBUG -- C Compiler: C:/android-ndk-r19b-windows-x86_64/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -- C flags (Release): -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Winconsistent-missing-override -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Qunused-arguments -ffunction-sections -fdata-sections -fvisibility=hidden -fvisibility-inlines-hidden -O2 -DNDEBUG -DNDEBUG -- C flags (Debug): -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Winconsistent-missing-override -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Qunused-arguments -ffunction-sections -fdata-sections -fvisibility=hidden -fvisibility-inlines-hidden -O0 -fno-limit-debug-info -DDEBUG -D_DEBUG -- Linker flags (Release): -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a -static-libstdc++ -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -- Linker flags (Debug): -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a -static-libstdc++ -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -- ccache: NO -- Precompiled headers: NO -- Extra dependencies: dl m log -- 3rdparty dependencies: -- -- OpenCV modules: -- To be built: calib3d core dnn features2d flann highgui imgcodecs imgproc java_bindings_generator ml objdetect photo shape stitching superres video videostab world -- Disabled: videoio -- Disabled by dependency: - -- Unavailable: cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev java js python2 python3 ts viz -- Applications: - -- Documentation: NO -- Non-free algorithms: NO -- -- Android NDK: C:/android-ndk-r19b-windows-x86_64 (ver 19.1.5304403) -- Android ABI: arm64-v8a -- NDK toolchain: aarch64-linux-android-clang -- STL type: c++_static -- Native API level: 23 -- Android SDK: not used, projects are not built -- -- GUI: -- -- Media I/O: -- ZLib: C:/android-ndk-r19b-windows-x86_64/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/lib/aarch64-linux-android/libz.a (ver 1.2.7) -- JPEG: build-libjpeg-turbo (ver 1.5.3-62) -- WEBP: build (ver encoder: 0x020e) -- PNG: build (ver 1.6.35) -- TIFF: build (ver 42 - 4.0.9) -- JPEG 2000: build (ver 1.900.1) -- OpenEXR: build (ver 1.7.1) -- HDR: YES -- SUNRASTER: YES -- PXM: YES -- -- Video I/O: -- -- Parallel framework: TBB (ver 2018.0 interface 10001) -- -- Trace: YES (built-in) -- -- Other third-party libraries: -- Custom HAL: YES (carotene (ver 0.0.1)) -- Protobuf: build (3.5.1) -- -- OpenCL: YES (no extra features) -- Include path: C:/Users/Lenovo/Desktop/opencv/3rdparty/include/opencl/1.2 -- Link libraries: Dynamic load -- -- Python (for build): NO -- -- Java: -- ant: NO -- Java wrappers: NO -- Java tests: NO -- -- Install to: C:/Users/Lenovo/Desktop/opencv/build-android-world/install -- ----------------------------------------------------------------- -- -- Configuring done -- Generating done -- Build files have been written to: C:/Users/Lenovo/Desktop/opencv/build-android-world"><pre class="notranslate"><code class="notranslate">-- General configuration for OpenCV 3.4.4 ===================================== -- Version control: 3.4.4 -- -- Platform: -- Timestamp: 2019-03-01T03:15:46Z -- Host: Windows 10.0.17763 AMD64 -- Target: Android 1 aarch64 -- CMake: 3.13.0-rc2 -- CMake generator: MinGW Makefiles -- CMake build tool: C:/Qt/Qt5.11.2/Tools/mingw530_32/bin/mingw32-make.exe -- Configuration: Release -- -- CPU/HW features: -- Baseline: NEON FP16 -- required: NEON -- disabled: VFPV3 -- -- C/C++: -- Built as dynamic libs?: YES -- C++11: YES -- C++ Compiler: C:/android-ndk-r19b-windows-x86_64/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe (ver 8.0) -- C++ flags (Release): -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -stdlib=libc++ -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Winconsistent-missing-override -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Qunused-arguments -ffunction-sections -fdata-sections -fvisibility=hidden -fvisibility-inlines-hidden -O2 -DNDEBUG -DNDEBUG -- C++ flags (Debug): -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -stdlib=libc++ -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Winconsistent-missing-override -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Qunused-arguments -ffunction-sections -fdata-sections -fvisibility=hidden -fvisibility-inlines-hidden -O0 -fno-limit-debug-info -DDEBUG -D_DEBUG -- C Compiler: C:/android-ndk-r19b-windows-x86_64/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -- C flags (Release): -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Winconsistent-missing-override -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Qunused-arguments -ffunction-sections -fdata-sections -fvisibility=hidden -fvisibility-inlines-hidden -O2 -DNDEBUG -DNDEBUG -- C flags (Debug): -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Winconsistent-missing-override -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Qunused-arguments -ffunction-sections -fdata-sections -fvisibility=hidden -fvisibility-inlines-hidden -O0 -fno-limit-debug-info -DDEBUG -D_DEBUG -- Linker flags (Release): -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a -static-libstdc++ -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -- Linker flags (Debug): -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a -static-libstdc++ -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -- ccache: NO -- Precompiled headers: NO -- Extra dependencies: dl m log -- 3rdparty dependencies: -- -- OpenCV modules: -- To be built: calib3d core dnn features2d flann highgui imgcodecs imgproc java_bindings_generator ml objdetect photo shape stitching superres video videostab world -- Disabled: videoio -- Disabled by dependency: - -- Unavailable: cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev java js python2 python3 ts viz -- Applications: - -- Documentation: NO -- Non-free algorithms: NO -- -- Android NDK: C:/android-ndk-r19b-windows-x86_64 (ver 19.1.5304403) -- Android ABI: arm64-v8a -- NDK toolchain: aarch64-linux-android-clang -- STL type: c++_static -- Native API level: 23 -- Android SDK: not used, projects are not built -- -- GUI: -- -- Media I/O: -- ZLib: C:/android-ndk-r19b-windows-x86_64/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/lib/aarch64-linux-android/libz.a (ver 1.2.7) -- JPEG: build-libjpeg-turbo (ver 1.5.3-62) -- WEBP: build (ver encoder: 0x020e) -- PNG: build (ver 1.6.35) -- TIFF: build (ver 42 - 4.0.9) -- JPEG 2000: build (ver 1.900.1) -- OpenEXR: build (ver 1.7.1) -- HDR: YES -- SUNRASTER: YES -- PXM: YES -- -- Video I/O: -- -- Parallel framework: TBB (ver 2018.0 interface 10001) -- -- Trace: YES (built-in) -- -- Other third-party libraries: -- Custom HAL: YES (carotene (ver 0.0.1)) -- Protobuf: build (3.5.1) -- -- OpenCL: YES (no extra features) -- Include path: C:/Users/Lenovo/Desktop/opencv/3rdparty/include/opencl/1.2 -- Link libraries: Dynamic load -- -- Python (for build): NO -- -- Java: -- ant: NO -- Java wrappers: NO -- Java tests: NO -- -- Install to: C:/Users/Lenovo/Desktop/opencv/build-android-world/install -- ----------------------------------------------------------------- -- -- Configuring done -- Generating done -- Build files have been written to: C:/Users/Lenovo/Desktop/opencv/build-android-world </code></pre></div> <p dir="auto">As mentioned before, both <code class="notranslate">libopencv_world.so</code> and <code class="notranslate">libtbb.so</code> seems to have been correctly built. They can be found in <code class="notranslate">C:\Users\Lenovo\Desktop\opencv\build-android-world\lib\arm64-v8a</code>. However, linking of <code class="notranslate">hello_android</code> results in undefined references to <code class="notranslate">tbb::</code> functions.</p> <h6 dir="auto">mingw32-make output</h6> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ 0%] Built target libcpufeatures [ 6%] Built target libjpeg-turbo [ 10%] Built target libtiff [ 23%] Built target libwebp [ 27%] Built target libjasper [ 29%] Built target libpng [ 37%] Built target IlmImf [ 40%] Built target tbb [ 49%] Built target libprotobuf [ 50%] Built target quirc [ 56%] Built target carotene_objs [ 57%] Built target tegra_hal [100%] Built target opencv_world [100%] Linking CXX executable ..\..\bin\hello-android C:/android-ndk-r19b-windows-x86_64/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin\ld: warning: libtbb.so, needed by ..\..\lib\arm64-v8a\libopencv_world.so, not found (try using -rpath or -rpath-link) ..\..\lib\arm64-v8a\libopencv_world.so: undefined reference to `tbb::internal::get_initial_auto_partitioner_divisor()' ..\..\lib\arm64-v8a\libopencv_world.so: undefined reference to `tbb::internal::allocate_child_proxy::allocate(unsigned long) const' ..\..\lib\arm64-v8a\libopencv_world.so: undefined reference to `tbb::task::note_affinity(unsigned short)' ..\..\lib\arm64-v8a\libopencv_world.so: undefined reference to `tbb::interface7::internal::task_arena_base::internal_initialize()' ..\..\lib\arm64-v8a\libopencv_world.so: undefined reference to `tbb::internal::allocate_continuation_proxy::allocate(unsigned long) const' ..\..\lib\arm64-v8a\libopencv_world.so: undefined reference to `typeinfo for tbb::task' ..\..\lib\arm64-v8a\libopencv_world.so: undefined reference to `tbb::interface7::internal::task_arena_base::internal_execute(tbb::interface7::internal::delegate_base&amp;) const' ..\..\lib\arm64-v8a\libopencv_world.so: undefined reference to `tbb::task_group_context::init()' ..\..\lib\arm64-v8a\libopencv_world.so: undefined reference to `tbb::task_group_context::is_group_execution_cancelled() const' ..\..\lib\arm64-v8a\libopencv_world.so: undefined reference to `tbb::interface7::internal::task_arena_base::internal_current_slot()' ..\..\lib\arm64-v8a\libopencv_world.so: undefined reference to `tbb::interface7::internal::task_arena_base::internal_max_concurrency(tbb::interface7::task_arena const*)' ..\..\lib\arm64-v8a\libopencv_world.so: undefined reference to `tbb::task_group_context::~task_group_context()' ..\..\lib\arm64-v8a\libopencv_world.so: undefined reference to `tbb::internal::allocate_root_with_context_proxy::free(tbb::task&amp;) const' ..\..\lib\arm64-v8a\libopencv_world.so: undefined reference to `tbb::internal::allocate_root_with_context_proxy::allocate(unsigned long) const' ..\..\lib\arm64-v8a\libopencv_world.so: undefined reference to `tbb::interface7::internal::task_arena_base::internal_terminate()' clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation) samples\android\CMakeFiles\hello-android.dir\build.make:83: recipe for target 'bin/hello-android' failed mingw32-make[2]: *** [bin/hello-android] Error 1 CMakeFiles\Makefile2:1994: recipe for target 'samples/android/CMakeFiles/hello-android.dir/all' failed mingw32-make[1]: *** [samples/android/CMakeFiles/hello-android.dir/all] Error 2 Makefile:161: recipe for target 'all' failed mingw32-make: *** [all] Error 2"><pre class="notranslate"><code class="notranslate">[ 0%] Built target libcpufeatures [ 6%] Built target libjpeg-turbo [ 10%] Built target libtiff [ 23%] Built target libwebp [ 27%] Built target libjasper [ 29%] Built target libpng [ 37%] Built target IlmImf [ 40%] Built target tbb [ 49%] Built target libprotobuf [ 50%] Built target quirc [ 56%] Built target carotene_objs [ 57%] Built target tegra_hal [100%] Built target opencv_world [100%] Linking CXX executable ..\..\bin\hello-android C:/android-ndk-r19b-windows-x86_64/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin\ld: warning: libtbb.so, needed by ..\..\lib\arm64-v8a\libopencv_world.so, not found (try using -rpath or -rpath-link) ..\..\lib\arm64-v8a\libopencv_world.so: undefined reference to `tbb::internal::get_initial_auto_partitioner_divisor()' ..\..\lib\arm64-v8a\libopencv_world.so: undefined reference to `tbb::internal::allocate_child_proxy::allocate(unsigned long) const' ..\..\lib\arm64-v8a\libopencv_world.so: undefined reference to `tbb::task::note_affinity(unsigned short)' ..\..\lib\arm64-v8a\libopencv_world.so: undefined reference to `tbb::interface7::internal::task_arena_base::internal_initialize()' ..\..\lib\arm64-v8a\libopencv_world.so: undefined reference to `tbb::internal::allocate_continuation_proxy::allocate(unsigned long) const' ..\..\lib\arm64-v8a\libopencv_world.so: undefined reference to `typeinfo for tbb::task' ..\..\lib\arm64-v8a\libopencv_world.so: undefined reference to `tbb::interface7::internal::task_arena_base::internal_execute(tbb::interface7::internal::delegate_base&amp;) const' ..\..\lib\arm64-v8a\libopencv_world.so: undefined reference to `tbb::task_group_context::init()' ..\..\lib\arm64-v8a\libopencv_world.so: undefined reference to `tbb::task_group_context::is_group_execution_cancelled() const' ..\..\lib\arm64-v8a\libopencv_world.so: undefined reference to `tbb::interface7::internal::task_arena_base::internal_current_slot()' ..\..\lib\arm64-v8a\libopencv_world.so: undefined reference to `tbb::interface7::internal::task_arena_base::internal_max_concurrency(tbb::interface7::task_arena const*)' ..\..\lib\arm64-v8a\libopencv_world.so: undefined reference to `tbb::task_group_context::~task_group_context()' ..\..\lib\arm64-v8a\libopencv_world.so: undefined reference to `tbb::internal::allocate_root_with_context_proxy::free(tbb::task&amp;) const' ..\..\lib\arm64-v8a\libopencv_world.so: undefined reference to `tbb::internal::allocate_root_with_context_proxy::allocate(unsigned long) const' ..\..\lib\arm64-v8a\libopencv_world.so: undefined reference to `tbb::interface7::internal::task_arena_base::internal_terminate()' clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation) samples\android\CMakeFiles\hello-android.dir\build.make:83: recipe for target 'bin/hello-android' failed mingw32-make[2]: *** [bin/hello-android] Error 1 CMakeFiles\Makefile2:1994: recipe for target 'samples/android/CMakeFiles/hello-android.dir/all' failed mingw32-make[1]: *** [samples/android/CMakeFiles/hello-android.dir/all] Error 2 Makefile:161: recipe for target 'all' failed mingw32-make: *** [all] Error 2 </code></pre></div> <h5 dir="auto">Steps to reproduce</h5> <p dir="auto">Path to opencv source: <code class="notranslate">C:\Users\Lenovo\Desktop\opencv</code><br> Path to build directory: <code class="notranslate">C:\Users\Lenovo\Desktop\opencv\build-android-world</code></p> <h6 dir="auto">CMake invocation</h6> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="cmake .. -G &quot;MinGW Makefiles&quot; ^ -DANDROID_ABI=arm64-v8a ^ -DANDROID_NATIVE_API_LEVEL=23 ^ -DANDROID_ARM_NEON=ON ^ -DANDROID_TOOLCHAIN=clang ^ -DCMAKE_TOOLCHAIN_FILE=C:/android-ndk-r19b-windows-x86_64/build/cmake/android.toolchain.cmake ^ -DANDROID_NDK=C:/android-ndk-r19b-windows-x86_64 ^ -DANDROID_SDK=C:/Users/Lenovo/android-sdk ^ -DBUILD_SHARED_LIBS=ON ^ -DCMAKE_BUILD_TYPE=Release ^ -DBUILD_ANDROID_PROJECTS=OFF ^ -DWITH_OPENCL=ON ^ -DWITH_TBB=ON ^ -DENABLE_NEON=ON ^ -DENABLE_CXX11=ON ^ -DBUILD_TESTS=OFF ^ -DBUILD_PERF_TESTS=OFF ^ -DBUILD_opencv_videoio=OFF ^ -DBUILD_opencv_world=ON mingw32-make [-j4]"><pre class="notranslate"><code class="notranslate">cmake .. -G "MinGW Makefiles" ^ -DANDROID_ABI=arm64-v8a ^ -DANDROID_NATIVE_API_LEVEL=23 ^ -DANDROID_ARM_NEON=ON ^ -DANDROID_TOOLCHAIN=clang ^ -DCMAKE_TOOLCHAIN_FILE=C:/android-ndk-r19b-windows-x86_64/build/cmake/android.toolchain.cmake ^ -DANDROID_NDK=C:/android-ndk-r19b-windows-x86_64 ^ -DANDROID_SDK=C:/Users/Lenovo/android-sdk ^ -DBUILD_SHARED_LIBS=ON ^ -DCMAKE_BUILD_TYPE=Release ^ -DBUILD_ANDROID_PROJECTS=OFF ^ -DWITH_OPENCL=ON ^ -DWITH_TBB=ON ^ -DENABLE_NEON=ON ^ -DENABLE_CXX11=ON ^ -DBUILD_TESTS=OFF ^ -DBUILD_PERF_TESTS=OFF ^ -DBUILD_opencv_videoio=OFF ^ -DBUILD_opencv_world=ON mingw32-make [-j4] </code></pre></div> <p dir="auto">This leads eventually to <a href="#mingw32-make-output">mingw32-make output</a> above</p></li></ul>
0
<p dir="auto">After upgrading to React 15.0.1 or 15.1.0 I'm not able to use printWasted from Perf tools.</p> <p dir="auto">React 15.0.1 throws error:<br> <code class="notranslate">ReactDefaultPerfAnalysis.js:177 Uncaught TypeError: Cannot read property 'forEach' of undefined(…)</code></p> <p dir="auto">React 15.1.0<br> <code class="notranslate">warning.js:44 Warning: There is an internal error in the React performance measurement code. We did not expect componentDidMount timer to stop while no timer is still in progress for another instance. Please report this as a bug in React</code></p> <p dir="auto">I discovered that error is connected with returning <code class="notranslate">null</code>. A lot of my components have something like that</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="render: function() { if (!this.props.visible) { return null; } // ... }"><pre class="notranslate"><code class="notranslate">render: function() { if (!this.props.visible) { return null; } // ... } </code></pre></div> <p dir="auto">And when I try to measure one of those components I will get above error. Removing conditions from components fixes problem.</p>
<p dir="auto">After upgrading to 15.1.0 I'm having trouble using the React Perf tools. I've done the following:</p> <p dir="auto">Added to one of my files:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import Perf from 'react-addons-perf'; window.Perf = Perf;"><pre class="notranslate"><code class="notranslate">import Perf from 'react-addons-perf'; window.Perf = Perf; </code></pre></div> <p dir="auto">I then launch my app in Chrome. Open the Dev Tools and run this in the console:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Perf.start(); Perf.stop(); Perf.printWasted();"><pre class="notranslate"><code class="notranslate">Perf.start(); Perf.stop(); Perf.printWasted(); </code></pre></div> <p dir="auto">And I get:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TypeError: Cannot read property 'forEach' of undefined getWasted @ 7.7.js:149515 printWasted @ 7.7.js:149666 (anonymous function) @ VM508:1"><pre class="notranslate"><code class="notranslate">TypeError: Cannot read property 'forEach' of undefined getWasted @ 7.7.js:149515 printWasted @ 7.7.js:149666 (anonymous function) @ VM508:1 </code></pre></div> <p dir="auto">The failure is on this line: <code class="notranslate">flushHistory.forEach(function (flush) {</code>.</p> <p dir="auto">The same behaviour occurs for all other <code class="notranslate">print*</code> method such as <code class="notranslate">printInclusive()</code> and <code class="notranslate">printExclusive()</code>.<br> The same behaviour occurs if I put the commands into my code (ie. NOT running in the Chrome Console).</p>
1
<h3 dir="auto">Describe the workflow you want to enable</h3> <p dir="auto">Like in R, can we add an option of offset in sklearn so that we can fix the value of some coefficients for logistic regression?</p> <p dir="auto">For those who don't know offset, offset is defined as a fixed feature with coefficient being 1. Therefore, if <math-renderer class="js-inline-math" style="display: inline" data-static-url="https://github.githubassets.com/static" data-run-id="7de3fe2187cbc4e6ac9c23481d0b12a2">$y=g(x\beta + z\alpha)$</math-renderer> and we want to choose some pre-determined value <math-renderer class="js-inline-math" style="display: inline" data-static-url="https://github.githubassets.com/static" data-run-id="7de3fe2187cbc4e6ac9c23481d0b12a2">$\alpha_0$</math-renderer>, we can just pass <math-renderer class="js-inline-math" style="display: inline" data-static-url="https://github.githubassets.com/static" data-run-id="7de3fe2187cbc4e6ac9c23481d0b12a2">$z\alpha_0$</math-renderer> to offset.</p> <h3 dir="auto">Describe your proposed solution</h3> <p dir="auto">I feel this might be straightforward but, as someone who doesn't know the original code/module that well, it would be great if someone can give any advice on if this is feasible. Also any suggestions on its functionality would be helpful.</p> <h3 dir="auto">Describe alternatives you've considered, if relevant</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Additional context</h3> <p dir="auto"><em>No response</em></p>
<h3 dir="auto">Describe the workflow you want to enable</h3> <p dir="auto">As described at <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1333682254" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/24155" data-hovercard-type="issue" data-hovercard-url="/scikit-learn/scikit-learn/issues/24155/hovercard" href="https://github.com/scikit-learn/scikit-learn/issues/24155">#24155</a>, GLM should also support the offset option.</p> <h3 dir="auto">Describe your proposed solution</h3> <p dir="auto">For example</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from sklearn.linear_model import PoissonRegressor glm = PoissonRegressor( alpha=0, fit_intercept=False, max_iter=300, offset=A # offset option ) glm.fit(X_train, y_train)"><pre class="notranslate"><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">PoissonRegressor</span> <span class="pl-s1">glm</span> <span class="pl-c1">=</span> <span class="pl-v">PoissonRegressor</span>( <span class="pl-s1">alpha</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">fit_intercept</span><span class="pl-c1">=</span><span class="pl-c1">False</span>, <span class="pl-s1">max_iter</span><span class="pl-c1">=</span><span class="pl-c1">300</span>, <span class="pl-s1">offset</span><span class="pl-c1">=</span><span class="pl-v">A</span> <span class="pl-c"># offset option</span> ) <span class="pl-s1">glm</span>.<span class="pl-en">fit</span>(<span class="pl-v">X_train</span>, <span class="pl-s1">y_train</span>)</pre></div> <h3 dir="auto">Describe alternatives you've considered, if relevant</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Additional context</h3> <p dir="auto"><em>No response</em></p>
1
<p dir="auto">When generating URLs, named parameters are usually passed like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$uri = $router-&gt;generate('blog_show', array('slug' =&gt; 'my-blog-post'));"><pre class="notranslate"><code class="notranslate">$uri = $router-&gt;generate('blog_show', array('slug' =&gt; 'my-blog-post')); </code></pre></div> <p dir="auto">It would be cool if one could pass an object that implements the <code class="notranslate">ArrayAccess</code> interface, too. That would make generating routes for models incredibly easy (and allow for changing the URL parameters without changing the places where the URLs are generated).</p> <p dir="auto">Something like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$uri = $router-&gt;generate('blog_show', $post);"><pre class="notranslate"><code class="notranslate">$uri = $router-&gt;generate('blog_show', $post); </code></pre></div> <p dir="auto">Quite possibly the current implementation loops through the array and then tries to replace the appropriate placeholder if it exists. For this to work, that implementation would obviously have to be reversed - take the route, search for placeholders and then look for the corresponding parameters.</p> <hr> <p dir="auto">Not sure, maybe this is already possible, I wasn't very successful digging through the code.</p>
<p dir="auto">For Symfony2 Router with the help of standart bundle (sensio extra) we can write ParamConverters to convert request param=&gt;object. Is there any standart way to use reversed convertion?</p> <p dir="auto">Now we must do something like this:<br> path('DevBlogBundle_post_show',{'post':post.id})<br> While a better way would be:<br> path('DevBlogBundle_post_show',{'post':post})</p> <p dir="auto">I've found even example jist:<br> <a href="https://gist.github.com/stevelacey/3226510">https://gist.github.com/stevelacey/3226510</a></p> <ol dir="auto"> <li>Maybe, we should think about adding such functionality to future releases of, for example, sensioFrameworkExtra bundle?</li> <li>If there is no such functionality, is bundle providing such extension would be needed?</li> </ol> <p dir="auto">Thanks.</p>
1
<p dir="auto">(*** This section is for bug reports and feature requests only. This is NOT a help site. Do not ask help questions here. If you need help, please use stackoverflow. ***)</p> <h5 dir="auto">Description of the problem</h5> <p dir="auto">It seems like the standard geometries have faces as indices/elements. But it appears like gl.drawArrays is being used. I'm assuming that there is a way for drawElements to be used instead, to minimize the attribute buffer sizes, using the face element/index values.</p> <p dir="auto">Also, as I get into ShaderMaterials, I'd prefer to have attribute arrays the size of the number of unique vertices, with color, positions etc the same size as well, using drawElements to manage duplications .. i.e. 4 vertices per rectangle, with 6 elements for its two triangles.</p> <p dir="auto">What is the method used to have WebGLRenderer use drawElements? Possibly WebGLIndexedBufferRenderer?</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=""> r84</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"> Linux</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Android</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> IOS</li> </ul> <h5 dir="auto">Hardware Requirements (graphics card, VR Device, ...)</h5>
<p dir="auto">It would be great if derived Materials (e.g. Phong, Normal, etc.) allowed the user to pass an existing instance of a material to the Clone() method, as you can with base materials.</p> <p dir="auto">I think this would just require (Phong for example):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="if ( material === undefined ) material = new THREE.MeshPhongMaterial();"><pre class="notranslate"><code class="notranslate">if ( material === undefined ) material = new THREE.MeshPhongMaterial(); </code></pre></div>
0
<p dir="auto"><strong>Migrated issue, originally created by Anonymous</strong></p> <p dir="auto">query.with_only_columns(<a href="func.count('*')">func.count('*')</a>) seems to produce invalid SQL since slqalchemy 0.7.3 (tested on fresh clone from hg too)</p> <p dir="auto">code to reproduce it(tested also on mysql - the same issue):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from sqlalchemy import ForeignKey, create_engine, select, func from sqlalchemy.orm import sessionmaker, relationship from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import Column, Integer, DateTime, Unicode Base = declarative_base() engine = create_engine('sqlite://', echo=False) Session = sessionmaker(autoflush=False, bind=engine) class Foo(Base): __tablename__ = 'foos' id = Column(Integer(), primary_key=True) xxx = Column(Unicode(10), nullable=False, default=u'xxx') session = Session() Base.metadata.create_all(engine) session.add_all(Foo() for _ in xrange(30)) session.commit() foos_table = Foo.__table__ query = select([foos_table](foos_table)) # doesn't work:/ (query: SELECT count(?) AS count_1) count = query.with_only_columns([func.count('*')](func.count('*'))) # wrong result: 1 print '\tcount *: %i' % session.execute(count).scalar() # work (query: SELECT count(foos.id) AS count_1 FROM foos) count = query.with_only_columns([func.count(foos_table.c.id)](func.count(foos_table.c.id))) # correct result: 30 print '\tcount id: %i' % session.execute(count).scalar()"><pre class="notranslate"><code class="notranslate">from sqlalchemy import ForeignKey, create_engine, select, func from sqlalchemy.orm import sessionmaker, relationship from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import Column, Integer, DateTime, Unicode Base = declarative_base() engine = create_engine('sqlite://', echo=False) Session = sessionmaker(autoflush=False, bind=engine) class Foo(Base): __tablename__ = 'foos' id = Column(Integer(), primary_key=True) xxx = Column(Unicode(10), nullable=False, default=u'xxx') session = Session() Base.metadata.create_all(engine) session.add_all(Foo() for _ in xrange(30)) session.commit() foos_table = Foo.__table__ query = select([foos_table](foos_table)) # doesn't work:/ (query: SELECT count(?) AS count_1) count = query.with_only_columns([func.count('*')](func.count('*'))) # wrong result: 1 print '\tcount *: %i' % session.execute(count).scalar() # work (query: SELECT count(foos.id) AS count_1 FROM foos) count = query.with_only_columns([func.count(foos_table.c.id)](func.count(foos_table.c.id))) # correct result: 30 print '\tcount id: %i' % session.execute(count).scalar() </code></pre></div> <p dir="auto">test runs:</p> <p dir="auto">sqlalchemy 0.7.3</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ python bug_with_only_columns.py count *: 1 count id: 30"><pre class="notranslate"><code class="notranslate">$ python bug_with_only_columns.py count *: 1 count id: 30 </code></pre></div> <p dir="auto">sqlalchemy 0.7.2</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ python bug_with_only_columns.py count *: 30 count id: 30"><pre class="notranslate"><code class="notranslate">$ python bug_with_only_columns.py count *: 30 count id: 30 </code></pre></div>
<p dir="auto"><strong>Migrated issue, originally created by Anonymous</strong></p> <p dir="auto">Playing with append_constraints() i noticed various errors, maybe not all grave defects, mostly bad error handling when the user does stupid things, but here they are:</p> <ol dir="auto"> <li> <p dir="auto">Appending a broken constraint to a table (very degenerated case...) creates a cryptic error message..., should probably tell me that my PrimaryKeyConstraint is broken...</p> <blockquote> <blockquote> <blockquote> <p dir="auto">from sqlalchemy import *<br> meta = MetaData()<br> users_table = Table('users',meta,<br> ... Column('id',Integer,primary_key=True))<br> ref_table = Table('foo',meta,Column('id_ref',Integer))<br> pk = PrimaryKeyConstraint(<a href="'id_ref'">'id_ref'</a>,<a href="users_table.c.id">users_table.c.id</a>)<br> ref_table.append_constraint(pk)<br> Traceback (most recent call last):<br> File "", line 1, in <br> File "c:\sdk\win32\1.0\Python25\lib\site-packages\sqlalchemy-0.4.1-py2.5.egg\s<br> qlalchemy\schema.py", line 270, in append_constraint<br> constraint._set_parent(self)<br> File "c:\sdk\win32\1.0\Python25\lib\site-packages\sqlalchemy-0.4.1-py2.5.egg\s<br> qlalchemy\schema.py", line 902, in _set_parent<br> self.append_column(table.c<a href="c">c</a>)<br> File "c:\sdk\win32\1.0\Python25\lib\site-packages\sqlalchemy-0.4.1-py2.5.egg\s<br> qlalchemy\util.py", line 275, in <strong>getitem</strong><br> return self._data<a href="key">key</a><br> TypeError: list objects are unhashable</p> </blockquote> </blockquote> </blockquote> </li> <li> <p dir="auto">Adding the same constraint more than once does not weed out duplicates, it just adds the ForeignKey() to the Column...</p> <blockquote> <blockquote> <blockquote> <p dir="auto">pk = ForeignKeyConstraint(<a href="'id_ref'">'id_ref'</a>,<a href="users_table.c.id">users_table.c.id</a>)<br> ref2_table.append_constraint(pk)<br> ref2_table<br> Table('foo2', MetaData(None), Column('id_ref', Integer(), ForeignKey('users.id')<br> ), Column('name', String(length=30, convert_unicode=False)), schema=None)<br> ref2_table.append_constraint(pk)<br> ref2_table<br> Table('foo2', MetaData(None), Column('id_ref', Integer(), ForeignKey('users.id')<br> , ForeignKey('users.id')), Column('name', String(length=30, convert_unicode=Fals<br> e)), schema=None)</p> </blockquote> </blockquote> </blockquote> </li> <li> <p dir="auto">Even worse, you can add different Foreign Keys to the same Column</p> <blockquote> <blockquote> <blockquote> <p dir="auto">pk2 = ForeignKeyConstraint(<a href="'id_ref'">'id_ref'</a>,<a href="ref_table.c.id_ref">ref_table.c.id_ref</a>)<br> ref2_table.append_constraint(pk2)<br> ref2_table<br> Table('foo2', MetaData(None), Column('id_ref', Integer(), ForeignKey('users.id')<br> , ForeignKey('users.id'), ForeignKey('foo.id_ref')), Column('name', String(lengt<br> h=30, convert_unicode=False)), schema=None)</p> </blockquote> </blockquote> </blockquote> </li> </ol>
0
<p dir="auto">Fitting a model several times when building a validation or a learning curve can be costly while the evaluation of the scorer can be very fast.</p> <p dir="auto">It would be interesting if it would be possible to evaluate a list of scorers given to:</p> <p dir="auto"><code class="notranslate">sklearn.learning_curve.learning_curve</code><br> <code class="notranslate">sklearn.learning_curve.validation_curve</code></p> <p dir="auto">as the argument <code class="notranslate">scoring = [scorer1, scorer2, scorer3, ... ]</code></p> <p dir="auto">As a workaround, I'm going to see if my scorer can return a float with extra info in the form of extra properties, like the extra scorers that I want to evaluate (in my particular case, I'm even going to try including confusion matrixes), although I'm quite new at Python, and I don't know if such a thing is possible/easy. Nevertheless such an approach seems unnecessarily twisted.</p> <p dir="auto">Learning curve and validation curves are the two functions that are relevant to me. I don't know whether there are any other methods which may be susceptible of this enhancement.</p> <p dir="auto">Would you consider as feasible expanding scoring functionality to accept lists of scorers?</p>
<p dir="auto"><code class="notranslate">Scorer</code> objects currently provide an interface that returns a scalar score given an estimator and test data. This is necessary for <code class="notranslate">*SearchCV</code> to calculate a mean score across folds, and determine the best score among parameters.</p> <p dir="auto">This is very hampering in terms of the diagnostic information available from a cross-fold validation or parameter exploration, which one can see by comparing to the catalogue of <code class="notranslate">metrics</code> that includes: precision and recall with F-score; scores for each of multiple classes as well as an aggregate; and error distributions (i.e. PR-curve or confusion matrix). <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/solomonm/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/solomonm">@solomonm</a> (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="12773836" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/1837" data-hovercard-type="issue" data-hovercard-url="/scikit-learn/scikit-learn/issues/1837/hovercard" href="https://github.com/scikit-learn/scikit-learn/issues/1837">#1837</a>) and I (ML, an implementation within <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="11954190" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/1768" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/1768/hovercard" href="https://github.com/scikit-learn/scikit-learn/pull/1768">#1768</a>) have independently sought Precision and Recall to be returned from cross-validation routines when F1 is used as the cross-validation objective; <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/eickenberg/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/eickenberg">@eickenberg</a> on <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="8452341" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/1381" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/1381/hovercard" href="https://github.com/scikit-learn/scikit-learn/pull/1381#commitcomment-2607318">#1381 (comment)</a> posed a concern regarding array of scores corresponding to multiple targets.</p> <p dir="auto">I thought it deserved an Issue of its own to solidify the argument and its solution.</p> <p dir="auto">Some design options:</p> <ol dir="auto"> <li>Allow multiple scorers to be provided to <code class="notranslate">cross_val_score</code> or <code class="notranslate">*SearchCV</code> (henceforth <code class="notranslate">CVEvaluator</code>), with one specified as the objective. But since the <code class="notranslate">Scorer</code> generally calls <code class="notranslate">estimator.{predict,decision_function,predict_proba}</code>, each scorer would repeat this work.</li> <li>Separate the objective and non-objective metrics as parameters to <code class="notranslate">CVEvaluator</code>: the <code class="notranslate">scoring</code> parameter remains as it is and a <code class="notranslate">diagnostics</code> parameter provides a callable with similar (same?) arguments as <code class="notranslate">Scorer</code>, but returning a dict. This means that the prediction work is repeated but not necessarily as many times as there are metrics. This diagnostics callable is more flexible and perhaps could be passed the training data as well as the test data.</li> <li>Continue to use the <code class="notranslate">scoring</code> parameter, but allow the <code class="notranslate">Scorer</code> to return a dict with a special key for the objective score. This would need to be handled by the caller. For backwards compatibility, no existing scorers would change their behaviour of returning a float. This ensures no repeated prediction work.</li> <li>Add an additional method to the <code class="notranslate">Scorer</code> interface that generates a set of named outputs (as with <code class="notranslate">calc_names</code> proposed in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="12773836" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/1837" data-hovercard-type="issue" data-hovercard-url="/scikit-learn/scikit-learn/issues/1837/hovercard" href="https://github.com/scikit-learn/scikit-learn/issues/1837">#1837</a>), again with a special key for the objective score. This allows users to continue using <code class="notranslate">scoring='f1'</code> but get back precision and recall for free.</li> </ol> <p dir="auto">Note that 3. and 4. potentially allow for any set of metrics to be composed into a scorer without redundant prediction work (and 1. allows composition with highly redundant prediction work).</p> <p dir="auto">Comments, critiques and suggestions are very welcome.</p>
1
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# routes.yml app_index: pattern: / vendor_bundle_index: alias: app_index"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> routes.yml</span> <span class="pl-ent">app_index</span>: <span class="pl-ent">pattern</span>: <span class="pl-s">/</span> <span class="pl-ent">vendor_bundle_index</span>: <span class="pl-ent">alias</span>: <span class="pl-s">app_index</span></pre></div>
<p dir="auto">I'm writing a code that implements a serializer interface but I dont want (dont need) to include all Symfony Serializer implementation code to my project, therefore I've just copied SerializerInterface.php to my project to use it.</p> <p dir="auto">Then my question is to create a packagist library for <code class="notranslate">SerializerInterface</code> to use as standard (like PSR-7) and add this "new" library as dependency of <code class="notranslate">symfony/serializer</code>.</p> <p dir="auto">Regards.</p>
0
<p dir="auto">Any chance of adding this? I noticed the meshes have a visibility property, but I couldn't find a method to calculate visibility to the camera.</p>
<p dir="auto">(dev/examples/js/loaders/ObjectLoader.js from commit e3290e3f09)</p> <p dir="auto">The ObjectLoader actually relies on the order of geometries to assign (child-) objects to geometries. would it be possible to use unique id's instead? I am just experimenting with a php backend, that is converting Objects to ObjectLoader compatible json. Having a lot of objectgroups with children, keeping the geometries idx in sync with the order of geometries is quite complicated. Using a unique ID instead would be much cleaner.</p> <p dir="auto">in Line 249 it fetches the geometry by data.geometry:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" object = new THREE.Mesh( geometries[ data.geometry ], materials[ data.material ] );"><pre class="notranslate"><code class="notranslate"> object = new THREE.Mesh( geometries[ data.geometry ], materials[ data.material ] ); </code></pre></div> <p dir="auto">this code could also access the geometry with a uuid in data.geometry, but the length method in line 55 won't work if json contains a geometries object instead of an array:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" for ( var i = 0, l = json.geometries.length; i &lt; l; i ++ ) {"><pre class="notranslate"><code class="notranslate"> for ( var i = 0, l = json.geometries.length; i &lt; l; i ++ ) { </code></pre></div> <p dir="auto">same for the code that is adding the json geometris to the geometries array on line 157:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" if ( data.name !== undefined ) geometry.name = data.name; geometries.push( geometry );"><pre class="notranslate"><code class="notranslate"> if ( data.name !== undefined ) geometry.name = data.name; geometries.push( geometry ); </code></pre></div> <p dir="auto">changing this to</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" if ( data.name !== undefined ) geometry.name = data.name; if (data.uuid !== undefined) geometries[data.uuid] = geometry; else geometries.push( geometry );"><pre class="notranslate"><code class="notranslate"> if ( data.name !== undefined ) geometry.name = data.name; if (data.uuid !== undefined) geometries[data.uuid] = geometry; else geometries.push( geometry ); </code></pre></div> <p dir="auto">seems to work when I pass a json gemotries-array with uuid in every geometry.</p> <p dir="auto">Cheers,<br> Björn</p>
0
<p dir="auto">When I use <code class="notranslate">%matplotlib notebook</code> it creates bigger plots like <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="98632225" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/4853" data-hovercard-type="issue" data-hovercard-url="/matplotlib/matplotlib/issues/4853/hovercard" href="https://github.com/matplotlib/matplotlib/issues/4853">#4853</a> but also offsets the entire image.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="%matplotlib inline sns.palplot(sns.color_palette(&quot;cubehelix&quot;, n_colors=50)) %matplotlib notebook sns.palplot(sns.color_palette(&quot;cubehelix&quot;, n_colors=50)) "><pre class="notranslate"><code class="notranslate">%matplotlib inline sns.palplot(sns.color_palette("cubehelix", n_colors=50)) %matplotlib notebook sns.palplot(sns.color_palette("cubehelix", n_colors=50)) </code></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/9061708/20115084/cc8bfb0e-a5ab-11e6-8ca9-b20e66237f48.png"><img src="https://cloud.githubusercontent.com/assets/9061708/20115084/cc8bfb0e-a5ab-11e6-8ca9-b20e66237f48.png" alt="screen shot 2016-11-08 at 12 05 32 pm" style="max-width: 100%;"></a></p>
<p dir="auto">Is this a bug or intended behavior?</p> <p dir="auto">I'm using matplotlib 1.4.3 and IPython 3.2.0 on OS X via conda.</p> <p dir="auto">Here's an example of what I see:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1217238/9027717/27b0b6be-3915-11e5-9391-c8481eafca64.png"><img width="805" alt="screen shot 2015-08-01 at 11 10 33 pm" src="https://cloud.githubusercontent.com/assets/1217238/9027717/27b0b6be-3915-11e5-9391-c8481eafca64.png" style="max-width: 100%;"></a></p>
1
<h3 dir="auto">Bug report</h3> <p dir="auto"><strong>Bug summary</strong><br> Got 'Could not convert glyph to bitmap' error when run matplotlib fig.savefig() in parallel</p> <p dir="auto">Recently we got this 'Could not convert glyph to bitmap' error from time to time after we implemented a multi-process solution of the pipeline. That is, there could be multiple processes plotting and saving the figures simultaneously. We had removed all individual fig.savefig() invoking at the top level and forced to use util function in every place. Now the error tracks back to that last fig.savefig() within util function which was pretty bad. It seemed that the more complicated the figure, the more processes running at the same time, the higher possibility we got this issue.</p> <p dir="auto"><strong>Code for reproduction</strong></p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# Paste your code here # We used the following line to save a figure in utli.save_figures() fig.savefig(full_path, pad_inches=pad_inches, dpi=dpi)"><pre class="notranslate"><span class="pl-c"># Paste your code here</span> <span class="pl-c"># We used the following line to save a figure in utli.save_figures()</span> <span class="pl-s1">fig</span>.<span class="pl-en">savefig</span>(<span class="pl-s1">full_path</span>, <span class="pl-s1">pad_inches</span><span class="pl-c1">=</span><span class="pl-s1">pad_inches</span>, <span class="pl-s1">dpi</span><span class="pl-c1">=</span><span class="pl-s1">dpi</span>)</pre></div> <p dir="auto"><strong>Actual outcome</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# If applicable, paste the console output here File &quot;analysis/util.py&quot;, line 1041, in save_figures fig.savefig(full_path, pad_inches=pad_inches, dpi=dpi) File &quot;/root/eureka1.0/local/lib/python2.7/site-packages/matplotlib/figure.py&quot;, line 2062, in savefig self.canvas.print_figure(fname, **kwargs) File &quot;/root/eureka1.0/local/lib/python2.7/site-packages/matplotlib/backend_bases.py&quot;, line 2263, in print_figure **kwargs) File &quot;/root/eureka1.0/local/lib/python2.7/site-packages/matplotlib/backends/backend_agg.py&quot;, line 517, in print_png FigureCanvasAgg.draw(self) File &quot;/root/eureka1.0/local/lib/python2.7/site-packages/matplotlib/backends/backend_agg.py&quot;, line 437, in draw self.figure.draw(self.renderer) File &quot;/root/eureka1.0/local/lib/python2.7/site-packages/matplotlib/artist.py&quot;, line 55, in draw_wrapper return draw(artist, renderer, *args, **kwargs) File &quot;/root/eureka1.0/local/lib/python2.7/site-packages/matplotlib/figure.py&quot;, line 1493, in draw renderer, self, artists, self.suppressComposite) File &quot;/root/eureka1.0/local/lib/python2.7/site-packages/matplotlib/image.py&quot;, line 141, in _draw_list_compositing_images a.draw(renderer) File &quot;/root/eureka1.0/local/lib/python2.7/site-packages/matplotlib/artist.py&quot;, line 55, in draw_wrapper return draw(artist, renderer, *args, **kwargs) File &quot;/root/eureka1.0/local/lib/python2.7/site-packages/matplotlib/axes/_base.py&quot;, line 2635, in draw mimage._draw_list_compositing_images(renderer, self, artists) File &quot;/root/eureka1.0/local/lib/python2.7/site-packages/matplotlib/image.py&quot;, line 141, in _draw_list_compositing_images a.draw(renderer) File &quot;/root/eureka1.0/local/lib/python2.7/site-packages/matplotlib/artist.py&quot;, line 55, in draw_wrapper return draw(artist, renderer, *args, **kwargs) File &quot;/root/eureka1.0/local/lib/python2.7/site-packages/matplotlib/text.py&quot;, line 755, in draw ismath=ismath, mtext=mtext) File &quot;/root/eureka1.0/local/lib/python2.7/site-packages/matplotlib/backends/backend_agg.py&quot;, line 212, in draw_text font.draw_glyphs_to_bitmap(antialiased=rcParams['text.antialiased']) RuntimeError: In draw_glyphs_to_bitmap: Could not convert glyph to bitmap"><pre class="notranslate"><code class="notranslate"># If applicable, paste the console output here File "analysis/util.py", line 1041, in save_figures fig.savefig(full_path, pad_inches=pad_inches, dpi=dpi) File "/root/eureka1.0/local/lib/python2.7/site-packages/matplotlib/figure.py", line 2062, in savefig self.canvas.print_figure(fname, **kwargs) File "/root/eureka1.0/local/lib/python2.7/site-packages/matplotlib/backend_bases.py", line 2263, in print_figure **kwargs) File "/root/eureka1.0/local/lib/python2.7/site-packages/matplotlib/backends/backend_agg.py", line 517, in print_png FigureCanvasAgg.draw(self) File "/root/eureka1.0/local/lib/python2.7/site-packages/matplotlib/backends/backend_agg.py", line 437, in draw self.figure.draw(self.renderer) File "/root/eureka1.0/local/lib/python2.7/site-packages/matplotlib/artist.py", line 55, in draw_wrapper return draw(artist, renderer, *args, **kwargs) File "/root/eureka1.0/local/lib/python2.7/site-packages/matplotlib/figure.py", line 1493, in draw renderer, self, artists, self.suppressComposite) File "/root/eureka1.0/local/lib/python2.7/site-packages/matplotlib/image.py", line 141, in _draw_list_compositing_images a.draw(renderer) File "/root/eureka1.0/local/lib/python2.7/site-packages/matplotlib/artist.py", line 55, in draw_wrapper return draw(artist, renderer, *args, **kwargs) File "/root/eureka1.0/local/lib/python2.7/site-packages/matplotlib/axes/_base.py", line 2635, in draw mimage._draw_list_compositing_images(renderer, self, artists) File "/root/eureka1.0/local/lib/python2.7/site-packages/matplotlib/image.py", line 141, in _draw_list_compositing_images a.draw(renderer) File "/root/eureka1.0/local/lib/python2.7/site-packages/matplotlib/artist.py", line 55, in draw_wrapper return draw(artist, renderer, *args, **kwargs) File "/root/eureka1.0/local/lib/python2.7/site-packages/matplotlib/text.py", line 755, in draw ismath=ismath, mtext=mtext) File "/root/eureka1.0/local/lib/python2.7/site-packages/matplotlib/backends/backend_agg.py", line 212, in draw_text font.draw_glyphs_to_bitmap(antialiased=rcParams['text.antialiased']) RuntimeError: In draw_glyphs_to_bitmap: Could not convert glyph to bitmap </code></pre></div> <p dir="auto"><strong>Expected outcome</strong><br> All figures are successfully saved.</p> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Operating system: Ubuntu 16.04.4</li> <li>Matplotlib version: 2.2.4</li> <li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): agg</li> <li>Python version: 2.7.12</li> </ul>
<h3 dir="auto">Bug report</h3> <p dir="auto"><strong>Bug summary</strong></p> <p dir="auto">When storing multiple PDFs using parallel processes (not threads!) a RuntimeError occurs. This happens regardless of the library used for parallelization, i.e. <code class="notranslate">concurrent</code>, <code class="notranslate">multiprocessing</code> or <code class="notranslate">joblib</code>. The error is either <code class="notranslate">RuntimeError: In set_text: could not load glyph</code> (generated by the code below) or <code class="notranslate">RuntimeError: In load_char: Could not load charcode</code> (which I can't seem to reproduce yet, but maybe you have a better idea of the link behind the two).</p> <p dir="auto"><strong>Code for reproduction</strong></p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from multiprocessing import Pool from joblib import Parallel, delayed from concurrent.futures import ThreadPoolExecutor, ProcessPoolExecutor, as_completed def model_handler(n): import matplotlib.pyplot as plt fig_out = plt.figure(figsize=(1, 1)) axes = fig_out.add_subplot(1,1,1) axes.scatter(range(1000), range(1000)) fig_out.savefig('dummyfig{}.pdf'.format(n), format='pdf') plt.close() return n n_jobs = 2 n_workers = 2 print('List comprehension (serial)... ', end='') try: [model_handler(j) for j in range(n_jobs)] print('SUCCESS') except: print('FAILURE') print('Parallel processes via multiprocessing package... ', end='') try: Pool(processes=n_workers).map(model_handler, range(n_jobs)) print('SUCCESS') except: print('FAILURE') print('Parallel processes via joblib package (loky backend)... ', end='') try: Parallel(n_jobs=n_workers, backend='loky')(delayed(model_handler)(i) for i in range(n_jobs)) print('SUCCESS') except: print('FAILURE') print('Parallel threads via joblib package... ', end='') try: Parallel(n_jobs=n_workers, backend='threading')(delayed(model_handler)(i) for i in range(n_jobs)) print('SUCCESS') except: print('FAILURE') print('Parallel processes via joblib package... ', end='') try: Parallel(n_jobs=n_workers, backend='multiprocessing')(delayed(model_handler)(i) for i in range(n_jobs)) print('SUCCESS') except: print('FAILURE') print('Parallel threads via concurrent.futures package... ', end='') with ThreadPoolExecutor(max_workers=n_workers) as pool: futures = [pool.submit(model_handler, i) for i in range(n_jobs)] exceptions = [x.exception() for x in as_completed(futures)] if all(exception is None for exception in exceptions): print('SUCCESS') else: print('FAILURE') print('Parallel processes via concurrent.futures package... ', end='') with ProcessPoolExecutor(max_workers=n_workers) as pool: futures = [pool.submit(model_handler, i) for i in range(n_jobs)] exceptions = [x.exception() for x in as_completed(futures)] if all(exception is None for exception in exceptions): print('SUCCESS') else: print('FAILURE')"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">multiprocessing</span> <span class="pl-k">import</span> <span class="pl-v">Pool</span> <span class="pl-k">from</span> <span class="pl-s1">joblib</span> <span class="pl-k">import</span> <span class="pl-v">Parallel</span>, <span class="pl-s1">delayed</span> <span class="pl-k">from</span> <span class="pl-s1">concurrent</span>.<span class="pl-s1">futures</span> <span class="pl-k">import</span> <span class="pl-v">ThreadPoolExecutor</span>, <span class="pl-v">ProcessPoolExecutor</span>, <span class="pl-s1">as_completed</span> <span class="pl-k">def</span> <span class="pl-en">model_handler</span>(<span class="pl-s1">n</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">fig_out</span> <span class="pl-c1">=</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">1</span>, <span class="pl-c1">1</span>)) <span class="pl-s1">axes</span> <span class="pl-c1">=</span> <span class="pl-s1">fig_out</span>.<span class="pl-en">add_subplot</span>(<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">1</span>) <span class="pl-s1">axes</span>.<span class="pl-en">scatter</span>(<span class="pl-en">range</span>(<span class="pl-c1">1000</span>), <span class="pl-en">range</span>(<span class="pl-c1">1000</span>)) <span class="pl-s1">fig_out</span>.<span class="pl-en">savefig</span>(<span class="pl-s">'dummyfig{}.pdf'</span>.<span class="pl-en">format</span>(<span class="pl-s1">n</span>), <span class="pl-s1">format</span><span class="pl-c1">=</span><span class="pl-s">'pdf'</span>) <span class="pl-s1">plt</span>.<span class="pl-en">close</span>() <span class="pl-k">return</span> <span class="pl-s1">n</span> <span class="pl-s1">n_jobs</span> <span class="pl-c1">=</span> <span class="pl-c1">2</span> <span class="pl-s1">n_workers</span> <span class="pl-c1">=</span> <span class="pl-c1">2</span> <span class="pl-en">print</span>(<span class="pl-s">'List comprehension (serial)... '</span>, <span class="pl-s1">end</span><span class="pl-c1">=</span><span class="pl-s">''</span>) <span class="pl-k">try</span>: [<span class="pl-en">model_handler</span>(<span class="pl-s1">j</span>) <span class="pl-k">for</span> <span class="pl-s1">j</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-s1">n_jobs</span>)] <span class="pl-en">print</span>(<span class="pl-s">'SUCCESS'</span>) <span class="pl-k">except</span>: <span class="pl-en">print</span>(<span class="pl-s">'FAILURE'</span>) <span class="pl-en">print</span>(<span class="pl-s">'Parallel processes via multiprocessing package... '</span>, <span class="pl-s1">end</span><span class="pl-c1">=</span><span class="pl-s">''</span>) <span class="pl-k">try</span>: <span class="pl-v">Pool</span>(<span class="pl-s1">processes</span><span class="pl-c1">=</span><span class="pl-s1">n_workers</span>).<span class="pl-en">map</span>(<span class="pl-s1">model_handler</span>, <span class="pl-en">range</span>(<span class="pl-s1">n_jobs</span>)) <span class="pl-en">print</span>(<span class="pl-s">'SUCCESS'</span>) <span class="pl-k">except</span>: <span class="pl-en">print</span>(<span class="pl-s">'FAILURE'</span>) <span class="pl-en">print</span>(<span class="pl-s">'Parallel processes via joblib package (loky backend)... '</span>, <span class="pl-s1">end</span><span class="pl-c1">=</span><span class="pl-s">''</span>) <span class="pl-k">try</span>: <span class="pl-v">Parallel</span>(<span class="pl-s1">n_jobs</span><span class="pl-c1">=</span><span class="pl-s1">n_workers</span>, <span class="pl-s1">backend</span><span class="pl-c1">=</span><span class="pl-s">'loky'</span>)(<span class="pl-en">delayed</span>(<span class="pl-s1">model_handler</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-s1">n_jobs</span>)) <span class="pl-en">print</span>(<span class="pl-s">'SUCCESS'</span>) <span class="pl-k">except</span>: <span class="pl-en">print</span>(<span class="pl-s">'FAILURE'</span>) <span class="pl-en">print</span>(<span class="pl-s">'Parallel threads via joblib package... '</span>, <span class="pl-s1">end</span><span class="pl-c1">=</span><span class="pl-s">''</span>) <span class="pl-k">try</span>: <span class="pl-v">Parallel</span>(<span class="pl-s1">n_jobs</span><span class="pl-c1">=</span><span class="pl-s1">n_workers</span>, <span class="pl-s1">backend</span><span class="pl-c1">=</span><span class="pl-s">'threading'</span>)(<span class="pl-en">delayed</span>(<span class="pl-s1">model_handler</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-s1">n_jobs</span>)) <span class="pl-en">print</span>(<span class="pl-s">'SUCCESS'</span>) <span class="pl-k">except</span>: <span class="pl-en">print</span>(<span class="pl-s">'FAILURE'</span>) <span class="pl-en">print</span>(<span class="pl-s">'Parallel processes via joblib package... '</span>, <span class="pl-s1">end</span><span class="pl-c1">=</span><span class="pl-s">''</span>) <span class="pl-k">try</span>: <span class="pl-v">Parallel</span>(<span class="pl-s1">n_jobs</span><span class="pl-c1">=</span><span class="pl-s1">n_workers</span>, <span class="pl-s1">backend</span><span class="pl-c1">=</span><span class="pl-s">'multiprocessing'</span>)(<span class="pl-en">delayed</span>(<span class="pl-s1">model_handler</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-s1">n_jobs</span>)) <span class="pl-en">print</span>(<span class="pl-s">'SUCCESS'</span>) <span class="pl-k">except</span>: <span class="pl-en">print</span>(<span class="pl-s">'FAILURE'</span>) <span class="pl-en">print</span>(<span class="pl-s">'Parallel threads via concurrent.futures package... '</span>, <span class="pl-s1">end</span><span class="pl-c1">=</span><span class="pl-s">''</span>) <span class="pl-k">with</span> <span class="pl-v">ThreadPoolExecutor</span>(<span class="pl-s1">max_workers</span><span class="pl-c1">=</span><span class="pl-s1">n_workers</span>) <span class="pl-k">as</span> <span class="pl-s1">pool</span>: <span class="pl-s1">futures</span> <span class="pl-c1">=</span> [<span class="pl-s1">pool</span>.<span class="pl-en">submit</span>(<span class="pl-s1">model_handler</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-s1">n_jobs</span>)] <span class="pl-s1">exceptions</span> <span class="pl-c1">=</span> [<span class="pl-s1">x</span>.<span class="pl-en">exception</span>() <span class="pl-k">for</span> <span class="pl-s1">x</span> <span class="pl-c1">in</span> <span class="pl-en">as_completed</span>(<span class="pl-s1">futures</span>)] <span class="pl-k">if</span> <span class="pl-en">all</span>(<span class="pl-s1">exception</span> <span class="pl-c1">is</span> <span class="pl-c1">None</span> <span class="pl-k">for</span> <span class="pl-s1">exception</span> <span class="pl-c1">in</span> <span class="pl-s1">exceptions</span>): <span class="pl-en">print</span>(<span class="pl-s">'SUCCESS'</span>) <span class="pl-k">else</span>: <span class="pl-en">print</span>(<span class="pl-s">'FAILURE'</span>) <span class="pl-en">print</span>(<span class="pl-s">'Parallel processes via concurrent.futures package... '</span>, <span class="pl-s1">end</span><span class="pl-c1">=</span><span class="pl-s">''</span>) <span class="pl-k">with</span> <span class="pl-v">ProcessPoolExecutor</span>(<span class="pl-s1">max_workers</span><span class="pl-c1">=</span><span class="pl-s1">n_workers</span>) <span class="pl-k">as</span> <span class="pl-s1">pool</span>: <span class="pl-s1">futures</span> <span class="pl-c1">=</span> [<span class="pl-s1">pool</span>.<span class="pl-en">submit</span>(<span class="pl-s1">model_handler</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-s1">n_jobs</span>)] <span class="pl-s1">exceptions</span> <span class="pl-c1">=</span> [<span class="pl-s1">x</span>.<span class="pl-en">exception</span>() <span class="pl-k">for</span> <span class="pl-s1">x</span> <span class="pl-c1">in</span> <span class="pl-en">as_completed</span>(<span class="pl-s1">futures</span>)] <span class="pl-k">if</span> <span class="pl-en">all</span>(<span class="pl-s1">exception</span> <span class="pl-c1">is</span> <span class="pl-c1">None</span> <span class="pl-k">for</span> <span class="pl-s1">exception</span> <span class="pl-c1">in</span> <span class="pl-s1">exceptions</span>): <span class="pl-en">print</span>(<span class="pl-s">'SUCCESS'</span>) <span class="pl-k">else</span>: <span class="pl-en">print</span>(<span class="pl-s">'FAILURE'</span>)</pre></div> <p dir="auto"><strong>Actual outcome</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="List comprehension (serial)... SUCCESS Parallel processes via multiprocessing package... FAILURE Parallel processes via joblib package (loky backend)... SUCCESS Parallel threads via joblib package... SUCCESS Parallel processes via joblib package... FAILURE Parallel threads via concurrent.futures package... SUCCESS Parallel processes via concurrent.futures package... FAILURE"><pre class="notranslate"><code class="notranslate">List comprehension (serial)... SUCCESS Parallel processes via multiprocessing package... FAILURE Parallel processes via joblib package (loky backend)... SUCCESS Parallel threads via joblib package... SUCCESS Parallel processes via joblib package... FAILURE Parallel threads via concurrent.futures package... SUCCESS Parallel processes via concurrent.futures package... FAILURE </code></pre></div> <p dir="auto"><strong>Traceback</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&quot;&quot;&quot; Traceback (most recent call last): File &quot;/Users/marcotama/anaconda3/envs/py37/lib/python3.7/multiprocessing/pool.py&quot;, line 121, in worker result = (True, func(*args, **kwds)) File &quot;/Users/marcotama/anaconda3/envs/py37/lib/python3.7/multiprocessing/pool.py&quot;, line 44, in mapstar return list(map(*args)) File &quot;&lt;ipython-input-16-c44ed7855af1&gt;&quot;, line 13, in model_handler fig_out.savefig('dummyfig{}.pdf'.format(n), format='pdf') File &quot;/Users/marcotama/anaconda3/envs/py37/lib/python3.7/site-packages/matplotlib/figure.py&quot;, line 2035, in savefig self.canvas.print_figure(fname, **kwargs) File &quot;/Users/marcotama/anaconda3/envs/py37/lib/python3.7/site-packages/matplotlib/backend_bases.py&quot;, line 2263, in print_figure **kwargs) File &quot;/Users/marcotama/anaconda3/envs/py37/lib/python3.7/site-packages/matplotlib/backends/backend_pdf.py&quot;, line 2586, in print_pdf self.figure.draw(renderer) File &quot;/Users/marcotama/anaconda3/envs/py37/lib/python3.7/site-packages/matplotlib/artist.py&quot;, line 55, in draw_wrapper return draw(artist, renderer, *args, **kwargs) File &quot;/Users/marcotama/anaconda3/envs/py37/lib/python3.7/site-packages/matplotlib/figure.py&quot;, line 1475, in draw renderer, self, artists, self.suppressComposite) File &quot;/Users/marcotama/anaconda3/envs/py37/lib/python3.7/site-packages/matplotlib/image.py&quot;, line 141, in _draw_list_compositing_images a.draw(renderer) File &quot;/Users/marcotama/anaconda3/envs/py37/lib/python3.7/site-packages/matplotlib/artist.py&quot;, line 55, in draw_wrapper return draw(artist, renderer, *args, **kwargs) File &quot;/Users/marcotama/anaconda3/envs/py37/lib/python3.7/site-packages/matplotlib/axes/_base.py&quot;, line 2607, in draw mimage._draw_list_compositing_images(renderer, self, artists) File &quot;/Users/marcotama/anaconda3/envs/py37/lib/python3.7/site-packages/matplotlib/image.py&quot;, line 141, in _draw_list_compositing_images a.draw(renderer) File &quot;/Users/marcotama/anaconda3/envs/py37/lib/python3.7/site-packages/matplotlib/artist.py&quot;, line 55, in draw_wrapper return draw(artist, renderer, *args, **kwargs) File &quot;/Users/marcotama/anaconda3/envs/py37/lib/python3.7/site-packages/matplotlib/axis.py&quot;, line 1192, in draw renderer) File &quot;/Users/marcotama/anaconda3/envs/py37/lib/python3.7/site-packages/matplotlib/axis.py&quot;, line 1130, in _get_tick_bboxes extent = tick.label1.get_window_extent(renderer) File &quot;/Users/marcotama/anaconda3/envs/py37/lib/python3.7/site-packages/matplotlib/text.py&quot;, line 922, in get_window_extent bbox, info, descent = self._get_layout(self._renderer) File &quot;/Users/marcotama/anaconda3/envs/py37/lib/python3.7/site-packages/matplotlib/text.py&quot;, line 300, in _get_layout ismath=False) File &quot;/Users/marcotama/anaconda3/envs/py37/lib/python3.7/site-packages/matplotlib/backends/backend_pdf.py&quot;, line 2164, in get_text_width_height_descent font.set_text(s, 0.0, flags=LOAD_NO_HINTING) RuntimeError: In set_text: could not load glyph &quot;&quot;&quot; The above exception was the direct cause of the following exception: Traceback (most recent call last): File &quot;/Users/marcotama/anaconda3/envs/py37/lib/python3.7/site-packages/IPython/core/interactiveshell.py&quot;, line 3267, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File &quot;&lt;ipython-input-18-426f53ccd8fe&gt;&quot;, line 3, in &lt;module&gt; Pool(processes=n_workers).map(model_handler, range(n_jobs)) File &quot;/Users/marcotama/anaconda3/envs/py37/lib/python3.7/multiprocessing/pool.py&quot;, line 268, in map return self._map_async(func, iterable, mapstar, chunksize).get() File &quot;/Users/marcotama/anaconda3/envs/py37/lib/python3.7/multiprocessing/pool.py&quot;, line 657, in get raise self._value RuntimeError: In set_text: could not load glyph"><pre class="notranslate"><code class="notranslate">""" Traceback (most recent call last): File "/Users/marcotama/anaconda3/envs/py37/lib/python3.7/multiprocessing/pool.py", line 121, in worker result = (True, func(*args, **kwds)) File "/Users/marcotama/anaconda3/envs/py37/lib/python3.7/multiprocessing/pool.py", line 44, in mapstar return list(map(*args)) File "&lt;ipython-input-16-c44ed7855af1&gt;", line 13, in model_handler fig_out.savefig('dummyfig{}.pdf'.format(n), format='pdf') File "/Users/marcotama/anaconda3/envs/py37/lib/python3.7/site-packages/matplotlib/figure.py", line 2035, in savefig self.canvas.print_figure(fname, **kwargs) File "/Users/marcotama/anaconda3/envs/py37/lib/python3.7/site-packages/matplotlib/backend_bases.py", line 2263, in print_figure **kwargs) File "/Users/marcotama/anaconda3/envs/py37/lib/python3.7/site-packages/matplotlib/backends/backend_pdf.py", line 2586, in print_pdf self.figure.draw(renderer) File "/Users/marcotama/anaconda3/envs/py37/lib/python3.7/site-packages/matplotlib/artist.py", line 55, in draw_wrapper return draw(artist, renderer, *args, **kwargs) File "/Users/marcotama/anaconda3/envs/py37/lib/python3.7/site-packages/matplotlib/figure.py", line 1475, in draw renderer, self, artists, self.suppressComposite) File "/Users/marcotama/anaconda3/envs/py37/lib/python3.7/site-packages/matplotlib/image.py", line 141, in _draw_list_compositing_images a.draw(renderer) File "/Users/marcotama/anaconda3/envs/py37/lib/python3.7/site-packages/matplotlib/artist.py", line 55, in draw_wrapper return draw(artist, renderer, *args, **kwargs) File "/Users/marcotama/anaconda3/envs/py37/lib/python3.7/site-packages/matplotlib/axes/_base.py", line 2607, in draw mimage._draw_list_compositing_images(renderer, self, artists) File "/Users/marcotama/anaconda3/envs/py37/lib/python3.7/site-packages/matplotlib/image.py", line 141, in _draw_list_compositing_images a.draw(renderer) File "/Users/marcotama/anaconda3/envs/py37/lib/python3.7/site-packages/matplotlib/artist.py", line 55, in draw_wrapper return draw(artist, renderer, *args, **kwargs) File "/Users/marcotama/anaconda3/envs/py37/lib/python3.7/site-packages/matplotlib/axis.py", line 1192, in draw renderer) File "/Users/marcotama/anaconda3/envs/py37/lib/python3.7/site-packages/matplotlib/axis.py", line 1130, in _get_tick_bboxes extent = tick.label1.get_window_extent(renderer) File "/Users/marcotama/anaconda3/envs/py37/lib/python3.7/site-packages/matplotlib/text.py", line 922, in get_window_extent bbox, info, descent = self._get_layout(self._renderer) File "/Users/marcotama/anaconda3/envs/py37/lib/python3.7/site-packages/matplotlib/text.py", line 300, in _get_layout ismath=False) File "/Users/marcotama/anaconda3/envs/py37/lib/python3.7/site-packages/matplotlib/backends/backend_pdf.py", line 2164, in get_text_width_height_descent font.set_text(s, 0.0, flags=LOAD_NO_HINTING) RuntimeError: In set_text: could not load glyph """ The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/Users/marcotama/anaconda3/envs/py37/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 3267, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "&lt;ipython-input-18-426f53ccd8fe&gt;", line 3, in &lt;module&gt; Pool(processes=n_workers).map(model_handler, range(n_jobs)) File "/Users/marcotama/anaconda3/envs/py37/lib/python3.7/multiprocessing/pool.py", line 268, in map return self._map_async(func, iterable, mapstar, chunksize).get() File "/Users/marcotama/anaconda3/envs/py37/lib/python3.7/multiprocessing/pool.py", line 657, in get raise self._value RuntimeError: In set_text: could not load glyph </code></pre></div> <p dir="auto"><strong>Expected outcome</strong></p> <p dir="auto">The code should simply succeed. Notice that the <code class="notranslate">loky</code> backend of <code class="notranslate">joblib</code> succeeds even though it uses parallel processes. I am not sure why this is.</p> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Operating system: MacOS High Sierra (10.13.6)</li> <li>Matplotlib version: 2.2.2</li> <li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): <code class="notranslate">module://backend_interagg</code></li> <li>Python version: 3.7.2</li> <li>Jupyter version (if applicable): N/A</li> <li>Other libraries: joblib==0.12.2</li> </ul> <p dir="auto">All packages were installed via <code class="notranslate">pip</code> inside a <code class="notranslate">conda</code> environment.</p>
1
<p dir="auto">When running</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="flutter run"><pre class="notranslate"><code class="notranslate">flutter run </code></pre></div> <p dir="auto">I get</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Launching lib/main.dart on iPhone 5s in debug mode... [VERBOSE-1:callback_cache.cc(132)] Could not parse callback cache, aborting restore"><pre class="notranslate"><code class="notranslate">Launching lib/main.dart on iPhone 5s in debug mode... [VERBOSE-1:callback_cache.cc(132)] Could not parse callback cache, aborting restore </code></pre></div> <p dir="auto">in <a href="https://github.com/syfgkjasdkn/flutter_view_swift">https://github.com/syfgkjasdkn/flutter_view_swift</a></p> <hr> <p dir="auto"><code class="notranslate">flutter doctor -v</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (Channel beta, v0.8.2, on Mac OS X 10.13.6 17G65, locale en-US) • Flutter version 0.8.2 at /Users/asd/Developer/flutter • Framework revision 5ab9e70727 (4 weeks ago), 2018-09-07 12:33:05 -0700 • Engine revision 58a1894a1c • Dart version 2.1.0-dev.3.1.flutter-760a9690c2 [✓] Android toolchain - develop for Android devices (Android SDK 28.0.3) • Android SDK at /Users/asd/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-28, build-tools 28.0.3 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) • All Android licenses accepted. [✓] iOS toolchain - develop for iOS devices (Xcode 10.0) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 10.0, Build version 10A255 • ios-deploy 2.0.0 • CocoaPods version 1.5.3 [✓] Android Studio (version 3.2) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 28.0.2 • Dart plugin version 181.5616 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) [✓] VS Code (version 1.27.2) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 2.18.0 [✓] Connected devices (1 available) • iPhone 5s • A989159F-933B-4CF7-90BE-C530C36DE9DE • ios • iOS 12.0 (simulator) • No issues found!"><pre lang="plain" class="notranslate"><code class="notranslate">[✓] Flutter (Channel beta, v0.8.2, on Mac OS X 10.13.6 17G65, locale en-US) • Flutter version 0.8.2 at /Users/asd/Developer/flutter • Framework revision 5ab9e70727 (4 weeks ago), 2018-09-07 12:33:05 -0700 • Engine revision 58a1894a1c • Dart version 2.1.0-dev.3.1.flutter-760a9690c2 [✓] Android toolchain - develop for Android devices (Android SDK 28.0.3) • Android SDK at /Users/asd/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-28, build-tools 28.0.3 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) • All Android licenses accepted. [✓] iOS toolchain - develop for iOS devices (Xcode 10.0) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 10.0, Build version 10A255 • ios-deploy 2.0.0 • CocoaPods version 1.5.3 [✓] Android Studio (version 3.2) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 28.0.2 • Dart plugin version 181.5616 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) [✓] VS Code (version 1.27.2) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 2.18.0 [✓] Connected devices (1 available) • iPhone 5s • A989159F-933B-4CF7-90BE-C530C36DE9DE • ios • iOS 12.0 (simulator) • No issues found! </code></pre></div>
<h2 dir="auto">Steps to Reproduce</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Upgrade to latest version Flutter 0.3.1-pre.25 • channel master and Flutter Projects will no longer open up in iPhone Simulator."><pre class="notranslate"><code class="notranslate">Upgrade to latest version Flutter 0.3.1-pre.25 • channel master and Flutter Projects will no longer open up in iPhone Simulator. </code></pre></div> <p dir="auto">Flutter Version:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Flutter 0.3.1-pre.25 • channel master • https://github.com/flutter/flutter.git Framework • revision 9a0b562524 (70 minutes ago) • 2018-04-17 16:57:47 -0700 Engine • revision 0c09bf03d1 Tools • Dart 2.0.0-dev.48.0.flutter-f76dad0adc"><pre class="notranslate"><code class="notranslate">Flutter 0.3.1-pre.25 • channel master • https://github.com/flutter/flutter.git Framework • revision 9a0b562524 (70 minutes ago) • 2018-04-17 16:57:47 -0700 Engine • revision 0c09bf03d1 Tools • Dart 2.0.0-dev.48.0.flutter-f76dad0adc </code></pre></div> <p dir="auto">Error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Launching lib/main.dart on iPhone X in debug mode... Skipping compilation. Fingerprint match. Xcode build done. Error connecting to the service protocol: WebSocketChannelException: WebSocketChannelException: SocketException: OS Error: Connection refused, errno = 61, address = 127.0.0.1, port = 50433 Exited (sigterm)"><pre class="notranslate"><code class="notranslate">Launching lib/main.dart on iPhone X in debug mode... Skipping compilation. Fingerprint match. Xcode build done. Error connecting to the service protocol: WebSocketChannelException: WebSocketChannelException: SocketException: OS Error: Connection refused, errno = 61, address = 127.0.0.1, port = 50433 Exited (sigterm) </code></pre></div> <h2 dir="auto">Logs</h2> <p dir="auto"><code class="notranslate">flutter run</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Pix:fatima_prayers marco$ flutter run Launching lib/main.dart on iPhone X in debug mode... Skipping compilation. Fingerprint match. Running Xcode clean... 1.1s Starting Xcode build... ├─Assembling Flutter resources... 1.7s └─Compiling, linking and signing... 13.9s Xcode build done. 18.5s"><pre class="notranslate"><code class="notranslate">Pix:fatima_prayers marco$ flutter run Launching lib/main.dart on iPhone X in debug mode... Skipping compilation. Fingerprint match. Running Xcode clean... 1.1s Starting Xcode build... ├─Assembling Flutter resources... 1.7s └─Compiling, linking and signing... 13.9s Xcode build done. 18.5s </code></pre></div> <p dir="auto"><code class="notranslate">flutter analyze</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Analyzing /Users/marco/Documents/Pixolini/Flutter_Development/fatima_prayers... No issues found! Ran in 7.8s"><pre class="notranslate"><code class="notranslate">Analyzing /Users/marco/Documents/Pixolini/Flutter_Development/fatima_prayers... No issues found! Ran in 7.8s </code></pre></div> <h2 dir="auto">Flutter Doctor</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Pix:fatima_prayers marco$ flutter doctor -v [✓] Flutter (Channel master, v0.3.1-pre.25, on Mac OS X 10.13.4 17E199, locale en-US) • Flutter version 0.3.1-pre.25 at /Users/marco/flutter • Framework revision 9a0b562524 (74 minutes ago), 2018-04-17 16:57:47 -0700 • Engine revision 0c09bf03d1 • Dart version 2.0.0-dev.48.0.flutter-f76dad0adc [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) • Android SDK at /Users/marco/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-27, build-tools 27.0.3 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) • All Android licenses accepted. [✓] iOS toolchain - develop for iOS devices (Xcode 9.3) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 9.3, Build version 9E145 • ios-deploy 1.9.2 • CocoaPods version 1.4.0 [✓] Android Studio (version 3.1) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 23.2.2 • Dart plugin version 173.4700 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) [✓] VS Code (version 1.22.2) • VS Code at /Applications/Visual Studio Code.app/Contents • Dart Code extension version 2.11.2 [✓] Connected devices (1 available) • iPhone X • 55C63F10-A0FA-4CD8-9E89-BF66AA5FEA8F • ios • iOS 11.3 (simulator) • No issues found!"><pre class="notranslate"><code class="notranslate">Pix:fatima_prayers marco$ flutter doctor -v [✓] Flutter (Channel master, v0.3.1-pre.25, on Mac OS X 10.13.4 17E199, locale en-US) • Flutter version 0.3.1-pre.25 at /Users/marco/flutter • Framework revision 9a0b562524 (74 minutes ago), 2018-04-17 16:57:47 -0700 • Engine revision 0c09bf03d1 • Dart version 2.0.0-dev.48.0.flutter-f76dad0adc [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) • Android SDK at /Users/marco/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-27, build-tools 27.0.3 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) • All Android licenses accepted. [✓] iOS toolchain - develop for iOS devices (Xcode 9.3) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 9.3, Build version 9E145 • ios-deploy 1.9.2 • CocoaPods version 1.4.0 [✓] Android Studio (version 3.1) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 23.2.2 • Dart plugin version 173.4700 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) [✓] VS Code (version 1.22.2) • VS Code at /Applications/Visual Studio Code.app/Contents • Dart Code extension version 2.11.2 [✓] Connected devices (1 available) • iPhone X • 55C63F10-A0FA-4CD8-9E89-BF66AA5FEA8F • ios • iOS 11.3 (simulator) • No issues found! </code></pre></div> <p dir="auto">Thank you</p>
0
<p dir="auto">I click in the block of code where I need to make an edit, but when I begin typing it appears randomly somewhere else in the block of code.</p> <p dir="auto">Problem on many pages. Mac/Chrome</p> <p dir="auto">Thanks.</p> <p dir="auto">Challenge <a href="https://www.freecodecamp.com/challenges/use-the-bootstrap-grid-to-put-elements-side-by-side" rel="nofollow">Use the Bootstrap Grid to Put Elements Side By Side</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.86 Safari/537.36</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <p dir="auto">My code:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;link href=&quot;https://fonts.googleapis.com/css?family=Lobster&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt; &lt;style&gt; .red-text { color: red; } h2 { font-family: Lobster, Monospace; } p { font-size: 16px; font-family: Monospace; } .thick-green-border { border-color: green; border-width: 10px; border-style: solid; border-radius: 50%; } .smaller-image { width: 100px; } &lt;/style&gt; &lt;div class=&quot;container-fluid&quot;&gt; &lt;h2 class=&quot;red-text text-center&quot;&gt;CatPhotoApp&lt;/h2&gt; &lt;p&gt;Click here for &lt;a href=&quot;#&quot;&gt;cat photos&lt;/a&gt;.&lt;/p&gt; &lt;a href=&quot;#&quot;&gt;&lt;img class=&quot;smaller-image thick-green-border&quot; src=&quot;https://bit.ly/fcc-relaxing-cat&quot;&gt;&lt;/a&gt; &lt;img src=&quot;https://bit.ly/fcc-running-cats&quot; class=&quot;img-responsive&quot;&gt; &lt;button class=&quot;btn btn-block btn-primary&quot;&gt;Like&lt;/button&gt; &lt;button class=&quot;btn btn-block btn-info&quot;&gt;Info&lt;/button&gt; &lt;button class=&quot;btn btn-block btn-danger&quot;&gt;Delete&lt;/button&gt; &lt;p&gt;Things cats love:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;cat nip&lt;/li&gt; &lt;li&gt;laser pointers&lt;/li&gt; &lt;li&gt;lasagna&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;Top 3 things cats hate:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;flea treatment&lt;/li&gt; &lt;li&gt;thunder&lt;/li&gt; &lt;li&gt;other cats&lt;/li&gt; &lt;/ol&gt; &lt;form action=&quot;/submit-cat-photo&quot;&gt; &lt;label&gt;&lt;input type=&quot;radio&quot; name=&quot;indoor-outdoor&quot;&gt; Indoor&lt;/label&gt; &lt;label&gt;&lt;input type=&quot;radio&quot; name=&quot;indoor-outdoor&quot;&gt; Outdoor&lt;/label&gt; &lt;label&gt;&lt;input type=&quot;checkbox&quot; name=&quot;personality&quot;&gt; Loving&lt;/label&gt; &lt;label&gt;&lt;input type=&quot;checkbox&quot; name=&quot;personality&quot;&gt; Lazy&lt;/label&gt; &lt;label&gt;&lt;input type=&quot;checkbox&quot; name=&quot;personality&quot;&gt; Crazy&lt;/label&gt; &lt;input type=&quot;text&quot; placeholder=&quot;cat photo URL&quot; required&gt; &lt;button type=&quot;submit&quot;&gt;Submit&lt;/button&gt; &lt;/form&gt; &lt;/div&gt; "><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">link</span> <span class="pl-c1">href</span>="<span class="pl-s">https://fonts.googleapis.com/css?family=Lobster</span>" <span class="pl-c1">rel</span>="<span class="pl-s">stylesheet</span>" <span class="pl-c1">type</span>="<span class="pl-s">text/css</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> .<span class="pl-c1">red-text</span> { <span class="pl-c1">color</span><span class="pl-kos">:</span> red; } <span class="pl-ent">h2</span> { <span class="pl-c1">font-family</span><span class="pl-kos">:</span> Lobster<span class="pl-kos">,</span> Monospace; } <span class="pl-ent">p</span> { <span class="pl-c1">font-size</span><span class="pl-kos">:</span> <span class="pl-c1">16<span class="pl-smi">px</span></span>; <span class="pl-c1">font-family</span><span class="pl-kos">:</span> Monospace; } .<span class="pl-c1">thick-green-border</span> { <span class="pl-c1">border-color</span><span class="pl-kos">:</span> green; <span class="pl-c1">border-width</span><span class="pl-kos">:</span> <span class="pl-c1">10<span class="pl-smi">px</span></span>; <span class="pl-c1">border-style</span><span class="pl-kos">:</span> solid; <span class="pl-c1">border-radius</span><span class="pl-kos">:</span> <span class="pl-c1">50<span class="pl-smi">%</span></span>; } .<span class="pl-c1">smaller-image</span> { <span class="pl-c1">width</span><span class="pl-kos">:</span> <span class="pl-c1">100<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">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">h2</span> <span class="pl-c1">class</span>="<span class="pl-s">red-text text-center</span>"<span class="pl-kos">&gt;</span>CatPhotoApp<span class="pl-kos">&lt;/</span><span class="pl-ent">h2</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span>Click here for <span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span>cat photos<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span>.<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">img</span> <span class="pl-c1">class</span>="<span class="pl-s">smaller-image thick-green-border</span>" <span class="pl-c1">src</span>="<span class="pl-s">https://bit.ly/fcc-relaxing-cat</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">img</span> <span class="pl-c1">src</span>="<span class="pl-s">https://bit.ly/fcc-running-cats</span>" <span class="pl-c1">class</span>="<span class="pl-s">img-responsive</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-block btn-primary</span>"<span class="pl-kos">&gt;</span>Like<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-block btn-info</span>"<span class="pl-kos">&gt;</span>Info<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-block btn-danger</span>"<span class="pl-kos">&gt;</span>Delete<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">p</span><span class="pl-kos">&gt;</span>Things cats love:<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">ul</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>cat nip<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>laser pointers<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>lasagna<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">ul</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span>Top 3 things cats hate:<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">ol</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>flea treatment<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>thunder<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>other cats<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">ol</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">form</span> <span class="pl-c1">action</span>="<span class="pl-s">/submit-cat-photo</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">radio</span>" <span class="pl-c1">name</span>="<span class="pl-s">indoor-outdoor</span>"<span class="pl-kos">&gt;</span> Indoor<span class="pl-kos">&lt;/</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">radio</span>" <span class="pl-c1">name</span>="<span class="pl-s">indoor-outdoor</span>"<span class="pl-kos">&gt;</span> Outdoor<span class="pl-kos">&lt;/</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">checkbox</span>" <span class="pl-c1">name</span>="<span class="pl-s">personality</span>"<span class="pl-kos">&gt;</span> Loving<span class="pl-kos">&lt;/</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">checkbox</span>" <span class="pl-c1">name</span>="<span class="pl-s">personality</span>"<span class="pl-kos">&gt;</span> Lazy<span class="pl-kos">&lt;/</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">checkbox</span>" <span class="pl-c1">name</span>="<span class="pl-s">personality</span>"<span class="pl-kos">&gt;</span> Crazy<span class="pl-kos">&lt;/</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">text</span>" <span class="pl-c1">placeholder</span>="<span class="pl-s">cat photo URL</span>" <span class="pl-c1">required</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">type</span>="<span class="pl-s">submit</span>"<span class="pl-kos">&gt;</span>Submit<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">form</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">Style Text Inputs as Form Controls<br> <a href="https://www.freecodecamp.com/challenges/style-text-inputs-as-form-controls" rel="nofollow">https://www.freecodecamp.com/challenges/style-text-inputs-as-form-controls</a></p> <h4 dir="auto">Issue Description</h4> <p dir="auto">My cursor will not move through the code editor properly. I will try to select a spot in the code and I just can't. This has been an issue through multiple challenges. A hard refresh fixes it some of the time but it just keeps happening. It isn't my equipment either. I have tried restarting my computer. I have a mouse, touchscreen, and keyboard and none of them work properly while trying to move through.</p> <h4 dir="auto">Browser Information</h4> <ul dir="auto"> <li>Browser Name, Version: Firefox, 45.0.2</li> <li>Operating System: Windows !0</li> <li>Mobile, Desktop, or Tablet: Desktop.</li> </ul>
1
<ul dir="auto"> <li>VSCode Version:</li> <li>OS Version:</li> </ul> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>Launch app and Open any CSS file</li> <li>Try to add some color property to any css class</li> <li>Press # to get color options.</li> </ol> <p dir="auto">Actual:</p> <ol dir="auto"> <li>It is displaying only few color options.</li> <li>When user insert some value with #code (like : #00) and then intellisense is not guiding.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/17735796/13821703/ecd9b15a-eb5f-11e5-9e8d-5173bc95c3fe.png"><img src="https://cloud.githubusercontent.com/assets/17735796/13821703/ecd9b15a-eb5f-11e5-9e8d-5173bc95c3fe.png" alt="image" style="max-width: 100%;"></a></li> </ol> <p dir="auto">Expected:</p> <ol dir="auto"> <li>When user press # or #00 then it should display all the available color options.</li> <li>I tried with Visual Studio 2015 and Visual studio is showing correct options and guiding properly to choose color with # code.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/17735796/13821794/4e1ae100-eb60-11e5-8d08-d88bc48868f7.png"><img src="https://cloud.githubusercontent.com/assets/17735796/13821794/4e1ae100-eb60-11e5-8d08-d88bc48868f7.png" alt="image" style="max-width: 100%;"></a></li> </ol>
<p dir="auto">It could be great have a color picker to update color.<br> For example, when you have a CSS file like this :</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6053067/11398092/b4613d90-937e-11e5-8abe-1e44cd142265.PNG"><img src="https://cloud.githubusercontent.com/assets/6053067/11398092/b4613d90-937e-11e5-8abe-1e44cd142265.PNG" alt="capture" style="max-width: 100%;"></a></p> <p dir="auto">A color picker could be generated when you click on the colored element.</p>
1
<h2 dir="auto">Bug report</h2> <h3 dir="auto">Is your feature request related to a problem?</h3> <p dir="auto">Yes</p> <h3 dir="auto">Describe the feature you would like.</h3> <h4 dir="auto">First, I started a local zk cluster via docker.</h4> <p dir="auto">create a file docker-compose.yml</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="version: '2' services: zoo1: image: zookeeper restart: always container_name: zoo1 ports: - &quot;2181:2181&quot; environment: ZOO_MY_ID: 1 ZOO_SERVERS: server.1=zoo1:2888:3888;2181 server.2=zoo2:2888:3888;2181 server.3=zoo3:2888:3888;2181 zoo2: image: zookeeper restart: always container_name: zoo2 ports: - &quot;2182:2181&quot; environment: ZOO_MY_ID: 2 ZOO_SERVERS: server.1=zoo1:2888:3888;2181 server.2=zoo2:2888:3888;2181 server.3=zoo3:2888:3888;2181 zoo3: image: zookeeper restart: always container_name: zoo3 ports: - &quot;2183:2181&quot; environment: ZOO_MY_ID: 3 ZOO_SERVERS: server.1=zoo1:2888:3888;2181 server.2=zoo2:2888:3888;2181 server.3=zoo3:2888:3888;2181"><pre class="notranslate"><code class="notranslate">version: '2' services: zoo1: image: zookeeper restart: always container_name: zoo1 ports: - "2181:2181" environment: ZOO_MY_ID: 1 ZOO_SERVERS: server.1=zoo1:2888:3888;2181 server.2=zoo2:2888:3888;2181 server.3=zoo3:2888:3888;2181 zoo2: image: zookeeper restart: always container_name: zoo2 ports: - "2182:2181" environment: ZOO_MY_ID: 2 ZOO_SERVERS: server.1=zoo1:2888:3888;2181 server.2=zoo2:2888:3888;2181 server.3=zoo3:2888:3888;2181 zoo3: image: zookeeper restart: always container_name: zoo3 ports: - "2183:2181" environment: ZOO_MY_ID: 3 ZOO_SERVERS: server.1=zoo1:2888:3888;2181 server.2=zoo2:2888:3888;2181 server.3=zoo3:2888:3888;2181 </code></pre></div> <p dir="auto">Then run</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="COMPOSE_PROJECT_NAME=zk_test docker-compose up"><pre class="notranslate"><code class="notranslate">COMPOSE_PROJECT_NAME=zk_test docker-compose up </code></pre></div> <h4 dir="auto">second I start proxy</h4> <p dir="auto">Proxy server.ymal</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="mode: type: Cluster repository: type: ZooKeeper props: namespace: agent server-lists: 127.0.0.1:2181,127.0.0.1:2182,127.0.0.1:2183 retryIntervalMilliseconds: 500 timeToLiveSeconds: 60 maxRetries: 3 operationTimeoutMilliseconds: 30000 overwrite: true # rules: - !AUTHORITY users: - root@%:root - sharding@:sharding provider: type: ALL_PRIVILEGES_PERMITTED props: max-connections-size-per-query: 1 executor-size: 16 # Infinite by default. proxy-frontend-flush-threshold: 128 # The default value is 128. proxy-opentracing-enabled: false proxy-hint-enabled: true sql-show: false check-table-metadata-enabled: false lock-wait-timeout-milliseconds: 50000 # The maximum time to wait for a lock # show-process-list-enabled: true # show-process-list-async-thread-num: 100 # Proxy backend query fetch size. A larger value may increase the memory usage of ShardingSphere Proxy. # The default value is -1, which means set the minimum value for different JDBC drivers. proxy-backend-query-fetch-size: -1 check-duplicate-table-enabled: false"><pre class="notranslate"><code class="notranslate">mode: type: Cluster repository: type: ZooKeeper props: namespace: agent server-lists: 127.0.0.1:2181,127.0.0.1:2182,127.0.0.1:2183 retryIntervalMilliseconds: 500 timeToLiveSeconds: 60 maxRetries: 3 operationTimeoutMilliseconds: 30000 overwrite: true # rules: - !AUTHORITY users: - root@%:root - sharding@:sharding provider: type: ALL_PRIVILEGES_PERMITTED props: max-connections-size-per-query: 1 executor-size: 16 # Infinite by default. proxy-frontend-flush-threshold: 128 # The default value is 128. proxy-opentracing-enabled: false proxy-hint-enabled: true sql-show: false check-table-metadata-enabled: false lock-wait-timeout-milliseconds: 50000 # The maximum time to wait for a lock # show-process-list-enabled: true # show-process-list-async-thread-num: 100 # Proxy backend query fetch size. A larger value may increase the memory usage of ShardingSphere Proxy. # The default value is -1, which means set the minimum value for different JDBC drivers. proxy-backend-query-fetch-size: -1 check-duplicate-table-enabled: false </code></pre></div> <h4 dir="auto">Errors</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[INFO ] 2022-03-23 12:10:50.174 [_finished_check_Worker-1-EventThread] o.a.c.framework.imps.EnsembleTracker - New config event received: {server.1=zoo1:2888:3888:participant;0.0.0.0:2181, version=0, server.3=zoo3:2888:3888:participant;0.0.0.0:2181, server.2=zoo2:2888:3888:participant;0.0.0.0:2181} [ERROR] 2022-03-23 12:10:50.174 [_finished_check_Worker-1-EventThread] o.a.c.f.imps.CuratorFrameworkImpl - Background exception was not retry-able or retry gave up java.lang.NullPointerException: null at org.apache.curator.utils.Compatibility.getHostAddress(Compatibility.java:116) at org.apache.curator.framework.imps.EnsembleTracker.configToConnectionString(EnsembleTracker.java:185) at org.apache.curator.framework.imps.EnsembleTracker.processConfigData(EnsembleTracker.java:206) at org.apache.curator.framework.imps.EnsembleTracker.access$300(EnsembleTracker.java:50) at org.apache.curator.framework.imps.EnsembleTracker$2.processResult(EnsembleTracker.java:150) at org.apache.curator.framework.imps.CuratorFrameworkImpl.sendToBackgroundCallback(CuratorFrameworkImpl.java:892) at org.apache.curator.framework.imps.CuratorFrameworkImpl.processBackgroundOperation(CuratorFrameworkImpl.java:649) at org.apache.curator.framework.imps.WatcherRemovalFacade.processBackgroundOperation(WatcherRemovalFacade.java:152) at org.apache.curator.framework.imps.GetConfigBuilderImpl$2.processResult(GetConfigBuilderImpl.java:222) at org.apache.zookeeper.ClientCnxn$EventThread.processEvent(ClientCnxn.java:630) at org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:551) "><pre class="notranslate"><code class="notranslate">[INFO ] 2022-03-23 12:10:50.174 [_finished_check_Worker-1-EventThread] o.a.c.framework.imps.EnsembleTracker - New config event received: {server.1=zoo1:2888:3888:participant;0.0.0.0:2181, version=0, server.3=zoo3:2888:3888:participant;0.0.0.0:2181, server.2=zoo2:2888:3888:participant;0.0.0.0:2181} [ERROR] 2022-03-23 12:10:50.174 [_finished_check_Worker-1-EventThread] o.a.c.f.imps.CuratorFrameworkImpl - Background exception was not retry-able or retry gave up java.lang.NullPointerException: null at org.apache.curator.utils.Compatibility.getHostAddress(Compatibility.java:116) at org.apache.curator.framework.imps.EnsembleTracker.configToConnectionString(EnsembleTracker.java:185) at org.apache.curator.framework.imps.EnsembleTracker.processConfigData(EnsembleTracker.java:206) at org.apache.curator.framework.imps.EnsembleTracker.access$300(EnsembleTracker.java:50) at org.apache.curator.framework.imps.EnsembleTracker$2.processResult(EnsembleTracker.java:150) at org.apache.curator.framework.imps.CuratorFrameworkImpl.sendToBackgroundCallback(CuratorFrameworkImpl.java:892) at org.apache.curator.framework.imps.CuratorFrameworkImpl.processBackgroundOperation(CuratorFrameworkImpl.java:649) at org.apache.curator.framework.imps.WatcherRemovalFacade.processBackgroundOperation(WatcherRemovalFacade.java:152) at org.apache.curator.framework.imps.GetConfigBuilderImpl$2.processResult(GetConfigBuilderImpl.java:222) at org.apache.zookeeper.ClientCnxn$EventThread.processEvent(ClientCnxn.java:630) at org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:551) </code></pre></div>
<h1 dir="auto">follow Issues15985</h1> <h2 dir="auto">question</h2> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="I asked several developers. The names of the databases and tables they write are regular. If the name of the database and the name of the table have no rules and ,There are no rules for the key in the datasourceMap,how to write the fragmentation table, automatic fragmentation table, automatic fragmentation algorithm and standard allocation algorithm?"><pre class="notranslate"><span class="pl-smi">I</span> <span class="pl-s1">asked</span> <span class="pl-smi">several</span> <span class="pl-s1">developers</span>. <span class="pl-s1">The</span> <span class="pl-s1">names</span> <span class="pl-s1">of</span> <span class="pl-s1">the</span> <span class="pl-s1">databases</span> <span class="pl-s1">and</span> <span class="pl-s1">tables</span> <span class="pl-s1">they</span> <span class="pl-s1">write</span> <span class="pl-s1">are</span> <span class="pl-s1">regular</span>. <span class="pl-s1">If</span> <span class="pl-s1">the</span> <span class="pl-s1">name</span> <span class="pl-s1">of</span> <span class="pl-s1">the</span> <span class="pl-s1">database</span> <span class="pl-s1">and</span> <span class="pl-s1">the</span> <span class="pl-s1">name</span> <span class="pl-s1">of</span> <span class="pl-s1">the</span> <span class="pl-s1">table</span> <span class="pl-s1">have</span> <span class="pl-s1">no</span> <span class="pl-s1">rules</span> <span class="pl-s1">and</span> ,<span class="pl-s1">There</span> <span class="pl-smi">are</span> <span class="pl-s1">no</span> <span class="pl-smi">rules</span> <span class="pl-s1">for</span> <span class="pl-smi">the</span> <span class="pl-s1">key</span> <span class="pl-smi">in</span> <span class="pl-s1">the</span> <span class="pl-s1">datasourceMap</span>,<span class="pl-s1">how</span> <span class="pl-smi">to</span> <span class="pl-s1">write</span> <span class="pl-smi">the</span> <span class="pl-s1">fragmentation</span> <span class="pl-s1">table</span>, <span class="pl-s1">automatic</span> <span class="pl-smi">fragmentation</span> <span class="pl-s1">table</span>, <span class="pl-s1">automatic</span> <span class="pl-smi">fragmentation</span> <span class="pl-s1">algorithm</span> <span class="pl-smi">and</span> <span class="pl-s1">standard</span> <span class="pl-smi">allocation</span> <span class="pl-s1">algorithm</span>?</pre></div> <h2 dir="auto">help</h2> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="i need you help , please give me an example demo ,thank you"><pre class="notranslate"><span class="pl-smi">i</span> <span class="pl-s1">need</span> <span class="pl-smi">you</span> <span class="pl-s1">help</span> , <span class="pl-s1">please</span> <span class="pl-smi">give</span> <span class="pl-s1">me</span> <span class="pl-smi">an</span> <span class="pl-s1">example</span> <span class="pl-s1">demo</span> ,<span class="pl-s1">thank</span> <span class="pl-s1">you</span></pre></div>
0
<p dir="auto"><em>Please make sure that this is a bug. 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:bug_template</em></p> <p dir="auto"><strong>System information</strong></p> <ul dir="auto"> <li>Have I written custom code (as opposed to using a stock example script provided in TensorFlow):No</li> <li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04):win 10 x64</li> <li>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:</li> <li>TensorFlow installed from (source or binary):pip install</li> <li>TensorFlow version (use command below):tf_nightly_gpu_2.0_preview2.0.0.dev20190420</li> <li>Python version:3.6.4</li> <li>Bazel version (if compiling from source):</li> <li>GCC/Compiler version (if compiling from source):</li> <li>CUDA/cuDNN version:</li> <li>GPU model and memory:</li> </ul> <p dir="auto">You can collect some of this information using our environment capture <a href="https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh">script</a><br> You can also obtain the TensorFlow version with<br> python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"</p> <p dir="auto"><strong>Describe the current behavior</strong><br> import tensorflow as tf<br> <strong>Describe the expected behavior</strong><br> Able to import<br> <strong>Code to reproduce the issue</strong><br> import tensorflow as tf<br> <strong>Other info / logs</strong><br> Traceback (most recent call last):<br> File "D:/Python/Project/PythonProject/TF20/code/NFFM/code/NFFM-2.0.py", line 21, in <br> import tensorflow as tf<br> File "C:\Users\Z&amp;J\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow_<em>init</em>_.py", line 42, in <br> from tensorflow.<em>api.v2 import compat<br> File "C:\Users\Z&amp;J\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow_api\v2\compat_<em>init</em></em>.py", line 21, in <br> from tensorflow.<em>api.v2.compat import v1<br> File "C:\Users\Z&amp;J\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow_api\v2\compat\v1_<em>init</em></em>.py", line 643, in <br> 'tensorflow_estimator.python.estimator.api.<em>v1.estimator'))<br> File "C:\Users\Z&amp;J\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\tools\component_api_helper.py", line 56, in package_hook<br> child_pkg = importlib.import_module(child_package_str)<br> File "C:\Users\Z&amp;J\AppData\Local\Programs\Python\Python36\lib\importlib_<em>init</em></em>.py", line 126, in import_module<br> return _bootstrap.<em>gcd_import(name[level:], package, level)<br> File "C:\Users\Z&amp;J\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow_estimator\python\estimator\api_v1\estimator_<em>init</em></em>.py", line 8, in <br> from tensorflow_estimator.python.estimator.api.<em>v1.estimator import experimental<br> File "C:\Users\Z&amp;J\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow_estimator\python\estimator\api_v1\estimator\experimental_<em>init</em></em>.py", line 29, in <br> _sys.modules[<strong>name</strong>], "estimator.experimental")<br> TypeError: <strong>init</strong>() missing 1 required positional argument: 'deprecated_to_canonical'</p>
<p dir="auto"><em>Please make sure that this is a bug. 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:bug_template</em></p> <p dir="auto"><strong>System information</strong></p> <ul dir="auto"> <li>Have I written custom code (as opposed to using a stock example script provided in TensorFlow): <strong>No</strong></li> <li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): <strong>Ubuntu 16.04</strong></li> <li>TensorFlow installed from (source or binary): <strong>Binary</strong></li> <li>TensorFlow version (use command below): <strong>tf-nightly-20190418</strong></li> <li>Python version: <strong>3.6</strong></li> </ul> <p dir="auto"><strong>Describe the current behavior</strong><br> Nightly tensorflow crashes on importing estimator-nightly</p> <p dir="auto"><strong>Describe the expected behavior</strong><br> Able to import</p> <p dir="auto"><strong>Code to reproduce the issue</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pip install tf-nightly==1.14.1.dev20190418 import tensorflow"><pre class="notranslate"><code class="notranslate">pip install tf-nightly==1.14.1.dev20190418 import tensorflow </code></pre></div> <p dir="auto"><strong>Other info / logs</strong><br> <a href="https://colab.research.google.com/drive/1mvVTcAWHwJY1Kko49Ae93iQum6lT9W8D" rel="nofollow">https://colab.research.google.com/drive/1mvVTcAWHwJY1Kko49Ae93iQum6lT9W8D</a></p> <p dir="auto">Crash:</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-2-64156d691fe5&gt; in &lt;module&gt;() ----&gt; 1 import tensorflow as tf /usr/local/lib/python3.6/dist-packages/tensorflow/__init__.py in &lt;module&gt;() 32 from tensorflow._api.v1 import autograph 33 from tensorflow._api.v1 import bitwise ---&gt; 34 from tensorflow._api.v1 import compat 35 from tensorflow._api.v1 import config 36 from tensorflow._api.v1 import data /usr/local/lib/python3.6/dist-packages/tensorflow/_api/v1/compat/__init__.py in &lt;module&gt;() 19 from __future__ import print_function as _print_function 20 ---&gt; 21 from tensorflow._api.v1.compat import v1 22 from tensorflow._api.v1.compat import v2 23 from tensorflow.python.compat.compat import forward_compatibility_horizon /usr/local/lib/python3.6/dist-packages/tensorflow/_api/v1/compat/v1/__init__.py in &lt;module&gt;() 641 parent_package_str=__name__, 642 child_package_str=( --&gt; 643 'tensorflow_estimator.python.estimator.api._v1.estimator')) 644 _component_api_helper.package_hook( 645 parent_package_str=__name__, /usr/local/lib/python3.6/dist-packages/tensorflow/python/tools/component_api_helper.py in package_hook(parent_package_str, child_package_str, error_msg) 54 parent_pkg = importlib.import_module(parent_package_str) 55 try: ---&gt; 56 child_pkg = importlib.import_module(child_package_str) 57 except ImportError: 58 if error_msg: /usr/lib/python3.6/importlib/__init__.py in import_module(name, package) 124 break 125 level += 1 --&gt; 126 return _bootstrap._gcd_import(name[level:], package, level) 127 128 /usr/local/lib/python3.6/dist-packages/tensorflow_estimator/__init__.py in &lt;module&gt;() 6 from __future__ import print_function as _print_function 7 ----&gt; 8 from tensorflow_estimator._api.v1 import estimator 9 _names_with_underscore = [] 10 __all__ = [_s for _s in dir() if not _s.startswith('_')] /usr/local/lib/python3.6/dist-packages/tensorflow_estimator/_api/v1/estimator/__init__.py in &lt;module&gt;() 6 from __future__ import print_function as _print_function 7 ----&gt; 8 from tensorflow_estimator._api.v1.estimator import experimental 9 from tensorflow_estimator._api.v1.estimator import export 10 from tensorflow_estimator._api.v1.estimator import inputs /usr/local/lib/python3.6/dist-packages/tensorflow_estimator/_api/v1/estimator/experimental/__init__.py in &lt;module&gt;() 33 if not isinstance(_sys.modules[__name__], _deprecation_wrapper.DeprecationWrapper): 34 _sys.modules[__name__] = _deprecation_wrapper.DeprecationWrapper( ---&gt; 35 _sys.modules[__name__], &quot;estimator.experimental&quot;, _DEPRECATED_TO_CANONICAL) TypeError: __init__() takes 3 positional arguments but 4 were given"><pre class="notranslate"><code class="notranslate">TypeError Traceback (most recent call last) &lt;ipython-input-2-64156d691fe5&gt; in &lt;module&gt;() ----&gt; 1 import tensorflow as tf /usr/local/lib/python3.6/dist-packages/tensorflow/__init__.py in &lt;module&gt;() 32 from tensorflow._api.v1 import autograph 33 from tensorflow._api.v1 import bitwise ---&gt; 34 from tensorflow._api.v1 import compat 35 from tensorflow._api.v1 import config 36 from tensorflow._api.v1 import data /usr/local/lib/python3.6/dist-packages/tensorflow/_api/v1/compat/__init__.py in &lt;module&gt;() 19 from __future__ import print_function as _print_function 20 ---&gt; 21 from tensorflow._api.v1.compat import v1 22 from tensorflow._api.v1.compat import v2 23 from tensorflow.python.compat.compat import forward_compatibility_horizon /usr/local/lib/python3.6/dist-packages/tensorflow/_api/v1/compat/v1/__init__.py in &lt;module&gt;() 641 parent_package_str=__name__, 642 child_package_str=( --&gt; 643 'tensorflow_estimator.python.estimator.api._v1.estimator')) 644 _component_api_helper.package_hook( 645 parent_package_str=__name__, /usr/local/lib/python3.6/dist-packages/tensorflow/python/tools/component_api_helper.py in package_hook(parent_package_str, child_package_str, error_msg) 54 parent_pkg = importlib.import_module(parent_package_str) 55 try: ---&gt; 56 child_pkg = importlib.import_module(child_package_str) 57 except ImportError: 58 if error_msg: /usr/lib/python3.6/importlib/__init__.py in import_module(name, package) 124 break 125 level += 1 --&gt; 126 return _bootstrap._gcd_import(name[level:], package, level) 127 128 /usr/local/lib/python3.6/dist-packages/tensorflow_estimator/__init__.py in &lt;module&gt;() 6 from __future__ import print_function as _print_function 7 ----&gt; 8 from tensorflow_estimator._api.v1 import estimator 9 _names_with_underscore = [] 10 __all__ = [_s for _s in dir() if not _s.startswith('_')] /usr/local/lib/python3.6/dist-packages/tensorflow_estimator/_api/v1/estimator/__init__.py in &lt;module&gt;() 6 from __future__ import print_function as _print_function 7 ----&gt; 8 from tensorflow_estimator._api.v1.estimator import experimental 9 from tensorflow_estimator._api.v1.estimator import export 10 from tensorflow_estimator._api.v1.estimator import inputs /usr/local/lib/python3.6/dist-packages/tensorflow_estimator/_api/v1/estimator/experimental/__init__.py in &lt;module&gt;() 33 if not isinstance(_sys.modules[__name__], _deprecation_wrapper.DeprecationWrapper): 34 _sys.modules[__name__] = _deprecation_wrapper.DeprecationWrapper( ---&gt; 35 _sys.modules[__name__], "estimator.experimental", _DEPRECATED_TO_CANONICAL) TypeError: __init__() takes 3 positional arguments but 4 were given </code></pre></div>
1
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; @Base.syn┌ Error: Error in the keymap │ exception = │ LoadError: UndefVarError: @Base not defined │ Stacktrace: │ [1] top-level scope │ [2] lower at ./meta.jl:123 [inlined] │ [3] get_type(::Expr, ::Module) at /home/keno/julia/usr/share/julia/stdlib/v1.4/REPL/src/REPLCompletions.jl:421 │ [4] complete_symbol(::String, ::REPL.REPLCompletions.var&quot;#21#25&quot;, ::Module) at /home/keno/julia/usr/share/julia/stdlib/v1.4/REPL/src/REPLCompletions.jl:122 │ [5] completions(::String, ::Int64, ::Module) at /home/keno/julia/usr/share/julia/stdlib/v1.4/REPL/src/REPLCompletions.jl:703 │ [6] completions(::String, ::Int64) at /home/keno/julia/usr/share/julia/stdlib/v1.4/REPL/src/REPLCompletions.jl:573 │ [7] complete_line(::REPL.REPLCompletionProvider, ::Any) at /home/keno/julia/usr/share/julia/stdlib/v1.4/REPL/src/REPL.jl:372 │ [8] complete_line(::REPL.LineEdit.PromptState, ::Any) at /home/keno/julia/usr/share/julia/stdlib/v1.4/REPL/src/LineEdit.jl:329 │ [9] complete_line(::REPL.LineEdit.MIState) at /home/keno/julia/usr/share/julia/stdlib/v1.4/REPL/src/LineEdit.jl:320 │ [10] edit_tab(::REPL.LineEdit.MIState, ::Any, ::Any) at /home/keno/julia/usr/share/julia/stdlib/v1.4/REPL/src/LineEdit.jl:2032 (repeats 2 times) │ [11] (::REPL.LineEdit.var&quot;#109#162&quot;)(::Any, ::Any, ::Vararg{Any,N} where N) at /home/keno/julia/usr/share/julia/stdlib/v1.4/REPL/src/LineEdit.jl:2073 │ [12] #invokelatest#1 at ./essentials.jl:712 [inlined] │ [13] invokelatest at ./essentials.jl:711 [inlined] │ [14] (::REPL.LineEdit.var&quot;#22#23&quot;{REPL.LineEdit.var&quot;#109#162&quot;,String})(::Any, ::Any) at /home/keno/julia/usr/share/julia/stdlib/v1.4/REPL/src/LineEdit.jl:1364 │ [15] prompt!(::REPL.Terminals.TextTerminal, ::REPL.LineEdit.ModalInterface, ::REPL.LineEdit.MIState) at /home/keno/julia/usr/share/julia/stdlib/v1.4/REPL/src/LineEdit.jl:2446 │ [16] run_interface(::REPL.Terminals.TextTerminal, ::REPL.LineEdit.ModalInterface, ::REPL.LineEdit.MIState) at /home/keno/julia/usr/share/julia/stdlib/v1.4/REPL/src/LineEdit.jl:2349 │ [17] run_frontend(::REPL.LineEditREPL, ::REPL.REPLBackendRef) at /home/keno/julia/usr/share/julia/stdlib/v1.4/REPL/src/REPL.jl:1055 │ [18] run_repl(::REPL.AbstractREPL, ::Any) at /home/keno/julia/usr/share/julia/stdlib/v1.4/REPL/src/REPL.jl:206 │ [19] (::Base.var&quot;#766#768&quot;{Bool,Bool,Bool,Bool})(::Module) at ./client.jl:383 │ [20] #invokelatest#1 at ./essentials.jl:712 [inlined] │ [21] invokelatest at ./essentials.jl:711 [inlined] │ [22] run_main_repl(::Bool, ::Bool, ::Bool, ::Bool, ::Bool) at ./client.jl:367 │ [23] exec_options(::Base.JLOptions) at ./client.jl:305 │ [24] _start() at ./client.jl:484 │ in expression starting at none:1 └ @ REPL.LineEdit ~/julia/usr/share/julia/stdlib/v1.4/REPL/src/LineEdit.jl:2448"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-c1">@Base</span><span class="pl-k">.</span>syn┌ Error<span class="pl-k">:</span> Error <span class="pl-k">in</span> the keymap │ exception <span class="pl-k">=</span> │ LoadError<span class="pl-k">:</span> UndefVarError<span class="pl-k">:</span> <span class="pl-c1">@Base</span> not defined │ Stacktrace<span class="pl-k">:</span> │ [<span class="pl-c1">1</span>] top<span class="pl-k">-</span>level scope │ [<span class="pl-c1">2</span>] lower at <span class="pl-k">./</span>meta<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">123</span> [inlined] │ [<span class="pl-c1">3</span>] <span class="pl-c1">get_type</span>(<span class="pl-k">::</span><span class="pl-c1">Expr</span>, <span class="pl-k">::</span><span class="pl-c1">Module</span>) at <span class="pl-k">/</span>home<span class="pl-k">/</span>keno<span class="pl-k">/</span>julia<span class="pl-k">/</span>usr<span class="pl-k">/</span>share<span class="pl-k">/</span>julia<span class="pl-k">/</span>stdlib<span class="pl-k">/</span>v1.<span class="pl-c1">4</span><span class="pl-k">/</span>REPL<span class="pl-k">/</span>src<span class="pl-k">/</span>REPLCompletions<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">421</span> │ [<span class="pl-c1">4</span>] <span class="pl-c1">complete_symbol</span>(<span class="pl-k">::</span><span class="pl-c1">String</span>, <span class="pl-k">::</span><span class="pl-c1">REPL.REPLCompletions.var"#21#25"</span>, <span class="pl-k">::</span><span class="pl-c1">Module</span>) at <span class="pl-k">/</span>home<span class="pl-k">/</span>keno<span class="pl-k">/</span>julia<span class="pl-k">/</span>usr<span class="pl-k">/</span>share<span class="pl-k">/</span>julia<span class="pl-k">/</span>stdlib<span class="pl-k">/</span>v1.<span class="pl-c1">4</span><span class="pl-k">/</span>REPL<span class="pl-k">/</span>src<span class="pl-k">/</span>REPLCompletions<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">122</span> │ [<span class="pl-c1">5</span>] <span class="pl-c1">completions</span>(<span class="pl-k">::</span><span class="pl-c1">String</span>, <span class="pl-k">::</span><span class="pl-c1">Int64</span>, <span class="pl-k">::</span><span class="pl-c1">Module</span>) at <span class="pl-k">/</span>home<span class="pl-k">/</span>keno<span class="pl-k">/</span>julia<span class="pl-k">/</span>usr<span class="pl-k">/</span>share<span class="pl-k">/</span>julia<span class="pl-k">/</span>stdlib<span class="pl-k">/</span>v1.<span class="pl-c1">4</span><span class="pl-k">/</span>REPL<span class="pl-k">/</span>src<span class="pl-k">/</span>REPLCompletions<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">703</span> │ [<span class="pl-c1">6</span>] <span class="pl-c1">completions</span>(<span class="pl-k">::</span><span class="pl-c1">String</span>, <span class="pl-k">::</span><span class="pl-c1">Int64</span>) at <span class="pl-k">/</span>home<span class="pl-k">/</span>keno<span class="pl-k">/</span>julia<span class="pl-k">/</span>usr<span class="pl-k">/</span>share<span class="pl-k">/</span>julia<span class="pl-k">/</span>stdlib<span class="pl-k">/</span>v1.<span class="pl-c1">4</span><span class="pl-k">/</span>REPL<span class="pl-k">/</span>src<span class="pl-k">/</span>REPLCompletions<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">573</span> │ [<span class="pl-c1">7</span>] <span class="pl-c1">complete_line</span>(<span class="pl-k">::</span><span class="pl-c1">REPL.REPLCompletionProvider</span>, <span class="pl-k">::</span><span class="pl-c1">Any</span>) at <span class="pl-k">/</span>home<span class="pl-k">/</span>keno<span class="pl-k">/</span>julia<span class="pl-k">/</span>usr<span class="pl-k">/</span>share<span class="pl-k">/</span>julia<span class="pl-k">/</span>stdlib<span class="pl-k">/</span>v1.<span class="pl-c1">4</span><span class="pl-k">/</span>REPL<span class="pl-k">/</span>src<span class="pl-k">/</span>REPL<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">372</span> │ [<span class="pl-c1">8</span>] <span class="pl-c1">complete_line</span>(<span class="pl-k">::</span><span class="pl-c1">REPL.LineEdit.PromptState</span>, <span class="pl-k">::</span><span class="pl-c1">Any</span>) at <span class="pl-k">/</span>home<span class="pl-k">/</span>keno<span class="pl-k">/</span>julia<span class="pl-k">/</span>usr<span class="pl-k">/</span>share<span class="pl-k">/</span>julia<span class="pl-k">/</span>stdlib<span class="pl-k">/</span>v1.<span class="pl-c1">4</span><span class="pl-k">/</span>REPL<span class="pl-k">/</span>src<span class="pl-k">/</span>LineEdit<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">329</span> │ [<span class="pl-c1">9</span>] <span class="pl-c1">complete_line</span>(<span class="pl-k">::</span><span class="pl-c1">REPL.LineEdit.MIState</span>) at <span class="pl-k">/</span>home<span class="pl-k">/</span>keno<span class="pl-k">/</span>julia<span class="pl-k">/</span>usr<span class="pl-k">/</span>share<span class="pl-k">/</span>julia<span class="pl-k">/</span>stdlib<span class="pl-k">/</span>v1.<span class="pl-c1">4</span><span class="pl-k">/</span>REPL<span class="pl-k">/</span>src<span class="pl-k">/</span>LineEdit<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">320</span> │ [<span class="pl-c1">10</span>] <span class="pl-c1">edit_tab</span>(<span class="pl-k">::</span><span class="pl-c1">REPL.LineEdit.MIState</span>, <span class="pl-k">::</span><span class="pl-c1">Any</span>, <span class="pl-k">::</span><span class="pl-c1">Any</span>) at <span class="pl-k">/</span>home<span class="pl-k">/</span>keno<span class="pl-k">/</span>julia<span class="pl-k">/</span>usr<span class="pl-k">/</span>share<span class="pl-k">/</span>julia<span class="pl-k">/</span>stdlib<span class="pl-k">/</span>v1.<span class="pl-c1">4</span><span class="pl-k">/</span>REPL<span class="pl-k">/</span>src<span class="pl-k">/</span>LineEdit<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">2032</span> (repeats <span class="pl-c1">2</span> times) │ [<span class="pl-c1">11</span>] (<span class="pl-k">::</span><span class="pl-c1">REPL.LineEdit.var"#109#162"</span>)(<span class="pl-k">::</span><span class="pl-c1">Any</span>, <span class="pl-k">::</span><span class="pl-c1">Any</span>, <span class="pl-k">::</span><span class="pl-c1">Vararg{Any,N}</span> <span class="pl-k">where</span> N) at <span class="pl-k">/</span>home<span class="pl-k">/</span>keno<span class="pl-k">/</span>julia<span class="pl-k">/</span>usr<span class="pl-k">/</span>share<span class="pl-k">/</span>julia<span class="pl-k">/</span>stdlib<span class="pl-k">/</span>v1.<span class="pl-c1">4</span><span class="pl-k">/</span>REPL<span class="pl-k">/</span>src<span class="pl-k">/</span>LineEdit<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">2073</span> │ [<span class="pl-c1">12</span>] <span class="pl-c"><span class="pl-c">#</span>invokelatest#1 at ./essentials.jl:712 [inlined]</span> │ [<span class="pl-c1">13</span>] invokelatest at <span class="pl-k">./</span>essentials<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">711</span> [inlined] │ [<span class="pl-c1">14</span>] (<span class="pl-k">::</span><span class="pl-c1">REPL.LineEdit.var"#22#23"</span>{REPL<span class="pl-k">.</span>LineEdit<span class="pl-k">.</span><span class="pl-c1">var"#109#162"</span>,String})(<span class="pl-k">::</span><span class="pl-c1">Any</span>, <span class="pl-k">::</span><span class="pl-c1">Any</span>) at <span class="pl-k">/</span>home<span class="pl-k">/</span>keno<span class="pl-k">/</span>julia<span class="pl-k">/</span>usr<span class="pl-k">/</span>share<span class="pl-k">/</span>julia<span class="pl-k">/</span>stdlib<span class="pl-k">/</span>v1.<span class="pl-c1">4</span><span class="pl-k">/</span>REPL<span class="pl-k">/</span>src<span class="pl-k">/</span>LineEdit<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">1364</span> │ [<span class="pl-c1">15</span>] <span class="pl-c1">prompt!</span>(<span class="pl-k">::</span><span class="pl-c1">REPL.Terminals.TextTerminal</span>, <span class="pl-k">::</span><span class="pl-c1">REPL.LineEdit.ModalInterface</span>, <span class="pl-k">::</span><span class="pl-c1">REPL.LineEdit.MIState</span>) at <span class="pl-k">/</span>home<span class="pl-k">/</span>keno<span class="pl-k">/</span>julia<span class="pl-k">/</span>usr<span class="pl-k">/</span>share<span class="pl-k">/</span>julia<span class="pl-k">/</span>stdlib<span class="pl-k">/</span>v1.<span class="pl-c1">4</span><span class="pl-k">/</span>REPL<span class="pl-k">/</span>src<span class="pl-k">/</span>LineEdit<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">2446</span> │ [<span class="pl-c1">16</span>] <span class="pl-c1">run_interface</span>(<span class="pl-k">::</span><span class="pl-c1">REPL.Terminals.TextTerminal</span>, <span class="pl-k">::</span><span class="pl-c1">REPL.LineEdit.ModalInterface</span>, <span class="pl-k">::</span><span class="pl-c1">REPL.LineEdit.MIState</span>) at <span class="pl-k">/</span>home<span class="pl-k">/</span>keno<span class="pl-k">/</span>julia<span class="pl-k">/</span>usr<span class="pl-k">/</span>share<span class="pl-k">/</span>julia<span class="pl-k">/</span>stdlib<span class="pl-k">/</span>v1.<span class="pl-c1">4</span><span class="pl-k">/</span>REPL<span class="pl-k">/</span>src<span class="pl-k">/</span>LineEdit<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">2349</span> │ [<span class="pl-c1">17</span>] <span class="pl-c1">run_frontend</span>(<span class="pl-k">::</span><span class="pl-c1">REPL.LineEditREPL</span>, <span class="pl-k">::</span><span class="pl-c1">REPL.REPLBackendRef</span>) at <span class="pl-k">/</span>home<span class="pl-k">/</span>keno<span class="pl-k">/</span>julia<span class="pl-k">/</span>usr<span class="pl-k">/</span>share<span class="pl-k">/</span>julia<span class="pl-k">/</span>stdlib<span class="pl-k">/</span>v1.<span class="pl-c1">4</span><span class="pl-k">/</span>REPL<span class="pl-k">/</span>src<span class="pl-k">/</span>REPL<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">1055</span> │ [<span class="pl-c1">18</span>] <span class="pl-c1">run_repl</span>(<span class="pl-k">::</span><span class="pl-c1">REPL.AbstractREPL</span>, <span class="pl-k">::</span><span class="pl-c1">Any</span>) at <span class="pl-k">/</span>home<span class="pl-k">/</span>keno<span class="pl-k">/</span>julia<span class="pl-k">/</span>usr<span class="pl-k">/</span>share<span class="pl-k">/</span>julia<span class="pl-k">/</span>stdlib<span class="pl-k">/</span>v1.<span class="pl-c1">4</span><span class="pl-k">/</span>REPL<span class="pl-k">/</span>src<span class="pl-k">/</span>REPL<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">206</span> │ [<span class="pl-c1">19</span>] (<span class="pl-k">::</span><span class="pl-c1">Base.var"#766#768"</span>{Bool,Bool,Bool,Bool})(<span class="pl-k">::</span><span class="pl-c1">Module</span>) at <span class="pl-k">./</span>client<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">383</span> │ [<span class="pl-c1">20</span>] <span class="pl-c"><span class="pl-c">#</span>invokelatest#1 at ./essentials.jl:712 [inlined]</span> │ [<span class="pl-c1">21</span>] invokelatest at <span class="pl-k">./</span>essentials<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">711</span> [inlined] │ [<span class="pl-c1">22</span>] <span class="pl-c1">run_main_repl</span>(<span class="pl-k">::</span><span class="pl-c1">Bool</span>, <span class="pl-k">::</span><span class="pl-c1">Bool</span>, <span class="pl-k">::</span><span class="pl-c1">Bool</span>, <span class="pl-k">::</span><span class="pl-c1">Bool</span>, <span class="pl-k">::</span><span class="pl-c1">Bool</span>) at <span class="pl-k">./</span>client<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">367</span> │ [<span class="pl-c1">23</span>] <span class="pl-c1">exec_options</span>(<span class="pl-k">::</span><span class="pl-c1">Base.JLOptions</span>) at <span class="pl-k">./</span>client<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">305</span> │ [<span class="pl-c1">24</span>] <span class="pl-c1">_start</span>() at <span class="pl-k">./</span>client<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">484</span> │ <span class="pl-k">in</span> expression starting at none<span class="pl-k">:</span><span class="pl-c1">1</span> └ @ REPL<span class="pl-k">.</span>LineEdit <span class="pl-k">~</span><span class="pl-k">/</span>julia<span class="pl-k">/</span>usr<span class="pl-k">/</span>share<span class="pl-k">/</span>julia<span class="pl-k">/</span>stdlib<span class="pl-k">/</span>v1.<span class="pl-c1">4</span><span class="pl-k">/</span>REPL<span class="pl-k">/</span>src<span class="pl-k">/</span>LineEdit<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">2448</span></pre></div>
<p dir="auto">Open julia with REPL, type <code class="notranslate">@nonexist.</code> and hit Tab:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" _ _ _(_)_ | A fresh approach to technical computing (_) | (_) (_) | Documentation: https://docs.julialang.org _ _ _| |_ __ _ | Type &quot;?help&quot; for help. | | | | | | |/ _` | | | | |_| | | | (_| | | Version 0.7.0-DEV.5138 (2018-05-19 22:52 UTC) _/ |\__'_|_|_|\__'_| | Commit a465d33f6 (1 day old master) |__/ | x86_64-redhat-linux julia&gt; @nonexist.┌ Error: Error in the keymap │ exception = │ LoadError: UndefVarError: @nonexist not defined │ Stacktrace: │ [1] top-level scope │ [2] lower at ./meta.jl:68 [inlined] │ [3] get_type(::Expr, ::Module) at /TEST/usr/share/julia/stdlib/v0.7/REPL/src/REPLCompletions.jl:362 │ [4] complete_symbol(::String, ::getfield(REPL.REPLCompletions, Symbol(&quot;##15#17&quot;))) at /TEST/usr/share/julia/stdlib/v0.7/REPL/src/REPLCompletions.jl:63 │ [5] completions(::String, ::Int64) at /TEST/usr/share/julia/stdlib/v0.7/REPL/src/REPLCompletions.jl:648 ... "><pre class="notranslate"><code class="notranslate"> _ _ _(_)_ | A fresh approach to technical computing (_) | (_) (_) | Documentation: https://docs.julialang.org _ _ _| |_ __ _ | Type "?help" for help. | | | | | | |/ _` | | | | |_| | | | (_| | | Version 0.7.0-DEV.5138 (2018-05-19 22:52 UTC) _/ |\__'_|_|_|\__'_| | Commit a465d33f6 (1 day old master) |__/ | x86_64-redhat-linux julia&gt; @nonexist.┌ Error: Error in the keymap │ exception = │ LoadError: UndefVarError: @nonexist not defined │ Stacktrace: │ [1] top-level scope │ [2] lower at ./meta.jl:68 [inlined] │ [3] get_type(::Expr, ::Module) at /TEST/usr/share/julia/stdlib/v0.7/REPL/src/REPLCompletions.jl:362 │ [4] complete_symbol(::String, ::getfield(REPL.REPLCompletions, Symbol("##15#17"))) at /TEST/usr/share/julia/stdlib/v0.7/REPL/src/REPLCompletions.jl:63 │ [5] completions(::String, ::Int64) at /TEST/usr/share/julia/stdlib/v0.7/REPL/src/REPLCompletions.jl:648 ... </code></pre></div>
1
<p dir="auto">My screen resolution is 2k, dpi zoom 200%</p> <p dir="auto">For example:</p> <p dir="auto">This is the picture displayed after running<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/13817254/34868256-1503d3f6-f7be-11e7-8a36-fb02a26f6b65.png"><img src="https://user-images.githubusercontent.com/13817254/34868256-1503d3f6-f7be-11e7-8a36-fb02a26f6b65.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">And this is an image saved with dpi = 300<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/13817254/34868338-62a03b7c-f7be-11e7-9419-6d13a2578a3a.png"><img src="https://user-images.githubusercontent.com/13817254/34868338-62a03b7c-f7be-11e7-9419-6d13a2578a3a.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">My point is that gui applications are not ideal for displaying on high-resolution screens.</p>
<h3 dir="auto">Bug report</h3> <p dir="auto">The plots done with "TkAgg" backend look blurry on retina screen of my Mac Book Pro. The plots look good when I'm using the default "MaxOSX" backend. It would be nice to have retina-friendly output for "TkAgg" since I'm using the plots into a tkinter GUI app.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/880411/35893090-7fe4f9f6-0c00-11e8-9dad-a9dac766b3c5.png"><img width="449" alt="matplotlib plots: tkagg vs osx" src="https://user-images.githubusercontent.com/880411/35893090-7fe4f9f6-0c00-11e8-9dad-a9dac766b3c5.png" style="max-width: 100%;"></a></p> <p dir="auto"><strong>Code for reproduction</strong></p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib matplotlib.use('TkAgg') # Remove this to compare with MacOSX backend import matplotlib.pyplot as plt f = plt.figure(figsize=(6, 4)) a = f.add_subplot(111) a.plot([1,2,3,4]) plt.show()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span> <span class="pl-s1">matplotlib</span>.<span class="pl-en">use</span>(<span class="pl-s">'TkAgg'</span>) <span class="pl-c"># Remove this to compare with MacOSX backend</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">f</span> <span class="pl-c1">=</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">6</span>, <span class="pl-c1">4</span>)) <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-s1">f</span>.<span class="pl-en">add_subplot</span>(<span class="pl-c1">111</span>) <span class="pl-s1">a</span>.<span class="pl-en">plot</span>([<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>,<span class="pl-c1">4</span>]) <span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div> <p dir="auto"><strong>Actual outcome</strong></p> <p dir="auto">The plots and toolbar look blurry on "TkAgg" backend.</p> <p dir="auto"><strong>Expected outcome</strong></p> <p dir="auto">The plots and toolbar look sharp, just like on "MaxOSX" backend.</p> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Operating system: MacOS 10.13.2</li> <li>Matplotlib version: 2.1.2</li> <li>tkinter.TkVersion: 8.5</li> <li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): TkAgg</li> <li>Python version: 3.6.4</li> </ul> <p dir="auto">I've installed python from <a href="https://www.python.org/downloads/mac-osx/" rel="nofollow">https://www.python.org/downloads/mac-osx/</a>, clicking on Download menu and selecting Python 3.6.4 for MacOS.</p> <p dir="auto">If I create a tkinter app, other elements like labels, menus are sharp as well, only the plot is blurry. This indicates that tkinter is capable of showing sharp graphics, the question is how to do it.</p>
1
<p dir="auto">Related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="92706579" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/3714" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/3714/hovercard" href="https://github.com/microsoft/TypeScript/issues/3714">#3714</a>.</p> <p dir="auto">With the changes to emitting modules with the <code class="notranslate">"use strict";</code> prolog, TypeScript is not applying the appropriate level of code checking to catch block scoped function declaration.</p> <p dir="auto"><strong>TypeScript Version:</strong></p> <p dir="auto">1.8.2+</p> <p dir="auto"><strong>Code</strong></p> <p dir="auto"><a href="http://www.typescriptlang.org/Playground#src=export%20function%20foo%28%29%20%7B%0A%09return%20'foo'%3B%0A%7D%0A%0Aif%20%28true%29%20%7B%0A%09function%20bar%28%29%20%7B%20%2F*%20should%20throw%20error%20that%20functions%20must%20be%20declared%20at%20the%20top%20level%20*%2F%0A%09%09return%20'bar'%3B%0A%09%7D%0A%7D%0A" rel="nofollow">Playground Link</a></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export function foo() { return 'foo'; } if (true) { function bar() { /* should throw error that functions must be declared at the top level */ return 'bar'; } }"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">function</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s">'foo'</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-c1">true</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">function</span> <span class="pl-en">bar</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">/* should throw error that functions must be declared at the top level */</span> <span class="pl-k">return</span> <span class="pl-s">'bar'</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><strong>Expected behavior:</strong></p> <p dir="auto">Error at block level function declaration.</p> <p dir="auto"><strong>Actual behavior:</strong></p> <p dir="auto">No error and an invalid emit.</p>
<p dir="auto">From the kangax compatibility table (<a href="http://kangax.github.io/compat-table/es6/#block-level_function_declaration" rel="nofollow">related test</a>):</p> <blockquote> <p dir="auto"><a href="http://kangax.github.io/compat-table/es6/index.html#block-level-function-note" rel="nofollow">14</a> Note that prior to ES6, it was <a href="http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls" rel="nofollow">recommended</a> that ES5 implementations forbid block-level declarations in strict mode.</p> </blockquote> <p dir="auto">In ES6, block-level function declarations have block scoping in strict mode. Currently the following is a compiler error in TypeScript:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&quot;use strict&quot;; function f() { // error TS2393: Duplicate function implementation. return 1; } { function f() { // error TS2393: Duplicate function implementation. return 2; } console.log(f() === 2); } console.log(f() === 1);"><pre class="notranslate"><span class="pl-s">"use strict"</span><span class="pl-kos">;</span> <span class="pl-k">function</span> <span class="pl-en">f</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// error TS2393: Duplicate function implementation.</span> <span class="pl-k">return</span> <span class="pl-c1">1</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">{</span> <span class="pl-k">function</span> <span class="pl-en">f</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// error TS2393: Duplicate function implementation.</span> <span class="pl-k">return</span> <span class="pl-c1">2</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-en">f</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">===</span> <span class="pl-c1">2</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-en">f</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">===</span> <span class="pl-c1">1</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">We should consider the following changes:</p> <ol dir="auto"> <li>Allow the above in ES6 when in strict mode, with the function declaration <code class="notranslate">f</code> being block-scoped with respect to name resolution.</li> <li>For ES5 strict-mode, allow the above with the following emit:</li> </ol> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&quot;use strict&quot;; function f() { return 1; } { function f_1() { return 2; } console.log(f_1() === 2); } console.log(f() === 1);"><pre class="notranslate"><span class="pl-s">"use strict"</span><span class="pl-kos">;</span> <span class="pl-k">function</span> <span class="pl-en">f</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-c1">1</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">{</span> <span class="pl-k">function</span> <span class="pl-en">f_1</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-c1">2</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-en">f_1</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">===</span> <span class="pl-c1">2</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-en">f</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">===</span> <span class="pl-c1">1</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
1
<p dir="auto">Hi,</p> <p dir="auto">I'm having some troubles with setting up a simple angular2 app with routing, when it's served directly through the server root. Example:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@RouteConfig([ { path: '/', component: Workbench }, { path: '/login', component: Auth }, { path: '/home', component: Home } ]) export class App{ }"><pre class="notranslate">@<span class="pl-v">RouteConfig</span><span class="pl-kos">(</span><span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">path</span>: <span class="pl-s">'/'</span><span class="pl-kos">,</span> <span class="pl-c1">component</span>: <span class="pl-v">Workbench</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">path</span>: <span class="pl-s">'/login'</span><span class="pl-kos">,</span> <span class="pl-c1">component</span>: <span class="pl-v">Auth</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">path</span>: <span class="pl-s">'/home'</span><span class="pl-kos">,</span> <span class="pl-c1">component</span>: <span class="pl-v">Home</span> <span class="pl-kos">}</span> <span class="pl-kos">]</span><span class="pl-kos">)</span> <span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-v">App</span><span class="pl-kos">{</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Where / is the root url of the http server.</p> <p dir="auto">Right now, navigating to <strong>/home</strong> or <strong>/login</strong> results in the same as navigating to <strong>/</strong>. After some investigation the problem seems to be the result of <em>normalize</em>: (inside location.ts)</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="normalize: function(url) { return stripTrailingSlash(this._stripBaseHref(stripIndexHtml(url))); },"><pre class="notranslate"><span class="pl-s1">normalize</span>: <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">url</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-en">stripTrailingSlash</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">_stripBaseHref</span><span class="pl-kos">(</span><span class="pl-en">stripIndexHtml</span><span class="pl-kos">(</span><span class="pl-s1">url</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">Besides the url being set to "/login" the result of <strong>this._stripBaseHref(stripIndexHtml(url))</strong> is "" (empty string). This happens because url and _baseHref (using HTML5LocationStategy) are exactly the same.</p> <p dir="auto">Looking at the getBaseHref function on the last version of browser_adapter (<a href="https://github.com/angular/angular/blob/011fab37af626535c1d5af7091d72e27d93f4391/modules/angular2/src/dom/browser_adapter.ts">https://github.com/angular/angular/blob/011fab37af626535c1d5af7091d72e27d93f4391/modules/angular2/src/dom/browser_adapter.ts</a>)</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function relativePath(url) { if (isBlank(urlParsingNode)) { urlParsingNode = document.createElement(&quot;a&quot;); } urlParsingNode.setAttribute('href', url); return (urlParsingNode.pathname.charAt(0) === '/') ? urlParsingNode.pathname : '/' + urlParsingNode.pathname; } (...) getBaseHref: function() { return relativePath(document.baseURI); }"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">relativePath</span><span class="pl-kos">(</span><span class="pl-s1">url</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-en">isBlank</span><span class="pl-kos">(</span><span class="pl-s1">urlParsingNode</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">urlParsingNode</span> <span class="pl-c1">=</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span><span class="pl-s">"a"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-s1">urlParsingNode</span><span class="pl-kos">.</span><span class="pl-en">setAttribute</span><span class="pl-kos">(</span><span class="pl-s">'href'</span><span class="pl-kos">,</span> <span class="pl-s1">url</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-s1">urlParsingNode</span><span class="pl-kos">.</span><span class="pl-c1">pathname</span><span class="pl-kos">.</span><span class="pl-en">charAt</span><span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">)</span> <span class="pl-c1">===</span> <span class="pl-s">'/'</span><span class="pl-kos">)</span> ? <span class="pl-s1">urlParsingNode</span><span class="pl-kos">.</span><span class="pl-c1">pathname</span> : <span class="pl-s">'/'</span> <span class="pl-c1">+</span> <span class="pl-s1">urlParsingNode</span><span class="pl-kos">.</span><span class="pl-c1">pathname</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">getBaseHref</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-en">relativePath</span><span class="pl-kos">(</span><span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-c1">baseURI</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">If we call <strong>getBaseHref("<a href="http://localhost:8000/login" rel="nofollow">http://localhost:8000/login</a>")</strong> what should be the expected outcome?<br> With the current implementation we are getting "/login", but it seems to me that we should get only "/" instead.</p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/btford/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/btford">@btford</a> can you please let me know your thoughts on this? If the change is on getBaseHref, the fix seems quite simple, I can submit a PR, I'm only checking with you guys the expected behaviour before doing anything.</p> <p dir="auto">Best regards,</p>
<p dir="auto">When you use <code class="notranslate">&lt;a router-link="foo"&gt;Link&lt;/a&gt;</code> with an accompanying <code class="notranslate">&lt;router-outlet&gt;&lt;/router-outlet&gt;</code>, the proper component's template appears in the outlet. The issue is when the user refreshes (on the proper URL extension, i.e., <code class="notranslate">localhost:8080/foo</code>), no templates are loaded (including the original app's template), leaving the page blank. As far as I can tell, what's happening is that as that URL only is marked to use the template of <code class="notranslate">foo</code>, so there is no outlet for it to show up in. There is the chance I am doing this wrong, but everything else is working properly.</p>
1
<p dir="auto">Make sure these boxes are checked before submitting your issue - thank you!</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the superset logs for python stacktraces and included it here as text if any</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have reproduced the issue with at least the latest released version of superset</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the issue tracker for the same issue and I haven't found one similar</li> </ul> <h3 dir="auto">Superset version</h3> <p dir="auto">0.20.1</p> <h3 dir="auto">Expected results</h3> <p dir="auto">Can use % wildcard in custom WHERE clause</p> <h3 dir="auto">Actual results</h3> <p dir="auto">% wildcard gets duplicated when included in the custom where clause</p> <h3 dir="auto">Steps to reproduce</h3> <ol dir="auto"> <li>Create a slice</li> <li>Add a custom query to the "custom WHERE clause" section that includes a wildcard</li> <li>Click "view query"</li> <li>Observe that the wildcard is duplicated</li> </ol> <p dir="auto">Screenshot (observe the where field in the background):<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1300331/32190499-67d1f65e-bd84-11e7-8fa7-4b1074710ea7.png"><img src="https://user-images.githubusercontent.com/1300331/32190499-67d1f65e-bd84-11e7-8fa7-4b1074710ea7.png" alt="screen shot 2017-10-30 at 3 09 51 pm" style="max-width: 100%;"></a></p>
<p dir="auto">Name change for chart is not reflected on chart view without refresh and After click on ALTERED then we see white screen and error in the console.</p> <h3 dir="auto">Expected results</h3> <p dir="auto">New name should be displayed. Altered should show the difference.</p> <h3 dir="auto">Actual results</h3> <p dir="auto">Old name is displayed. Unhandled error after click on altered. <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/junlincc/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/junlincc">@junlincc</a></p> <h4 dir="auto">Screenshots</h4> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25153919/100471315-54e17e80-30da-11eb-99e3-731b2da2f792.gif"><img src="https://user-images.githubusercontent.com/25153919/100471315-54e17e80-30da-11eb-99e3-731b2da2f792.gif" alt="ezgif com-gif-maker" data-animated-image="" style="max-width: 100%;"></a></p> <h4 dir="auto">How to reproduce the bug</h4> <ol dir="auto"> <li>Go to charts</li> <li>Click on any chart</li> <li>edit chart title and save</li> <li>see that name has not changed</li> <li>click on altered</li> <li>see that white screen is dispplayed</li> </ol> <h3 dir="auto">Environment</h3> <p dir="auto">(please complete the following information):</p> <p dir="auto">built with docker-compose up<br> master commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/apache/superset/commit/f121107bbe1f43b7e4ba8dd8e5185bf1ab1a5e75/hovercard" href="https://github.com/apache/superset/commit/f121107bbe1f43b7e4ba8dd8e5185bf1ab1a5e75"><tt>f121107</tt></a></p> <h3 dir="auto">Checklist</h3> <p dir="auto">Make sure to follow these steps 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>[x ] I have reproduced the issue with at least the latest released version of superset.</li> <li>[ x] 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>
0
<p dir="auto"><em>What is the expected behavior of the proposed feature? What is the scenario this would be used?</em><br> I would really like to go from A to B with a single shortcut</p> <p dir="auto"><strong>A</strong><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6896072/92550410-fc0ff180-f220-11ea-8766-abcae8096332.png"><img src="https://user-images.githubusercontent.com/6896072/92550410-fc0ff180-f220-11ea-8766-abcae8096332.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto"><strong>B</strong><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6896072/92550361-e7cbf480-f220-11ea-9781-e30b229b9970.png"><img src="https://user-images.githubusercontent.com/6896072/92550361-e7cbf480-f220-11ea-9781-e30b229b9970.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">I really enjoyed this feature while using i3 and would love to see it implemented in windows. It is how I most often maintained productivity during class</p> <p dir="auto">If you'd like to see this feature implemented, add a <g-emoji class="g-emoji" alias="+1" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png">👍</g-emoji> reaction to this post.</p>
<p dir="auto">The Shortcut Guide shows the Windows Key shortcuts.</p> <p dir="auto">However, Shortcut Guide also needs to show the PowerToys Shortcuts too.<br> So that we can learn how to use PowerToys more efficiently.</p>
0
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ ] bug report =&gt; search github for a similar issue or PR before submitting [x] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[ ] bug report =&gt; search github for a similar issue or PR before submitting [x] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> There seems to be no way to focus a FormControl.</p> <p dir="auto"><strong>Expected behavior</strong><br> FormControl provides a <em>.focus()</em> instance method, or access to the native HTML element.</p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br> To give input focus to a control when it is invalid, as in the following example:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="if (!this.form.valid) { let invalid = &lt;FormControl[]&gt;Object.keys(this.form.controls).map(key =&gt; this.form.controls[key]).filter(ctl =&gt; ctl.invalid); if (invalid.length &gt; 0) { // Give input focus to invalid[0]... how? } return false; }"><pre class="notranslate"><span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-c1">!</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">form</span><span class="pl-kos">.</span><span class="pl-c1">valid</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> <span class="pl-s1">invalid</span> <span class="pl-c1">=</span> <span class="pl-kos">&lt;</span><span class="pl-smi">FormControl</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">&gt;</span><span class="pl-smi">Object</span><span class="pl-kos">.</span><span class="pl-en">keys</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">form</span><span class="pl-kos">.</span><span class="pl-c1">controls</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">key</span> <span class="pl-c1">=&gt;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">form</span><span class="pl-kos">.</span><span class="pl-c1">controls</span><span class="pl-kos">[</span><span class="pl-s1">key</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">filter</span><span class="pl-kos">(</span><span class="pl-s1">ctl</span> <span class="pl-c1">=&gt;</span> <span class="pl-s1">ctl</span><span class="pl-kos">.</span><span class="pl-c1">invalid</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">invalid</span><span class="pl-kos">.</span><span class="pl-c1">length</span> <span class="pl-c1">&gt;</span> <span class="pl-c1">0</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// Give input focus to invalid[0]... how?</span> <span class="pl-kos">}</span> <span class="pl-k">return</span> <span class="pl-c1">false</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><strong>Please tell us about your environment:</strong></p> <ul dir="auto"> <li> <p dir="auto"><strong>Angular version:</strong> 2.2.1</p> </li> <li> <p dir="auto"><strong>Browser:</strong> N/A</p> </li> <li> <p dir="auto"><strong>Language:</strong> TypeScript 2.0.3</p> </li> </ul>
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ ] bug report =&gt; search github for a similar issue or PR before submitting [x] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[ ] bug report =&gt; search github for a similar issue or PR before submitting [x] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Suggestion</strong></p> <p dir="auto">Create an API on FormControl that would easily allow the input to be focused without having to resort to bringing in Renderer or ElementRef.</p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br> This could be used widely to either easily focus the first input in a form after it is rendered, or focus inputs which have invalid data entered into them.</p>
1
<h2 dir="auto"><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Bug</h2> <p dir="auto"><code class="notranslate">torch.Tensor</code> is creating tensor only on CPU. The <code class="notranslate">device</code> argument isn't working</p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">Steps to reproduce the behavior:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/932927/46579323-e5c9dd00-c9dc-11e8-93e6-5ee08db479ec.png"><img width="704" alt="screen shot 2018-10-07 at 2 58 28 am" src="https://user-images.githubusercontent.com/932927/46579323-e5c9dd00-c9dc-11e8-93e6-5ee08db479ec.png" style="max-width: 100%;"></a></p> <h2 dir="auto">Expected behavior</h2> <p dir="auto"><code class="notranslate">torch.Tensor</code> should create tensor on <code class="notranslate">cuda:0</code> device</p> <h2 dir="auto">Environment</h2> <p dir="auto">Google Colaboratory + Python 3 + GPU</p> <p dir="auto">Collecting environment information...<br> PyTorch version: 0.4.1<br> Is debug build: No<br> CUDA used to build PyTorch: 9.0.176</p> <p dir="auto">OS: Ubuntu 17.10<br> GCC version: (Ubuntu 7.2.0-8ubuntu3.2) 7.2.0<br> CMake version: Could not collect</p> <p dir="auto">Python version: 3.6<br> Is CUDA available: Yes<br> CUDA runtime version: Could not collect<br> GPU models and configuration: GPU 0: Tesla K80<br> Nvidia driver version: 384.111<br> cuDNN version: Could not collect</p> <p dir="auto">Versions of relevant libraries:<br> [pip] Could not collect<br> [conda] Could not collect</p>
<h2 dir="auto">Issue description</h2> <p dir="auto">torch.LongTensor silently ignores <code class="notranslate">device='cuda'</code> parameter</p> <h2 dir="auto">Code example</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import torch i = torch.LongTensor(3, device='cuda') assert i.is_cuda"><pre class="notranslate"><code class="notranslate">import torch i = torch.LongTensor(3, device='cuda') assert i.is_cuda </code></pre></div> <p dir="auto">Output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;tmp_prog/test.py&quot;, line 4, in &lt;module&gt; assert i.is_cuda AssertionError"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "tmp_prog/test.py", line 4, in &lt;module&gt; assert i.is_cuda AssertionError </code></pre></div> <h2 dir="auto">System Info</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PyTorch version: 0.4.1 Is debug build: No CUDA used to build PyTorch: 9.0.176 OS: Ubuntu 16.04.5 LTS GCC version: (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609 CMake version: version 3.5.1 Python version: 3.6 Is CUDA available: Yes CUDA runtime version: 9.0.176 GPU models and configuration: GPU 0: Tesla M60 Nvidia driver version: 384.130 cuDNN version: Probably one of the following: /usr/lib/x86_64-linux-gnu/libcudnn.so.5.1.10 /usr/lib/x86_64-linux-gnu/libcudnn.so.6.0.21 /usr/lib/x86_64-linux-gnu/libcudnn.so.7.0.3 /usr/lib/x86_64-linux-gnu/libcudnn_static_v5.a /usr/lib/x86_64-linux-gnu/libcudnn_static_v6.a /usr/lib/x86_64-linux-gnu/libcudnn_static_v7.a Versions of relevant libraries: [pip] numpy (1.14.3) [pip] torch (0.4.1) [pip] torchtext (0.2.3) [pip] torchvision (0.2.1) [conda] pytorch 0.4.1 py36_cuda9.0.176_cudnn7.1.2_1 pytorch [conda] torchtext 0.2.3 &lt;pip&gt; [conda] torchvision 0.2.1 py36_1 pytorch"><pre class="notranslate"><code class="notranslate">PyTorch version: 0.4.1 Is debug build: No CUDA used to build PyTorch: 9.0.176 OS: Ubuntu 16.04.5 LTS GCC version: (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609 CMake version: version 3.5.1 Python version: 3.6 Is CUDA available: Yes CUDA runtime version: 9.0.176 GPU models and configuration: GPU 0: Tesla M60 Nvidia driver version: 384.130 cuDNN version: Probably one of the following: /usr/lib/x86_64-linux-gnu/libcudnn.so.5.1.10 /usr/lib/x86_64-linux-gnu/libcudnn.so.6.0.21 /usr/lib/x86_64-linux-gnu/libcudnn.so.7.0.3 /usr/lib/x86_64-linux-gnu/libcudnn_static_v5.a /usr/lib/x86_64-linux-gnu/libcudnn_static_v6.a /usr/lib/x86_64-linux-gnu/libcudnn_static_v7.a Versions of relevant libraries: [pip] numpy (1.14.3) [pip] torch (0.4.1) [pip] torchtext (0.2.3) [pip] torchvision (0.2.1) [conda] pytorch 0.4.1 py36_cuda9.0.176_cudnn7.1.2_1 pytorch [conda] torchtext 0.2.3 &lt;pip&gt; [conda] torchvision 0.2.1 py36_1 pytorch </code></pre></div>
1
<p dir="auto">In the sparse case, <code class="notranslate">preprocessing.binarize</code> always converts the input matrix to CSR format. For COO and CSC, the data attribute can also be accessed directly so in those cases there's no reason to convert to CSR. (CSC is especially useful for coordinate descent algorithms)</p>
<p dir="auto">This is a placeholder issue for sparse matrices support in the Histogram-based GBDT estimators.</p> <p dir="auto">I guess <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="518378130" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/15550" data-hovercard-type="issue" data-hovercard-url="/scikit-learn/scikit-learn/issues/15550/hovercard" href="https://github.com/scikit-learn/scikit-learn/issues/15550">#15550</a> should be tackled first.</p> <hr> <p dir="auto">Below are my thoughts and potential plan on the matter, feel free to ignore.</p> <p dir="auto">Binning:</p> <p dir="auto">We need a utility to compute quantiles on sparse data, and we need to map a float sparse matrix to a binned sparse matrix given those quantiles. To avoid having to densify <code class="notranslate">X_binned</code>, the zeros in <code class="notranslate">X</code> should be mapped to bin 0, even if that's not their actual bin (called <code class="notranslate">actual_bin_zeros</code>). I guess that means all the bins in <code class="notranslate">range(0, actual_bin_zeros)</code> have an offset of 1, i.e. now they're actually mapped to <code class="notranslate">range(1, actual_bin_zeros + 1)</code>. Though maybe we can avoid the offset by distinguishing between explicit and implicit zeros, IDK.</p> <p dir="auto">Histograms:</p> <p dir="auto">We need a histogram builder that can handle sparse data <em>and</em> that is aware of <code class="notranslate">actual_bin_zeros</code> in some way. We can't just build the histograms as usual, because that would mean that the zeros would be treated as the lowest value in the splitter. In the histogram, the zeros should be placed in their proper bin, i.e. at index <code class="notranslate">actual_bin_zeros</code>. This way, the splitter can be left unchanged. The offset of the bins in <code class="notranslate">range(1, actual_bin_zeros)</code> should also be canceled here.</p> <p dir="auto">When building a histogram, we can focus only on the non-zeros entries. We already know the totals <code class="notranslate">sum_gradients</code>, <code class="notranslate">sum_hessians</code>, and <code class="notranslate">count</code> at any given node. So we can just go through the samples that have non-zero values and fill-in the histogram at their respective bins, and then set <code class="notranslate">hist[actual_bin_zeros]['grad'] = total_sum_gradients - hist[:]['grad'].sum()</code>.</p>
0
<p dir="auto">System is an M1 Macbook Air. Julia info:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; versioninfo() Julia Version 1.7.0-rc1 Commit 9eade6195e (2021-09-12 06:45 UTC) Platform Info: OS: macOS (arm64-apple-darwin20.5.0) CPU: Apple M1 WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-12.0.1 (ORCJIT, cyclone)"><pre class="notranslate"><code class="notranslate">julia&gt; versioninfo() Julia Version 1.7.0-rc1 Commit 9eade6195e (2021-09-12 06:45 UTC) Platform Info: OS: macOS (arm64-apple-darwin20.5.0) CPU: Apple M1 WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-12.0.1 (ORCJIT, cyclone) </code></pre></div> <p dir="auto">Starting from a clean installation, I did</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="] add DataFrames ] test DataFrames"><pre class="notranslate"><code class="notranslate">] add DataFrames ] test DataFrames </code></pre></div> <p dir="auto">The latter call ran many tests successfully, but then emitted a segfault as here:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Test Summary: | Pass Total stack view=true additional tests | 2 2 PASSED: reshape.jl signal (11): Segmentation fault: 11 in expression starting at /Users/gillam/.julia/packages/DataFrames/vuMM8/test/dataframerow.jl:12 ntuple at ./ntuple.jl:0 [inlined] NamedTuple at /Users/gillam/.julia/packages/DataFrames/vuMM8/src/dataframerow/dataframerow.jl:427 copy at /Users/gillam/.julia/packages/DataFrames/vuMM8/src/dataframerow/dataframerow.jl:442 unknown function (ip: 0x2980b19bb) jl_apply_generic at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) macro expansion at /Users/sabae/src/julia/usr/share/julia/stdlib/v1.7/Test/src/Test.jl:445 [inlined] macro expansion at /Users/gillam/.julia/packages/DataFrames/vuMM8/test/dataframerow.jl:20 [inlined] macro expansion at /Users/sabae/src/julia/usr/share/julia/stdlib/v1.7/Test/src/Test.jl:1282 [inlined] top-level scope at /Users/gillam/.julia/packages/DataFrames/vuMM8/test/dataframerow.jl:13 jl_toplevel_eval_flex at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) jl_toplevel_eval_flex at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) jl_toplevel_eval_flex at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) jl_toplevel_eval_in at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) eval at ./boot.jl:373 [inlined] include_string at ./loading.jl:1196 jl_apply_generic at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) _include at ./loading.jl:1253 include at ./client.jl:451 jl_apply_generic at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) top-level scope at /Users/gillam/.julia/packages/DataFrames/vuMM8/test/runtests.jl:50 jl_toplevel_eval_flex at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) jl_toplevel_eval_flex at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) jl_toplevel_eval_in at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) eval at ./boot.jl:373 [inlined] include_string at ./loading.jl:1196 jl_apply_generic at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) _include at ./loading.jl:1253 include at ./client.jl:451 jl_apply_generic at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) do_call at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) eval_body at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) jl_interpret_toplevel_thunk at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) jl_toplevel_eval_flex at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) jl_toplevel_eval_flex at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) jl_toplevel_eval_in at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) eval at ./boot.jl:373 [inlined] exec_options at ./client.jl:268 _start at ./client.jl:495 jfptr__start_33611 at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/sys.dylib (unknown line) jl_apply_generic at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) true_main at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) jl_repl_entrypoint at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) Allocations: 516343408 (Pool: 513344936; Big: 2998472); GC: 1050 ERROR: Package DataFrames errored during testing (exit code: 139)"><pre class="notranslate"><code class="notranslate">Test Summary: | Pass Total stack view=true additional tests | 2 2 PASSED: reshape.jl signal (11): Segmentation fault: 11 in expression starting at /Users/gillam/.julia/packages/DataFrames/vuMM8/test/dataframerow.jl:12 ntuple at ./ntuple.jl:0 [inlined] NamedTuple at /Users/gillam/.julia/packages/DataFrames/vuMM8/src/dataframerow/dataframerow.jl:427 copy at /Users/gillam/.julia/packages/DataFrames/vuMM8/src/dataframerow/dataframerow.jl:442 unknown function (ip: 0x2980b19bb) jl_apply_generic at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) macro expansion at /Users/sabae/src/julia/usr/share/julia/stdlib/v1.7/Test/src/Test.jl:445 [inlined] macro expansion at /Users/gillam/.julia/packages/DataFrames/vuMM8/test/dataframerow.jl:20 [inlined] macro expansion at /Users/sabae/src/julia/usr/share/julia/stdlib/v1.7/Test/src/Test.jl:1282 [inlined] top-level scope at /Users/gillam/.julia/packages/DataFrames/vuMM8/test/dataframerow.jl:13 jl_toplevel_eval_flex at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) jl_toplevel_eval_flex at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) jl_toplevel_eval_flex at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) jl_toplevel_eval_in at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) eval at ./boot.jl:373 [inlined] include_string at ./loading.jl:1196 jl_apply_generic at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) _include at ./loading.jl:1253 include at ./client.jl:451 jl_apply_generic at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) top-level scope at /Users/gillam/.julia/packages/DataFrames/vuMM8/test/runtests.jl:50 jl_toplevel_eval_flex at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) jl_toplevel_eval_flex at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) jl_toplevel_eval_in at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) eval at ./boot.jl:373 [inlined] include_string at ./loading.jl:1196 jl_apply_generic at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) _include at ./loading.jl:1253 include at ./client.jl:451 jl_apply_generic at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) do_call at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) eval_body at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) jl_interpret_toplevel_thunk at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) jl_toplevel_eval_flex at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) jl_toplevel_eval_flex at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) jl_toplevel_eval_in at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) eval at ./boot.jl:373 [inlined] exec_options at ./client.jl:268 _start at ./client.jl:495 jfptr__start_33611 at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/sys.dylib (unknown line) jl_apply_generic at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) true_main at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) jl_repl_entrypoint at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) Allocations: 516343408 (Pool: 513344936; Big: 2998472); GC: 1050 ERROR: Package DataFrames errored during testing (exit code: 139) </code></pre></div> <p dir="auto">(I am surprised I'm seeing the <code class="notranslate">/Users/sabae</code> path in this output. It doesn't exist on my system.)</p> <p dir="auto">Re-running <code class="notranslate">] test DataFrames</code> resulted in another segfault, although this time at a different point in the tests:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Test Summary: | Pass Total non standard selectors | 4 4 signal (11): Segmentation fault: 11 in expression starting at /Users/gillam/.julia/packages/DataFrames/vuMM8/test/sort.jl:150 ntuple at ./ntuple.jl:0 [inlined] DFPerm at /Users/gillam/.julia/packages/DataFrames/vuMM8/src/abstractdataframe/sort.jl:116 unknown function (ip: 0x2980fa323) jl_apply_generic at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) ordering at /Users/gillam/.julia/packages/DataFrames/vuMM8/src/abstractdataframe/sort.jl:170 ordering at /Users/gillam/.julia/packages/DataFrames/vuMM8/src/abstractdataframe/sort.jl:212 #sortperm#754 at /Users/gillam/.julia/packages/DataFrames/vuMM8/src/abstractdataframe/sort.jl:512 unknown function (ip: 0x2980f80ab) sortperm##kw at /Users/gillam/.julia/packages/DataFrames/vuMM8/src/abstractdataframe/sort.jl:503 [inlined] #sort#753 at /Users/gillam/.julia/packages/DataFrames/vuMM8/src/abstractdataframe/sort.jl:438 [inlined] sort at /Users/gillam/.julia/packages/DataFrames/vuMM8/src/abstractdataframe/sort.jl:438 [inlined] sort at /Users/gillam/.julia/packages/DataFrames/vuMM8/src/abstractdataframe/sort.jl:438 unknown function (ip: 0x2980f440f) jl_apply_generic at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) do_call at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) eval_body at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) eval_body at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) eval_body at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) eval_body at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) jl_interpret_toplevel_thunk at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) jl_toplevel_eval_flex at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) jl_toplevel_eval_flex at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) jl_toplevel_eval_flex at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) jl_toplevel_eval_in at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) eval at ./boot.jl:373 [inlined] include_string at ./loading.jl:1196 jl_apply_generic at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) _include at ./loading.jl:1253 include at ./client.jl:451 jl_apply_generic at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) top-level scope at /Users/gillam/.julia/packages/DataFrames/vuMM8/test/runtests.jl:50 jl_toplevel_eval_flex at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) jl_toplevel_eval_flex at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) jl_toplevel_eval_in at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) eval at ./boot.jl:373 [inlined] include_string at ./loading.jl:1196 jl_apply_generic at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) _include at ./loading.jl:1253 include at ./client.jl:451 jl_apply_generic at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) do_call at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) eval_body at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) jl_interpret_toplevel_thunk at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) jl_toplevel_eval_flex at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) jl_toplevel_eval_flex at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) jl_toplevel_eval_in at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) eval at ./boot.jl:373 [inlined] exec_options at ./client.jl:268 _start at ./client.jl:495 jfptr__start_33611 at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/sys.dylib (unknown line) jl_apply_generic at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) true_main at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) jl_repl_entrypoint at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) Allocations: 585978915 (Pool: 582952489; Big: 3026426); GC: 1114 ERROR: Package DataFrames errored during testing (exit code: 139)"><pre class="notranslate"><code class="notranslate">Test Summary: | Pass Total non standard selectors | 4 4 signal (11): Segmentation fault: 11 in expression starting at /Users/gillam/.julia/packages/DataFrames/vuMM8/test/sort.jl:150 ntuple at ./ntuple.jl:0 [inlined] DFPerm at /Users/gillam/.julia/packages/DataFrames/vuMM8/src/abstractdataframe/sort.jl:116 unknown function (ip: 0x2980fa323) jl_apply_generic at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) ordering at /Users/gillam/.julia/packages/DataFrames/vuMM8/src/abstractdataframe/sort.jl:170 ordering at /Users/gillam/.julia/packages/DataFrames/vuMM8/src/abstractdataframe/sort.jl:212 #sortperm#754 at /Users/gillam/.julia/packages/DataFrames/vuMM8/src/abstractdataframe/sort.jl:512 unknown function (ip: 0x2980f80ab) sortperm##kw at /Users/gillam/.julia/packages/DataFrames/vuMM8/src/abstractdataframe/sort.jl:503 [inlined] #sort#753 at /Users/gillam/.julia/packages/DataFrames/vuMM8/src/abstractdataframe/sort.jl:438 [inlined] sort at /Users/gillam/.julia/packages/DataFrames/vuMM8/src/abstractdataframe/sort.jl:438 [inlined] sort at /Users/gillam/.julia/packages/DataFrames/vuMM8/src/abstractdataframe/sort.jl:438 unknown function (ip: 0x2980f440f) jl_apply_generic at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) do_call at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) eval_body at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) eval_body at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) eval_body at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) eval_body at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) jl_interpret_toplevel_thunk at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) jl_toplevel_eval_flex at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) jl_toplevel_eval_flex at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) jl_toplevel_eval_flex at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) jl_toplevel_eval_in at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) eval at ./boot.jl:373 [inlined] include_string at ./loading.jl:1196 jl_apply_generic at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) _include at ./loading.jl:1253 include at ./client.jl:451 jl_apply_generic at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) top-level scope at /Users/gillam/.julia/packages/DataFrames/vuMM8/test/runtests.jl:50 jl_toplevel_eval_flex at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) jl_toplevel_eval_flex at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) jl_toplevel_eval_in at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) eval at ./boot.jl:373 [inlined] include_string at ./loading.jl:1196 jl_apply_generic at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) _include at ./loading.jl:1253 include at ./client.jl:451 jl_apply_generic at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) do_call at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) eval_body at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) jl_interpret_toplevel_thunk at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) jl_toplevel_eval_flex at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) jl_toplevel_eval_flex at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) jl_toplevel_eval_in at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) eval at ./boot.jl:373 [inlined] exec_options at ./client.jl:268 _start at ./client.jl:495 jfptr__start_33611 at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/sys.dylib (unknown line) jl_apply_generic at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) true_main at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) jl_repl_entrypoint at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line) Allocations: 585978915 (Pool: 582952489; Big: 3026426); GC: 1114 ERROR: Package DataFrames errored during testing (exit code: 139) </code></pre></div>
<p dir="auto">“<code class="notranslate">ismatch(regex, str)</code> has been deprecated in favor of <code class="notranslate">contains(str, regex)</code>”</p> <p dir="auto">then later</p> <p dir="auto">“<code class="notranslate">contains</code> has been deprecated in favor of a more general <code class="notranslate">occursin</code> function”</p> <p dir="auto">It might make more sense if these two paragraphs were somehow merged. Some idiot might change all their <code class="notranslate">ismatch</code>es to <code class="notranslate">contains</code>s then later have to go back and change all their <code class="notranslate">contains</code>s to <code class="notranslate">occursin</code>s. (Yes I did! :)</p>
0
<p dir="auto"><strong>I'm submitting a bug</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> Binding to an input's type causes number value accessor in forms to not work as expected.</p> <p dir="auto"><strong>Expected behavior</strong><br> Same as when not binding to the input's type.</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p> <ol dir="auto"> <li>Run <a href="http://plnkr.co/edit/xGC5O6G86qunGbxBwTRH" rel="nofollow">Plunker</a></li> <li>Enter number in left input, note "Type of age" is number.</li> <li>Modify number in right input, note "Type of age" is now a string.</li> </ol> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br> I would be more convenient to not have to parse the string. In a simple form, parsing the string into a number is not a problem. The problem arises when you have more complex forms that are being generated at run-time. Ideally, once a form is valid, I want to be able to just access it's value, JSON stringify it, and POST it to some API without having to muck about with it.</p> <p dir="auto"><strong>Please tell us about your environment:</strong><br> I don't think it matters for this issue.</p> <ul dir="auto"> <li> <p dir="auto"><strong>Angular version:</strong> 2.0.X<br> Version 4.0.1</p> </li> <li> <p dir="auto"><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 ]<br> Chrome 57.0.2987.133</p> </li> <li> <p dir="auto"><strong>Language:</strong> [all | TypeScript X.X | ES6/7 | ES5]<br> TypeScript 2.2</p> </li> </ul>
<p dir="auto">in creating a options list that allows the user to change different settings i found a problem with the type checkbox . take this component</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="(function(app){ app.testing=ng.core.Component({ selector:&quot;testing&quot;, template:&quot;&lt;input type='checkbox' [(ngModel)]='testing'/&gt;&quot;+ &quot;&lt;template ngFor #item [ngForOf]='list'&gt;&quot;+ &quot;&lt;input [type]='item.type' [(ngModel)]='item.value'/&gt;&quot;+ &quot;&lt;/template&gt;&quot; }).Class({ constructor:[function(){ this.testing=true; this.list=[ {type:&quot;checkbox&quot;,value:true}, {type:&quot;text&quot;,value:&quot;hello world&quot;} ]; }], }); })(window.app||(window.app={}));"><pre class="notranslate"><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">app</span><span class="pl-kos">)</span><span class="pl-kos">{</span> <span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-c1">testing</span><span class="pl-c1">=</span><span class="pl-s1">ng</span><span class="pl-kos">.</span><span class="pl-c1">core</span><span class="pl-kos">.</span><span class="pl-en">Component</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">selector</span>:<span class="pl-s">"testing"</span><span class="pl-kos">,</span> <span class="pl-c1">template</span>:<span class="pl-s">"&lt;input type='checkbox' [(ngModel)]='testing'/&gt;"</span><span class="pl-c1">+</span> <span class="pl-s">"&lt;template ngFor #item [ngForOf]='list'&gt;"</span><span class="pl-c1">+</span> <span class="pl-s">"&lt;input [type]='item.type' [(ngModel)]='item.value'/&gt;"</span><span class="pl-c1">+</span> <span class="pl-s">"&lt;/template&gt;"</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">Class</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">constructor</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-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">testing</span><span class="pl-c1">=</span><span class="pl-c1">true</span><span class="pl-kos">;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">list</span><span class="pl-c1">=</span><span class="pl-kos">[</span> <span class="pl-kos">{</span><span class="pl-c1">type</span>:<span class="pl-s">"checkbox"</span><span class="pl-kos">,</span><span class="pl-c1">value</span>:<span class="pl-c1">true</span><span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-c1">type</span>:<span class="pl-s">"text"</span><span class="pl-kos">,</span><span class="pl-c1">value</span>:<span class="pl-s">"hello world"</span><span class="pl-kos">}</span> <span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-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-smi">window</span><span class="pl-kos">.</span><span class="pl-c1">app</span><span class="pl-c1">||</span><span class="pl-kos">(</span><span class="pl-smi">window</span><span class="pl-kos">.</span><span class="pl-c1">app</span><span class="pl-c1">=</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">because of the ngFor loop combining with the dynamic setting of inputs and their types ngModel does not work on the second checkbox although it does on the first which is not dynamically set. im guessing this is a problem with how ngModel determines that the input is type checkbox. a example of this can be found <a href="https://jsfiddle.net/Lakntoyv/4/" rel="nofollow">here</a></p> <p dir="auto">sorry to those of you who work in typescript i was not able to use typescript so it is in plain es5. i hope you can still interpret what its meaning and maybe someone can translate it to typescript.</p>
1
<p dir="auto">Cannot build numpy v1.17.0 on CentOS 7.<br> Previous version works fine.<br> I'm seeing a lot of C99/C11 features in error message, and avx512f.<br> Not sure if the required <code class="notranslate">--std</code> option is set but I don't think gcc 4.8.5 (the system default compiler on CentOS 7) can handle all of that.</p> <h3 dir="auto">Reproducing code example:</h3> <p dir="auto">Simply build the wheel on CentOS 7 with python3.</p> <h3 dir="auto">Error message:</h3> <p dir="auto">Some error log attached.<br> The entire story is too long to be pasted here.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#6 356.1 compile options: '-Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/include/python3.6m -c' #6 356.1 gcc: _configtest.c #6 356.1 _configtest.c: In function 'main': #6 356.1 _configtest.c:5:3: warning: implicit declaration of function '__builtin_mul_overflow' [-Wimplicit-function-declaration] #6 356.1 __builtin_mul_overflow(5, 5, (int*)5); #6 356.1 ^ #6 356.1 gcc -pthread _configtest.o -o _configtest #6 356.1 _configtest.o: In function `main': #6 356.1 /tmp/pip-req-build-poiltggx/_configtest.c:5: undefined reference to `__builtin_mul_overflow' #6 356.1 collect2: error: ld returned 1 exit status #6 356.1 failure. #6 356.1 removing: _configtest.c _configtest.o _configtest.o.d #6 356.1 C compiler: gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC #6 356.1 #6 356.1 compile options: '-Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/include/python3.6m -c' #6 356.1 gcc: _configtest.c #6 356.1 _configtest.c: In function 'main': #6 356.1 _configtest.c:7:16: warning: unused variable 'r' [-Wunused-variable] #6 356.1 volatile int r = __builtin_cpu_supports(&quot;sse&quot;); #6 356.1 ^ #6 356.1 gcc -pthread _configtest.o -o _configtest #6 356.1 success! #6 356.1 removing: _configtest.c _configtest.o _configtest.o.d _configtest #6 356.1 C compiler: gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC #6 356.1 #6 356.1 compile options: '-Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/include/python3.6m -c' #6 356.1 gcc: _configtest.c #6 356.1 _configtest.c: In function 'main': #6 356.1 _configtest.c:7:3: error: Parameter to builtin not valid: avx512f #6 356.1 volatile int r = __builtin_cpu_supports(&quot;avx512f&quot;); #6 356.1 ^ #6 356.1 _configtest.c:7:16: warning: unused variable 'r' [-Wunused-variable] #6 356.1 volatile int r = __builtin_cpu_supports(&quot;avx512f&quot;); #6 356.1 ^ #6 356.1 failure. #6 356.1 removing: _configtest.c _configtest.o #6 356.1 C compiler: gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC #6 356.1 #6 356.1 compile options: '-Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/include/python3.6m -c' #6 356.1 gcc: _configtest.c #6 356.1 gcc -pthread _configtest.o -o _configtest #6 356.1 success! #6 356.1 removing: _configtest.c _configtest.o _configtest.o.d _configtest #6 356.1 C compiler: gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC #6 356.1 #6 356.1 compile options: '-Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/include/python3.6m -c' #6 356.1 gcc: _configtest.c #6 356.1 gcc -pthread _configtest.o -o _configtest #6 356.1 success! #6 356.1 removing: _configtest.c _configtest.o _configtest.o.d _configtest"><pre class="notranslate"><code class="notranslate">#6 356.1 compile options: '-Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/include/python3.6m -c' #6 356.1 gcc: _configtest.c #6 356.1 _configtest.c: In function 'main': #6 356.1 _configtest.c:5:3: warning: implicit declaration of function '__builtin_mul_overflow' [-Wimplicit-function-declaration] #6 356.1 __builtin_mul_overflow(5, 5, (int*)5); #6 356.1 ^ #6 356.1 gcc -pthread _configtest.o -o _configtest #6 356.1 _configtest.o: In function `main': #6 356.1 /tmp/pip-req-build-poiltggx/_configtest.c:5: undefined reference to `__builtin_mul_overflow' #6 356.1 collect2: error: ld returned 1 exit status #6 356.1 failure. #6 356.1 removing: _configtest.c _configtest.o _configtest.o.d #6 356.1 C compiler: gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC #6 356.1 #6 356.1 compile options: '-Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/include/python3.6m -c' #6 356.1 gcc: _configtest.c #6 356.1 _configtest.c: In function 'main': #6 356.1 _configtest.c:7:16: warning: unused variable 'r' [-Wunused-variable] #6 356.1 volatile int r = __builtin_cpu_supports("sse"); #6 356.1 ^ #6 356.1 gcc -pthread _configtest.o -o _configtest #6 356.1 success! #6 356.1 removing: _configtest.c _configtest.o _configtest.o.d _configtest #6 356.1 C compiler: gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC #6 356.1 #6 356.1 compile options: '-Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/include/python3.6m -c' #6 356.1 gcc: _configtest.c #6 356.1 _configtest.c: In function 'main': #6 356.1 _configtest.c:7:3: error: Parameter to builtin not valid: avx512f #6 356.1 volatile int r = __builtin_cpu_supports("avx512f"); #6 356.1 ^ #6 356.1 _configtest.c:7:16: warning: unused variable 'r' [-Wunused-variable] #6 356.1 volatile int r = __builtin_cpu_supports("avx512f"); #6 356.1 ^ #6 356.1 failure. #6 356.1 removing: _configtest.c _configtest.o #6 356.1 C compiler: gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC #6 356.1 #6 356.1 compile options: '-Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/include/python3.6m -c' #6 356.1 gcc: _configtest.c #6 356.1 gcc -pthread _configtest.o -o _configtest #6 356.1 success! #6 356.1 removing: _configtest.c _configtest.o _configtest.o.d _configtest #6 356.1 C compiler: gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC #6 356.1 #6 356.1 compile options: '-Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/include/python3.6m -c' #6 356.1 gcc: _configtest.c #6 356.1 gcc -pthread _configtest.o -o _configtest #6 356.1 success! #6 356.1 removing: _configtest.c _configtest.o _configtest.o.d _configtest </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#6 358.3 C compiler: gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC #6 358.3 #6 358.3 compile options: '-Ibuild/src.linux-x86_64-3.6/numpy/core/src/common -Inumpy/core/include -Ibuild/src.linux-x86_64-3.6/numpy/core/include/numpy -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/include/python3.6m -Ibuild/src.linux-x86_64-3.6/numpy/core/src/common -Ibuild/src.linux-x86_64-3.6/numpy/core/src/npymath -Ibuild/src.linux-x86_64-3.6/numpy/core/src/common -Ibuild/src.linux-x86_64-3.6/numpy/core/src/npymath -c' #6 358.3 gcc: build/src.linux-x86_64-3.6/numpy/core/src/npysort/radixsort.c #6 358.3 numpy/core/src/npysort/radixsort.c.src: In function 'radixsort_bool': #6 358.3 numpy/core/src/npysort/radixsort.c.src:112:5: error: 'for' loop initial declarations are only allowed in C99 mode #6 358.3 for (npy_intp i = 1; i &lt; num; i++) { #6 358.3 ^ #6 358.3 numpy/core/src/npysort/radixsort.c.src:112:5: note: use option -std=c99 or -std=gnu99 to compile your code #6 358.3 numpy/core/src/npysort/radixsort.c.src: In function 'aradixsort_bool': #6 358.3 numpy/core/src/npysort/radixsort.c.src:202:5: error: 'for' loop initial declarations are only allowed in C99 mode #6 358.3 for (npy_intp i = 1; i &lt; num; i++) { #6 358.3 ^ #6 358.3 numpy/core/src/npysort/radixsort.c.src: In function 'radixsort_byte': #6 358.3 numpy/core/src/npysort/radixsort.c.src:112:5: error: 'for' loop initial declarations are only allowed in C99 mode #6 358.3 for (npy_intp i = 1; i &lt; num; i++) { #6 358.3 ^ #6 358.3 numpy/core/src/npysort/radixsort.c.src: In function 'aradixsort_byte': #6 358.3 numpy/core/src/npysort/radixsort.c.src:202:5: error: 'for' loop initial declarations are only allowed in C99 mode #6 358.3 for (npy_intp i = 1; i &lt; num; i++) { #6 358.3 ^ #6 358.3 numpy/core/src/npysort/radixsort.c.src: In function 'radixsort_ubyte': #6 358.3 numpy/core/src/npysort/radixsort.c.src:112:5: error: 'for' loop initial declarations are only allowed in C99 mode #6 358.3 for (npy_intp i = 1; i &lt; num; i++) { #6 358.3 ^ #6 358.3 numpy/core/src/npysort/radixsort.c.src: In function 'aradixsort_ubyte': #6 358.3 numpy/core/src/npysort/radixsort.c.src:202:5: error: 'for' loop initial declarations are only allowed in C99 mode #6 358.3 for (npy_intp i = 1; i &lt; num; i++) { #6 358.3 ^ #6 358.3 numpy/core/src/npysort/radixsort.c.src: In function 'radixsort_short': #6 358.3 numpy/core/src/npysort/radixsort.c.src:112:5: error: 'for' loop initial declarations are only allowed in C99 mode #6 358.3 for (npy_intp i = 1; i &lt; num; i++) { #6 358.3 ^ #6 358.3 numpy/core/src/npysort/radixsort.c.src: In function 'aradixsort_short': #6 358.3 numpy/core/src/npysort/radixsort.c.src:202:5: error: 'for' loop initial declarations are only allowed in C99 mode #6 358.3 for (npy_intp i = 1; i &lt; num; i++) { #6 358.3 ^ #6 358.3 numpy/core/src/npysort/radixsort.c.src: In function 'radixsort_ushort': #6 358.3 numpy/core/src/npysort/radixsort.c.src:112:5: error: 'for' loop initial declarations are only allowed in C99 mode #6 358.3 for (npy_intp i = 1; i &lt; num; i++) { #6 358.3 ^ #6 358.3 numpy/core/src/npysort/radixsort.c.src: In function 'aradixsort_ushort': #6 358.3 numpy/core/src/npysort/radixsort.c.src:202:5: error: 'for' loop initial declarations are only allowed in C99 mode #6 358.3 for (npy_intp i = 1; i &lt; num; i++) { #6 358.3 ^ #6 358.3 numpy/core/src/npysort/radixsort.c.src: In function 'radixsort_int': #6 358.3 numpy/core/src/npysort/radixsort.c.src:112:5: error: 'for' loop initial declarations are only allowed in C99 mode #6 358.3 for (npy_intp i = 1; i &lt; num; i++) { #6 358.3 ^ #6 358.3 numpy/core/src/npysort/radixsort.c.src: In function 'aradixsort_int': #6 358.3 numpy/core/src/npysort/radixsort.c.src:202:5: error: 'for' loop initial declarations are only allowed in C99 mode #6 358.3 for (npy_intp i = 1; i &lt; num; i++) { #6 358.3 ^ #6 358.3 numpy/core/src/npysort/radixsort.c.src: In function 'radixsort_uint': #6 358.3 numpy/core/src/npysort/radixsort.c.src:112:5: error: 'for' loop initial declarations are only allowed in C99 mode #6 358.3 for (npy_intp i = 1; i &lt; num; i++) { #6 358.3 ^ #6 358.3 numpy/core/src/npysort/radixsort.c.src: In function 'aradixsort_uint': #6 358.3 numpy/core/src/npysort/radixsort.c.src:202:5: error: 'for' loop initial declarations are only allowed in C99 mode #6 358.3 for (npy_intp i = 1; i &lt; num; i++) { #6 358.3 ^ #6 358.3 numpy/core/src/npysort/radixsort.c.src: In function 'radixsort_long': #6 358.3 numpy/core/src/npysort/radixsort.c.src:112:5: error: 'for' loop initial declarations are only allowed in C99 mode #6 358.3 for (npy_intp i = 1; i &lt; num; i++) { #6 358.3 ^ #6 358.3 numpy/core/src/npysort/radixsort.c.src: In function 'aradixsort_long': #6 358.3 numpy/core/src/npysort/radixsort.c.src:202:5: error: 'for' loop initial declarations are only allowed in C99 mode #6 358.3 for (npy_intp i = 1; i &lt; num; i++) { #6 358.3 ^ #6 358.3 numpy/core/src/npysort/radixsort.c.src: In function 'radixsort_ulong': #6 358.3 numpy/core/src/npysort/radixsort.c.src:112:5: error: 'for' loop initial declarations are only allowed in C99 mode #6 358.3 for (npy_intp i = 1; i &lt; num; i++) { #6 358.3 ^ #6 358.3 numpy/core/src/npysort/radixsort.c.src: In function 'aradixsort_ulong': #6 358.3 numpy/core/src/npysort/radixsort.c.src:202:5: error: 'for' loop initial declarations are only allowed in C99 mode #6 358.3 for (npy_intp i = 1; i &lt; num; i++) { #6 358.3 ^ #6 358.3 numpy/core/src/npysort/radixsort.c.src: In function 'radixsort_longlong': #6 358.3 numpy/core/src/npysort/radixsort.c.src:112:5: error: 'for' loop initial declarations are only allowed in C99 mode #6 358.3 for (npy_intp i = 1; i &lt; num; i++) { #6 358.3 ^ #6 358.3 numpy/core/src/npysort/radixsort.c.src: In function 'aradixsort_longlong': #6 358.3 numpy/core/src/npysort/radixsort.c.src:202:5: error: 'for' loop initial declarations are only allowed in C99 mode #6 358.3 for (npy_intp i = 1; i &lt; num; i++) { #6 358.3 ^ #6 358.3 numpy/core/src/npysort/radixsort.c.src: In function 'radixsort_ulonglong': #6 358.3 numpy/core/src/npysort/radixsort.c.src:112:5: error: 'for' loop initial declarations are only allowed in C99 mode #6 358.3 for (npy_intp i = 1; i &lt; num; i++) { #6 358.3 ^ #6 358.3 numpy/core/src/npysort/radixsort.c.src: In function 'aradixsort_ulonglong': #6 358.3 numpy/core/src/npysort/radixsort.c.src:202:5: error: 'for' loop initial declarations are only allowed in C99 mode #6 358.3 for (npy_intp i = 1; i &lt; num; i++) { #6 358.3 ^ #6 358.3 error: Command &quot;gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ibuild/src.linux-x86_64-3.6/numpy/core/src/common -Inumpy/core/include -Ibuild/src.linux-x86_64-3.6/numpy/core/include/numpy -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/include/python3.6m -Ibuild/src.linux-x86_64-3.6/numpy/core/src/common -Ibuild/src.linux-x86_64-3.6/numpy/core/src/npymath -Ibuild/src.linux-x86_64-3.6/numpy/core/src/common -Ibuild/src.linux-x86_64-3.6/numpy/core/src/npymath -c build/src.linux-x86_64-3.6/numpy/core/src/npysort/radixsort.c -o build/temp.linux-x86_64-3.6/build/src.linux-x86_64-3.6/numpy/core/src/npysort/radixsort.o -MMD -MF build/temp.linux-x86_64-3.6/build/src.linux-x86_64-3.6/numpy/core/src/npysort/radixsort.o.d&quot; failed with exit status 1 #6 358.3 ---------------------------------------- #6 358.4 ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '&quot;'&quot;'/tmp/pip-req-build-poiltggx/setup.py'&quot;'&quot;'; __file__='&quot;'&quot;'/tmp/pip-req-build-poiltggx/setup.py'&quot;'&quot;';f=getattr(tokenize, '&quot;'&quot;'open'&quot;'&quot;', open)(__file__);code=f.read().replace('&quot;'&quot;'\r\n'&quot;'&quot;', '&quot;'&quot;'\n'&quot;'&quot;');f.close();exec(compile(code, __file__, '&quot;'&quot;'exec'&quot;'&quot;'))' install --record /tmp/pip-record-50nzprh1/install-record.txt --single-version-externally-managed --compile Check the logs for full command output."><pre class="notranslate"><code class="notranslate">#6 358.3 C compiler: gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC #6 358.3 #6 358.3 compile options: '-Ibuild/src.linux-x86_64-3.6/numpy/core/src/common -Inumpy/core/include -Ibuild/src.linux-x86_64-3.6/numpy/core/include/numpy -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/include/python3.6m -Ibuild/src.linux-x86_64-3.6/numpy/core/src/common -Ibuild/src.linux-x86_64-3.6/numpy/core/src/npymath -Ibuild/src.linux-x86_64-3.6/numpy/core/src/common -Ibuild/src.linux-x86_64-3.6/numpy/core/src/npymath -c' #6 358.3 gcc: build/src.linux-x86_64-3.6/numpy/core/src/npysort/radixsort.c #6 358.3 numpy/core/src/npysort/radixsort.c.src: In function 'radixsort_bool': #6 358.3 numpy/core/src/npysort/radixsort.c.src:112:5: error: 'for' loop initial declarations are only allowed in C99 mode #6 358.3 for (npy_intp i = 1; i &lt; num; i++) { #6 358.3 ^ #6 358.3 numpy/core/src/npysort/radixsort.c.src:112:5: note: use option -std=c99 or -std=gnu99 to compile your code #6 358.3 numpy/core/src/npysort/radixsort.c.src: In function 'aradixsort_bool': #6 358.3 numpy/core/src/npysort/radixsort.c.src:202:5: error: 'for' loop initial declarations are only allowed in C99 mode #6 358.3 for (npy_intp i = 1; i &lt; num; i++) { #6 358.3 ^ #6 358.3 numpy/core/src/npysort/radixsort.c.src: In function 'radixsort_byte': #6 358.3 numpy/core/src/npysort/radixsort.c.src:112:5: error: 'for' loop initial declarations are only allowed in C99 mode #6 358.3 for (npy_intp i = 1; i &lt; num; i++) { #6 358.3 ^ #6 358.3 numpy/core/src/npysort/radixsort.c.src: In function 'aradixsort_byte': #6 358.3 numpy/core/src/npysort/radixsort.c.src:202:5: error: 'for' loop initial declarations are only allowed in C99 mode #6 358.3 for (npy_intp i = 1; i &lt; num; i++) { #6 358.3 ^ #6 358.3 numpy/core/src/npysort/radixsort.c.src: In function 'radixsort_ubyte': #6 358.3 numpy/core/src/npysort/radixsort.c.src:112:5: error: 'for' loop initial declarations are only allowed in C99 mode #6 358.3 for (npy_intp i = 1; i &lt; num; i++) { #6 358.3 ^ #6 358.3 numpy/core/src/npysort/radixsort.c.src: In function 'aradixsort_ubyte': #6 358.3 numpy/core/src/npysort/radixsort.c.src:202:5: error: 'for' loop initial declarations are only allowed in C99 mode #6 358.3 for (npy_intp i = 1; i &lt; num; i++) { #6 358.3 ^ #6 358.3 numpy/core/src/npysort/radixsort.c.src: In function 'radixsort_short': #6 358.3 numpy/core/src/npysort/radixsort.c.src:112:5: error: 'for' loop initial declarations are only allowed in C99 mode #6 358.3 for (npy_intp i = 1; i &lt; num; i++) { #6 358.3 ^ #6 358.3 numpy/core/src/npysort/radixsort.c.src: In function 'aradixsort_short': #6 358.3 numpy/core/src/npysort/radixsort.c.src:202:5: error: 'for' loop initial declarations are only allowed in C99 mode #6 358.3 for (npy_intp i = 1; i &lt; num; i++) { #6 358.3 ^ #6 358.3 numpy/core/src/npysort/radixsort.c.src: In function 'radixsort_ushort': #6 358.3 numpy/core/src/npysort/radixsort.c.src:112:5: error: 'for' loop initial declarations are only allowed in C99 mode #6 358.3 for (npy_intp i = 1; i &lt; num; i++) { #6 358.3 ^ #6 358.3 numpy/core/src/npysort/radixsort.c.src: In function 'aradixsort_ushort': #6 358.3 numpy/core/src/npysort/radixsort.c.src:202:5: error: 'for' loop initial declarations are only allowed in C99 mode #6 358.3 for (npy_intp i = 1; i &lt; num; i++) { #6 358.3 ^ #6 358.3 numpy/core/src/npysort/radixsort.c.src: In function 'radixsort_int': #6 358.3 numpy/core/src/npysort/radixsort.c.src:112:5: error: 'for' loop initial declarations are only allowed in C99 mode #6 358.3 for (npy_intp i = 1; i &lt; num; i++) { #6 358.3 ^ #6 358.3 numpy/core/src/npysort/radixsort.c.src: In function 'aradixsort_int': #6 358.3 numpy/core/src/npysort/radixsort.c.src:202:5: error: 'for' loop initial declarations are only allowed in C99 mode #6 358.3 for (npy_intp i = 1; i &lt; num; i++) { #6 358.3 ^ #6 358.3 numpy/core/src/npysort/radixsort.c.src: In function 'radixsort_uint': #6 358.3 numpy/core/src/npysort/radixsort.c.src:112:5: error: 'for' loop initial declarations are only allowed in C99 mode #6 358.3 for (npy_intp i = 1; i &lt; num; i++) { #6 358.3 ^ #6 358.3 numpy/core/src/npysort/radixsort.c.src: In function 'aradixsort_uint': #6 358.3 numpy/core/src/npysort/radixsort.c.src:202:5: error: 'for' loop initial declarations are only allowed in C99 mode #6 358.3 for (npy_intp i = 1; i &lt; num; i++) { #6 358.3 ^ #6 358.3 numpy/core/src/npysort/radixsort.c.src: In function 'radixsort_long': #6 358.3 numpy/core/src/npysort/radixsort.c.src:112:5: error: 'for' loop initial declarations are only allowed in C99 mode #6 358.3 for (npy_intp i = 1; i &lt; num; i++) { #6 358.3 ^ #6 358.3 numpy/core/src/npysort/radixsort.c.src: In function 'aradixsort_long': #6 358.3 numpy/core/src/npysort/radixsort.c.src:202:5: error: 'for' loop initial declarations are only allowed in C99 mode #6 358.3 for (npy_intp i = 1; i &lt; num; i++) { #6 358.3 ^ #6 358.3 numpy/core/src/npysort/radixsort.c.src: In function 'radixsort_ulong': #6 358.3 numpy/core/src/npysort/radixsort.c.src:112:5: error: 'for' loop initial declarations are only allowed in C99 mode #6 358.3 for (npy_intp i = 1; i &lt; num; i++) { #6 358.3 ^ #6 358.3 numpy/core/src/npysort/radixsort.c.src: In function 'aradixsort_ulong': #6 358.3 numpy/core/src/npysort/radixsort.c.src:202:5: error: 'for' loop initial declarations are only allowed in C99 mode #6 358.3 for (npy_intp i = 1; i &lt; num; i++) { #6 358.3 ^ #6 358.3 numpy/core/src/npysort/radixsort.c.src: In function 'radixsort_longlong': #6 358.3 numpy/core/src/npysort/radixsort.c.src:112:5: error: 'for' loop initial declarations are only allowed in C99 mode #6 358.3 for (npy_intp i = 1; i &lt; num; i++) { #6 358.3 ^ #6 358.3 numpy/core/src/npysort/radixsort.c.src: In function 'aradixsort_longlong': #6 358.3 numpy/core/src/npysort/radixsort.c.src:202:5: error: 'for' loop initial declarations are only allowed in C99 mode #6 358.3 for (npy_intp i = 1; i &lt; num; i++) { #6 358.3 ^ #6 358.3 numpy/core/src/npysort/radixsort.c.src: In function 'radixsort_ulonglong': #6 358.3 numpy/core/src/npysort/radixsort.c.src:112:5: error: 'for' loop initial declarations are only allowed in C99 mode #6 358.3 for (npy_intp i = 1; i &lt; num; i++) { #6 358.3 ^ #6 358.3 numpy/core/src/npysort/radixsort.c.src: In function 'aradixsort_ulonglong': #6 358.3 numpy/core/src/npysort/radixsort.c.src:202:5: error: 'for' loop initial declarations are only allowed in C99 mode #6 358.3 for (npy_intp i = 1; i &lt; num; i++) { #6 358.3 ^ #6 358.3 error: Command "gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ibuild/src.linux-x86_64-3.6/numpy/core/src/common -Inumpy/core/include -Ibuild/src.linux-x86_64-3.6/numpy/core/include/numpy -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/include/python3.6m -Ibuild/src.linux-x86_64-3.6/numpy/core/src/common -Ibuild/src.linux-x86_64-3.6/numpy/core/src/npymath -Ibuild/src.linux-x86_64-3.6/numpy/core/src/common -Ibuild/src.linux-x86_64-3.6/numpy/core/src/npymath -c build/src.linux-x86_64-3.6/numpy/core/src/npysort/radixsort.c -o build/temp.linux-x86_64-3.6/build/src.linux-x86_64-3.6/numpy/core/src/npysort/radixsort.o -MMD -MF build/temp.linux-x86_64-3.6/build/src.linux-x86_64-3.6/numpy/core/src/npysort/radixsort.o.d" failed with exit status 1 #6 358.3 ---------------------------------------- #6 358.4 ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-poiltggx/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-poiltggx/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-50nzprh1/install-record.txt --single-version-externally-managed --compile Check the logs for full command output. </code></pre></div> <h3 dir="auto">Numpy/Python version information:</h3> <p dir="auto">CentOS 7<br> Default python 3 (3.6)<br> Default gcc (4.8)</p>
<p dir="auto">When I attempt to build on RHEL 7.3, I get an error unless I manually do</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(numpy-testing-py3) [jfoxrabi@... numpy]$ export CFLAGS=-std=c99"><pre class="notranslate"><code class="notranslate">(numpy-testing-py3) [jfoxrabi@... numpy]$ export CFLAGS=-std=c99 </code></pre></div> <p dir="auto">Here is my console session without setting the flag (forgive me for using ./runtests.py. I still haven't figured out a better shortcut for getting the log and running the test simultaneously):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(numpy-testing-py3) [jfoxrabi@... numpy]$ echo $CFLAGS (numpy-testing-py3) [jfoxrabi@... numpy]$ ./runtests.py Building, see build.log... ... build in progress Processing numpy/random/mtrand/randint_helpers.pxi.in Processing numpy/random/mtrand/mtrand.pyx Cythonizing sources blas_opt_info: blas_mkl_info: customize UnixCCompiler FOUND: libraries = ['mkl_rt', 'pthread'] library_dirs = ['/home/jfoxrabi/miniconda3/envs/numpy-testing-py3/lib'] define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)] include_dirs = ['/usr/local/include', '/usr/include', '/home/jfoxrabi/miniconda3/envs/numpy-testing-py3/include'] FOUND: libraries = ['mkl_rt', 'pthread'] library_dirs = ['/home/jfoxrabi/miniconda3/envs/numpy-testing-py3/lib'] define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)] include_dirs = ['/usr/local/include', '/usr/include', '/home/jfoxrabi/miniconda3/envs/numpy-testing-py3/include'] non-existing path in 'numpy/distutils': 'site.cfg' lapack_opt_info: lapack_mkl_info: customize UnixCCompiler FOUND: libraries = ['mkl_rt', 'pthread'] library_dirs = ['/home/jfoxrabi/miniconda3/envs/numpy-testing-py3/lib'] define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)] include_dirs = ['/usr/local/include', '/usr/include', '/home/jfoxrabi/miniconda3/envs/numpy-testing-py3/include'] FOUND: libraries = ['mkl_rt', 'pthread'] library_dirs = ['/home/jfoxrabi/miniconda3/envs/numpy-testing-py3/lib'] define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)] include_dirs = ['/usr/local/include', '/usr/include', '/home/jfoxrabi/miniconda3/envs/numpy-testing-py3/include'] running build running config_cc unifing config_cc, config, build_clib, build_ext, build commands --compiler options running config_fc unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options running build_src build_src building py_modules sources creating build/src.linux-x86_64-3.6 creating build/src.linux-x86_64-3.6/numpy creating build/src.linux-x86_64-3.6/numpy/distutils building library &quot;npymath&quot; sources get_default_fcompiler: matching types: '['gnu95', 'intel', 'lahey', 'pg', 'absoft', 'nag', 'vast', 'compaq', 'intele', 'intelem', 'gnu', 'g95', 'pathf95', 'nagfor']' customize Gnu95FCompiler Found executable /home/jfoxrabi/miniconda3/envs/numpy-testing-py3/bin/gfortran customize Gnu95FCompiler customize Gnu95FCompiler using config C compiler: gcc -pthread -B /home/jfoxrabi/miniconda3/envs/numpy-testing-py3/compiler_compat -Wl,--sysroot=/ -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Werror=vla -Werror=nonnull -Werror=pointer-arith -Wlogical-op -Werror=unused-function -fPIC compile options: '-Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/home/jfoxrabi/miniconda3/envs/numpy-testing-py3/include/python3.6m -c' gcc: _configtest.c gcc -pthread -B /home/jfoxrabi/miniconda3/envs/numpy-testing-py3/compiler_compat -Wl,--sysroot=/ _configtest.o -o _configtest success! removing: _configtest.c _configtest.o _configtest.o.d _configtest C compiler: gcc -pthread -B /home/jfoxrabi/miniconda3/envs/numpy-testing-py3/compiler_compat -Wl,--sysroot=/ -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Werror=vla -Werror=nonnull -Werror=pointer-arith -Wlogical-op -Werror=unused-function -fPIC compile options: '-Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/home/jfoxrabi/miniconda3/envs/numpy-testing-py3/include/python3.6m -c' gcc: _configtest.c _configtest.c:1:5: warning: conflicting types for built-in function ‘exp’ [enabled by default] int exp (void); ^ gcc -pthread -B /home/jfoxrabi/miniconda3/envs/numpy-testing-py3/compiler_compat -Wl,--sysroot=/ _configtest.o -o _configtest /home/jfoxrabi/miniconda3/envs/numpy-testing-py3/compiler_compat/ld: _configtest.o: in function `main': /home/jfoxrabi/Documents/OTS/numpy/_configtest.c:6: undefined reference to `exp' collect2: error: ld returned 1 exit status &lt;... SNIP ...&gt; numpy/fft/pocketfft.c:2042:3: error: ‘for’ loop initial declarations are only allowed in C99 mode for (size_t m=0; m&lt;n; ++m) ^ numpy/fft/pocketfft.c: In function ‘rfftblue_forward’: numpy/fft/pocketfft.c:2054:3: error: ‘for’ loop initial declarations are only allowed in C99 mode for (size_t m=0; m&lt;n; ++m) ^ numpy/fft/pocketfft.c: In function ‘execute_complex’: numpy/fft/pocketfft.c:2213:7: error: ‘for’ loop initial declarations are only allowed in C99 mode for (int i = 0; i &lt; nrepeats; i++) { ^ numpy/fft/pocketfft.c: In function ‘execute_real_forward’: numpy/fft/pocketfft.c:2246:5: error: ‘for’ loop initial declarations are only allowed in C99 mode for (int d=0; d&lt;ndim-1; ++d) ^ numpy/fft/pocketfft.c:2265:9: error: ‘for’ loop initial declarations are only allowed in C99 mode for (int i = 0; i &lt; nrepeats; i++) { ^ numpy/fft/pocketfft.c: In function ‘execute_real_backward’: numpy/fft/pocketfft.c:2310:9: error: ‘for’ loop initial declarations are only allowed in C99 mode for (int i = 0; i &lt; nrepeats; i++) { ^ Running from numpy source directory. /home/jfoxrabi/miniconda3/envs/numpy-testing-py3/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'define_macros' warnings.warn(msg) error: Command &quot;gcc -pthread -B /home/jfoxrabi/miniconda3/envs/numpy-testing-py3/compiler_compat -Wl,--sysroot=/ -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Werror=vla -Werror=nonnull -Werror=pointer-arith -Wlogical-op -Werror=unused-function -fPIC -Inumpy/core/include -Ibuild/src.linux-x86_64-3.6/numpy/core/include/numpy -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/home/jfoxrabi/miniconda3/envs/numpy-testing-py3/include/python3.6m -Ibuild/src.linux-x86_64-3.6/numpy/core/src/common -Ibuild/src.linux-x86_64-3.6/numpy/core/src/npymath -Ibuild/src.linux-x86_64-3.6/numpy/core/src/common -Ibuild/src.linux-x86_64-3.6/numpy/core/src/npymath -c numpy/fft/pocketfft.c -o build/temp.linux-x86_64-3.6/numpy/fft/pocketfft.o -MMD -MF build/temp.linux-x86_64-3.6/numpy/fft/pocketfft.o.d&quot; failed with exit status 1 Build failed!"><pre class="notranslate"><code class="notranslate">(numpy-testing-py3) [jfoxrabi@... numpy]$ echo $CFLAGS (numpy-testing-py3) [jfoxrabi@... numpy]$ ./runtests.py Building, see build.log... ... build in progress Processing numpy/random/mtrand/randint_helpers.pxi.in Processing numpy/random/mtrand/mtrand.pyx Cythonizing sources blas_opt_info: blas_mkl_info: customize UnixCCompiler FOUND: libraries = ['mkl_rt', 'pthread'] library_dirs = ['/home/jfoxrabi/miniconda3/envs/numpy-testing-py3/lib'] define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)] include_dirs = ['/usr/local/include', '/usr/include', '/home/jfoxrabi/miniconda3/envs/numpy-testing-py3/include'] FOUND: libraries = ['mkl_rt', 'pthread'] library_dirs = ['/home/jfoxrabi/miniconda3/envs/numpy-testing-py3/lib'] define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)] include_dirs = ['/usr/local/include', '/usr/include', '/home/jfoxrabi/miniconda3/envs/numpy-testing-py3/include'] non-existing path in 'numpy/distutils': 'site.cfg' lapack_opt_info: lapack_mkl_info: customize UnixCCompiler FOUND: libraries = ['mkl_rt', 'pthread'] library_dirs = ['/home/jfoxrabi/miniconda3/envs/numpy-testing-py3/lib'] define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)] include_dirs = ['/usr/local/include', '/usr/include', '/home/jfoxrabi/miniconda3/envs/numpy-testing-py3/include'] FOUND: libraries = ['mkl_rt', 'pthread'] library_dirs = ['/home/jfoxrabi/miniconda3/envs/numpy-testing-py3/lib'] define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)] include_dirs = ['/usr/local/include', '/usr/include', '/home/jfoxrabi/miniconda3/envs/numpy-testing-py3/include'] running build running config_cc unifing config_cc, config, build_clib, build_ext, build commands --compiler options running config_fc unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options running build_src build_src building py_modules sources creating build/src.linux-x86_64-3.6 creating build/src.linux-x86_64-3.6/numpy creating build/src.linux-x86_64-3.6/numpy/distutils building library "npymath" sources get_default_fcompiler: matching types: '['gnu95', 'intel', 'lahey', 'pg', 'absoft', 'nag', 'vast', 'compaq', 'intele', 'intelem', 'gnu', 'g95', 'pathf95', 'nagfor']' customize Gnu95FCompiler Found executable /home/jfoxrabi/miniconda3/envs/numpy-testing-py3/bin/gfortran customize Gnu95FCompiler customize Gnu95FCompiler using config C compiler: gcc -pthread -B /home/jfoxrabi/miniconda3/envs/numpy-testing-py3/compiler_compat -Wl,--sysroot=/ -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Werror=vla -Werror=nonnull -Werror=pointer-arith -Wlogical-op -Werror=unused-function -fPIC compile options: '-Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/home/jfoxrabi/miniconda3/envs/numpy-testing-py3/include/python3.6m -c' gcc: _configtest.c gcc -pthread -B /home/jfoxrabi/miniconda3/envs/numpy-testing-py3/compiler_compat -Wl,--sysroot=/ _configtest.o -o _configtest success! removing: _configtest.c _configtest.o _configtest.o.d _configtest C compiler: gcc -pthread -B /home/jfoxrabi/miniconda3/envs/numpy-testing-py3/compiler_compat -Wl,--sysroot=/ -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Werror=vla -Werror=nonnull -Werror=pointer-arith -Wlogical-op -Werror=unused-function -fPIC compile options: '-Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/home/jfoxrabi/miniconda3/envs/numpy-testing-py3/include/python3.6m -c' gcc: _configtest.c _configtest.c:1:5: warning: conflicting types for built-in function ‘exp’ [enabled by default] int exp (void); ^ gcc -pthread -B /home/jfoxrabi/miniconda3/envs/numpy-testing-py3/compiler_compat -Wl,--sysroot=/ _configtest.o -o _configtest /home/jfoxrabi/miniconda3/envs/numpy-testing-py3/compiler_compat/ld: _configtest.o: in function `main': /home/jfoxrabi/Documents/OTS/numpy/_configtest.c:6: undefined reference to `exp' collect2: error: ld returned 1 exit status &lt;... SNIP ...&gt; numpy/fft/pocketfft.c:2042:3: error: ‘for’ loop initial declarations are only allowed in C99 mode for (size_t m=0; m&lt;n; ++m) ^ numpy/fft/pocketfft.c: In function ‘rfftblue_forward’: numpy/fft/pocketfft.c:2054:3: error: ‘for’ loop initial declarations are only allowed in C99 mode for (size_t m=0; m&lt;n; ++m) ^ numpy/fft/pocketfft.c: In function ‘execute_complex’: numpy/fft/pocketfft.c:2213:7: error: ‘for’ loop initial declarations are only allowed in C99 mode for (int i = 0; i &lt; nrepeats; i++) { ^ numpy/fft/pocketfft.c: In function ‘execute_real_forward’: numpy/fft/pocketfft.c:2246:5: error: ‘for’ loop initial declarations are only allowed in C99 mode for (int d=0; d&lt;ndim-1; ++d) ^ numpy/fft/pocketfft.c:2265:9: error: ‘for’ loop initial declarations are only allowed in C99 mode for (int i = 0; i &lt; nrepeats; i++) { ^ numpy/fft/pocketfft.c: In function ‘execute_real_backward’: numpy/fft/pocketfft.c:2310:9: error: ‘for’ loop initial declarations are only allowed in C99 mode for (int i = 0; i &lt; nrepeats; i++) { ^ Running from numpy source directory. /home/jfoxrabi/miniconda3/envs/numpy-testing-py3/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'define_macros' warnings.warn(msg) error: Command "gcc -pthread -B /home/jfoxrabi/miniconda3/envs/numpy-testing-py3/compiler_compat -Wl,--sysroot=/ -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Werror=vla -Werror=nonnull -Werror=pointer-arith -Wlogical-op -Werror=unused-function -fPIC -Inumpy/core/include -Ibuild/src.linux-x86_64-3.6/numpy/core/include/numpy -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/home/jfoxrabi/miniconda3/envs/numpy-testing-py3/include/python3.6m -Ibuild/src.linux-x86_64-3.6/numpy/core/src/common -Ibuild/src.linux-x86_64-3.6/numpy/core/src/npymath -Ibuild/src.linux-x86_64-3.6/numpy/core/src/common -Ibuild/src.linux-x86_64-3.6/numpy/core/src/npymath -c numpy/fft/pocketfft.c -o build/temp.linux-x86_64-3.6/numpy/fft/pocketfft.o -MMD -MF build/temp.linux-x86_64-3.6/numpy/fft/pocketfft.o.d" failed with exit status 1 Build failed! </code></pre></div> <p dir="auto"><a href="https://github.com/numpy/numpy/files/2766190/build.log">Complete failed build.log</a></p> <p dir="auto">As soon as I set <code class="notranslate">CFLAGS</code>, the build completes and the tests start to run:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(numpy-testing-py3) [jfoxrabi@... numpy]$ export CFLAGS=-std=c99 (numpy-testing-py3) [jfoxrabi@... numpy]$ ./runtests.py Building, see build.log... Build OK NumPy version 1.17.0.dev0+8aedcc0 NumPy relaxed strides checking option: True .................x...................................................... [ 0%] ........................................................................ [ 1%] ........................................................................ [ 2%] ........................................................................ [ 3%] ......................ssss................................x............s [ 4%] ........................................................................ [ 5%] ........................................................................ [ 6%] ........................................................................ [ 7%] ........................................................................ [ 8%] ........................................................................ [ 9%] .................................................................sss.... [ 10%] ........................................................................ [ 11%] ...........................s.......................xx........s.......... [ 12%] &lt;... SNIP ...&gt;"><pre class="notranslate"><code class="notranslate">(numpy-testing-py3) [jfoxrabi@... numpy]$ export CFLAGS=-std=c99 (numpy-testing-py3) [jfoxrabi@... numpy]$ ./runtests.py Building, see build.log... Build OK NumPy version 1.17.0.dev0+8aedcc0 NumPy relaxed strides checking option: True .................x...................................................... [ 0%] ........................................................................ [ 1%] ........................................................................ [ 2%] ........................................................................ [ 3%] ......................ssss................................x............s [ 4%] ........................................................................ [ 5%] ........................................................................ [ 6%] ........................................................................ [ 7%] ........................................................................ [ 8%] ........................................................................ [ 9%] .................................................................sss.... [ 10%] ........................................................................ [ 11%] ...........................s.......................xx........s.......... [ 12%] &lt;... SNIP ...&gt; </code></pre></div> <p dir="auto"><a href="https://github.com/numpy/numpy/files/2766210/build.log">Complete successful build.log</a></p> <p dir="auto">This looks like the <code class="notranslate">-std=c99</code> flag is not being set explicitly somewhere, and my compiler does not assume it.</p> <p dir="auto">For completeness, I am running in an Anaconda environment (named <code class="notranslate">numpy-testing-py3</code>), running Python 3.6.8, installing numpy commit 8aedcc0129b9fa7e1785aa11779cbc1c1b3d3395 (my branch for <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="312065417" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/10855" data-hovercard-type="pull_request" data-hovercard-url="/numpy/numpy/pull/10855/hovercard" href="https://github.com/numpy/numpy/pull/10855">#10855</a>), which is effectively <code class="notranslate">master</code> at <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/numpy/numpy/commit/49689f7be478fe9a4d33761b080eb6aef3f8f899/hovercard" href="https://github.com/numpy/numpy/commit/49689f7be478fe9a4d33761b080eb6aef3f8f899"><tt>49689f7</tt></a>.</p> <p dir="auto">I have edited out my hostname, but not the paths or user name because the former are at fairly standard locations, and the latter is publicly available.</p>
1
<h1 dir="auto">Examples bug report</h1> <h2 dir="auto">Example name</h2> <p dir="auto">with-ant-design</p> <h2 dir="auto">Describe the bug</h2> <p dir="auto">component can't navigate to previous one when refresh browser</p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">1, create <code class="notranslate">about.js</code> in pages folder, with code below</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import React from 'react' import Link from 'next/link' export default () =&gt; { return ( &lt;div style={{ marginTop: 100 }}&gt; &lt;div&gt; &lt;Link href=&quot;/&quot;&gt; &lt;a&gt;index page&lt;/a&gt; &lt;/Link&gt; &lt;/div&gt; &lt;/div&gt; ) }"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-v">React</span> <span class="pl-k">from</span> <span class="pl-s">'react'</span> <span class="pl-k">import</span> <span class="pl-v">Link</span> <span class="pl-k">from</span> <span class="pl-s">'next/link'</span> <span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-kos">(</span> <span class="pl-c1">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">style</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-kos">{</span> <span class="pl-c1">marginTop</span>: <span class="pl-c1">100</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">div</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">Link</span> <span class="pl-c1">href</span><span class="pl-c1">=</span><span class="pl-s">"/"</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">a</span><span class="pl-c1">&gt;</span>index page<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">a</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">div</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-kos">)</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">2, add a <code class="notranslate">Link</code> in <code class="notranslate">index.js</code>, such as:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &lt;Link href=&quot;/about&quot;&gt; &lt;a&gt;about page&lt;/a&gt; &lt;/Link&gt;"><pre class="notranslate"> <span class="pl-c1">&lt;</span><span class="pl-ent">Link</span> <span class="pl-c1">href</span><span class="pl-c1">=</span><span class="pl-s">"/about"</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">a</span><span class="pl-c1">&gt;</span>about page<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">a</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></pre></div> <p dir="auto">3, click link in <code class="notranslate">index.js</code> then it navigates to<code class="notranslate">/about</code> as expected<br> 4, click link in <code class="notranslate">about.js</code> then it navigates to<code class="notranslate">/</code> as expected<br> 5, click link in <code class="notranslate">index.js</code> again then it navigates to <code class="notranslate">/about</code> again<br> 6, refresh the browser<br> 7, click link in <code class="notranslate">about.js</code>, it can't navigate to<code class="notranslate">/</code> !</p> <h2 dir="auto">Expected behavior</h2> <p dir="auto">click link in <code class="notranslate">about.js</code>, it can navigate to<code class="notranslate">/</code> after refresh browser</p> <h2 dir="auto">Screenshots</h2> <p dir="auto">nope</p> <h2 dir="auto">System information</h2> <ul dir="auto"> <li>OS: macos mojave</li> <li>Browser chrome latest</li> <li>Version of Next.js: latest</li> </ul> <h2 dir="auto">Additional context</h2> <p dir="auto">no errors in browser console or terminal console</p>
<p dir="auto">I'm encountering a weird issue with either Babel or Next.js when trying to run TypeScript jest tests.</p> <p dir="auto">I can run the Jest test written in plain ol' JavaScript just fine, but the Footer.test.tsx file fails with an unexpected token import message:<br> `</p> <p dir="auto">PASS ./demo.test.js<br> FAIL components/Layout/Footer/Footer.test.tsx<br> ● Test suite failed to run</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/Users/rob/repos/crypto-insights/src/web/components/Layout/Footer/Footer.test.tsx:3 import { shallow } from 'enzyme' ^^^^^^ SyntaxError: Unexpected token import at ScriptTransformer._transformAndBuildScript (node_modules/jest-runtime/build/script_transformer.js:318:17)"><pre class="notranslate"><code class="notranslate">/Users/rob/repos/crypto-insights/src/web/components/Layout/Footer/Footer.test.tsx:3 import { shallow } from 'enzyme' ^^^^^^ SyntaxError: Unexpected token import at ScriptTransformer._transformAndBuildScript (node_modules/jest-runtime/build/script_transformer.js:318:17) </code></pre></div> <p dir="auto">`</p> <p dir="auto">Using the Next.js examples with-jest and with-typescript, I've got the following configuration in place:<br> <code class="notranslate">// tsconfig.json { "compilerOptions": { "jsx": "react-native", "module": "commonjs", "strict": true, "target": "es2017" } } </code></p> <p dir="auto"><code class="notranslate">// .babelrc { "env": { "development": { "presets": ["next/babel"] }, "production": { "presets": ["next/babel"] }, "test": { "presets": [["next/babel", { "preset-env": { "modules": "commonjs" } }]] } } } </code></p> <p dir="auto"><code class="notranslate">// jest.config.js module.exports = { setupFiles: ['&lt;rootDir&gt;/jest.setup.js'], testPathIgnorePatterns: ['&lt;rootDir&gt;/.next/', '&lt;rootDir&gt;/node_modules/'], testRegex: '\\.test\\.*', moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'], collectCoverageFrom: [ '!jest.setup.js', '**/*.{js,jsx,ts,tsx}', '!build/**', '!coverage/**' ] } </code></p> <p dir="auto">`// jest.setup.js<br> import { configure } from 'enzyme'<br> import Adapter from 'enzyme-adapter-react-16'</p> <p dir="auto">configure({ adapter: new Adapter() })</p> <p dir="auto">`</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">Shouldn't I be able to run my jest test written in TSX:<br> `// Footer.test.tsx<br> import { shallow } from 'enzyme'<br> import { Footer } from './Footer'</p> <p dir="auto">describe('Footer', () =&gt; {<br> it('should render', () =&gt; {<br> const wrapper = shallow(</p>)<br> expect(wrapper).toBeDefined()<br> })<br> })<br> `<p dir="auto"></p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">I can run the Jest test written in plain ol' JavaScript just fine, but the Footer.test.tsx file fails with an unexpected token import message:<br> `</p> <p dir="auto">PASS ./demo.test.js<br> FAIL components/Layout/Footer/Footer.test.tsx<br> ● Test suite failed to run</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/Users/rob/repos/crypto-insights/src/web/components/Layout/Footer/Footer.test.tsx:3 import { shallow } from 'enzyme' ^^^^^^ SyntaxError: Unexpected token import at ScriptTransformer._transformAndBuildScript (node_modules/jest-runtime/build/script_transformer.js:318:17)"><pre class="notranslate"><code class="notranslate">/Users/rob/repos/crypto-insights/src/web/components/Layout/Footer/Footer.test.tsx:3 import { shallow } from 'enzyme' ^^^^^^ SyntaxError: Unexpected token import at ScriptTransformer._transformAndBuildScript (node_modules/jest-runtime/build/script_transformer.js:318:17) </code></pre></div> <p dir="auto">`</p> <p dir="auto">Any help would be appreciated. Thanks!!</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">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto"><code class="notranslate">styled-components</code> should not result in the <code class="notranslate">className</code> mismatch warning from React.</p> <h2 dir="auto">Current Behavior</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Warning: Prop `className` did not match. Server: &quot;Header-johx6c-0 bHIeEO&quot; Client: &quot;Header___default-johx6c-0 gGUBlx&quot;"><pre class="notranslate"><code class="notranslate">Warning: Prop `className` did not match. Server: "Header-johx6c-0 bHIeEO" Client: "Header___default-johx6c-0 gGUBlx" </code></pre></div> <p dir="auto">I'm exporting the header component like so:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export default styled(Header)` text-align: center; `;"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-en">styled</span><span class="pl-kos">(</span><span class="pl-v">Header</span><span class="pl-kos">)</span><span class="pl-s">`</span> <span class="pl-s"> text-align: center;</span> <span class="pl-s">`</span><span class="pl-kos">;</span></pre></div> <p dir="auto">Notice that <code class="notranslate">styled-components</code> uses the name <code class="notranslate">Header</code> on the server and <code class="notranslate">Header__default</code> on the client. This doesn't happen with Next.js 4, so I assume it has something to do with the way modules are built with the new Universal Webpack setup.</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>Use <code class="notranslate">styled-components</code> with <code class="notranslate">next</code> v5.</li> <li>Use <code class="notranslate">babel-plugin-styled-components</code> with the default <code class="notranslate">displayName</code> setting.</li> <li>Render a component exported like: <code class="notranslate">export default styled(Component)</code></li> </ol> <p dir="auto">(It doesn't matter what the Babel plugin's <code class="notranslate">ssr</code> setting is, nor if the server stylesheet is set up in <code class="notranslate">_document.js</code>. Same thing in every combination.)</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>v5.0.0</td> </tr> <tr> <td>node</td> <td>v8.9.4</td> </tr> <tr> <td>OS</td> <td>macOS</td> </tr> <tr> <td>browser</td> <td>Chrome</td> </tr> </tbody> </table>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">I am trying to host Next.js on AWS Lambda/CloudFormation. (using <a href="https://github.com/serverless/serverless">Serverless</a>)</p> <p dir="auto">I am running into two issues:</p> <ol dir="auto"> <li> <p dir="auto">When I host the packaged version of next (.next folder), it fails on AWS with</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ Error: Cannot find module '/Users/vadorequest/dev/serverless-with-next/node_modules/next/dist/pages/_document.js' at Function.Module._resolveFilename (module.js:469:15) at Function.Module._load (module.js:417:25) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at Object.7 (/var/task/.next/dist/bundles/pages/_document.js:86:18) at __webpack_require__ (/var/task/.next/dist/bundles/pages/_document.js:23:31) at Object.6 (/var/task/.next/dist/bundles/pages/_document.js:78:18) at __webpack_require__ (/var/task/.next/dist/bundles/pages/_document.js:23:31) at /var/task/.next/dist/bundles/pages/_document.js:70:18 at Object.&lt;anonymous&gt; (/var/task/.next/dist/bundles/pages/_document.js:73:10) code: 'MODULE_NOT_FOUND' }"><pre class="notranslate"><code class="notranslate">{ Error: Cannot find module '/Users/vadorequest/dev/serverless-with-next/node_modules/next/dist/pages/_document.js' at Function.Module._resolveFilename (module.js:469:15) at Function.Module._load (module.js:417:25) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at Object.7 (/var/task/.next/dist/bundles/pages/_document.js:86:18) at __webpack_require__ (/var/task/.next/dist/bundles/pages/_document.js:23:31) at Object.6 (/var/task/.next/dist/bundles/pages/_document.js:78:18) at __webpack_require__ (/var/task/.next/dist/bundles/pages/_document.js:23:31) at /var/task/.next/dist/bundles/pages/_document.js:70:18 at Object.&lt;anonymous&gt; (/var/task/.next/dist/bundles/pages/_document.js:73:10) code: 'MODULE_NOT_FOUND' } </code></pre></div> <p dir="auto">I don't understand why there are absolute paths used in the generated code. I looked at the content of <code class="notranslate">.next</code> folder and there are tons of them, how are we supposed to use this package if it cannot be moved to another system? I cannot compile on AWS lambda. Is there a way of replacing those path programmatically using webpack for instance?</p> </li> <li> <p dir="auto">I manually replaced those paths to match AWS, basically replaced <code class="notranslate">/Users/vadorequest/dev/serverless-with-next</code> to <code class="notranslate">/var/task</code> in the <code class="notranslate">.next</code> folder. Once uploaded to AWS and hitting my endpoint <code class="notranslate">https://bcwl62lv2e.execute-api.us-east-1.amazonaws.com/dev</code> it loads for 30 seconds and then time out. Logs are empty, I don't know what's happening, at first I assumed the first Next.js load was slow (default timeout 6s) but 30s is way too much and something must be wrong. How can I debug this? Is there a way to configure Next.js to log what it does?</p> </li> </ol> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>Go to <a href="https://github.com/Vadorequest/serverless-with-next">https://github.com/Vadorequest/serverless-with-next</a></li> <li><code class="notranslate">git clone [email protected]:Vadorequest/serverless-with-next.git</code></li> <li><code class="notranslate">nvm use</code> or use node 6.10.3</li> <li><code class="notranslate">npm i</code></li> <li><code class="notranslate">npm run build:staging</code> =&gt; Generates a .next folder, you can check files have absolute path here</li> <li><code class="notranslate">serverless deploy -v --package .serverless</code> =&gt; Deploy to AWS, requires serverless cli, and an AWS account</li> </ol> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>next</td> <td>5</td> </tr> <tr> <td>node</td> <td>6.10.3</td> </tr> <tr> <td>OS</td> <td>MacOS X</td> </tr> </tbody> </table>
0
<p dir="auto">Hi,<br> Why don't implemented internal class in typescript?</p> <p dir="auto">Element.ts:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="namespace Library { export class Element { //.... } }"><pre class="notranslate"><code class="notranslate">namespace Library { export class Element { //.... } } </code></pre></div> <p dir="auto">SelectElement.ts:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="namespace Library{ export class SelectElement extends Element { //.... } }"><pre class="notranslate"><code class="notranslate">namespace Library{ export class SelectElement extends Element { //.... } } </code></pre></div> <p dir="auto">Program.ts:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="namespace Library{ export class Program { var selectElement = new Library.SelectElement(); var element = new Library.Element(); } }"><pre class="notranslate"><code class="notranslate">namespace Library{ export class Program { var selectElement = new Library.SelectElement(); var element = new Library.Element(); } } </code></pre></div> <p dir="auto">If i put to export keyword before Element class, other developer can access to Element class, but i remove export keyword i don't use Element class in Library namespace. Does internal class will be able to use now or next version?</p>
<p dir="auto">Currently to protect integrity of data one can only use classes with private or protected fields. Classes are harder to work with compared to object literals. Being able to specify that certain fields are invisible to outside modules would be a valuable addition to support programming in functional style in TypeScript.</p> <p dir="auto">So what I am suggesting is to be able to specify whether a field of an interface is exported from a module or not. This also means that the instance of such interface can only be created within the module it is declared.</p> <p dir="auto">The similar features can be found in:</p> <ul dir="auto"> <li>F# called <code class="notranslate">signature files</code>: <a href="http://msdn.microsoft.com/en-us/library/dd233196.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/dd233196.aspx</a></li> <li>Haskell called <code class="notranslate">export lists</code>: <a href="http://www.haskell.org/onlinereport/modules.html" rel="nofollow">http://www.haskell.org/onlinereport/modules.html</a></li> </ul>
1
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=ubaggili" rel="nofollow">Ussama Baggili</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-5743?redirect=false" rel="nofollow">SPR-5743</a></strong> and commented</p> <p dir="auto">In web.xml, using the following fails to register all the mappings:</p> <p dir="auto">&lt;context-param&gt;<br> &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;<br> &lt;param-value&gt;<br> /WEB-INF/applicationContext*.xml<br> &lt;/param-value&gt;<br> &lt;/context-param&gt;<br> &lt;listener&gt;<br> &lt;listener-class&gt;org.springframework.web.context.ContextLoaderListener&lt;/listener-class&gt;<br> &lt;/listener&gt;<br> &lt;servlet&gt;<br> &lt;servlet-name&gt;security-ws&lt;/servlet-name&gt;<br> &lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt;<br> &lt;init-param&gt;<br> &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;<br> &lt;param-value&gt;&lt;/param-value&gt; &lt;----------------------------------------------- empty value<br> &lt;/init-param&gt;<br> &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;<br> &lt;/servlet&gt;</p> <p dir="auto">while using the following without the global context-param for contextConfigLocation succeeds:</p> <p dir="auto">&lt;servlet&gt;<br> &lt;servlet-name&gt;security-ws&lt;/servlet-name&gt;<br> &lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt;<br> &lt;init-param&gt;<br> &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;<br> &lt;param-value&gt;/WEB-INF/applicationContext*.xml&lt;/param-value&gt;<br> &lt;/init-param&gt;<br> &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;<br> &lt;/servlet&gt;</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.0 M3</p> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398092456" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10041" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10041/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10041">#10041</a> <code class="notranslate">@Controllers</code> deployed in the root Spring context not auto-detected by default annotation handler mapping (<em><strong>"duplicates"</strong></em>)</li> </ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=srankin" rel="nofollow">Scott Rankin</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-2278?redirect=false" rel="nofollow">SPR-2278</a></strong> and commented</p> <p dir="auto">In RC1, when the DefaultAdvisorAutoProxyCreator is initialized, it finds and initializes all candidate advisors (code is in AbstractAdvisorAutoProxyCreator.setBeanFactory()). This code has the effect of initializing my Hibernate SessionFactoryBean before any other beans come along and need it.</p> <p dir="auto">In RC2, the code to pre-load candidate advisors has been removed. What this seems to produce is a circular dependency. When my application beans try to request the Hibernate SessionFactoryBean, it goes through a lot of dependencies, including the AutoProxyCreator, which depends on the TransactionSourceAdvisor, which depends on the TransactionInterceptor, which depends on the SessionFactoryBean. And so I get a NPE trying to instantiate the autoproxy creator.</p> <p dir="auto">This only seems to happen if the first bean in the XML file references the session factory. If I move the bean that references the session factory to below it, the problem goes away.</p> <hr> <p dir="auto"><strong>Affects:</strong> 2.0 RC2</p> <p dir="auto"><strong>Attachments:</strong></p> <ul dir="auto"> <li><a href="https://jira.spring.io/secure/attachment/11799/spring-beans.xml" rel="nofollow">spring-beans.xml</a> (<em>2.49 kB</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/11800/TestSpringBug.java" rel="nofollow">TestSpringBug.java</a> (<em>822 bytes</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="398068225" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/6972" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/6972/hovercard" href="https://github.com/spring-projects/spring-framework/issues/6972">#6972</a> NPE in AbstractAutoProxyCreator when using RC2 (<em><strong>"is duplicated by"</strong></em>)</li> </ul> <p dir="auto">2 votes, 2 watchers</p>
0
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report [ ] feature request [ ] support request "><pre class="notranslate"><code class="notranslate">[x] bug report [ ] feature request [ ] support request </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> See <a href="https://angular.io/docs/ts/latest/api/core/index/ContentChild-var.html" rel="nofollow">API guide for <code class="notranslate">ContentChild</code></a>.</p> <p dir="auto">The example in that guide page attempts to illustrate <code class="notranslate">ContentChild</code> by showing a <strong>directive</strong> that extracts child content.</p> <p dir="auto">How does a directive - which lacks a template - extract child content (or a child view)? From what? The example itself is unclear, perhaps nonsense?</p> <p dir="auto">It did reveal that <code class="notranslate">ngAfterContent...</code> and <code class="notranslate">ngAfterView...</code> hooks are called on a directive. <strong>Why?</strong> How would I use them?</p> <p dir="auto">This all came up in <a href="https://angular.io/docs/ts/latest/api/core/index/ContentChild-var.html" rel="nofollow">an issue filed in <code class="notranslate">angular.io</code> </a> about our lifecycle hook documentation where I asserted that these hooks really don't apply to directives.</p> <p dir="auto">I replied with some sample code there ... code that is a slight tweak of that documentation <a href="https://angular.io/resources/live-examples/lifecycle-hooks/ts/plnkr.html" rel="nofollow">chapter's plunker</a>.</p> <p dir="auto">Can elaborate if need be.</p>
<p dir="auto"><strong>I'm submitting a ...</strong> Hard to say....</p> <p dir="auto"><strong>Current behavior</strong></p> <ul dir="auto"> <li>ngAfterContentInit</li> <li>ngAfterContentChecked</li> <li>ngAfterViewInit</li> <li>ngAfterViewChecked</li> </ul> <p dir="auto">Fire on directives.</p> <p dir="auto"><strong>Expected/desired behavior</strong><br> According to the <a href="https://angular.io/docs/ts/latest/guide/lifecycle-hooks.html#!#hooks-overview" rel="nofollow">docs</a> these lifecycle hooks are <strong>Components only</strong></p> <ul dir="auto"> <li>ngAfterContentInit</li> <li>ngAfterContentChecked</li> <li>ngAfterViewInit</li> <li>ngAfterViewChecked</li> </ul> <p dir="auto">The compiler registers them to invoke on directives as well.<br> The view factory of a component containing a directive will invoke the lifecycle hook on that directive. This is not by change, this is by intent from the compiler as it requires accessing the directive instance and calling the hook within the <code class="notranslate">detectChangesInternal</code> method.</p> <p dir="auto">Here's a <a href="https://plnkr.co/edit/7jXGGE?p=preview" rel="nofollow">plunker</a><br> I can only assume the docs are incorrect...</p>
1
<p dir="auto">The goal is to add python 3.7 to travis and pass all tests, the first beta was already released at the end of January.</p>
<p dir="auto">I tried to install Scrapy using the recommended way...</p> <p dir="auto">python -m pip install scrapy</p> <p dir="auto">There were a few errors with dependencies not being installed but I installed them. However, the twisted dependency seems to be causing a problem. I'm just a beginner but i wanted to check out some python modules.</p> <p dir="auto">Using windows 10, python 3.7</p> <p dir="auto">The following is what happens when i try to install</p> <p dir="auto">C:\Windows\system32&gt;python -m pip install scrapy<br> Collecting scrapy<br> Using cached <a href="https://files.pythonhosted.org/packages/db/9c/cb15b2dc6003a805afd21b9b396e0e965800765b51da72fe17cf340b9be2/Scrapy-1.5.0-py2.py3-none-any.whl" rel="nofollow">https://files.pythonhosted.org/packages/db/9c/cb15b2dc6003a805afd21b9b396e0e965800765b51da72fe17cf340b9be2/Scrapy-1.5.0-py2.py3-none-any.whl</a><br> Requirement already satisfied: lxml in c:\users\bkaja\appdata\local\programs\python\python37-32\lib\site-packages (from scrapy) (4.2.3)<br> Requirement already satisfied: w3lib&gt;=1.17.0 in c:\users\bkaja\appdata\local\programs\python\python37-32\lib\site-packages (from scrapy) (1.19.0)<br> Collecting Twisted&gt;=13.1.0 (from scrapy)<br> Using cached <a href="https://files.pythonhosted.org/packages/12/2a/e9e4fb2e6b2f7a75577e0614926819a472934b0b85f205ba5d5d2add54d0/Twisted-18.4.0.tar.bz2" rel="nofollow">https://files.pythonhosted.org/packages/12/2a/e9e4fb2e6b2f7a75577e0614926819a472934b0b85f205ba5d5d2add54d0/Twisted-18.4.0.tar.bz2</a><br> Requirement already satisfied: service-identity in c:\users\bkaja\appdata\local\programs\python\python37-32\lib\site-packages (from scrapy) (17.0.0)<br> Requirement already satisfied: six&gt;=1.5.2 in c:\users\bkaja\appdata\local\programs\python\python37-32\lib\site-packages (from scrapy) (1.11.0)<br> Requirement already satisfied: cssselect&gt;=0.9 in c:\users\bkaja\appdata\local\programs\python\python37-32\lib\site-packages (from scrapy) (1.0.3)<br> Requirement already satisfied: PyDispatcher&gt;=2.0.5 in c:\users\bkaja\appdata\local\programs\python\python37-32\lib\site-packages (from scrapy) (2.0.5)<br> Requirement already satisfied: queuelib in c:\users\bkaja\appdata\local\programs\python\python37-32\lib\site-packages (from scrapy) (1.5.0)<br> Requirement already satisfied: pyOpenSSL in c:\users\bkaja\appdata\local\programs\python\python37-32\lib\site-packages (from scrapy) (18.0.0)<br> Requirement already satisfied: parsel&gt;=1.1 in c:\users\bkaja\appdata\local\programs\python\python37-32\lib\site-packages (from scrapy) (1.5.0)<br> Requirement already satisfied: zope.interface&gt;=4.4.2 in c:\users\bkaja\appdata\local\programs\python\python37-32\lib\site-packages (from Twisted&gt;=13.1.0-&gt;scrapy) (4.5.0)<br> Requirement already satisfied: constantly&gt;=15.1 in c:\users\bkaja\appdata\local\programs\python\python37-32\lib\site-packages (from Twisted&gt;=13.1.0-&gt;scrapy) (15.1.0)<br> Requirement already satisfied: incremental&gt;=16.10.1 in c:\users\bkaja\appdata\local\programs\python\python37-32\lib\site-packages (from Twisted&gt;=13.1.0-&gt;scrapy) (17.5.0)<br> Requirement already satisfied: Automat&gt;=0.3.0 in c:\users\bkaja\appdata\local\programs\python\python37-32\lib\site-packages (from Twisted&gt;=13.1.0-&gt;scrapy) (0.7.0)<br> Requirement already satisfied: hyperlink&gt;=17.1.1 in c:\users\bkaja\appdata\local\programs\python\python37-32\lib\site-packages (from Twisted&gt;=13.1.0-&gt;scrapy) (18.0.0)<br> Requirement already satisfied: attrs in c:\users\bkaja\appdata\local\programs\python\python37-32\lib\site-packages (from service-identity-&gt;scrapy) (18.1.0)<br> Requirement already satisfied: pyasn1-modules in c:\users\bkaja\appdata\local\programs\python\python37-32\lib\site-packages (from service-identity-&gt;scrapy) (0.2.2)<br> Requirement already satisfied: pyasn1 in c:\users\bkaja\appdata\local\programs\python\python37-32\lib\site-packages (from service-identity-&gt;scrapy) (0.4.3)<br> Requirement already satisfied: cryptography&gt;=2.2.1 in c:\users\bkaja\appdata\local\programs\python\python37-32\lib\site-packages (from pyOpenSSL-&gt;scrapy) (2.2.2)<br> Requirement already satisfied: setuptools in c:\users\bkaja\appdata\local\programs\python\python37-32\lib\site-packages (from zope.interface&gt;=4.4.2-&gt;Twisted&gt;=13.1.0-&gt;scrapy) (39.0.1)<br> Requirement already satisfied: idna&gt;=2.5 in c:\users\bkaja\appdata\local\programs\python\python37-32\lib\site-packages (from hyperlink&gt;=17.1.1-&gt;Twisted&gt;=13.1.0-&gt;scrapy) (2.7)<br> Requirement already satisfied: asn1crypto&gt;=0.21.0 in c:\users\bkaja\appdata\local\programs\python\python37-32\lib\site-packages (from cryptography&gt;=2.2.1-&gt;pyOpenSSL-&gt;scrapy) (0.24.0)<br> Requirement already satisfied: cffi&gt;=1.7; platform_python_implementation != "PyPy" in c:\users\bkaja\appdata\local\programs\python\python37-32\lib\site-packages (from cryptography&gt;=2.2.1-&gt;pyOpenSSL-&gt;scrapy) (1.11.5)<br> Requirement already satisfied: pycparser in c:\users\bkaja\appdata\local\programs\python\python37-32\lib\site-packages (from cffi&gt;=1.7; platform_python_implementation != "PyPy"-&gt;cryptography&gt;=2.2.1-&gt;pyOpenSSL-&gt;scrapy) (2.18)<br> Installing collected packages: Twisted, scrapy<br> Running setup.py install for Twisted ... error<br> Complete output from command C:\Users\bkaja\AppData\Local\Programs\Python\Python37-32\python.exe -u -c "import setuptools, tokenize;<strong>file</strong>='C:\Users\bkaja\AppData\Local\Temp\pip-install-vrxv__11\Twisted\setup.py';f=getattr(tokenize, 'open', open)(<strong>file</strong>);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, <strong>file</strong>, 'exec'))" install --record C:\Users\bkaja\AppData\Local\Temp\pip-record-fnu_lwpt\install-record.txt --single-version-externally-managed --compile:<br> running install<br> running build<br> running build_py<br> creating build<br> creating build\lib.win32-3.7<br> creating build\lib.win32-3.7\twisted<br> copying src\twisted\copyright.py -&gt; build\lib.win32-3.7\twisted<br> copying src\twisted\plugin.py -&gt; build\lib.win32-3.7\twisted<br> copying src\twisted_version.py -&gt; build\lib.win32-3.7\twisted<br> copying src\twisted_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted<br> copying src\twisted_<em>main</em>_.py -&gt; build\lib.win32-3.7\twisted<br> creating build\lib.win32-3.7\twisted\application<br> copying src\twisted\application\app.py -&gt; build\lib.win32-3.7\twisted\application<br> copying src\twisted\application\internet.py -&gt; build\lib.win32-3.7\twisted\application<br> copying src\twisted\application\reactors.py -&gt; build\lib.win32-3.7\twisted\application<br> copying src\twisted\application\service.py -&gt; build\lib.win32-3.7\twisted\application<br> copying src\twisted\application\strports.py -&gt; build\lib.win32-3.7\twisted\application<br> copying src\twisted\application_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\application<br> creating build\lib.win32-3.7\twisted\conch<br> copying src\twisted\conch\avatar.py -&gt; build\lib.win32-3.7\twisted\conch<br> copying src\twisted\conch\checkers.py -&gt; build\lib.win32-3.7\twisted\conch<br> copying src\twisted\conch\endpoints.py -&gt; build\lib.win32-3.7\twisted\conch<br> copying src\twisted\conch\error.py -&gt; build\lib.win32-3.7\twisted\conch<br> copying src\twisted\conch\interfaces.py -&gt; build\lib.win32-3.7\twisted\conch<br> copying src\twisted\conch\ls.py -&gt; build\lib.win32-3.7\twisted\conch<br> copying src\twisted\conch\manhole.py -&gt; build\lib.win32-3.7\twisted\conch<br> copying src\twisted\conch\manhole_ssh.py -&gt; build\lib.win32-3.7\twisted\conch<br> copying src\twisted\conch\manhole_tap.py -&gt; build\lib.win32-3.7\twisted\conch<br> copying src\twisted\conch\mixin.py -&gt; build\lib.win32-3.7\twisted\conch<br> copying src\twisted\conch\recvline.py -&gt; build\lib.win32-3.7\twisted\conch<br> copying src\twisted\conch\stdio.py -&gt; build\lib.win32-3.7\twisted\conch<br> copying src\twisted\conch\tap.py -&gt; build\lib.win32-3.7\twisted\conch<br> copying src\twisted\conch\telnet.py -&gt; build\lib.win32-3.7\twisted\conch<br> copying src\twisted\conch\ttymodes.py -&gt; build\lib.win32-3.7\twisted\conch<br> copying src\twisted\conch\unix.py -&gt; build\lib.win32-3.7\twisted\conch<br> copying src\twisted\conch_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\conch<br> creating build\lib.win32-3.7\twisted\cred<br> copying src\twisted\cred\checkers.py -&gt; build\lib.win32-3.7\twisted\cred<br> copying src\twisted\cred\credentials.py -&gt; build\lib.win32-3.7\twisted\cred<br> copying src\twisted\cred\error.py -&gt; build\lib.win32-3.7\twisted\cred<br> copying src\twisted\cred\portal.py -&gt; build\lib.win32-3.7\twisted\cred<br> copying src\twisted\cred\strcred.py -&gt; build\lib.win32-3.7\twisted\cred<br> copying src\twisted\cred_digest.py -&gt; build\lib.win32-3.7\twisted\cred<br> copying src\twisted\cred_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\cred<br> creating build\lib.win32-3.7\twisted\enterprise<br> copying src\twisted\enterprise\adbapi.py -&gt; build\lib.win32-3.7\twisted\enterprise<br> copying src\twisted\enterprise_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\enterprise<br> creating build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet\abstract.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet\address.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet\asyncioreactor.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet\base.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet\cfreactor.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet\default.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet\defer.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet\endpoints.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet\epollreactor.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet\error.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet\fdesc.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet\gireactor.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet\glib2reactor.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet\gtk2reactor.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet\gtk3reactor.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet\inotify.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet\interfaces.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet\kqreactor.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet\main.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet\pollreactor.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet\posixbase.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet\process.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet\protocol.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet\pyuisupport.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet\reactor.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet\selectreactor.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet\serialport.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet\ssl.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet\stdio.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet\task.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet\tcp.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet\threads.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet\tksupport.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet\udp.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet\unix.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet\utils.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet\win32eventreactor.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet\wxreactor.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet\wxsupport.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet_baseprocess.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet_dumbwin32proc.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet_glibbase.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet_idna.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet_newtls.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet_pollingfile.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet_posixserialport.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet_posixstdio.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet_producer_helpers.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet_resolver.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet_signals.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet_sslverify.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet_threadedselect.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet_win32serialport.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet_win32stdio.py -&gt; build\lib.win32-3.7\twisted\internet<br> copying src\twisted\internet_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\internet<br> creating build\lib.win32-3.7\twisted\logger<br> copying src\twisted\logger_buffer.py -&gt; build\lib.win32-3.7\twisted\logger<br> copying src\twisted\logger_file.py -&gt; build\lib.win32-3.7\twisted\logger<br> copying src\twisted\logger_filter.py -&gt; build\lib.win32-3.7\twisted\logger<br> copying src\twisted\logger_flatten.py -&gt; build\lib.win32-3.7\twisted\logger<br> copying src\twisted\logger_format.py -&gt; build\lib.win32-3.7\twisted\logger<br> copying src\twisted\logger_global.py -&gt; build\lib.win32-3.7\twisted\logger<br> copying src\twisted\logger_io.py -&gt; build\lib.win32-3.7\twisted\logger<br> copying src\twisted\logger_json.py -&gt; build\lib.win32-3.7\twisted\logger<br> copying src\twisted\logger_legacy.py -&gt; build\lib.win32-3.7\twisted\logger<br> copying src\twisted\logger_levels.py -&gt; build\lib.win32-3.7\twisted\logger<br> copying src\twisted\logger_logger.py -&gt; build\lib.win32-3.7\twisted\logger<br> copying src\twisted\logger_observer.py -&gt; build\lib.win32-3.7\twisted\logger<br> copying src\twisted\logger_stdlib.py -&gt; build\lib.win32-3.7\twisted\logger<br> copying src\twisted\logger_util.py -&gt; build\lib.win32-3.7\twisted\logger<br> copying src\twisted\logger_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\logger<br> creating build\lib.win32-3.7\twisted\mail<br> copying src\twisted\mail\imap4.py -&gt; build\lib.win32-3.7\twisted\mail<br> copying src\twisted\mail\interfaces.py -&gt; build\lib.win32-3.7\twisted\mail<br> copying src\twisted\mail\pop3.py -&gt; build\lib.win32-3.7\twisted\mail<br> copying src\twisted\mail\pop3client.py -&gt; build\lib.win32-3.7\twisted\mail<br> copying src\twisted\mail\protocols.py -&gt; build\lib.win32-3.7\twisted\mail<br> copying src\twisted\mail\relay.py -&gt; build\lib.win32-3.7\twisted\mail<br> copying src\twisted\mail\smtp.py -&gt; build\lib.win32-3.7\twisted\mail<br> copying src\twisted\mail_cred.py -&gt; build\lib.win32-3.7\twisted\mail<br> copying src\twisted\mail_except.py -&gt; build\lib.win32-3.7\twisted\mail<br> copying src\twisted\mail_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\mail<br> creating build\lib.win32-3.7\twisted\names<br> copying src\twisted\names\authority.py -&gt; build\lib.win32-3.7\twisted\names<br> copying src\twisted\names\cache.py -&gt; build\lib.win32-3.7\twisted\names<br> copying src\twisted\names\client.py -&gt; build\lib.win32-3.7\twisted\names<br> copying src\twisted\names\common.py -&gt; build\lib.win32-3.7\twisted\names<br> copying src\twisted\names\dns.py -&gt; build\lib.win32-3.7\twisted\names<br> copying src\twisted\names\error.py -&gt; build\lib.win32-3.7\twisted\names<br> copying src\twisted\names\hosts.py -&gt; build\lib.win32-3.7\twisted\names<br> copying src\twisted\names\resolve.py -&gt; build\lib.win32-3.7\twisted\names<br> copying src\twisted\names\root.py -&gt; build\lib.win32-3.7\twisted\names<br> copying src\twisted\names\secondary.py -&gt; build\lib.win32-3.7\twisted\names<br> copying src\twisted\names\server.py -&gt; build\lib.win32-3.7\twisted\names<br> copying src\twisted\names\srvconnect.py -&gt; build\lib.win32-3.7\twisted\names<br> copying src\twisted\names\tap.py -&gt; build\lib.win32-3.7\twisted\names<br> copying src\twisted\names_rfc1982.py -&gt; build\lib.win32-3.7\twisted\names<br> copying src\twisted\names_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\names<br> creating build\lib.win32-3.7\twisted\pair<br> copying src\twisted\pair\ethernet.py -&gt; build\lib.win32-3.7\twisted\pair<br> copying src\twisted\pair\ip.py -&gt; build\lib.win32-3.7\twisted\pair<br> copying src\twisted\pair\raw.py -&gt; build\lib.win32-3.7\twisted\pair<br> copying src\twisted\pair\rawudp.py -&gt; build\lib.win32-3.7\twisted\pair<br> copying src\twisted\pair\testing.py -&gt; build\lib.win32-3.7\twisted\pair<br> copying src\twisted\pair\tuntap.py -&gt; build\lib.win32-3.7\twisted\pair<br> copying src\twisted\pair_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\pair<br> creating build\lib.win32-3.7\twisted\persisted<br> copying src\twisted\persisted\aot.py -&gt; build\lib.win32-3.7\twisted\persisted<br> copying src\twisted\persisted\crefutil.py -&gt; build\lib.win32-3.7\twisted\persisted<br> copying src\twisted\persisted\dirdbm.py -&gt; build\lib.win32-3.7\twisted\persisted<br> copying src\twisted\persisted\sob.py -&gt; build\lib.win32-3.7\twisted\persisted<br> copying src\twisted\persisted\styles.py -&gt; build\lib.win32-3.7\twisted\persisted<br> copying src\twisted\persisted_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\persisted<br> creating build\lib.win32-3.7\twisted\plugins<br> copying src\twisted\plugins\cred_anonymous.py -&gt; build\lib.win32-3.7\twisted\plugins<br> copying src\twisted\plugins\cred_file.py -&gt; build\lib.win32-3.7\twisted\plugins<br> copying src\twisted\plugins\cred_memory.py -&gt; build\lib.win32-3.7\twisted\plugins<br> copying src\twisted\plugins\cred_sshkeys.py -&gt; build\lib.win32-3.7\twisted\plugins<br> copying src\twisted\plugins\cred_unix.py -&gt; build\lib.win32-3.7\twisted\plugins<br> copying src\twisted\plugins\twisted_conch.py -&gt; build\lib.win32-3.7\twisted\plugins<br> copying src\twisted\plugins\twisted_core.py -&gt; build\lib.win32-3.7\twisted\plugins<br> copying src\twisted\plugins\twisted_ftp.py -&gt; build\lib.win32-3.7\twisted\plugins<br> copying src\twisted\plugins\twisted_inet.py -&gt; build\lib.win32-3.7\twisted\plugins<br> copying src\twisted\plugins\twisted_names.py -&gt; build\lib.win32-3.7\twisted\plugins<br> copying src\twisted\plugins\twisted_portforward.py -&gt; build\lib.win32-3.7\twisted\plugins<br> copying src\twisted\plugins\twisted_reactors.py -&gt; build\lib.win32-3.7\twisted\plugins<br> copying src\twisted\plugins\twisted_runner.py -&gt; build\lib.win32-3.7\twisted\plugins<br> copying src\twisted\plugins\twisted_socks.py -&gt; build\lib.win32-3.7\twisted\plugins<br> copying src\twisted\plugins\twisted_trial.py -&gt; build\lib.win32-3.7\twisted\plugins<br> copying src\twisted\plugins\twisted_web.py -&gt; build\lib.win32-3.7\twisted\plugins<br> copying src\twisted\plugins\twisted_words.py -&gt; build\lib.win32-3.7\twisted\plugins<br> copying src\twisted\plugins_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\plugins<br> creating build\lib.win32-3.7\twisted\positioning<br> copying src\twisted\positioning\base.py -&gt; build\lib.win32-3.7\twisted\positioning<br> copying src\twisted\positioning\ipositioning.py -&gt; build\lib.win32-3.7\twisted\positioning<br> copying src\twisted\positioning\nmea.py -&gt; build\lib.win32-3.7\twisted\positioning<br> copying src\twisted\positioning_sentence.py -&gt; build\lib.win32-3.7\twisted\positioning<br> copying src\twisted\positioning_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\positioning<br> creating build\lib.win32-3.7\twisted\protocols<br> copying src\twisted\protocols\amp.py -&gt; build\lib.win32-3.7\twisted\protocols<br> copying src\twisted\protocols\basic.py -&gt; build\lib.win32-3.7\twisted\protocols<br> copying src\twisted\protocols\dict.py -&gt; build\lib.win32-3.7\twisted\protocols<br> copying src\twisted\protocols\finger.py -&gt; build\lib.win32-3.7\twisted\protocols<br> copying src\twisted\protocols\ftp.py -&gt; build\lib.win32-3.7\twisted\protocols<br> copying src\twisted\protocols\htb.py -&gt; build\lib.win32-3.7\twisted\protocols<br> copying src\twisted\protocols\ident.py -&gt; build\lib.win32-3.7\twisted\protocols<br> copying src\twisted\protocols\loopback.py -&gt; build\lib.win32-3.7\twisted\protocols<br> copying src\twisted\protocols\memcache.py -&gt; build\lib.win32-3.7\twisted\protocols<br> copying src\twisted\protocols\pcp.py -&gt; build\lib.win32-3.7\twisted\protocols<br> copying src\twisted\protocols\policies.py -&gt; build\lib.win32-3.7\twisted\protocols<br> copying src\twisted\protocols\portforward.py -&gt; build\lib.win32-3.7\twisted\protocols<br> copying src\twisted\protocols\postfix.py -&gt; build\lib.win32-3.7\twisted\protocols<br> copying src\twisted\protocols\sip.py -&gt; build\lib.win32-3.7\twisted\protocols<br> copying src\twisted\protocols\socks.py -&gt; build\lib.win32-3.7\twisted\protocols<br> copying src\twisted\protocols\stateful.py -&gt; build\lib.win32-3.7\twisted\protocols<br> copying src\twisted\protocols\tls.py -&gt; build\lib.win32-3.7\twisted\protocols<br> copying src\twisted\protocols\wire.py -&gt; build\lib.win32-3.7\twisted\protocols<br> copying src\twisted\protocols_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\protocols<br> creating build\lib.win32-3.7\twisted\python<br> copying src\twisted\python\compat.py -&gt; build\lib.win32-3.7\twisted\python<br> copying src\twisted\python\components.py -&gt; build\lib.win32-3.7\twisted\python<br> copying src\twisted\python\constants.py -&gt; build\lib.win32-3.7\twisted\python<br> copying src\twisted\python\context.py -&gt; build\lib.win32-3.7\twisted\python<br> copying src\twisted\python\deprecate.py -&gt; build\lib.win32-3.7\twisted\python<br> copying src\twisted\python\failure.py -&gt; build\lib.win32-3.7\twisted\python<br> copying src\twisted\python\fakepwd.py -&gt; build\lib.win32-3.7\twisted\python<br> copying src\twisted\python\filepath.py -&gt; build\lib.win32-3.7\twisted\python<br> copying src\twisted\python\formmethod.py -&gt; build\lib.win32-3.7\twisted\python<br> copying src\twisted\python\htmlizer.py -&gt; build\lib.win32-3.7\twisted\python<br> copying src\twisted\python\lockfile.py -&gt; build\lib.win32-3.7\twisted\python<br> copying src\twisted\python\log.py -&gt; build\lib.win32-3.7\twisted\python<br> copying src\twisted\python\logfile.py -&gt; build\lib.win32-3.7\twisted\python<br> copying src\twisted\python\modules.py -&gt; build\lib.win32-3.7\twisted\python<br> copying src\twisted\python\monkey.py -&gt; build\lib.win32-3.7\twisted\python<br> copying src\twisted\python\procutils.py -&gt; build\lib.win32-3.7\twisted\python<br> copying src\twisted\python\randbytes.py -&gt; build\lib.win32-3.7\twisted\python<br> copying src\twisted\python\rebuild.py -&gt; build\lib.win32-3.7\twisted\python<br> copying src\twisted\python\reflect.py -&gt; build\lib.win32-3.7\twisted\python<br> copying src\twisted\python\release.py -&gt; build\lib.win32-3.7\twisted\python<br> copying src\twisted\python\roots.py -&gt; build\lib.win32-3.7\twisted\python<br> copying src\twisted\python\runtime.py -&gt; build\lib.win32-3.7\twisted\python<br> copying src\twisted\python\sendmsg.py -&gt; build\lib.win32-3.7\twisted\python<br> copying src\twisted\python\shortcut.py -&gt; build\lib.win32-3.7\twisted\python<br> copying src\twisted\python\syslog.py -&gt; build\lib.win32-3.7\twisted\python<br> copying src\twisted\python\systemd.py -&gt; build\lib.win32-3.7\twisted\python<br> copying src\twisted\python\text.py -&gt; build\lib.win32-3.7\twisted\python<br> copying src\twisted\python\threadable.py -&gt; build\lib.win32-3.7\twisted\python<br> copying src\twisted\python\threadpool.py -&gt; build\lib.win32-3.7\twisted\python<br> copying src\twisted\python\url.py -&gt; build\lib.win32-3.7\twisted\python<br> copying src\twisted\python\urlpath.py -&gt; build\lib.win32-3.7\twisted\python<br> copying src\twisted\python\usage.py -&gt; build\lib.win32-3.7\twisted\python<br> copying src\twisted\python\util.py -&gt; build\lib.win32-3.7\twisted\python<br> copying src\twisted\python\versions.py -&gt; build\lib.win32-3.7\twisted\python<br> copying src\twisted\python\win32.py -&gt; build\lib.win32-3.7\twisted\python<br> copying src\twisted\python\zippath.py -&gt; build\lib.win32-3.7\twisted\python<br> copying src\twisted\python\zipstream.py -&gt; build\lib.win32-3.7\twisted\python<br> copying src\twisted\python_appdirs.py -&gt; build\lib.win32-3.7\twisted\python<br> copying src\twisted\python_inotify.py -&gt; build\lib.win32-3.7\twisted\python<br> copying src\twisted\python_oldstyle.py -&gt; build\lib.win32-3.7\twisted\python<br> copying src\twisted\python_release.py -&gt; build\lib.win32-3.7\twisted\python<br> copying src\twisted\python_setup.py -&gt; build\lib.win32-3.7\twisted\python<br> copying src\twisted\python_shellcomp.py -&gt; build\lib.win32-3.7\twisted\python<br> copying src\twisted\python_textattributes.py -&gt; build\lib.win32-3.7\twisted\python<br> copying src\twisted\python_tzhelper.py -&gt; build\lib.win32-3.7\twisted\python<br> copying src\twisted\python_url.py -&gt; build\lib.win32-3.7\twisted\python<br> copying src\twisted\python_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\python<br> creating build\lib.win32-3.7\twisted\runner<br> copying src\twisted\runner\inetd.py -&gt; build\lib.win32-3.7\twisted\runner<br> copying src\twisted\runner\inetdconf.py -&gt; build\lib.win32-3.7\twisted\runner<br> copying src\twisted\runner\inetdtap.py -&gt; build\lib.win32-3.7\twisted\runner<br> copying src\twisted\runner\procmon.py -&gt; build\lib.win32-3.7\twisted\runner<br> copying src\twisted\runner\procmontap.py -&gt; build\lib.win32-3.7\twisted\runner<br> copying src\twisted\runner_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\runner<br> creating build\lib.win32-3.7\twisted\scripts<br> copying src\twisted\scripts\htmlizer.py -&gt; build\lib.win32-3.7\twisted\scripts<br> copying src\twisted\scripts\trial.py -&gt; build\lib.win32-3.7\twisted\scripts<br> copying src\twisted\scripts\twistd.py -&gt; build\lib.win32-3.7\twisted\scripts<br> copying src\twisted\scripts_twistd_unix.py -&gt; build\lib.win32-3.7\twisted\scripts<br> copying src\twisted\scripts_twistw.py -&gt; build\lib.win32-3.7\twisted\scripts<br> copying src\twisted\scripts_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\scripts<br> creating build\lib.win32-3.7\twisted\spread<br> copying src\twisted\spread\banana.py -&gt; build\lib.win32-3.7\twisted\spread<br> copying src\twisted\spread\flavors.py -&gt; build\lib.win32-3.7\twisted\spread<br> copying src\twisted\spread\interfaces.py -&gt; build\lib.win32-3.7\twisted\spread<br> copying src\twisted\spread\jelly.py -&gt; build\lib.win32-3.7\twisted\spread<br> copying src\twisted\spread\pb.py -&gt; build\lib.win32-3.7\twisted\spread<br> copying src\twisted\spread\publish.py -&gt; build\lib.win32-3.7\twisted\spread<br> copying src\twisted\spread\util.py -&gt; build\lib.win32-3.7\twisted\spread<br> copying src\twisted\spread_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\spread<br> creating build\lib.win32-3.7\twisted\tap<br> copying src\twisted\tap\ftp.py -&gt; build\lib.win32-3.7\twisted\tap<br> copying src\twisted\tap\portforward.py -&gt; build\lib.win32-3.7\twisted\tap<br> copying src\twisted\tap\socks.py -&gt; build\lib.win32-3.7\twisted\tap<br> copying src\twisted\tap_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\tap<br> creating build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\crash_test_dummy.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\iosim.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\mock_win32process.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\myrebuilder1.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\myrebuilder2.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\plugin_basic.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\plugin_extra1.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\plugin_extra2.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\process_cmdline.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\process_echoer.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\process_fds.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\process_getargv.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\process_getenv.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\process_linger.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\process_reader.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\process_signal.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\process_stdinreader.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\process_tester.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\process_tty.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\process_twisted.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\proto_helpers.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\reflect_helper_IE.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\reflect_helper_VE.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\reflect_helper_ZDE.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\ssl_helpers.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\stdio_test_consumer.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\stdio_test_halfclose.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\stdio_test_hostpeer.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\stdio_test_lastwrite.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\stdio_test_loseconn.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\stdio_test_producer.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\stdio_test_write.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\stdio_test_writeseq.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\testutils.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_abstract.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_adbapi.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_amp.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_application.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_compat.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_context.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_cooperator.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_defer.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_defgen.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_dict.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_dirdbm.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_error.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_factories.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_failure.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_fdesc.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_finger.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_formmethod.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_ftp.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_ftp_options.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_htb.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_ident.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_internet.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_iosim.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_iutils.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_lockfile.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_log.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_logfile.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_loopback.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_main.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_memcache.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_modules.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_monkey.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_nooldstyle.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_paths.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_pcp.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_persisted.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_plugin.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_policies.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_postfix.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_process.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_protocols.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_randbytes.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_rebuild.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_reflect.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_roots.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_shortcut.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_sip.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_sob.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_socks.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_ssl.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_sslverify.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_stateful.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_stdio.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_strerror.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_stringtransport.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_strports.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_task.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_tcp.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_tcp_internals.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_text.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_threadable.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_threadpool.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_threads.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_tpfile.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_twistd.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_twisted.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_udp.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_unix.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\test_usage.py -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\test<br> creating build\lib.win32-3.7\twisted\trial<br> copying src\twisted\trial\itrial.py -&gt; build\lib.win32-3.7\twisted\trial<br> copying src\twisted\trial\reporter.py -&gt; build\lib.win32-3.7\twisted\trial<br> copying src\twisted\trial\runner.py -&gt; build\lib.win32-3.7\twisted\trial<br> copying src\twisted\trial\unittest.py -&gt; build\lib.win32-3.7\twisted\trial<br> copying src\twisted\trial\util.py -&gt; build\lib.win32-3.7\twisted\trial<br> copying src\twisted\trial_asyncrunner.py -&gt; build\lib.win32-3.7\twisted\trial<br> copying src\twisted\trial_asynctest.py -&gt; build\lib.win32-3.7\twisted\trial<br> copying src\twisted\trial_synctest.py -&gt; build\lib.win32-3.7\twisted\trial<br> copying src\twisted\trial_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\trial<br> copying src\twisted\trial_<em>main</em>_.py -&gt; build\lib.win32-3.7\twisted\trial<br> creating build\lib.win32-3.7\twisted\web<br> copying src\twisted\web\client.py -&gt; build\lib.win32-3.7\twisted\web<br> copying src\twisted\web\demo.py -&gt; build\lib.win32-3.7\twisted\web<br> copying src\twisted\web\distrib.py -&gt; build\lib.win32-3.7\twisted\web<br> copying src\twisted\web\domhelpers.py -&gt; build\lib.win32-3.7\twisted\web<br> copying src\twisted\web\error.py -&gt; build\lib.win32-3.7\twisted\web<br> copying src\twisted\web\guard.py -&gt; build\lib.win32-3.7\twisted\web<br> copying src\twisted\web\html.py -&gt; build\lib.win32-3.7\twisted\web<br> copying src\twisted\web\http.py -&gt; build\lib.win32-3.7\twisted\web<br> copying src\twisted\web\http_headers.py -&gt; build\lib.win32-3.7\twisted\web<br> copying src\twisted\web\iweb.py -&gt; build\lib.win32-3.7\twisted\web<br> copying src\twisted\web\microdom.py -&gt; build\lib.win32-3.7\twisted\web<br> copying src\twisted\web\proxy.py -&gt; build\lib.win32-3.7\twisted\web<br> copying src\twisted\web\resource.py -&gt; build\lib.win32-3.7\twisted\web<br> copying src\twisted\web\rewrite.py -&gt; build\lib.win32-3.7\twisted\web<br> copying src\twisted\web\script.py -&gt; build\lib.win32-3.7\twisted\web<br> copying src\twisted\web\server.py -&gt; build\lib.win32-3.7\twisted\web<br> copying src\twisted\web\static.py -&gt; build\lib.win32-3.7\twisted\web<br> copying src\twisted\web\sux.py -&gt; build\lib.win32-3.7\twisted\web<br> copying src\twisted\web\tap.py -&gt; build\lib.win32-3.7\twisted\web<br> copying src\twisted\web\template.py -&gt; build\lib.win32-3.7\twisted\web<br> copying src\twisted\web\twcgi.py -&gt; build\lib.win32-3.7\twisted\web<br> copying src\twisted\web\util.py -&gt; build\lib.win32-3.7\twisted\web<br> copying src\twisted\web\vhost.py -&gt; build\lib.win32-3.7\twisted\web<br> copying src\twisted\web\wsgi.py -&gt; build\lib.win32-3.7\twisted\web<br> copying src\twisted\web\xmlrpc.py -&gt; build\lib.win32-3.7\twisted\web<br> copying src\twisted\web_element.py -&gt; build\lib.win32-3.7\twisted\web<br> copying src\twisted\web_flatten.py -&gt; build\lib.win32-3.7\twisted\web<br> copying src\twisted\web_http2.py -&gt; build\lib.win32-3.7\twisted\web<br> copying src\twisted\web_newclient.py -&gt; build\lib.win32-3.7\twisted\web<br> copying src\twisted\web_responses.py -&gt; build\lib.win32-3.7\twisted\web<br> copying src\twisted\web_stan.py -&gt; build\lib.win32-3.7\twisted\web<br> copying src\twisted\web_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\web<br> creating build\lib.win32-3.7\twisted\words<br> copying src\twisted\words\ewords.py -&gt; build\lib.win32-3.7\twisted\words<br> copying src\twisted\words\iwords.py -&gt; build\lib.win32-3.7\twisted\words<br> copying src\twisted\words\service.py -&gt; build\lib.win32-3.7\twisted\words<br> copying src\twisted\words\tap.py -&gt; build\lib.win32-3.7\twisted\words<br> copying src\twisted\words\xmpproutertap.py -&gt; build\lib.win32-3.7\twisted\words<br> copying src\twisted\words_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\words<br> creating build\lib.win32-3.7\twisted_threads<br> copying src\twisted_threads_convenience.py -&gt; build\lib.win32-3.7\twisted_threads<br> copying src\twisted_threads_ithreads.py -&gt; build\lib.win32-3.7\twisted_threads<br> copying src\twisted_threads_memory.py -&gt; build\lib.win32-3.7\twisted_threads<br> copying src\twisted_threads_pool.py -&gt; build\lib.win32-3.7\twisted_threads<br> copying src\twisted_threads_team.py -&gt; build\lib.win32-3.7\twisted_threads<br> copying src\twisted_threads_threadworker.py -&gt; build\lib.win32-3.7\twisted_threads<br> copying src\twisted_threads_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted_threads<br> creating build\lib.win32-3.7\twisted\application\runner<br> copying src\twisted\application\runner_exit.py -&gt; build\lib.win32-3.7\twisted\application\runner<br> copying src\twisted\application\runner_pidfile.py -&gt; build\lib.win32-3.7\twisted\application\runner<br> copying src\twisted\application\runner_runner.py -&gt; build\lib.win32-3.7\twisted\application\runner<br> copying src\twisted\application\runner_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\application\runner<br> creating build\lib.win32-3.7\twisted\application\test<br> copying src\twisted\application\test\test_internet.py -&gt; build\lib.win32-3.7\twisted\application\test<br> copying src\twisted\application\test\test_service.py -&gt; build\lib.win32-3.7\twisted\application\test<br> copying src\twisted\application\test_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\application\test<br> creating build\lib.win32-3.7\twisted\application\twist<br> copying src\twisted\application\twist_options.py -&gt; build\lib.win32-3.7\twisted\application\twist<br> copying src\twisted\application\twist_twist.py -&gt; build\lib.win32-3.7\twisted\application\twist<br> copying src\twisted\application\twist_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\application\twist<br> creating build\lib.win32-3.7\twisted\application\runner\test<br> copying src\twisted\application\runner\test\test_exit.py -&gt; build\lib.win32-3.7\twisted\application\runner\test<br> copying src\twisted\application\runner\test\test_pidfile.py -&gt; build\lib.win32-3.7\twisted\application\runner\test<br> copying src\twisted\application\runner\test\test_runner.py -&gt; build\lib.win32-3.7\twisted\application\runner\test<br> copying src\twisted\application\runner\test_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\application\runner\test<br> creating build\lib.win32-3.7\twisted\application\twist\test<br> copying src\twisted\application\twist\test\test_options.py -&gt; build\lib.win32-3.7\twisted\application\twist\test<br> copying src\twisted\application\twist\test\test_twist.py -&gt; build\lib.win32-3.7\twisted\application\twist\test<br> copying src\twisted\application\twist\test_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\application\twist\test<br> creating build\lib.win32-3.7\twisted\conch\client<br> copying src\twisted\conch\client\agent.py -&gt; build\lib.win32-3.7\twisted\conch\client<br> copying src\twisted\conch\client\connect.py -&gt; build\lib.win32-3.7\twisted\conch\client<br> copying src\twisted\conch\client\default.py -&gt; build\lib.win32-3.7\twisted\conch\client<br> copying src\twisted\conch\client\direct.py -&gt; build\lib.win32-3.7\twisted\conch\client<br> copying src\twisted\conch\client\knownhosts.py -&gt; build\lib.win32-3.7\twisted\conch\client<br> copying src\twisted\conch\client\options.py -&gt; build\lib.win32-3.7\twisted\conch\client<br> copying src\twisted\conch\client_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\conch\client<br> creating build\lib.win32-3.7\twisted\conch\insults<br> copying src\twisted\conch\insults\client.py -&gt; build\lib.win32-3.7\twisted\conch\insults<br> copying src\twisted\conch\insults\colors.py -&gt; build\lib.win32-3.7\twisted\conch\insults<br> copying src\twisted\conch\insults\helper.py -&gt; build\lib.win32-3.7\twisted\conch\insults<br> copying src\twisted\conch\insults\insults.py -&gt; build\lib.win32-3.7\twisted\conch\insults<br> copying src\twisted\conch\insults\text.py -&gt; build\lib.win32-3.7\twisted\conch\insults<br> copying src\twisted\conch\insults\window.py -&gt; build\lib.win32-3.7\twisted\conch\insults<br> copying src\twisted\conch\insults_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\conch\insults<br> creating build\lib.win32-3.7\twisted\conch\openssh_compat<br> copying src\twisted\conch\openssh_compat\factory.py -&gt; build\lib.win32-3.7\twisted\conch\openssh_compat<br> copying src\twisted\conch\openssh_compat\primes.py -&gt; build\lib.win32-3.7\twisted\conch\openssh_compat<br> copying src\twisted\conch\openssh_compat_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\conch\openssh_compat<br> creating build\lib.win32-3.7\twisted\conch\scripts<br> copying src\twisted\conch\scripts\cftp.py -&gt; build\lib.win32-3.7\twisted\conch\scripts<br> copying src\twisted\conch\scripts\ckeygen.py -&gt; build\lib.win32-3.7\twisted\conch\scripts<br> copying src\twisted\conch\scripts\conch.py -&gt; build\lib.win32-3.7\twisted\conch\scripts<br> copying src\twisted\conch\scripts\tkconch.py -&gt; build\lib.win32-3.7\twisted\conch\scripts<br> copying src\twisted\conch\scripts_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\conch\scripts<br> creating build\lib.win32-3.7\twisted\conch\ssh<br> copying src\twisted\conch\ssh\address.py -&gt; build\lib.win32-3.7\twisted\conch\ssh<br> copying src\twisted\conch\ssh\agent.py -&gt; build\lib.win32-3.7\twisted\conch\ssh<br> copying src\twisted\conch\ssh\channel.py -&gt; build\lib.win32-3.7\twisted\conch\ssh<br> copying src\twisted\conch\ssh\common.py -&gt; build\lib.win32-3.7\twisted\conch\ssh<br> copying src\twisted\conch\ssh\connection.py -&gt; build\lib.win32-3.7\twisted\conch\ssh<br> copying src\twisted\conch\ssh\factory.py -&gt; build\lib.win32-3.7\twisted\conch\ssh<br> copying src\twisted\conch\ssh\filetransfer.py -&gt; build\lib.win32-3.7\twisted\conch\ssh<br> copying src\twisted\conch\ssh\forwarding.py -&gt; build\lib.win32-3.7\twisted\conch\ssh<br> copying src\twisted\conch\ssh\keys.py -&gt; build\lib.win32-3.7\twisted\conch\ssh<br> copying src\twisted\conch\ssh\service.py -&gt; build\lib.win32-3.7\twisted\conch\ssh<br> copying src\twisted\conch\ssh\session.py -&gt; build\lib.win32-3.7\twisted\conch\ssh<br> copying src\twisted\conch\ssh\sexpy.py -&gt; build\lib.win32-3.7\twisted\conch\ssh<br> copying src\twisted\conch\ssh\transport.py -&gt; build\lib.win32-3.7\twisted\conch\ssh<br> copying src\twisted\conch\ssh\userauth.py -&gt; build\lib.win32-3.7\twisted\conch\ssh<br> copying src\twisted\conch\ssh_kex.py -&gt; build\lib.win32-3.7\twisted\conch\ssh<br> copying src\twisted\conch\ssh_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\conch\ssh<br> creating build\lib.win32-3.7\twisted\conch\test<br> copying src\twisted\conch\test\keydata.py -&gt; build\lib.win32-3.7\twisted\conch\test<br> copying src\twisted\conch\test\loopback.py -&gt; build\lib.win32-3.7\twisted\conch\test<br> copying src\twisted\conch\test\test_address.py -&gt; build\lib.win32-3.7\twisted\conch\test<br> copying src\twisted\conch\test\test_agent.py -&gt; build\lib.win32-3.7\twisted\conch\test<br> copying src\twisted\conch\test\test_cftp.py -&gt; build\lib.win32-3.7\twisted\conch\test<br> copying src\twisted\conch\test\test_channel.py -&gt; build\lib.win32-3.7\twisted\conch\test<br> copying src\twisted\conch\test\test_checkers.py -&gt; build\lib.win32-3.7\twisted\conch\test<br> copying src\twisted\conch\test\test_ckeygen.py -&gt; build\lib.win32-3.7\twisted\conch\test<br> copying src\twisted\conch\test\test_conch.py -&gt; build\lib.win32-3.7\twisted\conch\test<br> copying src\twisted\conch\test\test_connection.py -&gt; build\lib.win32-3.7\twisted\conch\test<br> copying src\twisted\conch\test\test_default.py -&gt; build\lib.win32-3.7\twisted\conch\test<br> copying src\twisted\conch\test\test_endpoints.py -&gt; build\lib.win32-3.7\twisted\conch\test<br> copying src\twisted\conch\test\test_filetransfer.py -&gt; build\lib.win32-3.7\twisted\conch\test<br> copying src\twisted\conch\test\test_forwarding.py -&gt; build\lib.win32-3.7\twisted\conch\test<br> copying src\twisted\conch\test\test_helper.py -&gt; build\lib.win32-3.7\twisted\conch\test<br> copying src\twisted\conch\test\test_insults.py -&gt; build\lib.win32-3.7\twisted\conch\test<br> copying src\twisted\conch\test\test_keys.py -&gt; build\lib.win32-3.7\twisted\conch\test<br> copying src\twisted\conch\test\test_knownhosts.py -&gt; build\lib.win32-3.7\twisted\conch\test<br> copying src\twisted\conch\test\test_manhole.py -&gt; build\lib.win32-3.7\twisted\conch\test<br> copying src\twisted\conch\test\test_manhole_tap.py -&gt; build\lib.win32-3.7\twisted\conch\test<br> copying src\twisted\conch\test\test_mixin.py -&gt; build\lib.win32-3.7\twisted\conch\test<br> copying src\twisted\conch\test\test_openssh_compat.py -&gt; build\lib.win32-3.7\twisted\conch\test<br> copying src\twisted\conch\test\test_recvline.py -&gt; build\lib.win32-3.7\twisted\conch\test<br> copying src\twisted\conch\test\test_scripts.py -&gt; build\lib.win32-3.7\twisted\conch\test<br> copying src\twisted\conch\test\test_session.py -&gt; build\lib.win32-3.7\twisted\conch\test<br> copying src\twisted\conch\test\test_ssh.py -&gt; build\lib.win32-3.7\twisted\conch\test<br> copying src\twisted\conch\test\test_tap.py -&gt; build\lib.win32-3.7\twisted\conch\test<br> copying src\twisted\conch\test\test_telnet.py -&gt; build\lib.win32-3.7\twisted\conch\test<br> copying src\twisted\conch\test\test_text.py -&gt; build\lib.win32-3.7\twisted\conch\test<br> copying src\twisted\conch\test\test_transport.py -&gt; build\lib.win32-3.7\twisted\conch\test<br> copying src\twisted\conch\test\test_unix.py -&gt; build\lib.win32-3.7\twisted\conch\test<br> copying src\twisted\conch\test\test_userauth.py -&gt; build\lib.win32-3.7\twisted\conch\test<br> copying src\twisted\conch\test\test_window.py -&gt; build\lib.win32-3.7\twisted\conch\test<br> copying src\twisted\conch\test_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\conch\test<br> creating build\lib.win32-3.7\twisted\conch\ui<br> copying src\twisted\conch\ui\ansi.py -&gt; build\lib.win32-3.7\twisted\conch\ui<br> copying src\twisted\conch\ui\tkvt100.py -&gt; build\lib.win32-3.7\twisted\conch\ui<br> copying src\twisted\conch\ui_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\conch\ui<br> creating build\lib.win32-3.7\twisted\cred\test<br> copying src\twisted\cred\test\test_cramauth.py -&gt; build\lib.win32-3.7\twisted\cred\test<br> copying src\twisted\cred\test\test_cred.py -&gt; build\lib.win32-3.7\twisted\cred\test<br> copying src\twisted\cred\test\test_digestauth.py -&gt; build\lib.win32-3.7\twisted\cred\test<br> copying src\twisted\cred\test\test_simpleauth.py -&gt; build\lib.win32-3.7\twisted\cred\test<br> copying src\twisted\cred\test\test_strcred.py -&gt; build\lib.win32-3.7\twisted\cred\test<br> copying src\twisted\cred\test_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\cred\test<br> creating build\lib.win32-3.7\twisted\internet\iocpreactor<br> copying src\twisted\internet\iocpreactor\abstract.py -&gt; build\lib.win32-3.7\twisted\internet\iocpreactor<br> copying src\twisted\internet\iocpreactor\const.py -&gt; build\lib.win32-3.7\twisted\internet\iocpreactor<br> copying src\twisted\internet\iocpreactor\interfaces.py -&gt; build\lib.win32-3.7\twisted\internet\iocpreactor<br> copying src\twisted\internet\iocpreactor\reactor.py -&gt; build\lib.win32-3.7\twisted\internet\iocpreactor<br> copying src\twisted\internet\iocpreactor\setup.py -&gt; build\lib.win32-3.7\twisted\internet\iocpreactor<br> copying src\twisted\internet\iocpreactor\tcp.py -&gt; build\lib.win32-3.7\twisted\internet\iocpreactor<br> copying src\twisted\internet\iocpreactor\udp.py -&gt; build\lib.win32-3.7\twisted\internet\iocpreactor<br> copying src\twisted\internet\iocpreactor_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\internet\iocpreactor<br> creating build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test\connectionmixins.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test\fakeendpoint.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test\modulehelpers.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test\process_cli.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test\process_connectionlost.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test\process_gireactornocompat.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test\process_helper.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test\reactormixins.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test\test_abstract.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test\test_address.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test\test_asyncioreactor.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test\test_base.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test\test_baseprocess.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test\test_core.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test\test_coroutines.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test\test_default.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test\test_endpoints.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test\test_epollreactor.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test\test_fdset.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test\test_filedescriptor.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test\test_gireactor.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test\test_glibbase.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test\test_inlinecb.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test\test_inotify.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test\test_iocp.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test\test_kqueuereactor.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test\test_main.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test\test_newtls.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test\test_pollingfile.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test\test_posixbase.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test\test_posixprocess.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test\test_process.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test\test_protocol.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test\test_resolver.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test\test_serialport.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test\test_sigchld.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test\test_socket.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test\test_stdio.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test\test_tcp.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test\test_threads.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test\test_time.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test\test_tls.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test\test_udp.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test\test_udp_internals.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test\test_unix.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test\test_win32events.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test\test_win32serialport.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test_posixifaces.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test_win32ifaces.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\internet\test<br> creating build\lib.win32-3.7\twisted\logger\test<br> copying src\twisted\logger\test\test_buffer.py -&gt; build\lib.win32-3.7\twisted\logger\test<br> copying src\twisted\logger\test\test_file.py -&gt; build\lib.win32-3.7\twisted\logger\test<br> copying src\twisted\logger\test\test_filter.py -&gt; build\lib.win32-3.7\twisted\logger\test<br> copying src\twisted\logger\test\test_flatten.py -&gt; build\lib.win32-3.7\twisted\logger\test<br> copying src\twisted\logger\test\test_format.py -&gt; build\lib.win32-3.7\twisted\logger\test<br> copying src\twisted\logger\test\test_global.py -&gt; build\lib.win32-3.7\twisted\logger\test<br> copying src\twisted\logger\test\test_io.py -&gt; build\lib.win32-3.7\twisted\logger\test<br> copying src\twisted\logger\test\test_json.py -&gt; build\lib.win32-3.7\twisted\logger\test<br> copying src\twisted\logger\test\test_legacy.py -&gt; build\lib.win32-3.7\twisted\logger\test<br> copying src\twisted\logger\test\test_levels.py -&gt; build\lib.win32-3.7\twisted\logger\test<br> copying src\twisted\logger\test\test_logger.py -&gt; build\lib.win32-3.7\twisted\logger\test<br> copying src\twisted\logger\test\test_observer.py -&gt; build\lib.win32-3.7\twisted\logger\test<br> copying src\twisted\logger\test\test_stdlib.py -&gt; build\lib.win32-3.7\twisted\logger\test<br> copying src\twisted\logger\test\test_util.py -&gt; build\lib.win32-3.7\twisted\logger\test<br> copying src\twisted\logger\test_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\logger\test<br> creating build\lib.win32-3.7\twisted\mail\scripts<br> copying src\twisted\mail\scripts\mailmail.py -&gt; build\lib.win32-3.7\twisted\mail\scripts<br> creating build\lib.win32-3.7\twisted\mail\test<br> copying src\twisted\mail\test\pop3testserver.py -&gt; build\lib.win32-3.7\twisted\mail\test<br> copying src\twisted\mail\test\test_imap.py -&gt; build\lib.win32-3.7\twisted\mail\test<br> copying src\twisted\mail\test\test_mailmail.py -&gt; build\lib.win32-3.7\twisted\mail\test<br> copying src\twisted\mail\test\test_pop3.py -&gt; build\lib.win32-3.7\twisted\mail\test<br> copying src\twisted\mail\test\test_pop3client.py -&gt; build\lib.win32-3.7\twisted\mail\test<br> copying src\twisted\mail\test\test_smtp.py -&gt; build\lib.win32-3.7\twisted\mail\test<br> copying src\twisted\mail\test_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\mail\test<br> creating build\lib.win32-3.7\twisted\names\test<br> copying src\twisted\names\test\test_cache.py -&gt; build\lib.win32-3.7\twisted\names\test<br> copying src\twisted\names\test\test_client.py -&gt; build\lib.win32-3.7\twisted\names\test<br> copying src\twisted\names\test\test_common.py -&gt; build\lib.win32-3.7\twisted\names\test<br> copying src\twisted\names\test\test_dns.py -&gt; build\lib.win32-3.7\twisted\names\test<br> copying src\twisted\names\test\test_examples.py -&gt; build\lib.win32-3.7\twisted\names\test<br> copying src\twisted\names\test\test_hosts.py -&gt; build\lib.win32-3.7\twisted\names\test<br> copying src\twisted\names\test\test_names.py -&gt; build\lib.win32-3.7\twisted\names\test<br> copying src\twisted\names\test\test_resolve.py -&gt; build\lib.win32-3.7\twisted\names\test<br> copying src\twisted\names\test\test_rfc1982.py -&gt; build\lib.win32-3.7\twisted\names\test<br> copying src\twisted\names\test\test_rootresolve.py -&gt; build\lib.win32-3.7\twisted\names\test<br> copying src\twisted\names\test\test_server.py -&gt; build\lib.win32-3.7\twisted\names\test<br> copying src\twisted\names\test\test_srvconnect.py -&gt; build\lib.win32-3.7\twisted\names\test<br> copying src\twisted\names\test\test_tap.py -&gt; build\lib.win32-3.7\twisted\names\test<br> copying src\twisted\names\test\test_util.py -&gt; build\lib.win32-3.7\twisted\names\test<br> copying src\twisted\names\test_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\names\test<br> creating build\lib.win32-3.7\twisted\pair\test<br> copying src\twisted\pair\test\test_ethernet.py -&gt; build\lib.win32-3.7\twisted\pair\test<br> copying src\twisted\pair\test\test_ip.py -&gt; build\lib.win32-3.7\twisted\pair\test<br> copying src\twisted\pair\test\test_rawudp.py -&gt; build\lib.win32-3.7\twisted\pair\test<br> copying src\twisted\pair\test\test_tuntap.py -&gt; build\lib.win32-3.7\twisted\pair\test<br> copying src\twisted\pair\test_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\pair\test<br> creating build\lib.win32-3.7\twisted\persisted\test<br> copying src\twisted\persisted\test\test_styles.py -&gt; build\lib.win32-3.7\twisted\persisted\test<br> copying src\twisted\persisted\test_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\persisted\test<br> creating build\lib.win32-3.7\twisted\positioning\test<br> copying src\twisted\positioning\test\receiver.py -&gt; build\lib.win32-3.7\twisted\positioning\test<br> copying src\twisted\positioning\test\test_base.py -&gt; build\lib.win32-3.7\twisted\positioning\test<br> copying src\twisted\positioning\test\test_nmea.py -&gt; build\lib.win32-3.7\twisted\positioning\test<br> copying src\twisted\positioning\test\test_sentence.py -&gt; build\lib.win32-3.7\twisted\positioning\test<br> copying src\twisted\positioning\test_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\positioning\test<br> creating build\lib.win32-3.7\twisted\protocols\haproxy<br> copying src\twisted\protocols\haproxy_exceptions.py -&gt; build\lib.win32-3.7\twisted\protocols\haproxy<br> copying src\twisted\protocols\haproxy_info.py -&gt; build\lib.win32-3.7\twisted\protocols\haproxy<br> copying src\twisted\protocols\haproxy_interfaces.py -&gt; build\lib.win32-3.7\twisted\protocols\haproxy<br> copying src\twisted\protocols\haproxy_parser.py -&gt; build\lib.win32-3.7\twisted\protocols\haproxy<br> copying src\twisted\protocols\haproxy_v1parser.py -&gt; build\lib.win32-3.7\twisted\protocols\haproxy<br> copying src\twisted\protocols\haproxy_v2parser.py -&gt; build\lib.win32-3.7\twisted\protocols\haproxy<br> copying src\twisted\protocols\haproxy_wrapper.py -&gt; build\lib.win32-3.7\twisted\protocols\haproxy<br> copying src\twisted\protocols\haproxy_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\protocols\haproxy<br> creating build\lib.win32-3.7\twisted\protocols\test<br> copying src\twisted\protocols\test\test_basic.py -&gt; build\lib.win32-3.7\twisted\protocols\test<br> copying src\twisted\protocols\test\test_tls.py -&gt; build\lib.win32-3.7\twisted\protocols\test<br> copying src\twisted\protocols\test_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\protocols\test<br> creating build\lib.win32-3.7\twisted\protocols\haproxy\test<br> copying src\twisted\protocols\haproxy\test\test_parser.py -&gt; build\lib.win32-3.7\twisted\protocols\haproxy\test<br> copying src\twisted\protocols\haproxy\test\test_v1parser.py -&gt; build\lib.win32-3.7\twisted\protocols\haproxy\test<br> copying src\twisted\protocols\haproxy\test\test_v2parser.py -&gt; build\lib.win32-3.7\twisted\protocols\haproxy\test<br> copying src\twisted\protocols\haproxy\test\test_wrapper.py -&gt; build\lib.win32-3.7\twisted\protocols\haproxy\test<br> copying src\twisted\protocols\haproxy\test_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\protocols\haproxy\test<br> creating build\lib.win32-3.7\twisted\python\test<br> copying src\twisted\python\test\deprecatedattributes.py -&gt; build\lib.win32-3.7\twisted\python\test<br> copying src\twisted\python\test\modules_helpers.py -&gt; build\lib.win32-3.7\twisted\python\test<br> copying src\twisted\python\test\pullpipe.py -&gt; build\lib.win32-3.7\twisted\python\test<br> copying src\twisted\python\test\test_appdirs.py -&gt; build\lib.win32-3.7\twisted\python\test<br> copying src\twisted\python\test\test_components.py -&gt; build\lib.win32-3.7\twisted\python\test<br> copying src\twisted\python\test\test_constants.py -&gt; build\lib.win32-3.7\twisted\python\test<br> copying src\twisted\python\test\test_deprecate.py -&gt; build\lib.win32-3.7\twisted\python\test<br> copying src\twisted\python\test\test_dist3.py -&gt; build\lib.win32-3.7\twisted\python\test<br> copying src\twisted\python\test\test_fakepwd.py -&gt; build\lib.win32-3.7\twisted\python\test<br> copying src\twisted\python\test\test_htmlizer.py -&gt; build\lib.win32-3.7\twisted\python\test<br> copying src\twisted\python\test\test_inotify.py -&gt; build\lib.win32-3.7\twisted\python\test<br> copying src\twisted\python\test\test_release.py -&gt; build\lib.win32-3.7\twisted\python\test<br> copying src\twisted\python\test\test_runtime.py -&gt; build\lib.win32-3.7\twisted\python\test<br> copying src\twisted\python\test\test_sendmsg.py -&gt; build\lib.win32-3.7\twisted\python\test<br> copying src\twisted\python\test\test_setup.py -&gt; build\lib.win32-3.7\twisted\python\test<br> copying src\twisted\python\test\test_shellcomp.py -&gt; build\lib.win32-3.7\twisted\python\test<br> copying src\twisted\python\test\test_syslog.py -&gt; build\lib.win32-3.7\twisted\python\test<br> copying src\twisted\python\test\test_systemd.py -&gt; build\lib.win32-3.7\twisted\python\test<br> copying src\twisted\python\test\test_textattributes.py -&gt; build\lib.win32-3.7\twisted\python\test<br> copying src\twisted\python\test\test_tzhelper.py -&gt; build\lib.win32-3.7\twisted\python\test<br> copying src\twisted\python\test\test_url.py -&gt; build\lib.win32-3.7\twisted\python\test<br> copying src\twisted\python\test\test_urlpath.py -&gt; build\lib.win32-3.7\twisted\python\test<br> copying src\twisted\python\test\test_util.py -&gt; build\lib.win32-3.7\twisted\python\test<br> copying src\twisted\python\test\test_versions.py -&gt; build\lib.win32-3.7\twisted\python\test<br> copying src\twisted\python\test\test_zippath.py -&gt; build\lib.win32-3.7\twisted\python\test<br> copying src\twisted\python\test\test_zipstream.py -&gt; build\lib.win32-3.7\twisted\python\test<br> copying src\twisted\python\test_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\python\test<br> creating build\lib.win32-3.7\twisted\runner\test<br> copying src\twisted\runner\test\test_inetdconf.py -&gt; build\lib.win32-3.7\twisted\runner\test<br> copying src\twisted\runner\test\test_procmon.py -&gt; build\lib.win32-3.7\twisted\runner\test<br> copying src\twisted\runner\test\test_procmontap.py -&gt; build\lib.win32-3.7\twisted\runner\test<br> copying src\twisted\runner\test_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\runner\test<br> creating build\lib.win32-3.7\twisted\scripts\test<br> copying src\twisted\scripts\test\test_scripts.py -&gt; build\lib.win32-3.7\twisted\scripts\test<br> copying src\twisted\scripts\test_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\scripts\test<br> creating build\lib.win32-3.7\twisted\spread\test<br> copying src\twisted\spread\test\test_banana.py -&gt; build\lib.win32-3.7\twisted\spread\test<br> copying src\twisted\spread\test\test_jelly.py -&gt; build\lib.win32-3.7\twisted\spread\test<br> copying src\twisted\spread\test\test_pb.py -&gt; build\lib.win32-3.7\twisted\spread\test<br> copying src\twisted\spread\test\test_pbfailure.py -&gt; build\lib.win32-3.7\twisted\spread\test<br> copying src\twisted\spread\test_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\spread\test<br> creating build\lib.win32-3.7\twisted\trial\test<br> copying src\twisted\trial\test\detests.py -&gt; build\lib.win32-3.7\twisted\trial\test<br> copying src\twisted\trial\test\erroneous.py -&gt; build\lib.win32-3.7\twisted\trial\test<br> copying src\twisted\trial\test\mockcustomsuite.py -&gt; build\lib.win32-3.7\twisted\trial\test<br> copying src\twisted\trial\test\mockcustomsuite2.py -&gt; build\lib.win32-3.7\twisted\trial\test<br> copying src\twisted\trial\test\mockcustomsuite3.py -&gt; build\lib.win32-3.7\twisted\trial\test<br> copying src\twisted\trial\test\mockdoctest.py -&gt; build\lib.win32-3.7\twisted\trial\test<br> copying src\twisted\trial\test\moduleself.py -&gt; build\lib.win32-3.7\twisted\trial\test<br> copying src\twisted\trial\test\moduletest.py -&gt; build\lib.win32-3.7\twisted\trial\test<br> copying src\twisted\trial\test\novars.py -&gt; build\lib.win32-3.7\twisted\trial\test<br> copying src\twisted\trial\test\ordertests.py -&gt; build\lib.win32-3.7\twisted\trial\test<br> copying src\twisted\trial\test\packages.py -&gt; build\lib.win32-3.7\twisted\trial\test<br> copying src\twisted\trial\test\sample.py -&gt; build\lib.win32-3.7\twisted\trial\test<br> copying src\twisted\trial\test\scripttest.py -&gt; build\lib.win32-3.7\twisted\trial\test<br> copying src\twisted\trial\test\skipping.py -&gt; build\lib.win32-3.7\twisted\trial\test<br> copying src\twisted\trial\test\suppression.py -&gt; build\lib.win32-3.7\twisted\trial\test<br> copying src\twisted\trial\test\test_assertions.py -&gt; build\lib.win32-3.7\twisted\trial\test<br> copying src\twisted\trial\test\test_asyncassertions.py -&gt; build\lib.win32-3.7\twisted\trial\test<br> copying src\twisted\trial\test\test_deferred.py -&gt; build\lib.win32-3.7\twisted\trial\test<br> copying src\twisted\trial\test\test_doctest.py -&gt; build\lib.win32-3.7\twisted\trial\test<br> copying src\twisted\trial\test\test_keyboard.py -&gt; build\lib.win32-3.7\twisted\trial\test<br> copying src\twisted\trial\test\test_loader.py -&gt; build\lib.win32-3.7\twisted\trial\test<br> copying src\twisted\trial\test\test_log.py -&gt; build\lib.win32-3.7\twisted\trial\test<br> copying src\twisted\trial\test\test_output.py -&gt; build\lib.win32-3.7\twisted\trial\test<br> copying src\twisted\trial\test\test_plugins.py -&gt; build\lib.win32-3.7\twisted\trial\test<br> copying src\twisted\trial\test\test_pyunitcompat.py -&gt; build\lib.win32-3.7\twisted\trial\test<br> copying src\twisted\trial\test\test_reporter.py -&gt; build\lib.win32-3.7\twisted\trial\test<br> copying src\twisted\trial\test\test_runner.py -&gt; build\lib.win32-3.7\twisted\trial\test<br> copying src\twisted\trial\test\test_script.py -&gt; build\lib.win32-3.7\twisted\trial\test<br> copying src\twisted\trial\test\test_suppression.py -&gt; build\lib.win32-3.7\twisted\trial\test<br> copying src\twisted\trial\test\test_testcase.py -&gt; build\lib.win32-3.7\twisted\trial\test<br> copying src\twisted\trial\test\test_tests.py -&gt; build\lib.win32-3.7\twisted\trial\test<br> copying src\twisted\trial\test\test_util.py -&gt; build\lib.win32-3.7\twisted\trial\test<br> copying src\twisted\trial\test\test_warning.py -&gt; build\lib.win32-3.7\twisted\trial\test<br> copying src\twisted\trial\test\weird.py -&gt; build\lib.win32-3.7\twisted\trial\test<br> copying src\twisted\trial\test_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\trial\test<br> creating build\lib.win32-3.7\twisted\trial_dist<br> copying src\twisted\trial_dist\distreporter.py -&gt; build\lib.win32-3.7\twisted\trial_dist<br> copying src\twisted\trial_dist\disttrial.py -&gt; build\lib.win32-3.7\twisted\trial_dist<br> copying src\twisted\trial_dist\managercommands.py -&gt; build\lib.win32-3.7\twisted\trial_dist<br> copying src\twisted\trial_dist\options.py -&gt; build\lib.win32-3.7\twisted\trial_dist<br> copying src\twisted\trial_dist\worker.py -&gt; build\lib.win32-3.7\twisted\trial_dist<br> copying src\twisted\trial_dist\workercommands.py -&gt; build\lib.win32-3.7\twisted\trial_dist<br> copying src\twisted\trial_dist\workerreporter.py -&gt; build\lib.win32-3.7\twisted\trial_dist<br> copying src\twisted\trial_dist\workertrial.py -&gt; build\lib.win32-3.7\twisted\trial_dist<br> copying src\twisted\trial_dist_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\trial_dist<br> creating build\lib.win32-3.7\twisted\trial_dist\test<br> copying src\twisted\trial_dist\test\test_distreporter.py -&gt; build\lib.win32-3.7\twisted\trial_dist\test<br> copying src\twisted\trial_dist\test\test_disttrial.py -&gt; build\lib.win32-3.7\twisted\trial_dist\test<br> copying src\twisted\trial_dist\test\test_options.py -&gt; build\lib.win32-3.7\twisted\trial_dist\test<br> copying src\twisted\trial_dist\test\test_worker.py -&gt; build\lib.win32-3.7\twisted\trial_dist\test<br> copying src\twisted\trial_dist\test\test_workerreporter.py -&gt; build\lib.win32-3.7\twisted\trial_dist\test<br> copying src\twisted\trial_dist\test\test_workertrial.py -&gt; build\lib.win32-3.7\twisted\trial_dist\test<br> copying src\twisted\trial_dist\test_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\trial_dist\test<br> creating build\lib.win32-3.7\twisted\web\test<br> copying src\twisted\web\test\requesthelper.py -&gt; build\lib.win32-3.7\twisted\web\test<br> copying src\twisted\web\test\test_agent.py -&gt; build\lib.win32-3.7\twisted\web\test<br> copying src\twisted\web\test\test_cgi.py -&gt; build\lib.win32-3.7\twisted\web\test<br> copying src\twisted\web\test\test_client.py -&gt; build\lib.win32-3.7\twisted\web\test<br> copying src\twisted\web\test\test_distrib.py -&gt; build\lib.win32-3.7\twisted\web\test<br> copying src\twisted\web\test\test_domhelpers.py -&gt; build\lib.win32-3.7\twisted\web\test<br> copying src\twisted\web\test\test_error.py -&gt; build\lib.win32-3.7\twisted\web\test<br> copying src\twisted\web\test\test_flatten.py -&gt; build\lib.win32-3.7\twisted\web\test<br> copying src\twisted\web\test\test_html.py -&gt; build\lib.win32-3.7\twisted\web\test<br> copying src\twisted\web\test\test_http.py -&gt; build\lib.win32-3.7\twisted\web\test<br> copying src\twisted\web\test\test_http2.py -&gt; build\lib.win32-3.7\twisted\web\test<br> copying src\twisted\web\test\test_httpauth.py -&gt; build\lib.win32-3.7\twisted\web\test<br> copying src\twisted\web\test\test_http_headers.py -&gt; build\lib.win32-3.7\twisted\web\test<br> copying src\twisted\web\test\test_newclient.py -&gt; build\lib.win32-3.7\twisted\web\test<br> copying src\twisted\web\test\test_proxy.py -&gt; build\lib.win32-3.7\twisted\web\test<br> copying src\twisted\web\test\test_resource.py -&gt; build\lib.win32-3.7\twisted\web\test<br> copying src\twisted\web\test\test_script.py -&gt; build\lib.win32-3.7\twisted\web\test<br> copying src\twisted\web\test\test_stan.py -&gt; build\lib.win32-3.7\twisted\web\test<br> copying src\twisted\web\test\test_static.py -&gt; build\lib.win32-3.7\twisted\web\test<br> copying src\twisted\web\test\test_tap.py -&gt; build\lib.win32-3.7\twisted\web\test<br> copying src\twisted\web\test\test_template.py -&gt; build\lib.win32-3.7\twisted\web\test<br> copying src\twisted\web\test\test_util.py -&gt; build\lib.win32-3.7\twisted\web\test<br> copying src\twisted\web\test\test_vhost.py -&gt; build\lib.win32-3.7\twisted\web\test<br> copying src\twisted\web\test\test_web.py -&gt; build\lib.win32-3.7\twisted\web\test<br> copying src\twisted\web\test\test_webclient.py -&gt; build\lib.win32-3.7\twisted\web\test<br> copying src\twisted\web\test\test_web__responses.py -&gt; build\lib.win32-3.7\twisted\web\test<br> copying src\twisted\web\test\test_wsgi.py -&gt; build\lib.win32-3.7\twisted\web\test<br> copying src\twisted\web\test\test_xml.py -&gt; build\lib.win32-3.7\twisted\web\test<br> copying src\twisted\web\test\test_xmlrpc.py -&gt; build\lib.win32-3.7\twisted\web\test<br> copying src\twisted\web\test_util.py -&gt; build\lib.win32-3.7\twisted\web\test<br> copying src\twisted\web\test_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\web\test<br> creating build\lib.win32-3.7\twisted\web_auth<br> copying src\twisted\web_auth\basic.py -&gt; build\lib.win32-3.7\twisted\web_auth<br> copying src\twisted\web_auth\digest.py -&gt; build\lib.win32-3.7\twisted\web_auth<br> copying src\twisted\web_auth\wrapper.py -&gt; build\lib.win32-3.7\twisted\web_auth<br> copying src\twisted\web_auth_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\web_auth<br> creating build\lib.win32-3.7\twisted\words\im<br> copying src\twisted\words\im\baseaccount.py -&gt; build\lib.win32-3.7\twisted\words\im<br> copying src\twisted\words\im\basechat.py -&gt; build\lib.win32-3.7\twisted\words\im<br> copying src\twisted\words\im\basesupport.py -&gt; build\lib.win32-3.7\twisted\words\im<br> copying src\twisted\words\im\interfaces.py -&gt; build\lib.win32-3.7\twisted\words\im<br> copying src\twisted\words\im\ircsupport.py -&gt; build\lib.win32-3.7\twisted\words\im<br> copying src\twisted\words\im\locals.py -&gt; build\lib.win32-3.7\twisted\words\im<br> copying src\twisted\words\im\pbsupport.py -&gt; build\lib.win32-3.7\twisted\words\im<br> copying src\twisted\words\im_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\words\im<br> creating build\lib.win32-3.7\twisted\words\protocols<br> copying src\twisted\words\protocols\irc.py -&gt; build\lib.win32-3.7\twisted\words\protocols<br> copying src\twisted\words\protocols_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\words\protocols<br> creating build\lib.win32-3.7\twisted\words\test<br> copying src\twisted\words\test\test_basechat.py -&gt; build\lib.win32-3.7\twisted\words\test<br> copying src\twisted\words\test\test_basesupport.py -&gt; build\lib.win32-3.7\twisted\words\test<br> copying src\twisted\words\test\test_domish.py -&gt; build\lib.win32-3.7\twisted\words\test<br> copying src\twisted\words\test\test_irc.py -&gt; build\lib.win32-3.7\twisted\words\test<br> copying src\twisted\words\test\test_ircsupport.py -&gt; build\lib.win32-3.7\twisted\words\test<br> copying src\twisted\words\test\test_irc_service.py -&gt; build\lib.win32-3.7\twisted\words\test<br> copying src\twisted\words\test\test_jabberclient.py -&gt; build\lib.win32-3.7\twisted\words\test<br> copying src\twisted\words\test\test_jabbercomponent.py -&gt; build\lib.win32-3.7\twisted\words\test<br> copying src\twisted\words\test\test_jabbererror.py -&gt; build\lib.win32-3.7\twisted\words\test<br> copying src\twisted\words\test\test_jabberjid.py -&gt; build\lib.win32-3.7\twisted\words\test<br> copying src\twisted\words\test\test_jabberjstrports.py -&gt; build\lib.win32-3.7\twisted\words\test<br> copying src\twisted\words\test\test_jabbersasl.py -&gt; build\lib.win32-3.7\twisted\words\test<br> copying src\twisted\words\test\test_jabbersaslmechanisms.py -&gt; build\lib.win32-3.7\twisted\words\test<br> copying src\twisted\words\test\test_jabberxmlstream.py -&gt; build\lib.win32-3.7\twisted\words\test<br> copying src\twisted\words\test\test_jabberxmppstringprep.py -&gt; build\lib.win32-3.7\twisted\words\test<br> copying src\twisted\words\test\test_service.py -&gt; build\lib.win32-3.7\twisted\words\test<br> copying src\twisted\words\test\test_tap.py -&gt; build\lib.win32-3.7\twisted\words\test<br> copying src\twisted\words\test\test_xishutil.py -&gt; build\lib.win32-3.7\twisted\words\test<br> copying src\twisted\words\test\test_xmlstream.py -&gt; build\lib.win32-3.7\twisted\words\test<br> copying src\twisted\words\test\test_xmpproutertap.py -&gt; build\lib.win32-3.7\twisted\words\test<br> copying src\twisted\words\test\test_xpath.py -&gt; build\lib.win32-3.7\twisted\words\test<br> copying src\twisted\words\test_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\words\test<br> creating build\lib.win32-3.7\twisted\words\xish<br> copying src\twisted\words\xish\domish.py -&gt; build\lib.win32-3.7\twisted\words\xish<br> copying src\twisted\words\xish\utility.py -&gt; build\lib.win32-3.7\twisted\words\xish<br> copying src\twisted\words\xish\xmlstream.py -&gt; build\lib.win32-3.7\twisted\words\xish<br> copying src\twisted\words\xish\xpath.py -&gt; build\lib.win32-3.7\twisted\words\xish<br> copying src\twisted\words\xish\xpathparser.py -&gt; build\lib.win32-3.7\twisted\words\xish<br> copying src\twisted\words\xish_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\words\xish<br> creating build\lib.win32-3.7\twisted\words\protocols\jabber<br> copying src\twisted\words\protocols\jabber\client.py -&gt; build\lib.win32-3.7\twisted\words\protocols\jabber<br> copying src\twisted\words\protocols\jabber\component.py -&gt; build\lib.win32-3.7\twisted\words\protocols\jabber<br> copying src\twisted\words\protocols\jabber\error.py -&gt; build\lib.win32-3.7\twisted\words\protocols\jabber<br> copying src\twisted\words\protocols\jabber\ijabber.py -&gt; build\lib.win32-3.7\twisted\words\protocols\jabber<br> copying src\twisted\words\protocols\jabber\jid.py -&gt; build\lib.win32-3.7\twisted\words\protocols\jabber<br> copying src\twisted\words\protocols\jabber\jstrports.py -&gt; build\lib.win32-3.7\twisted\words\protocols\jabber<br> copying src\twisted\words\protocols\jabber\sasl.py -&gt; build\lib.win32-3.7\twisted\words\protocols\jabber<br> copying src\twisted\words\protocols\jabber\sasl_mechanisms.py -&gt; build\lib.win32-3.7\twisted\words\protocols\jabber<br> copying src\twisted\words\protocols\jabber\xmlstream.py -&gt; build\lib.win32-3.7\twisted\words\protocols\jabber<br> copying src\twisted\words\protocols\jabber\xmpp_stringprep.py -&gt; build\lib.win32-3.7\twisted\words\protocols\jabber<br> copying src\twisted\words\protocols\jabber_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted\words\protocols\jabber<br> creating build\lib.win32-3.7\twisted_threads\test<br> copying src\twisted_threads\test\test_convenience.py -&gt; build\lib.win32-3.7\twisted_threads\test<br> copying src\twisted_threads\test\test_memory.py -&gt; build\lib.win32-3.7\twisted_threads\test<br> copying src\twisted_threads\test\test_team.py -&gt; build\lib.win32-3.7\twisted_threads\test<br> copying src\twisted_threads\test\test_threadworker.py -&gt; build\lib.win32-3.7\twisted_threads\test<br> copying src\twisted_threads\test_<em>init</em>_.py -&gt; build\lib.win32-3.7\twisted_threads\test<br> running egg_info<br> writing src\Twisted.egg-info\PKG-INFO<br> writing dependency_links to src\Twisted.egg-info\dependency_links.txt<br> writing entry points to src\Twisted.egg-info\entry_points.txt<br> writing requirements to src\Twisted.egg-info\requires.txt<br> writing top-level names to src\Twisted.egg-info\top_level.txt<br> reading manifest file 'src\Twisted.egg-info\SOURCES.txt'<br> reading manifest template 'MANIFEST.in'<br> warning: no previously-included files matching '<em>.misc' found under directory 'src\twisted'<br> warning: no previously-included files matching '</em>.bugfix' found under directory 'src\twisted'<br> warning: no previously-included files matching '<em>.doc' found under directory 'src\twisted'<br> warning: no previously-included files matching '</em>.feature' found under directory 'src\twisted'<br> warning: no previously-included files matching '<em>.removal' found under directory 'src\twisted'<br> warning: no previously-included files matching 'NEWS' found under directory 'src\twisted'<br> warning: no previously-included files matching 'README' found under directory 'src\twisted'<br> warning: no previously-included files matching 'newsfragments' found under directory 'src\twisted'<br> warning: no previously-included files found matching 'src\twisted\topfiles\CREDITS'<br> warning: no previously-included files found matching 'src\twisted\topfiles\ChangeLog.Old'<br> warning: no previously-included files found matching 'pyproject.toml'<br> warning: no previously-included files found matching 'codecov.yml'<br> warning: no previously-included files found matching 'appveyor.yml'<br> warning: no previously-included files found matching '.circleci'<br> warning: no previously-included files matching '</em>' found under directory '.circleci'<br> no previously-included directories found matching 'bin'<br> no previously-included directories found matching 'admin'<br> no previously-included directories found matching '.travis'<br> no previously-included directories found matching '.github'<br> warning: no previously-included files found matching 'docs\historic\2003'<br> warning: no previously-included files matching '*' found under directory 'docs\historic\2003'<br> writing manifest file 'src\Twisted.egg-info\SOURCES.txt'<br> copying src\twisted\python_sendmsg.c -&gt; build\lib.win32-3.7\twisted\python<br> copying src\twisted\python\twisted-completion.zsh -&gt; build\lib.win32-3.7\twisted\python<br> creating build\lib.win32-3.7\twisted\python_pydoctortemplates<br> copying src\twisted\python_pydoctortemplates\common.html -&gt; build\lib.win32-3.7\twisted\python_pydoctortemplates<br> copying src\twisted\python_pydoctortemplates\index.html -&gt; build\lib.win32-3.7\twisted\python_pydoctortemplates<br> copying src\twisted\python_pydoctortemplates\summary.html -&gt; build\lib.win32-3.7\twisted\python_pydoctortemplates<br> copying src\twisted\test\cert.pem.no_trailing_newline -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\key.pem.no_trailing_newline -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\raiser.c -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\raiser.pyx -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\test\server.pem -&gt; build\lib.win32-3.7\twisted\test<br> copying src\twisted\internet\iocpreactor\build.bat -&gt; build\lib.win32-3.7\twisted\internet\iocpreactor<br> copying src\twisted\internet\iocpreactor\notes.txt -&gt; build\lib.win32-3.7\twisted\internet\iocpreactor<br> creating build\lib.win32-3.7\twisted\internet\iocpreactor\iocpsupport<br> copying src\twisted\internet\iocpreactor\iocpsupport\acceptex.pxi -&gt; build\lib.win32-3.7\twisted\internet\iocpreactor\iocpsupport<br> copying src\twisted\internet\iocpreactor\iocpsupport\connectex.pxi -&gt; build\lib.win32-3.7\twisted\internet\iocpreactor\iocpsupport<br> copying src\twisted\internet\iocpreactor\iocpsupport\iocpsupport.c -&gt; build\lib.win32-3.7\twisted\internet\iocpreactor\iocpsupport<br> copying src\twisted\internet\iocpreactor\iocpsupport\iocpsupport.pyx -&gt; build\lib.win32-3.7\twisted\internet\iocpreactor\iocpsupport<br> copying src\twisted\internet\iocpreactor\iocpsupport\winsock_pointers.c -&gt; build\lib.win32-3.7\twisted\internet\iocpreactor\iocpsupport<br> copying src\twisted\internet\iocpreactor\iocpsupport\winsock_pointers.h -&gt; build\lib.win32-3.7\twisted\internet\iocpreactor\iocpsupport<br> copying src\twisted\internet\iocpreactor\iocpsupport\wsarecv.pxi -&gt; build\lib.win32-3.7\twisted\internet\iocpreactor\iocpsupport<br> copying src\twisted\internet\iocpreactor\iocpsupport\wsasend.pxi -&gt; build\lib.win32-3.7\twisted\internet\iocpreactor\iocpsupport<br> copying src\twisted\internet\test_awaittests.py.3only -&gt; build\lib.win32-3.7\twisted\internet\test<br> copying src\twisted\internet\test_yieldfromtests.py.3only -&gt; build\lib.win32-3.7\twisted\internet\test<br> creating build\lib.win32-3.7\twisted\internet\test\fake_CAs<br> copying src\twisted\internet\test\fake_CAs\chain.pem -&gt; build\lib.win32-3.7\twisted\internet\test\fake_CAs<br> copying src\twisted\internet\test\fake_CAs\not-a-certificate -&gt; build\lib.win32-3.7\twisted\internet\test\fake_CAs<br> copying src\twisted\internet\test\fake_CAs\thing1.pem -&gt; build\lib.win32-3.7\twisted\internet\test\fake_CAs<br> copying src\twisted\internet\test\fake_CAs\thing2-duplicate.pem -&gt; build\lib.win32-3.7\twisted\internet\test\fake_CAs<br> copying src\twisted\internet\test\fake_CAs\thing2.pem -&gt; build\lib.win32-3.7\twisted\internet\test\fake_CAs<br> copying src\twisted\mail\test\rfc822.message -&gt; build\lib.win32-3.7\twisted\mail\test<br> copying src\twisted\python\test_deprecatetests.py.3only -&gt; build\lib.win32-3.7\twisted\python\test<br> copying src\twisted\words\im\instancemessenger.glade -&gt; build\lib.win32-3.7\twisted\words\im<br> copying src\twisted\words\xish\xpathparser.g -&gt; build\lib.win32-3.7\twisted\words\xish<br> running build_ext<br> building 'twisted.test.raiser' extension<br> creating build\temp.win32-3.7<br> creating build\temp.win32-3.7\Release<br> creating build\temp.win32-3.7\Release\src<br> creating build\temp.win32-3.7\Release\src\twisted<br> creating build\temp.win32-3.7\Release\src\twisted\test<br> C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.14.26428\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DWIN32=1 -IC:\Users\bkaja\AppData\Local\Programs\Python\Python37-32\include -IC:\Users\bkaja\AppData\Local\Programs\Python\Python37-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.14.26428\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\cppwinrt" /Tcsrc/twisted/test/raiser.c /Fobuild\temp.win32-3.7\Release\src/twisted/test/raiser.obj<br> raiser.c<br> C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.14.26428\bin\HostX86\x86\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Users\bkaja\AppData\Local\Programs\Python\Python37-32\libs /LIBPATH:C:\Users\bkaja\AppData\Local\Programs\Python\Python37-32\PCbuild\win32 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.14.26428\lib\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17134.0\ucrt\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17134.0\um\x86" /EXPORT:PyInit_raiser build\temp.win32-3.7\Release\src/twisted/test/raiser.obj /OUT:build\lib.win32-3.7\twisted\test\raiser.cp37-win32.pyd /IMPLIB:build\temp.win32-3.7\Release\src/twisted/test\raiser.cp37-win32.lib<br> Creating library build\temp.win32-3.7\Release\src/twisted/test\raiser.cp37-win32.lib and object build\temp.win32-3.7\Release\src/twisted/test\raiser.cp37-win32.exp<br> Generating code<br> Finished generating code<br> building 'twisted.internet.iocpreactor.iocpsupport' extension<br> creating build\temp.win32-3.7\Release\src\twisted\internet<br> creating build\temp.win32-3.7\Release\src\twisted\internet\iocpreactor<br> creating build\temp.win32-3.7\Release\src\twisted\internet\iocpreactor\iocpsupport<br> C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.14.26428\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DWIN32=1 -IC:\Users\bkaja\AppData\Local\Programs\Python\Python37-32\include -IC:\Users\bkaja\AppData\Local\Programs\Python\Python37-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.14.26428\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\cppwinrt" /Tcsrc/twisted/internet/iocpreactor/iocpsupport/iocpsupport.c /Fobuild\temp.win32-3.7\Release\src/twisted/internet/iocpreactor/iocpsupport/iocpsupport.obj<br> iocpsupport.c<br> src/twisted/internet/iocpreactor/iocpsupport/iocpsupport.c(1933): warning C4047: '=': '__pyx_t_11iocpsupport_HANDLE' differs in levels of indirection from 'HANDLE'<br> src/twisted/internet/iocpreactor/iocpsupport/iocpsupport.c(2077): warning C4022: 'CreateIoCompletionPort': pointer mismatch for actual parameter 1<br> src/twisted/internet/iocpreactor/iocpsupport/iocpsupport.c(2077): warning C4022: 'CreateIoCompletionPort': pointer mismatch for actual parameter 2<br> src/twisted/internet/iocpreactor/iocpsupport/iocpsupport.c(2077): warning C4047: '=': '__pyx_t_11iocpsupport_HANDLE' differs in levels of indirection from 'HANDLE'<br> src/twisted/internet/iocpreactor/iocpsupport/iocpsupport.c(2192): warning C4022: 'GetQueuedCompletionStatus': pointer mismatch for actual parameter 1<br> src/twisted/internet/iocpreactor/iocpsupport/iocpsupport.c(2537): warning C4022: 'PostQueuedCompletionStatus': pointer mismatch for actual parameter 1<br> src/twisted/internet/iocpreactor/iocpsupport/iocpsupport.c(2648): warning C4022: 'CloseHandle': pointer mismatch for actual parameter 1<br> src/twisted/internet/iocpreactor/iocpsupport/iocpsupport.c(7194): warning C4020: 'function through pointer': too many actual parameters<br> src/twisted/internet/iocpreactor/iocpsupport/iocpsupport.c(7637): error C2039: 'exc_type': is not a member of '_ts'<br> c:\users\bkaja\appdata\local\programs\python\python37-32\include\pystate.h(209): note: see declaration of '_ts'<br> src/twisted/internet/iocpreactor/iocpsupport/iocpsupport.c(7638): error C2039: 'exc_value': is not a member of '_ts'<br> c:\users\bkaja\appdata\local\programs\python\python37-32\include\pystate.h(209): note: see declaration of '_ts'<br> src/twisted/internet/iocpreactor/iocpsupport/iocpsupport.c(7639): error C2039: 'exc_traceback': is not a member of '_ts'<br> c:\users\bkaja\appdata\local\programs\python\python37-32\include\pystate.h(209): note: see declaration of '_ts'<br> src/twisted/internet/iocpreactor/iocpsupport/iocpsupport.c(7640): error C2039: 'exc_type': is not a member of '_ts'<br> c:\users\bkaja\appdata\local\programs\python\python37-32\include\pystate.h(209): note: see declaration of '_ts'<br> src/twisted/internet/iocpreactor/iocpsupport/iocpsupport.c(7641): error C2039: 'exc_value': is not a member of '_ts'<br> c:\users\bkaja\appdata\local\programs\python\python37-32\include\pystate.h(209): note: see declaration of '_ts'<br> src/twisted/internet/iocpreactor/iocpsupport/iocpsupport.c(7642): error C2039: 'exc_traceback': is not a member of '_ts'<br> c:\users\bkaja\appdata\local\programs\python\python37-32\include\pystate.h(209): note: see declaration of '_ts'<br> src/twisted/internet/iocpreactor/iocpsupport/iocpsupport.c(7664): error C2039: 'exc_type': is not a member of '_ts'<br> c:\users\bkaja\appdata\local\programs\python\python37-32\include\pystate.h(209): note: see declaration of '_ts'<br> src/twisted/internet/iocpreactor/iocpsupport/iocpsupport.c(7665): error C2039: 'exc_value': is not a member of '_ts'<br> c:\users\bkaja\appdata\local\programs\python\python37-32\include\pystate.h(209): note: see declaration of '_ts'<br> src/twisted/internet/iocpreactor/iocpsupport/iocpsupport.c(7666): error C2039: 'exc_traceback': is not a member of '_ts'<br> c:\users\bkaja\appdata\local\programs\python\python37-32\include\pystate.h(209): note: see declaration of '_ts'<br> src/twisted/internet/iocpreactor/iocpsupport/iocpsupport.c(7667): error C2039: 'exc_type': is not a member of '_ts'<br> c:\users\bkaja\appdata\local\programs\python\python37-32\include\pystate.h(209): note: see declaration of '_ts'<br> src/twisted/internet/iocpreactor/iocpsupport/iocpsupport.c(7668): error C2039: 'exc_value': is not a member of '_ts'<br> c:\users\bkaja\appdata\local\programs\python\python37-32\include\pystate.h(209): note: see declaration of '_ts'<br> src/twisted/internet/iocpreactor/iocpsupport/iocpsupport.c(7669): error C2039: 'exc_traceback': is not a member of '_ts'<br> c:\users\bkaja\appdata\local\programs\python\python37-32\include\pystate.h(209): note: see declaration of '_ts'<br> src/twisted/internet/iocpreactor/iocpsupport/iocpsupport.c(7688): error C2039: 'exc_type': is not a member of '_ts'<br> c:\users\bkaja\appdata\local\programs\python\python37-32\include\pystate.h(209): note: see declaration of '_ts'<br> src/twisted/internet/iocpreactor/iocpsupport/iocpsupport.c(7689): error C2039: 'exc_value': is not a member of '_ts'<br> c:\users\bkaja\appdata\local\programs\python\python37-32\include\pystate.h(209): note: see declaration of '_ts'<br> src/twisted/internet/iocpreactor/iocpsupport/iocpsupport.c(7690): error C2039: 'exc_traceback': is not a member of '_ts'<br> c:\users\bkaja\appdata\local\programs\python\python37-32\include\pystate.h(209): note: see declaration of '_ts'<br> src/twisted/internet/iocpreactor/iocpsupport/iocpsupport.c(7697): error C2039: 'exc_type': is not a member of '_ts'<br> c:\users\bkaja\appdata\local\programs\python\python37-32\include\pystate.h(209): note: see declaration of '_ts'<br> src/twisted/internet/iocpreactor/iocpsupport/iocpsupport.c(7698): error C2039: 'exc_value': is not a member of '_ts'<br> c:\users\bkaja\appdata\local\programs\python\python37-32\include\pystate.h(209): note: see declaration of '_ts'<br> src/twisted/internet/iocpreactor/iocpsupport/iocpsupport.c(7699): error C2039: 'exc_traceback': is not a member of '_ts'<br> c:\users\bkaja\appdata\local\programs\python\python37-32\include\pystate.h(209): note: see declaration of '_ts'<br> src/twisted/internet/iocpreactor/iocpsupport/iocpsupport.c(7700): error C2039: 'exc_type': is not a member of '_ts'<br> c:\users\bkaja\appdata\local\programs\python\python37-32\include\pystate.h(209): note: see declaration of '_ts'<br> src/twisted/internet/iocpreactor/iocpsupport/iocpsupport.c(7701): error C2039: 'exc_value': is not a member of '_ts'<br> c:\users\bkaja\appdata\local\programs\python\python37-32\include\pystate.h(209): note: see declaration of '_ts'<br> src/twisted/internet/iocpreactor/iocpsupport/iocpsupport.c(7702): error C2039: 'exc_traceback': is not a member of '_ts'<br> c:\users\bkaja\appdata\local\programs\python\python37-32\include\pystate.h(209): note: see declaration of '_ts'<br> error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.14.26428\bin\HostX86\x86\cl.exe' failed with exit status 2</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="----------------------------------------"><pre class="notranslate"><code class="notranslate">---------------------------------------- </code></pre></div> <p dir="auto">Command "C:\Users\bkaja\AppData\Local\Programs\Python\Python37-32\python.exe -u -c "import setuptools, tokenize;<strong>file</strong>='C:\Users\bkaja\AppData\Local\Temp\pip-install-vrxv__11\Twisted\setup.py';f=getattr(tokenize, 'open', open)(<strong>file</strong>);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, <strong>file</strong>, 'exec'))" install --record C:\Users\bkaja\AppData\Local\Temp\pip-record-fnu_lwpt\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\bkaja\AppData\Local\Temp\pip-install-vrxv__11\Twisted\</p>
0
<p dir="auto">We should be making preview releases on npm available, preferably in an automated fashion.</p> <p dir="auto">As discussed a bit on <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="55613230" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/1818" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/1818/hovercard" href="https://github.com/microsoft/TypeScript/issues/1818">#1818</a>.</p> <p dir="auto">Seems like this should have the 1.5 milestone (but should begin prior to 1.5's release, as would be appropriate).</p>
<p dir="auto">TypeScript in master contains many new and interesting features. It would be great if pre-release versions could be installed via npm. This would hopefully help get more testing and exposure for these features for downstreams who can tolerate the risks.</p> <p dir="auto">eg. via</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm install typescript@future"><pre class="notranslate"><code class="notranslate">npm install typescript@future </code></pre></div>
1
<p dir="auto">Hi,</p> <p dir="auto">I am using <a href="http://visjs.org/docs/network" rel="nofollow">Vis Network</a> with <a href="https://vuejs.org" rel="nofollow">Vue.js</a> and I created two very simple applications, but none of them is working properly.</p> <h2 dir="auto">1) The first app is here: <a href="https://jsfiddle.net/Filip_Z/9k2s3dgj/4/" rel="nofollow">https://jsfiddle.net/Filip_Z/9k2s3dgj/4/</a></h2> <p dir="auto">The problem is that it cannot delete only the first node (with id=0). All of the other nodes can be deleted.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/18264428/21583988/1895b128-d097-11e6-8bab-f572e05a0105.png"><img src="https://cloud.githubusercontent.com/assets/18264428/21583988/1895b128-d097-11e6-8bab-f572e05a0105.png" alt="vis vue - deletenode - jsfiddle - mozilla firefox 2017-01-02 02 54 46" style="max-width: 100%;"></a></p> <p dir="auto">In the browser console there are no errors.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" Vue.component('ovs-network', { template: &quot;#mytmp&quot;, data() { return { network: null, nodes: [ { id: 0, label: '0' }, { id: 1, label: '1' }, { id: 2, label: '2' }, { id: 3, label: '3' }, { id: 4, label: '4' } ], edges: [], options: { manipulation: { enabled: true, initiallyActive: true, deleteNode: function (deleteData, callback) { callback(deleteData) } } }, container: '' } }, mounted() { this.container = document.getElementById('mynetwork'); var data = { nodes: this.nodes, edges: this.edges }; this.network = new vis.Network(this.container, data, this.options); } }); const app = new Vue({ el: '#app' });"><pre class="notranslate"><code class="notranslate"> Vue.component('ovs-network', { template: "#mytmp", data() { return { network: null, nodes: [ { id: 0, label: '0' }, { id: 1, label: '1' }, { id: 2, label: '2' }, { id: 3, label: '3' }, { id: 4, label: '4' } ], edges: [], options: { manipulation: { enabled: true, initiallyActive: true, deleteNode: function (deleteData, callback) { callback(deleteData) } } }, container: '' } }, mounted() { this.container = document.getElementById('mynetwork'); var data = { nodes: this.nodes, edges: this.edges }; this.network = new vis.Network(this.container, data, this.options); } }); const app = new Vue({ el: '#app' }); </code></pre></div> <h2 dir="auto">2) The second app is here: <a href="https://jsfiddle.net/Filip_Z/3ead4r51/1/" rel="nofollow">https://jsfiddle.net/Filip_Z/3ead4r51/1/</a></h2> <p dir="auto">The problem is that after applying the <code class="notranslate">setData</code> method, wrong labels are displayed. As you can see in the example, when you click on the button - this Vue method will be executed:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" updateData() { var nodes = [ { id: 0, label: '0' }, { id: 1, label: '1' }, { id: 4, label: '4' } ]; this.network.setData({ nodes: nodes, edges: []}); console.log('Updated!'); this.disabled = true; }"><pre class="notranslate"><code class="notranslate"> updateData() { var nodes = [ { id: 0, label: '0' }, { id: 1, label: '1' }, { id: 4, label: '4' } ]; this.network.setData({ nodes: nodes, edges: []}); console.log('Updated!'); this.disabled = true; } </code></pre></div> <p dir="auto">So there will be three nodes but, for some reason, all these nodes will have the same label: '4'.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/18264428/21584009/b0ef528a-d097-11e6-95ad-896ad1fdad56.png"><img src="https://cloud.githubusercontent.com/assets/18264428/21584009/b0ef528a-d097-11e6-95ad-896ad1fdad56.png" alt="vis vue - dataset - jsfiddle - mozilla firefox 2017-01-02 02 58 55" style="max-width: 100%;"></a></p> <p dir="auto">In the browser console there are no errors.</p> <p dir="auto">Now, I'm not sure where the problem is (Vue or Vis).</p>
<p dir="auto">Hi,</p> <p dir="auto">In which case Vis changes the color of nodes to red?</p> <p dir="auto">I have created a very simple app using <a href="https://vuejs.org/" rel="nofollow">Vue.js</a> &amp; <a href="http://visjs.org/docs/network/" rel="nofollow">Vis Network</a>. You can take a look at it here: <strong><a href="https://jsfiddle.net/Filip_Z/2ewtzh7w/1/" rel="nofollow">https://jsfiddle.net/Filip_Z/2ewtzh7w/1/</a></strong><br> For some reason, when I add a new edge - all nodes become red and every newly added edge will overlap with the existing one:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/18264428/21869848/d2f0b3fa-d859-11e6-95af-1766e72f7041.png"><img src="https://cloud.githubusercontent.com/assets/18264428/21869848/d2f0b3fa-d859-11e6-95af-1766e72f7041.png" alt="1" style="max-width: 100%;"></a></p> <p dir="auto">Now, here is the same version of this app without Vue: <a href="https://jsfiddle.net/Filip_Z/63jcj26y/2/" rel="nofollow">https://jsfiddle.net/Filip_Z/63jcj26y/2/</a></p> <p dir="auto">... and there is no this problem. But, the problem for me is that there are no errors in the browser console and I cannot figure out why is this happening. Do you know in what case Vis changes the color of nodes to red (and every newly added edge will overlap with the existing ones), <strong>in which cases Vis behaves like that?</strong> I'm asking because I don't know how to debug/solve this, I have no idea what is causing this behavior.</p>
1
<p dir="auto">Almost all the doc examples in numpy.polynomial.polynomial begin with<br> &gt;&gt;&gt; import numpy.polynomial as P<br> but it should actually be:<br> &gt;&gt;&gt; import numpy.polynomial.polynomial as P</p>
<p dir="auto">In most of the functions in polynomial.polynomial you can read this line:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; from numpy import polynomial as P"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; from numpy import polynomial as P </code></pre></div> <p dir="auto">and then:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; P.polyline(1,-1) &gt;&gt;&gt; sum = P.polyadd(c1,c2); sum &gt;&gt;&gt; P.polysub(c1,c2) &gt;&gt;&gt; P.polyder(c) # (d/dx)(c) = 2 + 6x + 12x**2 [...]"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; P.polyline(1,-1) &gt;&gt;&gt; sum = P.polyadd(c1,c2); sum &gt;&gt;&gt; P.polysub(c1,c2) &gt;&gt;&gt; P.polyder(c) # (d/dx)(c) = 2 + 6x + 12x**2 [...] </code></pre></div> <p dir="auto"><a href="https://github.com/numpy/numpy/blob/v1.7.1/numpy/polynomial/polynomial.py">https://github.com/numpy/numpy/blob/v1.7.1/numpy/polynomial/polynomial.py</a></p> <p dir="auto">but <em>all</em> these lines fail because all those members are part of the polynomial module in the polynomial package. It should be therefore like:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; P.polynomial.polyline(1,-1) &gt;&gt;&gt; sum = P.polynomial.polyadd(c1,c2); sum &gt;&gt;&gt; P.polynomial.polysub(c1,c2) &gt;&gt;&gt; P.polynomial.polyder(c) # (d/dx)(c) = 2 + 6x + 12x**2 [...]"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; P.polynomial.polyline(1,-1) &gt;&gt;&gt; sum = P.polynomial.polyadd(c1,c2); sum &gt;&gt;&gt; P.polynomial.polysub(c1,c2) &gt;&gt;&gt; P.polynomial.polyder(c) # (d/dx)(c) = 2 + 6x + 12x**2 [...] </code></pre></div> <p dir="auto">Nevertheless, this looks like a bit too long for me and I wonder if it would be possible to import some convenience functions using power series polynomials (polynomial.polyfit and things like that) directly into the polynomial package namespace.</p> <p dir="auto">I wrote "polynomial" too many times already :)</p>
1
<h3 dir="auto">Describe the issue:</h3> <p dir="auto">This may not be a bug, but the behavior is mysterious and unclear to me. Part of the problem is that in trying to recreate an MRE I cannot.</p> <p dir="auto">The setup is I have two arrays I'm multiplying, one with very small numbers. I use pdb to drop into interactive mode at the exception. Poking around a bit, the error is happening at the multiplication step, and I can recreate it by taking the smallest non-zero value and multiplying it by the second array, e.g.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Pdb) x[x&gt;0].min() * W *** FloatingPointError: underflow encountered in multiply ## or (Pdb) x[x&gt;0].min() * 1e-10 *** FloatingPointError: underflow encountered in double_scalars"><pre class="notranslate"><code class="notranslate">Pdb) x[x&gt;0].min() * W *** FloatingPointError: underflow encountered in multiply ## or (Pdb) x[x&gt;0].min() * 1e-10 *** FloatingPointError: underflow encountered in double_scalars </code></pre></div> <p dir="auto">Ok, the behavior I would like is for this to just go to zero — I don't care about the loss of precision. But then I try to create an MRE to experiment with solutions. What is the minimum?</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(Pdb) y = x[x&gt;0] (Pdb) y.min() 9.117510882823816e-308"><pre class="notranslate"><code class="notranslate">(Pdb) y = x[x&gt;0] (Pdb) y.min() 9.117510882823816e-308 </code></pre></div> <p dir="auto">Then I try in a new Python session,</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; import numpy as np &gt;&gt;&gt; np.array([9.117510882823816e-308], dtype='float64') array([9.11751088e-308]) &gt;&gt;&gt; f = np.array([9.117510882823816e-308], dtype='float64') &gt;&gt;&gt; f * 1e-10 array([9.11751e-318]) # No error"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; import numpy as np &gt;&gt;&gt; np.array([9.117510882823816e-308], dtype='float64') array([9.11751088e-308]) &gt;&gt;&gt; f = np.array([9.117510882823816e-308], dtype='float64') &gt;&gt;&gt; f * 1e-10 array([9.11751e-318]) # No error </code></pre></div> <p dir="auto">I then think that this is because of the loss of precision in printing the float. I wasn't sure how to handle this, but I tried <code class="notranslate">np.set_printoptions(precision=1000)</code> but this seems to only impact how arrays are printed, not the <code class="notranslate">np.float64</code> values as they're pulled out. So I next thought I can work with the raw data.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(Pdb) y.min().tobytes() b'\xe4\x94\x10\xf0\xf6c0\x00'"><pre class="notranslate"><code class="notranslate">(Pdb) y.min().tobytes() b'\xe4\x94\x10\xf0\xf6c0\x00' </code></pre></div> <p dir="auto">Then in the second session,</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ python Python 3.8.12 | packaged by conda-forge | (default, Jan 30 2022, 23:42:07) [GCC 9.4.0] on linux Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information. &gt;&gt;&gt; import numpy as np &gt;&gt;&gt; np.frombuffer(b'\xe4\x94\x10\xf0\xf6c0\x00', dtype='float64') array([9.11751088e-308]) &gt;&gt;&gt; f = np.frombuffer(b'\xe4\x94\x10\xf0\xf6c0\x00', dtype='float64') &gt;&gt;&gt; f * 1e-10 array([9.11751e-318]) # No error again! "><pre class="notranslate"><code class="notranslate">$ python Python 3.8.12 | packaged by conda-forge | (default, Jan 30 2022, 23:42:07) [GCC 9.4.0] on linux Type "help", "copyright", "credits" or "license" for more information. &gt;&gt;&gt; import numpy as np &gt;&gt;&gt; np.frombuffer(b'\xe4\x94\x10\xf0\xf6c0\x00', dtype='float64') array([9.11751088e-308]) &gt;&gt;&gt; f = np.frombuffer(b'\xe4\x94\x10\xf0\xf6c0\x00', dtype='float64') &gt;&gt;&gt; f * 1e-10 array([9.11751e-318]) # No error again! </code></pre></div> <p dir="auto">I find it odd that I can't create an MRE even with the buffer. What could be going on here?</p> <p dir="auto">I also tried using format strings,</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(Pdb) f&quot;{y:.10000000}&quot; '9.117510882823815665548977178863615628591324749590460596300089284407848522066006531932055383210337983249882939129197635693204683436837619342899485403616406753151023440802800570432302810469374755878262353843400205063415657530940618334968743282787718401379326462405248209351474798409859277445681925875157863523372638365924454046245513719836560774569949082153016343041264284375069892098945977461004851844859972461215974549935010425299501133344015649450602626874461701983236523291202172361897246010705343303184104772030271936525192961955598148050240545429201711268321687328347974353590798632145138753708909956222270239479037724670024066080647006736702136140242161352259516590652676898809691225616065391385488011421236917205938345143412249171888106502592563629150390625e-308'"><pre class="notranslate"><code class="notranslate">(Pdb) f"{y:.10000000}" '9.117510882823815665548977178863615628591324749590460596300089284407848522066006531932055383210337983249882939129197635693204683436837619342899485403616406753151023440802800570432302810469374755878262353843400205063415657530940618334968743282787718401379326462405248209351474798409859277445681925875157863523372638365924454046245513719836560774569949082153016343041264284375069892098945977461004851844859972461215974549935010425299501133344015649450602626874461701983236523291202172361897246010705343303184104772030271936525192961955598148050240545429201711268321687328347974353590798632145138753708909956222270239479037724670024066080647006736702136140242161352259516590652676898809691225616065391385488011421236917205938345143412249171888106502592563629150390625e-308' </code></pre></div> <p dir="auto">Then, in the interactive python session I pasted this in</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; ff = np.array([9.117510882823815665548977178863615628591324749590460596300089284407848522066006531932055383210337983249882939129197635693204683436837619342899485403616406753151023440802800570432302810469374755878262353843400205063415657530940618334968743282787718401379326462405248209351474798409859277445681925875157863523372638365924454046245513719836560774569949082153016343041264284375069892098945977461004851844859972461215974549935010425299501133344015649450602626874461701983236523291202172361897246010705343303184104772030271936525192961955598148050240545429201711268321687328347974353590798632145138753708909956222270239479037724670024066080647006736702136140242161352259516590652676898809691225616065391385488011421236917205938345143412249171888106502592563629150390625e-308], dtype='float64') &gt;&gt;&gt; ff array([9.11751088e-308]) &gt;&gt;&gt; ff * 1e-10 array([9.11751e-318]) # still no error!"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; ff = np.array([9.117510882823815665548977178863615628591324749590460596300089284407848522066006531932055383210337983249882939129197635693204683436837619342899485403616406753151023440802800570432302810469374755878262353843400205063415657530940618334968743282787718401379326462405248209351474798409859277445681925875157863523372638365924454046245513719836560774569949082153016343041264284375069892098945977461004851844859972461215974549935010425299501133344015649450602626874461701983236523291202172361897246010705343303184104772030271936525192961955598148050240545429201711268321687328347974353590798632145138753708909956222270239479037724670024066080647006736702136140242161352259516590652676898809691225616065391385488011421236917205938345143412249171888106502592563629150390625e-308], dtype='float64') &gt;&gt;&gt; ff array([9.11751088e-308]) &gt;&gt;&gt; ff * 1e-10 array([9.11751e-318]) # still no error! </code></pre></div> <p dir="auto">So I'm at a loss as to how to create an MRE of this underflow (and how to get the behavior I see and want in the interactive session, that is, it just goes to zero). Apologies if I'm missing something.</p> <h3 dir="auto">Reproduce the code example:</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# create the MRE is part of the bug, see above"><pre class="notranslate"><span class="pl-c"># create the MRE is part of the bug, see above</span></pre></div> <h3 dir="auto">Error message:</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Runtime information:</h3> <p dir="auto">Pdb session:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(Pdb) import sys, numpy; print(numpy.__version__); print(sys.version) 1.24.1 3.8.12 | packaged by conda-forge | (default, Jan 30 2022, 23:42:07) [GCC 9.4.0]"><pre class="notranslate"><code class="notranslate">(Pdb) import sys, numpy; print(numpy.__version__); print(sys.version) 1.24.1 3.8.12 | packaged by conda-forge | (default, Jan 30 2022, 23:42:07) [GCC 9.4.0] </code></pre></div> <p dir="auto">Second session:</p> <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.8.12 | packaged by conda-forge | (default, Jan 30 2022, 23:42:07) [GCC 9.4.0] "><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; import sys, numpy; print(numpy.__version__); print(sys.version) 1.24.1 3.8.12 | packaged by conda-forge | (default, Jan 30 2022, 23:42:07) [GCC 9.4.0] </code></pre></div> <h3 dir="auto">Context for the issue:</h3> <p dir="auto">This is important because I cannot create a working MRE due to the bug. The behavior is different even though I used the raw bytes to try to recreate the example. It would be helpful too if there was documentation on how to create a proper MRE given precision/underflow issues.</p>
<p dir="auto">While it is threadsafe, the <code class="notranslate">with</code> statement gives the false impression that it's always safe. It is not:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import asyncio import numpy as np def divide_by_zero(): np.float64(1) / 0 async def foo(): for j in range(3): with np.errstate(divide='raise'): for i in range(2): try: divide_by_zero() except FloatingPointError: pass else: print(&quot;foo: Failed to raise!&quot;) await asyncio.sleep(0.15) async def bar(): for j in range(3): with np.errstate(divide='ignore'): for i in range(2): try: divide_by_zero() except FloatingPointError: print(&quot;bar: raised anyway!&quot;) await asyncio.sleep(0.11) loop = asyncio.get_event_loop() loop.run_until_complete(asyncio.gather(foo(), bar())) loop.close()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">asyncio</span> <span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-k">def</span> <span class="pl-en">divide_by_zero</span>(): <span class="pl-s1">np</span>.<span class="pl-en">float64</span>(<span class="pl-c1">1</span>) <span class="pl-c1">/</span> <span class="pl-c1">0</span> <span class="pl-k">async</span> <span class="pl-k">def</span> <span class="pl-en">foo</span>(): <span class="pl-k">for</span> <span class="pl-s1">j</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-c1">3</span>): <span class="pl-k">with</span> <span class="pl-s1">np</span>.<span class="pl-en">errstate</span>(<span class="pl-s1">divide</span><span class="pl-c1">=</span><span class="pl-s">'raise'</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">2</span>): <span class="pl-k">try</span>: <span class="pl-en">divide_by_zero</span>() <span class="pl-k">except</span> <span class="pl-v">FloatingPointError</span>: <span class="pl-k">pass</span> <span class="pl-k">else</span>: <span class="pl-en">print</span>(<span class="pl-s">"foo: Failed to raise!"</span>) <span class="pl-k">await</span> <span class="pl-s1">asyncio</span>.<span class="pl-en">sleep</span>(<span class="pl-c1">0.15</span>) <span class="pl-k">async</span> <span class="pl-k">def</span> <span class="pl-en">bar</span>(): <span class="pl-k">for</span> <span class="pl-s1">j</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-c1">3</span>): <span class="pl-k">with</span> <span class="pl-s1">np</span>.<span class="pl-en">errstate</span>(<span class="pl-s1">divide</span><span class="pl-c1">=</span><span class="pl-s">'ignore'</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">2</span>): <span class="pl-k">try</span>: <span class="pl-en">divide_by_zero</span>() <span class="pl-k">except</span> <span class="pl-v">FloatingPointError</span>: <span class="pl-en">print</span>(<span class="pl-s">"bar: raised anyway!"</span>) <span class="pl-k">await</span> <span class="pl-s1">asyncio</span>.<span class="pl-en">sleep</span>(<span class="pl-c1">0.11</span>) <span class="pl-s1">loop</span> <span class="pl-c1">=</span> <span class="pl-s1">asyncio</span>.<span class="pl-en">get_event_loop</span>() <span class="pl-s1">loop</span>.<span class="pl-en">run_until_complete</span>(<span class="pl-s1">asyncio</span>.<span class="pl-en">gather</span>(<span class="pl-en">foo</span>(), <span class="pl-en">bar</span>())) <span class="pl-s1">loop</span>.<span class="pl-en">close</span>()</pre></div> <p dir="auto">gives:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="foo: Failed to raise! bar: raised anyway! foo: Failed to raise!"><pre class="notranslate"><code class="notranslate">foo: Failed to raise! bar: raised anyway! foo: Failed to raise! </code></pre></div> <p dir="auto">because the error-state is thread-local, but asyncio tasks share a thread.</p> <p dir="auto">I don't know if there is any way this can be fixed - it seems like this might be a python bug, and context managers might need an <code class="notranslate">__yield_enter__</code> and <code class="notranslate">__yield_leave__</code> mechanism, to be notified when control is leaving the suite via a <code class="notranslate">yield</code>/<code class="notranslate">await</code></p>
1
<p dir="auto">Hello,</p> <p dir="auto">I just installed jax and jaxlib under macOS 11.1 (Big Sur) and Python 3.8.5, and issued a <code class="notranslate">pip install --upgrade pip tensorflow jax jaxlib</code> to start playing around with jax. At first attempt, <code class="notranslate">import jax</code> fails:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="ImportError: dlopen(/Users/lucchem/opt/miniconda3/lib/python3.8/site-packages/jaxlib/xla_extension.so, 2): Symbol not found: __ZN10tensorflow8profiler11MonitorGrpcERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKNS_14MonitorRequestEPNS_15MonitorResponseE Referenced from: /Users/lucchem/opt/miniconda3/lib/python3.8/site-packages/jaxlib/xla_extension.so Expected in: flat namespace in /Users/lucchem/opt/miniconda3/lib/python3.8/site-packages/jaxlib/xla_extension.so"><pre class="notranslate"><span class="pl-v">ImportError</span>: <span class="pl-s1">dlopen</span>(<span class="pl-c1">/</span><span class="pl-v">Users</span><span class="pl-c1">/</span><span class="pl-s1">lucchem</span><span class="pl-c1">/</span><span class="pl-s1">opt</span><span class="pl-c1">/</span><span class="pl-s1">miniconda3</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">8</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">jaxlib</span><span class="pl-c1">/</span><span class="pl-s1">xla_extension</span>.<span class="pl-s1">so</span>, <span class="pl-c1">2</span>): <span class="pl-v">Symbol</span> <span class="pl-c1">not</span> <span class="pl-s1">found</span>: <span class="pl-s1">__ZN10tensorflow8profiler11MonitorGrpcERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKNS_14MonitorRequestEPNS_15MonitorResponseE</span> <span class="pl-v">Referenced</span> <span class="pl-s1">from</span>: <span class="pl-c1">/</span><span class="pl-v">Users</span><span class="pl-c1">/</span><span class="pl-s1">lucchem</span><span class="pl-c1">/</span><span class="pl-s1">opt</span><span class="pl-c1">/</span><span class="pl-s1">miniconda3</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">8</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">jaxlib</span><span class="pl-c1">/</span><span class="pl-s1">xla_extension</span>.<span class="pl-s1">so</span> <span class="pl-v">Expected</span> <span class="pl-c1">in</span>: <span class="pl-s1">flat</span> <span class="pl-s1">namespace</span> <span class="pl-s1">in</span> <span class="pl-c1">/</span><span class="pl-v">Users</span><span class="pl-c1">/</span><span class="pl-s1">lucchem</span><span class="pl-c1">/</span><span class="pl-s1">opt</span><span class="pl-c1">/</span><span class="pl-s1">miniconda3</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">8</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">jaxlib</span><span class="pl-c1">/</span><span class="pl-s1">xla_extension</span>.<span class="pl-s1">so</span></pre></div> <p dir="auto"><code class="notranslate">pip show pip jax jaxlib tensorflow</code> outputs:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Name: pip Version: 21.0.1 ... --- Name: jax Version: 0.2.10 ... --- Name: jaxlib Version: 0.1.63 ... --- Name: tensorflow Version: 2.4.1 ..."><pre class="notranslate"><code class="notranslate">Name: pip Version: 21.0.1 ... --- Name: jax Version: 0.2.10 ... --- Name: jaxlib Version: 0.1.63 ... --- Name: tensorflow Version: 2.4.1 ... </code></pre></div> <p dir="auto">is there any fix? Thank you in advance.</p>
<p dir="auto">Upgrading from jaxlib 0.1.62 to 0.1.63 causes import of jax to fail with mysterious error messages. Downgrading back to 0.1.62 and everything is happy again. (This in on Mac OS)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Requirement already satisfied: jaxlib in /Users/work/miniconda3/envs/QPACK/lib/python3.8/site-packages (0.1.62) Collecting jaxlib Using cached jaxlib-0.1.63-cp38-none-macosx_10_9_x86_64.whl (42.7 MB) Requirement already satisfied: absl-py in /Users/work/miniconda3/envs/QPACK/lib/python3.8/site-packages (from jaxlib) (0.12.0) Requirement already satisfied: numpy&gt;=1.16 in /Users/work/miniconda3/envs/QPACK/lib/python3.8/site-packages (from jaxlib) (1.20.1) Requirement already satisfied: flatbuffers in /Users/work/miniconda3/envs/QPACK/lib/python3.8/site-packages (from jaxlib) (20210203211748) Requirement already satisfied: scipy in /Users/work/miniconda3/envs/QPACK/lib/python3.8/site-packages (from jaxlib) (1.6.1) Requirement already satisfied: six in /Users/work/miniconda3/envs/QPACK/lib/python3.8/site-packages (from absl-py-&gt;jaxlib) (1.15.0) Installing collected packages: jaxlib Attempting uninstall: jaxlib Found existing installation: jaxlib 0.1.62 Uninstalling jaxlib-0.1.62: Successfully uninstalled jaxlib-0.1.62 Successfully installed jaxlib-0.1.63 $ python -c &quot;import jax&quot; Traceback (most recent call last): File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt; File &quot;/Users/work/miniconda3/envs/QPACK/lib/python3.8/site-packages/jax/__init__.py&quot;, line 21, in &lt;module&gt; from .config import config File &quot;/Users/work/miniconda3/envs/QPACK/lib/python3.8/site-packages/jax/config.py&quot;, line 19, in &lt;module&gt; from jax import lib File &quot;/Users/work/miniconda3/envs/QPACK/lib/python3.8/site-packages/jax/lib/__init__.py&quot;, line 53, in &lt;module&gt; from jaxlib import xla_client File &quot;/Users/work/miniconda3/envs/QPACK/lib/python3.8/site-packages/jaxlib/xla_client.py&quot;, line 31, in &lt;module&gt; from . import xla_extension as _xla ImportError: dlopen(/Users/work/miniconda3/envs/QPACK/lib/python3.8/site-packages/jaxlib/xla_extension.so, 2): Symbol not found: __ZN10tensorflow8profiler11MonitorGrpcERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKNS_14MonitorRequestEPNS_15MonitorResponseE Referenced from: /Users/work/miniconda3/envs/QPACK/lib/python3.8/site-packages/jaxlib/xla_extension.so Expected in: flat namespace in /Users/work/miniconda3/envs/QPACK/lib/python3.8/site-packages/jaxlib/xla_extension.so"><pre lang="$" class="notranslate"><code class="notranslate">Requirement already satisfied: jaxlib in /Users/work/miniconda3/envs/QPACK/lib/python3.8/site-packages (0.1.62) Collecting jaxlib Using cached jaxlib-0.1.63-cp38-none-macosx_10_9_x86_64.whl (42.7 MB) Requirement already satisfied: absl-py in /Users/work/miniconda3/envs/QPACK/lib/python3.8/site-packages (from jaxlib) (0.12.0) Requirement already satisfied: numpy&gt;=1.16 in /Users/work/miniconda3/envs/QPACK/lib/python3.8/site-packages (from jaxlib) (1.20.1) Requirement already satisfied: flatbuffers in /Users/work/miniconda3/envs/QPACK/lib/python3.8/site-packages (from jaxlib) (20210203211748) Requirement already satisfied: scipy in /Users/work/miniconda3/envs/QPACK/lib/python3.8/site-packages (from jaxlib) (1.6.1) Requirement already satisfied: six in /Users/work/miniconda3/envs/QPACK/lib/python3.8/site-packages (from absl-py-&gt;jaxlib) (1.15.0) Installing collected packages: jaxlib Attempting uninstall: jaxlib Found existing installation: jaxlib 0.1.62 Uninstalling jaxlib-0.1.62: Successfully uninstalled jaxlib-0.1.62 Successfully installed jaxlib-0.1.63 $ python -c "import jax" Traceback (most recent call last): File "&lt;string&gt;", line 1, in &lt;module&gt; File "/Users/work/miniconda3/envs/QPACK/lib/python3.8/site-packages/jax/__init__.py", line 21, in &lt;module&gt; from .config import config File "/Users/work/miniconda3/envs/QPACK/lib/python3.8/site-packages/jax/config.py", line 19, in &lt;module&gt; from jax import lib File "/Users/work/miniconda3/envs/QPACK/lib/python3.8/site-packages/jax/lib/__init__.py", line 53, in &lt;module&gt; from jaxlib import xla_client File "/Users/work/miniconda3/envs/QPACK/lib/python3.8/site-packages/jaxlib/xla_client.py", line 31, in &lt;module&gt; from . import xla_extension as _xla ImportError: dlopen(/Users/work/miniconda3/envs/QPACK/lib/python3.8/site-packages/jaxlib/xla_extension.so, 2): Symbol not found: __ZN10tensorflow8profiler11MonitorGrpcERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKNS_14MonitorRequestEPNS_15MonitorResponseE Referenced from: /Users/work/miniconda3/envs/QPACK/lib/python3.8/site-packages/jaxlib/xla_extension.so Expected in: flat namespace in /Users/work/miniconda3/envs/QPACK/lib/python3.8/site-packages/jaxlib/xla_extension.so </code></pre></div>
1
<p dir="auto">People have voiced the need for form input filtering various times. Filtering could be added to the Form component very easily by creating an (optional) extension that enables the following API:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$builder-&gt;add('content', 'textarea', array( // a single filter or an array of filters 'filters' =&gt; new StripTags(), ));"><pre class="notranslate"><span class="pl-s1"><span class="pl-c1">$</span>builder</span>-&gt;<span class="pl-en">add</span>(<span class="pl-s">'content'</span>, <span class="pl-s">'textarea'</span>, <span class="pl-en">array</span>( <span class="pl-c">// a single filter or an array of filters</span> <span class="pl-s">'filters'</span> =&gt; <span class="pl-k">new</span> <span class="pl-v">StripTags</span>(), ));</pre></div> <p dir="auto">The big question is which library to use for filtering. Upon short research, I came upon two existing alternatives:</p> <ul dir="auto"> <li><a href="https://github.com/zendframework/zf2/tree/master/library/Zend/Filter">Zend\Filter</a> <ul dir="auto"> <li>appears mature</li> <li>potentially brings in other ZF2 baggage, which I don't care about once ZF2 supports Composer properly and unless the baggage creates further disadvantages</li> </ul> </li> <li><a href="https://github.com/rdohms/DMS-Filter">DMS-Filter</a> <ul dir="auto"> <li>very young</li> <li>supports annotation-based filtering in POPOs</li> </ul> </li> </ul> <p dir="auto">Does anyone know further filtering libraries? Does anyone have experience with Zend\Filter in non-ZF(2) projects?</p> <h4 dir="auto">Comparison Sheet</h4> <table role="table"> <tbody><tr> <th>Zend\Filter</th> <th>DMS-Filter</th> <th>Comment</th> </tr> <tr> <td>Alnum</td> <td>Alnum</td> <td>both support Unicode, Zend has special treatment for Japanese, Chinese and Korean</td> </tr> <tr> <td>Alpha</td> <td></td> <td></td> </tr> <tr> <td>Boolean</td> <td>Boolean</td> <td>DMS does a simple cast, Zend's implementation is more complicated, but supports localized "yes" and "no" as well as leaving the original value unchanged unless it evaluates to false (use case?)</td> </tr> <tr> <td>Callback</td> <td></td> <td></td> </tr> <tr> <td>Digits</td> <td></td> <td></td> </tr> <tr> <td>File\LowerCase</td> <td></td> <td></td> </tr> <tr> <td>File\Rename</td> <td></td> <td></td> </tr> <tr> <td>File\UpperCase</td> <td></td> <td></td> </tr> <tr> <td></td> <td>Float</td> <td></td> </tr> <tr> <td>HtmlEntities</td> <td></td> <td></td> </tr> <tr> <td>Int</td> <td>Int</td> <td></td> </tr> <tr> <td>PregReplace</td> <td></td> <td>supports Unicode</td> </tr> <tr> <td>StringToLower</td> <td>ToLower</td> <td>both support Unicode</td> </tr> <tr> <td>StringToUpper</td> <td>ToUpper</td> <td>both support Unicode</td> </tr> <tr> <td>StringTrim</td> <td>Trim</td> <td>both allow the specification of a character list to be trimmed</td> </tr> <tr> <td>StripNewlines</td> <td>StripNewlines</td> <td></td> </tr> <tr> <td>StripTags</td> <td>StripTags</td> <td>Zend allows to specify allowed tags, attributes and comments; DMS only allowed tags (using `strip_tags` internally).</td> </tr> <tr> <th colspan="3">Not a filter, but a transformer</th> </tr><tr> <td>BaseName</td> <td></td> <td></td> </tr> <tr> <td>Compress</td> <td></td> <td>supports BZ2, GZ, LZF, RAR, TAR and ZIP</td> </tr> <tr> <td>Decompress</td> <td></td> <td>see Compress</td> </tr> <tr> <td>Decrypt</td> <td></td> <td>supports MCrypt and OpenSSL</td> </tr> <tr> <td>Dir</td> <td></td> <td></td> </tr> <tr> <td>Encrypt</td> <td></td> <td>see Decrypt</td> </tr> <tr> <td>File\Decrypt</td> <td></td> <td>see Decrypt</td> </tr> <tr> <td>File\Encrypt</td> <td></td> <td>see Decrypt</td> </tr> <tr> <td>Null</td> <td></td> <td></td> </tr> <tr> <td>RealPath</td> <td></td> <td></td> </tr> <tr> <td>Word\CamelCaseToDash</td> <td></td> <td></td> </tr> <tr> <td>Word\CamelCaseToSeparator</td> <td></td> <td></td> </tr> <tr> <td>Word\CamelCaseToUnderscore</td> <td></td> <td></td> </tr> <tr> <td>Word\DashToCamelCase</td> <td></td> <td></td> </tr> <tr> <td>Word\DashToSeparator</td> <td></td> <td></td> </tr> <tr> <td>Word\DashToUnderscore</td> <td></td> <td></td> </tr> <tr> <td>Word\SeparatorToCamelCase</td> <td></td> <td></td> </tr> <tr> <td>Word\SeparatorToDash</td> <td></td> <td></td> </tr> <tr> <td>Word\SeparatorToSeparator</td> <td></td> <td></td> </tr> <tr> <td>Word\UnderscoreToCamelCase</td> <td></td> <td></td> </tr> <tr> <td>Word\UnderscoreToDash</td> <td></td> <td></td> </tr> <tr> <td>Word\UnderscoreToSeparator</td> <td></td> <td></td> </tr> </tbody></table>
<p dir="auto"><strong>Description</strong><br> In the past, services were public or private (I'm ignoring "synthetic" services and other edge cases):</p> <ul dir="auto"> <li>Public: these are the services that you can use in your app. Also, you can <code class="notranslate">$this-&gt;get()</code> them in controllers.</li> <li>Private: don't use these services in your own code! These are "internal" services created by Symfony or third-party bundles. In modern Symfony versions you can't get them with <code class="notranslate">$this-&gt;get()</code> because they have random service IDs.</li> </ul> <p dir="auto">Also, private services don't appear on <code class="notranslate">debug:container</code>. It makes sense.</p> <p dir="auto"><strong>Problem</strong><br> In recent Symfony versions we made all services private by default. In my opinion, the problem is that we don't really want to make services private. In fact, those services are used in your app, so their "nature" is to be public. We make them private so you can't do <code class="notranslate">$this-&gt;get()</code> to get them (and to unlock some performance improvements).</p> <p dir="auto"><strong>Proposal</strong><br> What if we do this:</p> <ul dir="auto"> <li>Remove all features to get services with <code class="notranslate">$this-&gt;get()</code> in controllers and commands and force to always inject services. This is a BC break, only possible in Symfony 5.</li> <li>Restore the previous behavior: all services are public, unless you make them private for some reason. Private services don't appear on <code class="notranslate">debug:container</code></li> <li>Remove the concept of "hidden services", which are now "private services" again.</li> </ul>
0
<ul dir="auto"> <li>VSCode Version: 0.10.11</li> <li>OS Version: Ubuntu 14.04</li> <li>Theme: Dark+ (dark default)</li> </ul> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>Create file test.js</li> <li>Add code to test.js</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var a = 1, b = 2, c = 3, d = 4;"><pre class="notranslate"><code class="notranslate">var a = 1, b = 2, c = 3, d = 4; </code></pre></div> <p dir="auto">The a and b variables get colored (light blue on this theme), the c and d variables get no color (white on this theme).</p> <p dir="auto">Also, whe you use the variable it get no special color, but I'm not sure if this is intended. I would prefer it colored as well.</p> <p dir="auto">All variables get no color, nor the console.log (the hole line is white on this theme):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="console.log(a,b,c,d);"><pre class="notranslate"><code class="notranslate">console.log(a,b,c,d); </code></pre></div>
<p dir="auto"><em>From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vsccarl/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vsccarl">@vsccarl</a> on March 10, 2016 1:2</em></p> <p dir="auto">When defining multiple var in JavaScript the colorization is not working properly after the first defined variable if they are on separate lines.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/12900364/13656001/3a3e5a38-e618-11e5-8e29-f01b87bf83cc.JPG"><img src="https://cloud.githubusercontent.com/assets/12900364/13656001/3a3e5a38-e618-11e5-8e29-f01b87bf83cc.JPG" alt="varcolor" style="max-width: 100%;"></a><br> <code class="notranslate">var wm1 = new WeakMap(), wm2 = new WeakMap(), wm3 = new WeakMap();</code></p> <p dir="auto">On the same line they are correctly colorized<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/12900364/13656046/80e0f5f4-e618-11e5-82a2-f729c81ce286.JPG"><img src="https://cloud.githubusercontent.com/assets/12900364/13656046/80e0f5f4-e618-11e5-82a2-f729c81ce286.JPG" alt="varcolorworking" style="max-width: 100%;"></a></p> <p dir="auto">Expected: wm2 and wm3 should be the same color as wm1 regardless of the line they are on.</p> <p dir="auto">Version 0.10.12-alpha<br> Commit e8d5a7932b99f6b7559d48536bfc84732bfc8582<br> Date 2016-03-09T09:53:18.387Z<br> Shell 0.35.6<br> Renderer 45.0.2454.85<br> Node 4.1.1</p> <p dir="auto"><em>Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="139750442" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/3940" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/3940/hovercard" href="https://github.com/microsoft/vscode/issues/3940">microsoft/vscode#3940</a></em></p>
1
<p dir="auto">I'm performing a simple Glide request for an image:</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Glide.with(activity).asDrawable() .load(photoUrl) .transition(DrawableTransitionOptions.withCrossFade()) .into(courseImageView);"><pre class="notranslate"><span class="pl-smi">Glide</span>.<span class="pl-en">with</span>(<span class="pl-s1">activity</span>).<span class="pl-en">asDrawable</span>() .<span class="pl-en">load</span>(<span class="pl-s1">photoUrl</span>) .<span class="pl-en">transition</span>(<span class="pl-smi">DrawableTransitionOptions</span>.<span class="pl-en">withCrossFade</span>()) .<span class="pl-en">into</span>(<span class="pl-s1">courseImageView</span>);</pre></div> <p dir="auto">The image does not exist any longer on the server, so a 404 response is thrown. Soon after, Glide encounters a null pointer exception while attempting to log the exception.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="08-24 14:00:45.066 32394-32696/com.google.android.apps.classroom E/Volley﹕ [1937] BasicNetwork.performRequest: Unexpected response code 404 for https://lh4.googleusercontent.com/--39zw2UaVKs/VMqrCiuz-7I/AAAAAAAAAGQ/xHcF74BgYjk/w1256-h267-no/107_triangles_pink.jpg 08-24 14:00:45.071 32394-32394/com.google.android.apps.classroom D/AndroidRuntime﹕ Shutting down VM 08-24 14:00:45.072 32394-32394/com.google.android.apps.classroom E/AndroidRuntime﹕ FATAL EXCEPTION: main Process: com.google.android.apps.classroom, PID: 32394 java.lang.NullPointerException: Attempt to invoke interface method 'int java.lang.CharSequence.length()' on a null object reference at com.bumptech.glide.load.engine.GlideException$IndentedAppendable.append(GlideException.java:202) at com.bumptech.glide.load.engine.GlideException.appendExceptionMessage(GlideException.java:142) at com.bumptech.glide.load.engine.GlideException.appendCausesWrapped(GlideException.java:175) at com.bumptech.glide.load.engine.GlideException.appendCauses(GlideException.java:153) at com.bumptech.glide.load.engine.GlideException.printStackTrace(GlideException.java:126) at com.bumptech.glide.load.engine.GlideException.appendCausesWrapped(GlideException.java:173) at com.bumptech.glide.load.engine.GlideException.appendCauses(GlideException.java:153) at com.bumptech.glide.load.engine.GlideException.printStackTrace(GlideException.java:126) at com.bumptech.glide.load.engine.GlideException.appendCausesWrapped(GlideException.java:173) at com.bumptech.glide.load.engine.GlideException.appendCauses(GlideException.java:153) at com.bumptech.glide.load.engine.GlideException.printStackTrace(GlideException.java:126) at com.bumptech.glide.load.engine.GlideException.printStackTrace(GlideException.java:121) at android.util.Log.getStackTraceString(Log.java:343) at android.util.Log.w(Log.java:192) at com.bumptech.glide.request.SingleRequest.onLoadFailed(SingleRequest.java:492) at com.bumptech.glide.load.engine.EngineJob.handleExceptionOnMainThread(EngineJob.java:250) at com.bumptech.glide.load.engine.EngineJob.access$200(EngineJob.java:23) at com.bumptech.glide.load.engine.EngineJob$MainThreadCallback.handleMessage(EngineJob.java:279) at android.os.Handler.dispatchMessage(Handler.java:98) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5417) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)"><pre class="notranslate"><code class="notranslate">08-24 14:00:45.066 32394-32696/com.google.android.apps.classroom E/Volley﹕ [1937] BasicNetwork.performRequest: Unexpected response code 404 for https://lh4.googleusercontent.com/--39zw2UaVKs/VMqrCiuz-7I/AAAAAAAAAGQ/xHcF74BgYjk/w1256-h267-no/107_triangles_pink.jpg 08-24 14:00:45.071 32394-32394/com.google.android.apps.classroom D/AndroidRuntime﹕ Shutting down VM 08-24 14:00:45.072 32394-32394/com.google.android.apps.classroom E/AndroidRuntime﹕ FATAL EXCEPTION: main Process: com.google.android.apps.classroom, PID: 32394 java.lang.NullPointerException: Attempt to invoke interface method 'int java.lang.CharSequence.length()' on a null object reference at com.bumptech.glide.load.engine.GlideException$IndentedAppendable.append(GlideException.java:202) at com.bumptech.glide.load.engine.GlideException.appendExceptionMessage(GlideException.java:142) at com.bumptech.glide.load.engine.GlideException.appendCausesWrapped(GlideException.java:175) at com.bumptech.glide.load.engine.GlideException.appendCauses(GlideException.java:153) at com.bumptech.glide.load.engine.GlideException.printStackTrace(GlideException.java:126) at com.bumptech.glide.load.engine.GlideException.appendCausesWrapped(GlideException.java:173) at com.bumptech.glide.load.engine.GlideException.appendCauses(GlideException.java:153) at com.bumptech.glide.load.engine.GlideException.printStackTrace(GlideException.java:126) at com.bumptech.glide.load.engine.GlideException.appendCausesWrapped(GlideException.java:173) at com.bumptech.glide.load.engine.GlideException.appendCauses(GlideException.java:153) at com.bumptech.glide.load.engine.GlideException.printStackTrace(GlideException.java:126) at com.bumptech.glide.load.engine.GlideException.printStackTrace(GlideException.java:121) at android.util.Log.getStackTraceString(Log.java:343) at android.util.Log.w(Log.java:192) at com.bumptech.glide.request.SingleRequest.onLoadFailed(SingleRequest.java:492) at com.bumptech.glide.load.engine.EngineJob.handleExceptionOnMainThread(EngineJob.java:250) at com.bumptech.glide.load.engine.EngineJob.access$200(EngineJob.java:23) at com.bumptech.glide.load.engine.EngineJob$MainThreadCallback.handleMessage(EngineJob.java:279) at android.os.Handler.dispatchMessage(Handler.java:98) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5417) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) </code></pre></div> <p dir="auto">From the stack trace, it seems like the null pointer is being thrown because Glide is attempting to log an exception with a null message. Is there anyway this can be avoided (or maybe this should be considered a bug?).</p>
<p dir="auto"><strong>Glide Version/Integration library (if any)</strong>:<br> glide-4.0.0-SNAPSHOT</p> <p dir="auto"><strong>Device/Android Version</strong>:<br> LG-F320S / 4.2.2</p> <p dir="auto"><strong>Issue details/Repro steps</strong>:</p> <p dir="auto"><strong>Glide load line</strong>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Glide.with(context)...;"><pre class="notranslate"><code class="notranslate">Glide.with(context)...; </code></pre></div> <p dir="auto"><strong>Stack trace</strong>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="paste stack trace here E/AndroidRuntime﹕ FATAL EXCEPTION: main java.lang.NullPointerException at com.bumptech.glide.load.engine.GlideException$IndentedAppendable.append(GlideException.java:202) at com.bumptech.glide.load.engine.GlideException.appendExceptionMessage(GlideException.java:142) at com.bumptech.glide.load.engine.GlideException.appendCausesWrapped(GlideException.java:175) at com.bumptech.glide.load.engine.GlideException.appendCauses(GlideException.java:153) at com.bumptech.glide.load.engine.GlideException.printStackTrace(GlideException.java:126) at com.bumptech.glide.load.engine.GlideException.appendCausesWrapped(GlideException.java:173) at com.bumptech.glide.load.engine.GlideException.appendCauses(GlideException.java:153) at com.bumptech.glide.load.engine.GlideException.printStackTrace(GlideException.java:126) at com.bumptech.glide.load.engine.GlideException.appendCausesWrapped(GlideException.java:173) at com.bumptech.glide.load.engine.GlideException.appendCauses(GlideException.java:153) at com.bumptech.glide.load.engine.GlideException.printStackTrace(GlideException.java:126) at com.bumptech.glide.load.engine.GlideException.printStackTrace(GlideException.java:121) at android.util.Log.getStackTraceString(Log.java:319) at android.util.Log.w(Log.java:191) at com.bumptech.glide.request.SingleRequest.onLoadFailed(SingleRequest.java:488) at com.bumptech.glide.load.engine.EngineJob.handleExceptionOnMainThread(EngineJob.java:250) at com.bumptech.glide.load.engine.EngineJob.access$200(EngineJob.java:23) at com.bumptech.glide.load.engine.EngineJob$MainThreadCallback.handleMessage(EngineJob.java:279) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:5168) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:797) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:564) at dalvik.system.NativeStart.main(Native Method)"><pre class="notranslate"><code class="notranslate">paste stack trace here E/AndroidRuntime﹕ FATAL EXCEPTION: main java.lang.NullPointerException at com.bumptech.glide.load.engine.GlideException$IndentedAppendable.append(GlideException.java:202) at com.bumptech.glide.load.engine.GlideException.appendExceptionMessage(GlideException.java:142) at com.bumptech.glide.load.engine.GlideException.appendCausesWrapped(GlideException.java:175) at com.bumptech.glide.load.engine.GlideException.appendCauses(GlideException.java:153) at com.bumptech.glide.load.engine.GlideException.printStackTrace(GlideException.java:126) at com.bumptech.glide.load.engine.GlideException.appendCausesWrapped(GlideException.java:173) at com.bumptech.glide.load.engine.GlideException.appendCauses(GlideException.java:153) at com.bumptech.glide.load.engine.GlideException.printStackTrace(GlideException.java:126) at com.bumptech.glide.load.engine.GlideException.appendCausesWrapped(GlideException.java:173) at com.bumptech.glide.load.engine.GlideException.appendCauses(GlideException.java:153) at com.bumptech.glide.load.engine.GlideException.printStackTrace(GlideException.java:126) at com.bumptech.glide.load.engine.GlideException.printStackTrace(GlideException.java:121) at android.util.Log.getStackTraceString(Log.java:319) at android.util.Log.w(Log.java:191) at com.bumptech.glide.request.SingleRequest.onLoadFailed(SingleRequest.java:488) at com.bumptech.glide.load.engine.EngineJob.handleExceptionOnMainThread(EngineJob.java:250) at com.bumptech.glide.load.engine.EngineJob.access$200(EngineJob.java:23) at com.bumptech.glide.load.engine.EngineJob$MainThreadCallback.handleMessage(EngineJob.java:279) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:5168) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:797) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:564) at dalvik.system.NativeStart.main(Native Method) </code></pre></div>
1
<h1 dir="auto">Feature request</h1> <p dir="auto">I'm writing a Next app on Windows and deploying it on Elastic Beanstalk. The deployment process involves running <code class="notranslate">next build</code> locally and then deploying the necessary files along with the <code class="notranslate">.next</code> folder to Elastic Beanstalk. However, this isn't possible since the files in the <code class="notranslate">.next</code> build folder use os-specific directory separators, making any build from a Windows machine incompatible with one on a Linux machine.</p> <p dir="auto"><del>What I'd like to see done is have a configuration option that would allow you to specify the directory separator used in build files to either the system default, <code class="notranslate">/</code>, or <code class="notranslate">\</code>.</del> or preferrably, replace the directory separators at runtime to support the build in any operating system.</p> <p dir="auto">While running <code class="notranslate">next build</code> is still an option, I've personally had issues with permissions doing while building locally works, that is, after manually changing all the directory separators in the config files in the <code class="notranslate">.next</code> folder.</p> <p dir="auto">EDIT: after posting this last night, I thought it over and realized that just making the changes at runtime when parsing the build folder would be more user intuitive.</p>
<ul dir="auto"> <li>[ x] I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <p dir="auto">Assuming the code below and an ID param of 1, when this Link is clicked the URL should be masked as speaker/1, with the Link navigating via query params, i.e. speaker?id=1</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;Link prefetch href={`/speaker?id=${this.props.id}`} as={`/speaker/${this.props.id}`} &gt; &lt;div&gt;some content&lt;/div&gt; &lt;/Link&gt; "><pre class="notranslate"><code class="notranslate">&lt;Link prefetch href={`/speaker?id=${this.props.id}`} as={`/speaker/${this.props.id}`} &gt; &lt;div&gt;some content&lt;/div&gt; &lt;/Link&gt; </code></pre></div> <p dir="auto">This code updates the URL correctly as speaker/1 but does not navigate anywhere.</p> <p dir="auto">Also, the query params are not working. When I try to manually navigate to a page via query params it does not work. I've tested out using query params with other pages in the app and it is working fine.</p> <p dir="auto">When I take away the query params from the 'href' attribute and remove the 'as' attribute, the navigation works, except that a 404 page flickers for a moment on page load.<br> (i.e. <code class="notranslate">&lt;Link href={`/speaker/${this.props.id}`&gt; </code> )</p> <p dir="auto">I have heard of others with the same issue, but I haven't found a solution that works.</p> <p dir="auto">For reference, the following is the routing on the server:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="app.prepare() .then(() =&gt; { const server = express() server.get('/speaker/:id', (req, res) =&gt; { const actualPage = '/speaker'; const queryParams = { id: req.params.id }; app.render(req, res, actualPage, queryParams); }) server.get('*', (req, res) =&gt; { return handle(req, res) }) server.listen(3000, err =&gt; err ? console.log(err) : console.log(`Server listening on http://localhost:${port}`)); }) .catch((ex) =&gt; { console.error(ex.stack) process.exit(1) })"><pre class="notranslate"><code class="notranslate">app.prepare() .then(() =&gt; { const server = express() server.get('/speaker/:id', (req, res) =&gt; { const actualPage = '/speaker'; const queryParams = { id: req.params.id }; app.render(req, res, actualPage, queryParams); }) server.get('*', (req, res) =&gt; { return handle(req, res) }) server.listen(3000, err =&gt; err ? console.log(err) : console.log(`Server listening on http://localhost:${port}`)); }) .catch((ex) =&gt; { console.error(ex.stack) process.exit(1) }) </code></pre></div>
0
<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> <p dir="auto">timeout expired waiting for volumes to attach/mount gcePersistentDisk readOnly</p> <hr> <p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one):</p> <p dir="auto">Bug report</p> <p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):</p> <p dir="auto">Client Version: version.Info{Major:"1", Minor:"3", GitVersion:"v1.3.4", GitCommit:"dd6b458ef8dbf24aff55795baa68f83383c9b3a9", GitTreeState:"clean", BuildDate:"2016-08-01T16:45:16Z", GoVersion:"go1.6.2", Compiler:"gc", Platform:"windows/amd64"}<br> Server Version: version.Info{Major:"1", Minor:"3", GitVersion:"v1.3.4", GitCommit:"dd6b458ef8dbf24aff55795baa68f83383c9b3a9", GitTreeState:"clean", BuildDate:"2016-08-01T16:38:31Z", GoVersion:"go1.6.2", Compiler:"gc", Platform:"linux/amd64"}</p> <p dir="auto"><strong>Environment</strong>:</p> <ul dir="auto"> <li><strong>Cloud provider or hardware configuration</strong>: GKE</li> <li><strong>OS</strong> (e.g. from /etc/os-release):</li> </ul> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="PRETTY_NAME=&quot;Debian GNU/Linux 7 (wheezy)&quot; NAME=&quot;Debian GNU/Linux&quot; VERSION_ID=&quot;7&quot; VERSION=&quot;7 (wheezy)&quot; ID=debian ANSI_COLOR=&quot;1;31&quot; HOME_URL=&quot;http://www.debian.org/&quot; SUPPORT_URL=&quot;http://www.debian.org/support/&quot; BUG_REPORT_URL=&quot;http://bugs.debian.org/&quot;"><pre class="notranslate">PRETTY_NAME=<span class="pl-s"><span class="pl-pds">"</span>Debian GNU/Linux 7 (wheezy)<span class="pl-pds">"</span></span> NAME=<span class="pl-s"><span class="pl-pds">"</span>Debian GNU/Linux<span class="pl-pds">"</span></span> VERSION_ID=<span class="pl-s"><span class="pl-pds">"</span>7<span class="pl-pds">"</span></span> VERSION=<span class="pl-s"><span class="pl-pds">"</span>7 (wheezy)<span class="pl-pds">"</span></span> ID=debian ANSI_COLOR=<span class="pl-s"><span class="pl-pds">"</span>1;31<span class="pl-pds">"</span></span> HOME_URL=<span class="pl-s"><span class="pl-pds">"</span>http://www.debian.org/<span class="pl-pds">"</span></span> SUPPORT_URL=<span class="pl-s"><span class="pl-pds">"</span>http://www.debian.org/support/<span class="pl-pds">"</span></span> BUG_REPORT_URL=<span class="pl-s"><span class="pl-pds">"</span>http://bugs.debian.org/<span class="pl-pds">"</span></span></pre></div> <ul dir="auto"> <li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>): Linux gke-fatih-small-pool-59881027-k909 3.16.0-4-amd64 <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="35192559" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/1" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/1/hovercard" href="https://github.com/kubernetes/kubernetes/issues/1">#1</a> SMP Debian 3.16.7-ckt25-2 (2016-04-08) x86_64 GNU/Linux</li> <li><strong>Install tools</strong>:</li> <li><strong>Others</strong>:</li> </ul> <p dir="auto"><strong>What happened</strong>:</p> <p dir="auto">readOnly persistent disk won't mount multiple times</p> <p dir="auto"><strong>What you expected to happen</strong>:</p> <p dir="auto">Can be mounted multiple times</p> <p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):</p> <p dir="auto">Create 3 RCs (with 1 replica each) that mount the same persistent disk as read only.</p> <p dir="auto">The first pod always succeeds mounting.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="kubectl get po NAME READY STATUS RESTARTS AGE mongo-express 1/1 Running 0 2h mongo-rc0-rpah5 1/1 Running 0 30m mongo-rc1-xkcyy 1/1 Running 0 17m mongo-rc2-aktox 0/1 ContainerCreating 0 30m"><pre class="notranslate"><code class="notranslate">kubectl get po NAME READY STATUS RESTARTS AGE mongo-express 1/1 Running 0 2h mongo-rc0-rpah5 1/1 Running 0 30m mongo-rc1-xkcyy 1/1 Running 0 17m mongo-rc2-aktox 0/1 ContainerCreating 0 30m </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="kubectl describe po mongo-rc0-rpah5 Name: mongo-rc0-rpah5 Namespace: default Node: gke-fatih-small-pool-59881027-k909/10.142.0.5 Start Time: Tue, 23 Aug 2016 05:01:48 +0700 Labels: instance=fatih0 name=mongo-node0 Status: Running IP: 10.60.2.5 Controllers: ReplicationController/mongo-rc0 Containers: mongo-node0: Container ID: docker://2845af5d815ff62505284ee8ef22bb5be3fa7f276e00d9347c9ce0e726e45d2f Image: mongo Image ID: docker://sha256:af52553e1c34b3ec48a2e50cf73a1eed1fc6d2fd2b0d3d73d7397c8d6341551f Port: 27017/TCP Command: mongod --replSet bippo --storageEngine wiredTiger --keyFile /etc/mongo-conf/mongo.keyfile Requests: cpu: 100m State: Running Started: Tue, 23 Aug 2016 05:02:06 +0700 Ready: True Restart Count: 0 Environment Variables: &lt;none&gt; Conditions: Type Status Initialized True Ready True PodScheduled True Volumes: mongo-conf: Type: GCEPersistentDisk (a Persistent Disk resource in Google Compute Engine) PDName: mongo-conf FSType: ext4 Partition: 0 ReadOnly: true mongo-persistent-storage0: Type: GCEPersistentDisk (a Persistent Disk resource in Google Compute Engine) PDName: mongodb-disk0 FSType: ext4 Partition: 0 ReadOnly: false default-token-i0lox: Type: Secret (a volume populated by a Secret) SecretName: default-token-i0lox QoS Tier: Burstable Events: FirstSeen LastSeen Count From SubobjectPath Type Reason Message --------- -------- ----- ---- ------------- -------- ------ ------- 33m 33m 1 {default-scheduler } Normal Scheduled Successfully assigned mongo-rc0-rpah5 to gke-fatih-small-pool-59881027-k909 33m 33m 1 {kubelet gke-fatih-small-pool-59881027-k909} spec.containers{mongo-node0} Normal Pulling pulling image &quot;mongo&quot; 33m 33m 1 {kubelet gke-fatih-small-pool-59881027-k909} spec.containers{mongo-node0} Normal Pulled Successfully pulled image &quot;mongo&quot; 33m 33m 1 {kubelet gke-fatih-small-pool-59881027-k909} spec.containers{mongo-node0} Normal Created Created container with docker id 2845af5d815f 33m 33m 1 {kubelet gke-fatih-small-pool-59881027-k909} spec.containers{mongo-node0} Normal Started Started container with docker id 2845af5d815f"><pre class="notranslate"><code class="notranslate">kubectl describe po mongo-rc0-rpah5 Name: mongo-rc0-rpah5 Namespace: default Node: gke-fatih-small-pool-59881027-k909/10.142.0.5 Start Time: Tue, 23 Aug 2016 05:01:48 +0700 Labels: instance=fatih0 name=mongo-node0 Status: Running IP: 10.60.2.5 Controllers: ReplicationController/mongo-rc0 Containers: mongo-node0: Container ID: docker://2845af5d815ff62505284ee8ef22bb5be3fa7f276e00d9347c9ce0e726e45d2f Image: mongo Image ID: docker://sha256:af52553e1c34b3ec48a2e50cf73a1eed1fc6d2fd2b0d3d73d7397c8d6341551f Port: 27017/TCP Command: mongod --replSet bippo --storageEngine wiredTiger --keyFile /etc/mongo-conf/mongo.keyfile Requests: cpu: 100m State: Running Started: Tue, 23 Aug 2016 05:02:06 +0700 Ready: True Restart Count: 0 Environment Variables: &lt;none&gt; Conditions: Type Status Initialized True Ready True PodScheduled True Volumes: mongo-conf: Type: GCEPersistentDisk (a Persistent Disk resource in Google Compute Engine) PDName: mongo-conf FSType: ext4 Partition: 0 ReadOnly: true mongo-persistent-storage0: Type: GCEPersistentDisk (a Persistent Disk resource in Google Compute Engine) PDName: mongodb-disk0 FSType: ext4 Partition: 0 ReadOnly: false default-token-i0lox: Type: Secret (a volume populated by a Secret) SecretName: default-token-i0lox QoS Tier: Burstable Events: FirstSeen LastSeen Count From SubobjectPath Type Reason Message --------- -------- ----- ---- ------------- -------- ------ ------- 33m 33m 1 {default-scheduler } Normal Scheduled Successfully assigned mongo-rc0-rpah5 to gke-fatih-small-pool-59881027-k909 33m 33m 1 {kubelet gke-fatih-small-pool-59881027-k909} spec.containers{mongo-node0} Normal Pulling pulling image "mongo" 33m 33m 1 {kubelet gke-fatih-small-pool-59881027-k909} spec.containers{mongo-node0} Normal Pulled Successfully pulled image "mongo" 33m 33m 1 {kubelet gke-fatih-small-pool-59881027-k909} spec.containers{mongo-node0} Normal Created Created container with docker id 2845af5d815f 33m 33m 1 {kubelet gke-fatih-small-pool-59881027-k909} spec.containers{mongo-node0} Normal Started Started container with docker id 2845af5d815f </code></pre></div> <p dir="auto">The second pod is intermittent. The third pod (below) always fails.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="kubectl describe po mongo-rc2-aktox Name: mongo-rc2-aktox Namespace: default Node: gke-fatih-small-pool-59881027-h46g/10.142.0.6 Start Time: Tue, 23 Aug 2016 05:01:49 +0700 Labels: instance=fatih2 name=mongo-node2 Status: Pending IP: Controllers: ReplicationController/mongo-rc2 Containers: mongo-node2: Container ID: Image: mongo Image ID: Port: 27017/TCP Command: mongod --replSet bippo --storageEngine wiredTiger --keyFile /etc/mongo-conf/mongo.keyfile Requests: cpu: 100m State: Waiting Reason: ContainerCreating Ready: False Restart Count: 0 Environment Variables: &lt;none&gt; Conditions: Type Status Initialized True Ready False PodScheduled True Volumes: mongo-conf: Type: GCEPersistentDisk (a Persistent Disk resource in Google Compute Engine) PDName: mongo-conf FSType: ext4 Partition: 0 ReadOnly: true mongo-persistent-storage2: Type: GCEPersistentDisk (a Persistent Disk resource in Google Compute Engine) PDName: mongodb-disk2 FSType: ext4 Partition: 0 ReadOnly: false default-token-i0lox: Type: Secret (a volume populated by a Secret) SecretName: default-token-i0lox QoS Tier: Burstable Events: FirstSeen LastSeen Count From SubobjectPath Type Reason Message --------- -------- ----- ---- ------------- -------- ------ ------- 30m 30m 1 {default-scheduler } Normal Scheduled Successfully assigned mongo-rc2-aktox to gke-fatih-small-pool-59881027-h46g 28m 1m 13 {kubelet gke-fatih-small-pool-59881027-h46g} Warning FailedMount Unable to mount volumes for pod &quot;mongo-rc2-aktox_default(06ce97cd-68b4-11e6-b129-42010af0011e)&quot;: timeout expired waiting for volumes to attach/mount for pod &quot;mongo-rc2-aktox&quot;/&quot;default&quot;. list of unattached/unmounted volumes=[mongo-conf] 28m 1m 13 {kubelet gke-fatih-small-pool-59881027-h46g} Warning FailedSync Error syncing pod, skipping: timeout expired waiting for volumes to attach/mount for pod &quot;mongo-rc2-aktox&quot;/&quot;default&quot;. list of unattached/unmounted volumes=[mongo-conf]"><pre class="notranslate"><code class="notranslate">kubectl describe po mongo-rc2-aktox Name: mongo-rc2-aktox Namespace: default Node: gke-fatih-small-pool-59881027-h46g/10.142.0.6 Start Time: Tue, 23 Aug 2016 05:01:49 +0700 Labels: instance=fatih2 name=mongo-node2 Status: Pending IP: Controllers: ReplicationController/mongo-rc2 Containers: mongo-node2: Container ID: Image: mongo Image ID: Port: 27017/TCP Command: mongod --replSet bippo --storageEngine wiredTiger --keyFile /etc/mongo-conf/mongo.keyfile Requests: cpu: 100m State: Waiting Reason: ContainerCreating Ready: False Restart Count: 0 Environment Variables: &lt;none&gt; Conditions: Type Status Initialized True Ready False PodScheduled True Volumes: mongo-conf: Type: GCEPersistentDisk (a Persistent Disk resource in Google Compute Engine) PDName: mongo-conf FSType: ext4 Partition: 0 ReadOnly: true mongo-persistent-storage2: Type: GCEPersistentDisk (a Persistent Disk resource in Google Compute Engine) PDName: mongodb-disk2 FSType: ext4 Partition: 0 ReadOnly: false default-token-i0lox: Type: Secret (a volume populated by a Secret) SecretName: default-token-i0lox QoS Tier: Burstable Events: FirstSeen LastSeen Count From SubobjectPath Type Reason Message --------- -------- ----- ---- ------------- -------- ------ ------- 30m 30m 1 {default-scheduler } Normal Scheduled Successfully assigned mongo-rc2-aktox to gke-fatih-small-pool-59881027-h46g 28m 1m 13 {kubelet gke-fatih-small-pool-59881027-h46g} Warning FailedMount Unable to mount volumes for pod "mongo-rc2-aktox_default(06ce97cd-68b4-11e6-b129-42010af0011e)": timeout expired waiting for volumes to attach/mount for pod "mongo-rc2-aktox"/"default". list of unattached/unmounted volumes=[mongo-conf] 28m 1m 13 {kubelet gke-fatih-small-pool-59881027-h46g} Warning FailedSync Error syncing pod, skipping: timeout expired waiting for volumes to attach/mount for pod "mongo-rc2-aktox"/"default". list of unattached/unmounted volumes=[mongo-conf] </code></pre></div> <p dir="auto"><strong>Anything else do we need to know</strong>:</p> <p dir="auto">Relevant <code class="notranslate">/var/log/kubelet.log</code> in the node:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ceefour@gke-fatih-small-pool-59881027-h46g:~$ tail -n100 /var/log/kubelet.log | grep mongo-conf E0822 22:30:30.157423 3439 kubelet.go:1932] Unable to mount volumes for pod &quot;mongo-rc2-aktox_default(06ce97cd-68b4-11e6-b129-42010af0011e)&quot;: timeout expired waiting for volumes to attach/mount for pod &quot;mongo-rc2-aktox&quot;/&quot;default&quot;. list of unattached/unmounted volumes=[mongo-conf]; skipping pod E0822 22:30:30.157465 3439 pod_workers.go:183] Error syncing pod 06ce97cd-68b4-11e6-b129-42010af0011e, skipping: timeout expired waiting for volumes to attach/mount for pod &quot;mongo-rc2-aktox&quot;/&quot;default&quot;. list of unattached/unmounted volumes=[mongo-conf] I0822 22:31:05.117374 3439 reconciler.go:180] VerifyControllerAttachedVolume operation started for volume &quot;kubernetes.io/gce-pd/mongo-conf&quot; (spec.Name: &quot;mongo-conf&quot;) pod &quot;06ce97cd-68b4-11e6-b129-42010af0011e&quot; (UID: &quot;06ce97cd-68b4-11e6-b129-42010af0011e&quot;) E0822 22:31:05.120603 3439 nestedpendingoperations.go:233] Operation for &quot;\&quot;kubernetes.io/gce-pd/mongo-conf\&quot;&quot; failed. No retries permitted until 2016-08-22 22:33:05.120584643 +0000 UTC (durationBeforeRetry 2m0s). Error: Volume &quot;kubernetes.io/gce-pd/mongo-conf&quot; (spec.Name: &quot;mongo-conf&quot;) pod &quot;06ce97cd-68b4-11e6-b129-42010af0011e&quot; (UID: &quot;06ce97cd-68b4-11e6-b129-42010af0011e&quot;) is not yet attached according to node status. E0822 22:32:45.156181 3439 kubelet.go:1932] Unable to mount volumes for pod &quot;mongo-rc2-aktox_default(06ce97cd-68b4-11e6-b129-42010af0011e)&quot;: timeout expired waiting for volumes to attach/mount for pod &quot;mongo-rc2-aktox&quot;/&quot;default&quot;. list of unattached/unmounted volumes=[mongo-conf]; skipping pod E0822 22:32:45.156226 3439 pod_workers.go:183] Error syncing pod 06ce97cd-68b4-11e6-b129-42010af0011e, skipping: timeout expired waiting for volumes to attach/mount for pod &quot;mongo-rc2-aktox&quot;/&quot;default&quot;. list of unattached/unmounted volumes=[mongo-conf] I0822 22:33:05.156100 3439 reconciler.go:180] VerifyControllerAttachedVolume operation started for volume &quot;kubernetes.io/gce-pd/mongo-conf&quot; (spec.Name: &quot;mongo-conf&quot;) pod &quot;06ce97cd-68b4-11e6-b129-42010af0011e&quot; (UID: &quot;06ce97cd-68b4-11e6-b129-42010af0011e&quot;) E0822 22:33:05.159285 3439 nestedpendingoperations.go:233] Operation for &quot;\&quot;kubernetes.io/gce-pd/mongo-conf\&quot;&quot; failed. No retries permitted until 2016-08-22 22:35:05.159269631 +0000 UTC (durationBeforeRetry 2m0s). Error: Volume &quot;kubernetes.io/gce-pd/mongo-conf&quot; (spec.Name: &quot;mongo-conf&quot;) pod &quot;06ce97cd-68b4-11e6-b129-42010af0011e&quot; (UID: &quot;06ce97cd-68b4-11e6-b129-42010af0011e&quot;) is not yet attached according to node status. E0822 22:34:58.157744 3439 kubelet.go:1932] Unable to mount volumes for pod &quot;mongo-rc2-aktox_default(06ce97cd-68b4-11e6-b129-42010af0011e)&quot;: timeout expired waiting for volumes to attach/mount for pod &quot;mongo-rc2-aktox&quot;/&quot;default&quot;. list of unattached/unmounted volumes=[mongo-conf]; skipping pod E0822 22:34:58.161069 3439 pod_workers.go:183] Error syncing pod 06ce97cd-68b4-11e6-b129-42010af0011e, skipping: timeout expired waiting for volumes to attach/mount for pod &quot;mongo-rc2-aktox&quot;/&quot;default&quot;. list of unattached/unmounted volumes=[mongo-conf] I0822 22:35:05.188747 3439 reconciler.go:180] VerifyControllerAttachedVolume operation started for volume &quot;kubernetes.io/gce-pd/mongo-conf&quot; (spec.Name: &quot;mongo-conf&quot;) pod &quot;06ce97cd-68b4-11e6-b129-42010af0011e&quot; (UID: &quot;06ce97cd-68b4-11e6-b129-42010af0011e&quot;) E0822 22:35:05.191576 3439 nestedpendingoperations.go:233] Operation for &quot;\&quot;kubernetes.io/gce-pd/mongo-conf\&quot;&quot; failed. No retries permitted until 2016-08-22 22:37:05.191557765 +0000 UTC (durationBeforeRetry 2m0s). Error: Volume &quot;kubernetes.io/gce-pd/mongo-conf&quot; (spec.Name: &quot;mongo-conf&quot;) pod &quot;06ce97cd-68b4-11e6-b129-42010af0011e&quot; (UID: &quot;06ce97cd-68b4-11e6-b129-42010af0011e&quot;) is not yet attached according to node status."><pre class="notranslate"><code class="notranslate">ceefour@gke-fatih-small-pool-59881027-h46g:~$ tail -n100 /var/log/kubelet.log | grep mongo-conf E0822 22:30:30.157423 3439 kubelet.go:1932] Unable to mount volumes for pod "mongo-rc2-aktox_default(06ce97cd-68b4-11e6-b129-42010af0011e)": timeout expired waiting for volumes to attach/mount for pod "mongo-rc2-aktox"/"default". list of unattached/unmounted volumes=[mongo-conf]; skipping pod E0822 22:30:30.157465 3439 pod_workers.go:183] Error syncing pod 06ce97cd-68b4-11e6-b129-42010af0011e, skipping: timeout expired waiting for volumes to attach/mount for pod "mongo-rc2-aktox"/"default". list of unattached/unmounted volumes=[mongo-conf] I0822 22:31:05.117374 3439 reconciler.go:180] VerifyControllerAttachedVolume operation started for volume "kubernetes.io/gce-pd/mongo-conf" (spec.Name: "mongo-conf") pod "06ce97cd-68b4-11e6-b129-42010af0011e" (UID: "06ce97cd-68b4-11e6-b129-42010af0011e") E0822 22:31:05.120603 3439 nestedpendingoperations.go:233] Operation for "\"kubernetes.io/gce-pd/mongo-conf\"" failed. No retries permitted until 2016-08-22 22:33:05.120584643 +0000 UTC (durationBeforeRetry 2m0s). Error: Volume "kubernetes.io/gce-pd/mongo-conf" (spec.Name: "mongo-conf") pod "06ce97cd-68b4-11e6-b129-42010af0011e" (UID: "06ce97cd-68b4-11e6-b129-42010af0011e") is not yet attached according to node status. E0822 22:32:45.156181 3439 kubelet.go:1932] Unable to mount volumes for pod "mongo-rc2-aktox_default(06ce97cd-68b4-11e6-b129-42010af0011e)": timeout expired waiting for volumes to attach/mount for pod "mongo-rc2-aktox"/"default". list of unattached/unmounted volumes=[mongo-conf]; skipping pod E0822 22:32:45.156226 3439 pod_workers.go:183] Error syncing pod 06ce97cd-68b4-11e6-b129-42010af0011e, skipping: timeout expired waiting for volumes to attach/mount for pod "mongo-rc2-aktox"/"default". list of unattached/unmounted volumes=[mongo-conf] I0822 22:33:05.156100 3439 reconciler.go:180] VerifyControllerAttachedVolume operation started for volume "kubernetes.io/gce-pd/mongo-conf" (spec.Name: "mongo-conf") pod "06ce97cd-68b4-11e6-b129-42010af0011e" (UID: "06ce97cd-68b4-11e6-b129-42010af0011e") E0822 22:33:05.159285 3439 nestedpendingoperations.go:233] Operation for "\"kubernetes.io/gce-pd/mongo-conf\"" failed. No retries permitted until 2016-08-22 22:35:05.159269631 +0000 UTC (durationBeforeRetry 2m0s). Error: Volume "kubernetes.io/gce-pd/mongo-conf" (spec.Name: "mongo-conf") pod "06ce97cd-68b4-11e6-b129-42010af0011e" (UID: "06ce97cd-68b4-11e6-b129-42010af0011e") is not yet attached according to node status. E0822 22:34:58.157744 3439 kubelet.go:1932] Unable to mount volumes for pod "mongo-rc2-aktox_default(06ce97cd-68b4-11e6-b129-42010af0011e)": timeout expired waiting for volumes to attach/mount for pod "mongo-rc2-aktox"/"default". list of unattached/unmounted volumes=[mongo-conf]; skipping pod E0822 22:34:58.161069 3439 pod_workers.go:183] Error syncing pod 06ce97cd-68b4-11e6-b129-42010af0011e, skipping: timeout expired waiting for volumes to attach/mount for pod "mongo-rc2-aktox"/"default". list of unattached/unmounted volumes=[mongo-conf] I0822 22:35:05.188747 3439 reconciler.go:180] VerifyControllerAttachedVolume operation started for volume "kubernetes.io/gce-pd/mongo-conf" (spec.Name: "mongo-conf") pod "06ce97cd-68b4-11e6-b129-42010af0011e" (UID: "06ce97cd-68b4-11e6-b129-42010af0011e") E0822 22:35:05.191576 3439 nestedpendingoperations.go:233] Operation for "\"kubernetes.io/gce-pd/mongo-conf\"" failed. No retries permitted until 2016-08-22 22:37:05.191557765 +0000 UTC (durationBeforeRetry 2m0s). Error: Volume "kubernetes.io/gce-pd/mongo-conf" (spec.Name: "mongo-conf") pod "06ce97cd-68b4-11e6-b129-42010af0011e" (UID: "06ce97cd-68b4-11e6-b129-42010af0011e") is not yet attached according to node status. </code></pre></div> <p dir="auto"><code class="notranslate">/var/log/kubelet.log</code> for 50 last lines:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ceefour@gke-fatih-small-pool-59881027-h46g:~$ tail -n50 /var/log/kubelet.log I0822 22:35:22.870417 3439 server.go:959] GET /healthz: (28.36µs) 200 [[curl/7.26.0] 127.0.0.1:47687] I0822 22:35:32.239049 3439 reconciler.go:254] MountVolume operation started for volume &quot;kubernetes.io/secret/33f45369-687d-11e6-b129-42010af0011e-default-token-sb5ix&quot; (spec.Name: &quot;default-token-sb5ix&quot;) to pod &quot;33f45369-687d-11e6-b129-42010af0011e&quot; (UID: &quot;33f45369-687d-11e6-b129-42010af0011e&quot;). Volume is already mounted to pod, but remount was requested. I0822 22:35:32.242781 3439 operation_executor.go:740] MountVolume.SetUp succeeded for volume &quot;kubernetes.io/secret/33f45369-687d-11e6-b129-42010af0011e-default-token-sb5ix&quot; (spec.Name: &quot;default-token-sb5ix&quot;) pod &quot;33f45369-687d-11e6-b129-42010af0011e&quot; (UID: &quot;33f45369-687d-11e6-b129-42010af0011e&quot;). I0822 22:35:32.883593 3439 server.go:959] GET /healthz: (42.657µs) 200 [[curl/7.26.0] 127.0.0.1:47694] I0822 22:35:38.160222 3439 reconciler.go:254] MountVolume operation started for volume &quot;kubernetes.io/secret/ad21d245-689f-11e6-b129-42010af0011e-default-token-i0lox&quot; (spec.Name: &quot;default-token-i0lox&quot;) to pod &quot;ad21d245-689f-11e6-b129-42010af0011e&quot; (UID: &quot;ad21d245-689f-11e6-b129-42010af0011e&quot;). Volume is already mounted to pod, but remount was requested. I0822 22:35:38.163717 3439 operation_executor.go:740] MountVolume.SetUp succeeded for volume &quot;kubernetes.io/secret/ad21d245-689f-11e6-b129-42010af0011e-default-token-i0lox&quot; (spec.Name: &quot;default-token-i0lox&quot;) pod &quot;ad21d245-689f-11e6-b129-42010af0011e&quot; (UID: &quot;ad21d245-689f-11e6-b129-42010af0011e&quot;). I0822 22:35:38.537711 3439 server.go:959] GET /healthz: (44.537µs) 200 [[Go-http-client/1.1] 127.0.0.1:47701] I0822 22:35:39.660496 3439 container_manager_linux.go:614] Found 45 PIDs in root, 45 of them are not to be moved I0822 22:35:42.896284 3439 server.go:959] GET /healthz: (38.658µs) 200 [[curl/7.26.0] 127.0.0.1:47705] I0822 22:35:52.910178 3439 server.go:959] GET /healthz: (25.065µs) 200 [[curl/7.26.0] 127.0.0.1:47712] I0822 22:36:02.922869 3439 server.go:959] GET /healthz: (24.963µs) 200 [[curl/7.26.0] 127.0.0.1:47717] I0822 22:36:05.013580 3439 server.go:959] GET /stats/summary/: (6.953162ms) 200 [[Go-http-client/1.1] 10.60.2.3:57402] I0822 22:36:12.935348 3439 server.go:959] GET /healthz: (27.682µs) 200 [[curl/7.26.0] 127.0.0.1:47724] I0822 22:36:22.948215 3439 server.go:959] GET /healthz: (28.114µs) 200 [[curl/7.26.0] 127.0.0.1:47731] I0822 22:36:32.961851 3439 server.go:959] GET /healthz: (44.817µs) 200 [[curl/7.26.0] 127.0.0.1:47738] I0822 22:36:38.537762 3439 server.go:959] GET /healthz: (47.175µs) 200 [[Go-http-client/1.1] 127.0.0.1:47743] I0822 22:36:39.176725 3439 reconciler.go:254] MountVolume operation started for volume &quot;kubernetes.io/secret/ad21d245-689f-11e6-b129-42010af0011e-default-token-i0lox&quot; (spec.Name: &quot;default-token-i0lox&quot;) to pod &quot;ad21d245-689f-11e6-b129-42010af0011e&quot; (UID: &quot;ad21d245-689f-11e6-b129-42010af0011e&quot;). Volume is already mounted to pod, but remount was requested. I0822 22:36:39.189075 3439 operation_executor.go:740] MountVolume.SetUp succeeded for volume &quot;kubernetes.io/secret/ad21d245-689f-11e6-b129-42010af0011e-default-token-i0lox&quot; (spec.Name: &quot;default-token-i0lox&quot;) pod &quot;ad21d245-689f-11e6-b129-42010af0011e&quot; (UID: &quot;ad21d245-689f-11e6-b129-42010af0011e&quot;). I0822 22:36:39.663850 3439 container_manager_linux.go:614] Found 45 PIDs in root, 45 of them are not to be moved I0822 22:36:42.974584 3439 server.go:959] GET /healthz: (40.231µs) 200 [[curl/7.26.0] 127.0.0.1:47746] I0822 22:36:43.184638 3439 reconciler.go:254] MountVolume operation started for volume &quot;kubernetes.io/secret/33f45369-687d-11e6-b129-42010af0011e-default-token-sb5ix&quot; (spec.Name: &quot;default-token-sb5ix&quot;) to pod &quot;33f45369-687d-11e6-b129-42010af0011e&quot; (UID: &quot;33f45369-687d-11e6-b129-42010af0011e&quot;). Volume is already mounted to pod, but remount was requested. I0822 22:36:43.187674 3439 operation_executor.go:740] MountVolume.SetUp succeeded for volume &quot;kubernetes.io/secret/33f45369-687d-11e6-b129-42010af0011e-default-token-sb5ix&quot; (spec.Name: &quot;default-token-sb5ix&quot;) pod &quot;33f45369-687d-11e6-b129-42010af0011e&quot; (UID: &quot;33f45369-687d-11e6-b129-42010af0011e&quot;). I0822 22:36:52.988636 3439 server.go:959] GET /healthz: (40.953µs) 200 [[curl/7.26.0] 127.0.0.1:47754] I0822 22:37:03.003414 3439 server.go:959] GET /healthz: (42.733µs) 200 [[curl/7.26.0] 127.0.0.1:47759] I0822 22:37:05.034193 3439 server.go:959] GET /stats/summary/: (6.947947ms) 200 [[Go-http-client/1.1] 10.60.2.3:57402] I0822 22:37:05.233719 3439 reconciler.go:180] VerifyControllerAttachedVolume operation started for volume &quot;kubernetes.io/gce-pd/mongo-conf&quot; (spec.Name: &quot;mongo-conf&quot;) pod &quot;06ce97cd-68b4-11e6-b129-42010af0011e&quot; (UID: &quot;06ce97cd-68b4-11e6-b129-42010af0011e&quot;) E0822 22:37:05.236650 3439 nestedpendingoperations.go:233] Operation for &quot;\&quot;kubernetes.io/gce-pd/mongo-conf\&quot;&quot; failed. No retries permitted until 2016-08-22 22:39:05.23662061 +0000 UTC (durationBeforeRetry 2m0s). Error: Volume &quot;kubernetes.io/gce-pd/mongo-conf&quot; (spec.Name: &quot;mongo-conf&quot;) pod &quot;06ce97cd-68b4-11e6-b129-42010af0011e&quot; (UID: &quot;06ce97cd-68b4-11e6-b129-42010af0011e&quot;) is not yet attached according to node status. E0822 22:37:09.156182 3439 kubelet.go:1932] Unable to mount volumes for pod &quot;mongo-rc2-aktox_default(06ce97cd-68b4-11e6-b129-42010af0011e)&quot;: timeout expired waiting for volumes to attach/mount for pod &quot;mongo-rc2-aktox&quot;/&quot;default&quot;. list of unattached/unmounted volumes=[mongo-conf]; skipping pod E0822 22:37:09.156242 3439 pod_workers.go:183] Error syncing pod 06ce97cd-68b4-11e6-b129-42010af0011e, skipping: timeout expired waiting for volumes to attach/mount for pod &quot;mongo-rc2-aktox&quot;/&quot;default&quot;. list of unattached/unmounted volumes=[mongo-conf] I0822 22:37:13.015933 3439 server.go:959] GET /healthz: (54.514µs) 200 [[curl/7.26.0] 127.0.0.1:47768] I0822 22:37:23.028881 3439 server.go:959] GET /healthz: (43.187µs) 200 [[curl/7.26.0] 127.0.0.1:47775] I0822 22:37:23.185043 3439 reconciler.go:254] MountVolume operation started for volume &quot;kubernetes.io/secret/06ce97cd-68b4-11e6-b129-42010af0011e-default-token-i0lox&quot; (spec.Name: &quot;default-token-i0lox&quot;) to pod &quot;06ce97cd-68b4-11e6-b129-42010af0011e&quot; (UID: &quot;06ce97cd-68b4-11e6-b129-42010af0011e&quot;). Volume is already mounted to pod, but remount was requested. I0822 22:37:23.188665 3439 operation_executor.go:740] MountVolume.SetUp succeeded for volume &quot;kubernetes.io/secret/06ce97cd-68b4-11e6-b129-42010af0011e-default-token-i0lox&quot; (spec.Name: &quot;default-token-i0lox&quot;) pod &quot;06ce97cd-68b4-11e6-b129-42010af0011e&quot; (UID: &quot;06ce97cd-68b4-11e6-b129-42010af0011e&quot;). I0822 22:37:33.042085 3439 server.go:959] GET /healthz: (42.351µs) 200 [[curl/7.26.0] 127.0.0.1:47784] I0822 22:37:38.537583 3439 server.go:959] GET /healthz: (40.577µs) 200 [[Go-http-client/1.1] 127.0.0.1:47789] I0822 22:37:39.667127 3439 container_manager_linux.go:614] Found 45 PIDs in root, 45 of them are not to be moved I0822 22:37:43.055076 3439 server.go:959] GET /healthz: (26.24µs) 200 [[curl/7.26.0] 127.0.0.1:47792] I0822 22:37:53.067791 3439 server.go:959] GET /healthz: (26.387µs) 200 [[curl/7.26.0] 127.0.0.1:47800] I0822 22:38:03.089970 3439 server.go:959] GET /healthz: (38.445µs) 200 [[curl/7.26.0] 127.0.0.1:47805] I0822 22:38:05.013454 3439 server.go:959] GET /stats/summary/: (7.716171ms) 200 [[Go-http-client/1.1] 10.60.2.3:57402] I0822 22:38:06.174617 3439 reconciler.go:254] MountVolume operation started for volume &quot;kubernetes.io/secret/ad21d245-689f-11e6-b129-42010af0011e-default-token-i0lox&quot; (spec.Name: &quot;default-token-i0lox&quot;) to pod &quot;ad21d245-689f-11e6-b129-42010af0011e&quot; (UID: &quot;ad21d245-689f-11e6-b129-42010af0011e&quot;). Volume is already mounted to pod, but remount was requested. I0822 22:38:06.177284 3439 operation_executor.go:740] MountVolume.SetUp succeeded for volume &quot;kubernetes.io/secret/ad21d245-689f-11e6-b129-42010af0011e-default-token-i0lox&quot; (spec.Name: &quot;default-token-i0lox&quot;) pod &quot;ad21d245-689f-11e6-b129-42010af0011e&quot; (UID: &quot;ad21d245-689f-11e6-b129-42010af0011e&quot;). I0822 22:38:11.184431 3439 reconciler.go:254] MountVolume operation started for volume &quot;kubernetes.io/secret/33f45369-687d-11e6-b129-42010af0011e-default-token-sb5ix&quot; (spec.Name: &quot;default-token-sb5ix&quot;) to pod &quot;33f45369-687d-11e6-b129-42010af0011e&quot; (UID: &quot;33f45369-687d-11e6-b129-42010af0011e&quot;). Volume is already mounted to pod, but remount was requested. I0822 22:38:11.187573 3439 operation_executor.go:740] MountVolume.SetUp succeeded for volume &quot;kubernetes.io/secret/33f45369-687d-11e6-b129-42010af0011e-default-token-sb5ix&quot; (spec.Name: &quot;default-token-sb5ix&quot;) pod &quot;33f45369-687d-11e6-b129-42010af0011e&quot; (UID: &quot;33f45369-687d-11e6-b129-42010af0011e&quot;). I0822 22:38:13.101813 3439 server.go:959] GET /healthz: (35.796µs) 200 [[curl/7.26.0] 127.0.0.1:47814] I0822 22:38:23.122472 3439 server.go:959] GET /healthz: (36.311µs) 200 [[curl/7.26.0] 127.0.0.1:47821] I0822 22:38:33.136366 3439 server.go:959] GET /healthz: (40.312µs) 200 [[curl/7.26.0] 127.0.0.1:47828] I0822 22:38:38.537838 3439 server.go:959] GET /healthz: (44.226µs) 200 [[Go-http-client/1.1] 127.0.0.1:47833] I0822 22:38:39.670329 3439 container_manager_linux.go:614] Found 45 PIDs in root, 45 of them are not to be moved I0822 22:38:43.157960 3439 server.go:959] GET /healthz: (34.945µs) 200 [[curl/7.26.0] 127.0.0.1:47836] ceefour@gke-fatih-small-pool-59881027-h46g:~$ ceefour@gke-fatih-small-pool-59881027-h46g:~$ tail -n50 /var/log/kubelet.log I0822 22:35:38.537711 3439 server.go:959] GET /healthz: (44.537µs) 200 [[Go-http-client/1.1] 127.0.0.1:47701] I0822 22:35:39.660496 3439 container_manager_linux.go:614] Found 45 PIDs in root, 45 of them are not to be moved I0822 22:35:42.896284 3439 server.go:959] GET /healthz: (38.658µs) 200 [[curl/7.26.0] 127.0.0.1:47705] I0822 22:35:52.910178 3439 server.go:959] GET /healthz: (25.065µs) 200 [[curl/7.26.0] 127.0.0.1:47712] I0822 22:36:02.922869 3439 server.go:959] GET /healthz: (24.963µs) 200 [[curl/7.26.0] 127.0.0.1:47717] I0822 22:36:05.013580 3439 server.go:959] GET /stats/summary/: (6.953162ms) 200 [[Go-http-client/1.1] 10.60.2.3:57402] I0822 22:36:12.935348 3439 server.go:959] GET /healthz: (27.682µs) 200 [[curl/7.26.0] 127.0.0.1:47724] I0822 22:36:22.948215 3439 server.go:959] GET /healthz: (28.114µs) 200 [[curl/7.26.0] 127.0.0.1:47731] I0822 22:36:32.961851 3439 server.go:959] GET /healthz: (44.817µs) 200 [[curl/7.26.0] 127.0.0.1:47738] I0822 22:36:38.537762 3439 server.go:959] GET /healthz: (47.175µs) 200 [[Go-http-client/1.1] 127.0.0.1:47743] I0822 22:36:39.176725 3439 reconciler.go:254] MountVolume operation started for volume &quot;kubernetes.io/secret/ad21d245-689f-11e6-b129-42010af0011e-default-token-i0lox&quot; (spec.Name: &quot;default-token-i0lox&quot;) to pod &quot;ad21d245-689f-11e6-b129-42010af0011e&quot; (UID: &quot;ad21d245-689f-11e6-b129-42010af0011e&quot;). Volume is already mounted to pod, but remount was requested. I0822 22:36:39.189075 3439 operation_executor.go:740] MountVolume.SetUp succeeded for volume &quot;kubernetes.io/secret/ad21d245-689f-11e6-b129-42010af0011e-default-token-i0lox&quot; (spec.Name: &quot;default-token-i0lox&quot;) pod &quot;ad21d245-689f-11e6-b129-42010af0011e&quot; (UID: &quot;ad21d245-689f-11e6-b129-42010af0011e&quot;). I0822 22:36:39.663850 3439 container_manager_linux.go:614] Found 45 PIDs in root, 45 of them are not to be moved I0822 22:36:42.974584 3439 server.go:959] GET /healthz: (40.231µs) 200 [[curl/7.26.0] 127.0.0.1:47746] I0822 22:36:43.184638 3439 reconciler.go:254] MountVolume operation started for volume &quot;kubernetes.io/secret/33f45369-687d-11e6-b129-42010af0011e-default-token-sb5ix&quot; (spec.Name: &quot;default-token-sb5ix&quot;) to pod &quot;33f45369-687d-11e6-b129-42010af0011e&quot; (UID: &quot;33f45369-687d-11e6-b129-42010af0011e&quot;). Volume is already mounted to pod, but remount was requested. I0822 22:36:43.187674 3439 operation_executor.go:740] MountVolume.SetUp succeeded for volume &quot;kubernetes.io/secret/33f45369-687d-11e6-b129-42010af0011e-default-token-sb5ix&quot; (spec.Name: &quot;default-token-sb5ix&quot;) pod &quot;33f45369-687d-11e6-b129-42010af0011e&quot; (UID: &quot;33f45369-687d-11e6-b129-42010af0011e&quot;). I0822 22:36:52.988636 3439 server.go:959] GET /healthz: (40.953µs) 200 [[curl/7.26.0] 127.0.0.1:47754] I0822 22:37:03.003414 3439 server.go:959] GET /healthz: (42.733µs) 200 [[curl/7.26.0] 127.0.0.1:47759] I0822 22:37:05.034193 3439 server.go:959] GET /stats/summary/: (6.947947ms) 200 [[Go-http-client/1.1] 10.60.2.3:57402] I0822 22:37:05.233719 3439 reconciler.go:180] VerifyControllerAttachedVolume operation started for volume &quot;kubernetes.io/gce-pd/mongo-conf&quot; (spec.Name: &quot;mongo-conf&quot;) pod &quot;06ce97cd-68b4-11e6-b129-42010af0011e&quot; (UID: &quot;06ce97cd-68b4-11e6-b129-42010af0011e&quot;) E0822 22:37:05.236650 3439 nestedpendingoperations.go:233] Operation for &quot;\&quot;kubernetes.io/gce-pd/mongo-conf\&quot;&quot; failed. No retries permitted until 2016-08-22 22:39:05.23662061 +0000 UTC (durationBeforeRetry 2m0s). Error: Volume &quot;kubernetes.io/gce-pd/mongo-conf&quot; (spec.Name: &quot;mongo-conf&quot;) pod &quot;06ce97cd-68b4-11e6-b129-42010af0011e&quot; (UID: &quot;06ce97cd-68b4-11e6-b129-42010af0011e&quot;) is not yet attached according to node status. E0822 22:37:09.156182 3439 kubelet.go:1932] Unable to mount volumes for pod &quot;mongo-rc2-aktox_default(06ce97cd-68b4-11e6-b129-42010af0011e)&quot;: timeout expired waiting for volumes to attach/mount for pod &quot;mongo-rc2-aktox&quot;/&quot;default&quot;. list of unattached/unmounted volumes=[mongo-conf]; skipping pod E0822 22:37:09.156242 3439 pod_workers.go:183] Error syncing pod 06ce97cd-68b4-11e6-b129-42010af0011e, skipping: timeout expired waiting for volumes to attach/mount for pod &quot;mongo-rc2-aktox&quot;/&quot;default&quot;. list of unattached/unmounted volumes=[mongo-conf] I0822 22:37:13.015933 3439 server.go:959] GET /healthz: (54.514µs) 200 [[curl/7.26.0] 127.0.0.1:47768] I0822 22:37:23.028881 3439 server.go:959] GET /healthz: (43.187µs) 200 [[curl/7.26.0] 127.0.0.1:47775] I0822 22:37:23.185043 3439 reconciler.go:254] MountVolume operation started for volume &quot;kubernetes.io/secret/06ce97cd-68b4-11e6-b129-42010af0011e-default-token-i0lox&quot; (spec.Name: &quot;default-token-i0lox&quot;) to pod &quot;06ce97cd-68b4-11e6-b129-42010af0011e&quot; (UID: &quot;06ce97cd-68b4-11e6-b129-42010af0011e&quot;). Volume is already mounted to pod, but remount was requested. I0822 22:37:23.188665 3439 operation_executor.go:740] MountVolume.SetUp succeeded for volume &quot;kubernetes.io/secret/06ce97cd-68b4-11e6-b129-42010af0011e-default-token-i0lox&quot; (spec.Name: &quot;default-token-i0lox&quot;) pod &quot;06ce97cd-68b4-11e6-b129-42010af0011e&quot; (UID: &quot;06ce97cd-68b4-11e6-b129-42010af0011e&quot;). I0822 22:37:33.042085 3439 server.go:959] GET /healthz: (42.351µs) 200 [[curl/7.26.0] 127.0.0.1:47784] I0822 22:37:38.537583 3439 server.go:959] GET /healthz: (40.577µs) 200 [[Go-http-client/1.1] 127.0.0.1:47789] I0822 22:37:39.667127 3439 container_manager_linux.go:614] Found 45 PIDs in root, 45 of them are not to be moved I0822 22:37:43.055076 3439 server.go:959] GET /healthz: (26.24µs) 200 [[curl/7.26.0] 127.0.0.1:47792] I0822 22:37:53.067791 3439 server.go:959] GET /healthz: (26.387µs) 200 [[curl/7.26.0] 127.0.0.1:47800] I0822 22:38:03.089970 3439 server.go:959] GET /healthz: (38.445µs) 200 [[curl/7.26.0] 127.0.0.1:47805] I0822 22:38:05.013454 3439 server.go:959] GET /stats/summary/: (7.716171ms) 200 [[Go-http-client/1.1] 10.60.2.3:57402] I0822 22:38:06.174617 3439 reconciler.go:254] MountVolume operation started for volume &quot;kubernetes.io/secret/ad21d245-689f-11e6-b129-42010af0011e-default-token-i0lox&quot; (spec.Name: &quot;default-token-i0lox&quot;) to pod &quot;ad21d245-689f-11e6-b129-42010af0011e&quot; (UID: &quot;ad21d245-689f-11e6-b129-42010af0011e&quot;). Volume is already mounted to pod, but remount was requested. I0822 22:38:06.177284 3439 operation_executor.go:740] MountVolume.SetUp succeeded for volume &quot;kubernetes.io/secret/ad21d245-689f-11e6-b129-42010af0011e-default-token-i0lox&quot; (spec.Name: &quot;default-token-i0lox&quot;) pod &quot;ad21d245-689f-11e6-b129-42010af0011e&quot; (UID: &quot;ad21d245-689f-11e6-b129-42010af0011e&quot;). I0822 22:38:11.184431 3439 reconciler.go:254] MountVolume operation started for volume &quot;kubernetes.io/secret/33f45369-687d-11e6-b129-42010af0011e-default-token-sb5ix&quot; (spec.Name: &quot;default-token-sb5ix&quot;) to pod &quot;33f45369-687d-11e6-b129-42010af0011e&quot; (UID: &quot;33f45369-687d-11e6-b129-42010af0011e&quot;). Volume is already mounted to pod, but remount was requested. I0822 22:38:11.187573 3439 operation_executor.go:740] MountVolume.SetUp succeeded for volume &quot;kubernetes.io/secret/33f45369-687d-11e6-b129-42010af0011e-default-token-sb5ix&quot; (spec.Name: &quot;default-token-sb5ix&quot;) pod &quot;33f45369-687d-11e6-b129-42010af0011e&quot; (UID: &quot;33f45369-687d-11e6-b129-42010af0011e&quot;). I0822 22:38:13.101813 3439 server.go:959] GET /healthz: (35.796µs) 200 [[curl/7.26.0] 127.0.0.1:47814] I0822 22:38:23.122472 3439 server.go:959] GET /healthz: (36.311µs) 200 [[curl/7.26.0] 127.0.0.1:47821] I0822 22:38:33.136366 3439 server.go:959] GET /healthz: (40.312µs) 200 [[curl/7.26.0] 127.0.0.1:47828] I0822 22:38:38.537838 3439 server.go:959] GET /healthz: (44.226µs) 200 [[Go-http-client/1.1] 127.0.0.1:47833] I0822 22:38:39.670329 3439 container_manager_linux.go:614] Found 45 PIDs in root, 45 of them are not to be moved I0822 22:38:43.157960 3439 server.go:959] GET /healthz: (34.945µs) 200 [[curl/7.26.0] 127.0.0.1:47836] I0822 22:38:53.169820 3439 server.go:959] GET /healthz: (25µs) 200 [[curl/7.26.0] 127.0.0.1:47843] I0822 22:39:03.181619 3439 server.go:959] GET /healthz: (29.069µs) 200 [[curl/7.26.0] 127.0.0.1:47849] I0822 22:39:05.018297 3439 server.go:959] GET /stats/summary/: (6.900965ms) 200 [[Go-http-client/1.1] 10.60.2.3:57402] I0822 22:39:05.318114 3439 reconciler.go:180] VerifyControllerAttachedVolume operation started for volume &quot;kubernetes.io/gce-pd/mongo-conf&quot; (spec.Name: &quot;mongo-conf&quot;) pod &quot;06ce97cd-68b4-11e6-b129-42010af0011e&quot; (UID: &quot;06ce97cd-68b4-11e6-b129-42010af0011e&quot;) E0822 22:39:05.321046 3439 nestedpendingoperations.go:233] Operation for &quot;\&quot;kubernetes.io/gce-pd/mongo-conf\&quot;&quot; failed. No retries permitted until 2016-08-22 22:41:05.321027505 +0000 UTC (durationBeforeRetry 2m0s). Error: Volume &quot;kubernetes.io/gce-pd/mongo-conf&quot; (spec.Name: &quot;mongo-conf&quot;) pod &quot;06ce97cd-68b4-11e6-b129-42010af0011e&quot; (UID: &quot;06ce97cd-68b4-11e6-b129-42010af0011e&quot;) is not yet attached according to node status. I0822 22:39:13.194669 3439 server.go:959] GET /healthz: (26.614µs) 200 [[curl/7.26.0] 127.0.0.1:47856]"><pre class="notranslate"><code class="notranslate">ceefour@gke-fatih-small-pool-59881027-h46g:~$ tail -n50 /var/log/kubelet.log I0822 22:35:22.870417 3439 server.go:959] GET /healthz: (28.36µs) 200 [[curl/7.26.0] 127.0.0.1:47687] I0822 22:35:32.239049 3439 reconciler.go:254] MountVolume operation started for volume "kubernetes.io/secret/33f45369-687d-11e6-b129-42010af0011e-default-token-sb5ix" (spec.Name: "default-token-sb5ix") to pod "33f45369-687d-11e6-b129-42010af0011e" (UID: "33f45369-687d-11e6-b129-42010af0011e"). Volume is already mounted to pod, but remount was requested. I0822 22:35:32.242781 3439 operation_executor.go:740] MountVolume.SetUp succeeded for volume "kubernetes.io/secret/33f45369-687d-11e6-b129-42010af0011e-default-token-sb5ix" (spec.Name: "default-token-sb5ix") pod "33f45369-687d-11e6-b129-42010af0011e" (UID: "33f45369-687d-11e6-b129-42010af0011e"). I0822 22:35:32.883593 3439 server.go:959] GET /healthz: (42.657µs) 200 [[curl/7.26.0] 127.0.0.1:47694] I0822 22:35:38.160222 3439 reconciler.go:254] MountVolume operation started for volume "kubernetes.io/secret/ad21d245-689f-11e6-b129-42010af0011e-default-token-i0lox" (spec.Name: "default-token-i0lox") to pod "ad21d245-689f-11e6-b129-42010af0011e" (UID: "ad21d245-689f-11e6-b129-42010af0011e"). Volume is already mounted to pod, but remount was requested. I0822 22:35:38.163717 3439 operation_executor.go:740] MountVolume.SetUp succeeded for volume "kubernetes.io/secret/ad21d245-689f-11e6-b129-42010af0011e-default-token-i0lox" (spec.Name: "default-token-i0lox") pod "ad21d245-689f-11e6-b129-42010af0011e" (UID: "ad21d245-689f-11e6-b129-42010af0011e"). I0822 22:35:38.537711 3439 server.go:959] GET /healthz: (44.537µs) 200 [[Go-http-client/1.1] 127.0.0.1:47701] I0822 22:35:39.660496 3439 container_manager_linux.go:614] Found 45 PIDs in root, 45 of them are not to be moved I0822 22:35:42.896284 3439 server.go:959] GET /healthz: (38.658µs) 200 [[curl/7.26.0] 127.0.0.1:47705] I0822 22:35:52.910178 3439 server.go:959] GET /healthz: (25.065µs) 200 [[curl/7.26.0] 127.0.0.1:47712] I0822 22:36:02.922869 3439 server.go:959] GET /healthz: (24.963µs) 200 [[curl/7.26.0] 127.0.0.1:47717] I0822 22:36:05.013580 3439 server.go:959] GET /stats/summary/: (6.953162ms) 200 [[Go-http-client/1.1] 10.60.2.3:57402] I0822 22:36:12.935348 3439 server.go:959] GET /healthz: (27.682µs) 200 [[curl/7.26.0] 127.0.0.1:47724] I0822 22:36:22.948215 3439 server.go:959] GET /healthz: (28.114µs) 200 [[curl/7.26.0] 127.0.0.1:47731] I0822 22:36:32.961851 3439 server.go:959] GET /healthz: (44.817µs) 200 [[curl/7.26.0] 127.0.0.1:47738] I0822 22:36:38.537762 3439 server.go:959] GET /healthz: (47.175µs) 200 [[Go-http-client/1.1] 127.0.0.1:47743] I0822 22:36:39.176725 3439 reconciler.go:254] MountVolume operation started for volume "kubernetes.io/secret/ad21d245-689f-11e6-b129-42010af0011e-default-token-i0lox" (spec.Name: "default-token-i0lox") to pod "ad21d245-689f-11e6-b129-42010af0011e" (UID: "ad21d245-689f-11e6-b129-42010af0011e"). Volume is already mounted to pod, but remount was requested. I0822 22:36:39.189075 3439 operation_executor.go:740] MountVolume.SetUp succeeded for volume "kubernetes.io/secret/ad21d245-689f-11e6-b129-42010af0011e-default-token-i0lox" (spec.Name: "default-token-i0lox") pod "ad21d245-689f-11e6-b129-42010af0011e" (UID: "ad21d245-689f-11e6-b129-42010af0011e"). I0822 22:36:39.663850 3439 container_manager_linux.go:614] Found 45 PIDs in root, 45 of them are not to be moved I0822 22:36:42.974584 3439 server.go:959] GET /healthz: (40.231µs) 200 [[curl/7.26.0] 127.0.0.1:47746] I0822 22:36:43.184638 3439 reconciler.go:254] MountVolume operation started for volume "kubernetes.io/secret/33f45369-687d-11e6-b129-42010af0011e-default-token-sb5ix" (spec.Name: "default-token-sb5ix") to pod "33f45369-687d-11e6-b129-42010af0011e" (UID: "33f45369-687d-11e6-b129-42010af0011e"). Volume is already mounted to pod, but remount was requested. I0822 22:36:43.187674 3439 operation_executor.go:740] MountVolume.SetUp succeeded for volume "kubernetes.io/secret/33f45369-687d-11e6-b129-42010af0011e-default-token-sb5ix" (spec.Name: "default-token-sb5ix") pod "33f45369-687d-11e6-b129-42010af0011e" (UID: "33f45369-687d-11e6-b129-42010af0011e"). I0822 22:36:52.988636 3439 server.go:959] GET /healthz: (40.953µs) 200 [[curl/7.26.0] 127.0.0.1:47754] I0822 22:37:03.003414 3439 server.go:959] GET /healthz: (42.733µs) 200 [[curl/7.26.0] 127.0.0.1:47759] I0822 22:37:05.034193 3439 server.go:959] GET /stats/summary/: (6.947947ms) 200 [[Go-http-client/1.1] 10.60.2.3:57402] I0822 22:37:05.233719 3439 reconciler.go:180] VerifyControllerAttachedVolume operation started for volume "kubernetes.io/gce-pd/mongo-conf" (spec.Name: "mongo-conf") pod "06ce97cd-68b4-11e6-b129-42010af0011e" (UID: "06ce97cd-68b4-11e6-b129-42010af0011e") E0822 22:37:05.236650 3439 nestedpendingoperations.go:233] Operation for "\"kubernetes.io/gce-pd/mongo-conf\"" failed. No retries permitted until 2016-08-22 22:39:05.23662061 +0000 UTC (durationBeforeRetry 2m0s). Error: Volume "kubernetes.io/gce-pd/mongo-conf" (spec.Name: "mongo-conf") pod "06ce97cd-68b4-11e6-b129-42010af0011e" (UID: "06ce97cd-68b4-11e6-b129-42010af0011e") is not yet attached according to node status. E0822 22:37:09.156182 3439 kubelet.go:1932] Unable to mount volumes for pod "mongo-rc2-aktox_default(06ce97cd-68b4-11e6-b129-42010af0011e)": timeout expired waiting for volumes to attach/mount for pod "mongo-rc2-aktox"/"default". list of unattached/unmounted volumes=[mongo-conf]; skipping pod E0822 22:37:09.156242 3439 pod_workers.go:183] Error syncing pod 06ce97cd-68b4-11e6-b129-42010af0011e, skipping: timeout expired waiting for volumes to attach/mount for pod "mongo-rc2-aktox"/"default". list of unattached/unmounted volumes=[mongo-conf] I0822 22:37:13.015933 3439 server.go:959] GET /healthz: (54.514µs) 200 [[curl/7.26.0] 127.0.0.1:47768] I0822 22:37:23.028881 3439 server.go:959] GET /healthz: (43.187µs) 200 [[curl/7.26.0] 127.0.0.1:47775] I0822 22:37:23.185043 3439 reconciler.go:254] MountVolume operation started for volume "kubernetes.io/secret/06ce97cd-68b4-11e6-b129-42010af0011e-default-token-i0lox" (spec.Name: "default-token-i0lox") to pod "06ce97cd-68b4-11e6-b129-42010af0011e" (UID: "06ce97cd-68b4-11e6-b129-42010af0011e"). Volume is already mounted to pod, but remount was requested. I0822 22:37:23.188665 3439 operation_executor.go:740] MountVolume.SetUp succeeded for volume "kubernetes.io/secret/06ce97cd-68b4-11e6-b129-42010af0011e-default-token-i0lox" (spec.Name: "default-token-i0lox") pod "06ce97cd-68b4-11e6-b129-42010af0011e" (UID: "06ce97cd-68b4-11e6-b129-42010af0011e"). I0822 22:37:33.042085 3439 server.go:959] GET /healthz: (42.351µs) 200 [[curl/7.26.0] 127.0.0.1:47784] I0822 22:37:38.537583 3439 server.go:959] GET /healthz: (40.577µs) 200 [[Go-http-client/1.1] 127.0.0.1:47789] I0822 22:37:39.667127 3439 container_manager_linux.go:614] Found 45 PIDs in root, 45 of them are not to be moved I0822 22:37:43.055076 3439 server.go:959] GET /healthz: (26.24µs) 200 [[curl/7.26.0] 127.0.0.1:47792] I0822 22:37:53.067791 3439 server.go:959] GET /healthz: (26.387µs) 200 [[curl/7.26.0] 127.0.0.1:47800] I0822 22:38:03.089970 3439 server.go:959] GET /healthz: (38.445µs) 200 [[curl/7.26.0] 127.0.0.1:47805] I0822 22:38:05.013454 3439 server.go:959] GET /stats/summary/: (7.716171ms) 200 [[Go-http-client/1.1] 10.60.2.3:57402] I0822 22:38:06.174617 3439 reconciler.go:254] MountVolume operation started for volume "kubernetes.io/secret/ad21d245-689f-11e6-b129-42010af0011e-default-token-i0lox" (spec.Name: "default-token-i0lox") to pod "ad21d245-689f-11e6-b129-42010af0011e" (UID: "ad21d245-689f-11e6-b129-42010af0011e"). Volume is already mounted to pod, but remount was requested. I0822 22:38:06.177284 3439 operation_executor.go:740] MountVolume.SetUp succeeded for volume "kubernetes.io/secret/ad21d245-689f-11e6-b129-42010af0011e-default-token-i0lox" (spec.Name: "default-token-i0lox") pod "ad21d245-689f-11e6-b129-42010af0011e" (UID: "ad21d245-689f-11e6-b129-42010af0011e"). I0822 22:38:11.184431 3439 reconciler.go:254] MountVolume operation started for volume "kubernetes.io/secret/33f45369-687d-11e6-b129-42010af0011e-default-token-sb5ix" (spec.Name: "default-token-sb5ix") to pod "33f45369-687d-11e6-b129-42010af0011e" (UID: "33f45369-687d-11e6-b129-42010af0011e"). Volume is already mounted to pod, but remount was requested. I0822 22:38:11.187573 3439 operation_executor.go:740] MountVolume.SetUp succeeded for volume "kubernetes.io/secret/33f45369-687d-11e6-b129-42010af0011e-default-token-sb5ix" (spec.Name: "default-token-sb5ix") pod "33f45369-687d-11e6-b129-42010af0011e" (UID: "33f45369-687d-11e6-b129-42010af0011e"). I0822 22:38:13.101813 3439 server.go:959] GET /healthz: (35.796µs) 200 [[curl/7.26.0] 127.0.0.1:47814] I0822 22:38:23.122472 3439 server.go:959] GET /healthz: (36.311µs) 200 [[curl/7.26.0] 127.0.0.1:47821] I0822 22:38:33.136366 3439 server.go:959] GET /healthz: (40.312µs) 200 [[curl/7.26.0] 127.0.0.1:47828] I0822 22:38:38.537838 3439 server.go:959] GET /healthz: (44.226µs) 200 [[Go-http-client/1.1] 127.0.0.1:47833] I0822 22:38:39.670329 3439 container_manager_linux.go:614] Found 45 PIDs in root, 45 of them are not to be moved I0822 22:38:43.157960 3439 server.go:959] GET /healthz: (34.945µs) 200 [[curl/7.26.0] 127.0.0.1:47836] ceefour@gke-fatih-small-pool-59881027-h46g:~$ ceefour@gke-fatih-small-pool-59881027-h46g:~$ tail -n50 /var/log/kubelet.log I0822 22:35:38.537711 3439 server.go:959] GET /healthz: (44.537µs) 200 [[Go-http-client/1.1] 127.0.0.1:47701] I0822 22:35:39.660496 3439 container_manager_linux.go:614] Found 45 PIDs in root, 45 of them are not to be moved I0822 22:35:42.896284 3439 server.go:959] GET /healthz: (38.658µs) 200 [[curl/7.26.0] 127.0.0.1:47705] I0822 22:35:52.910178 3439 server.go:959] GET /healthz: (25.065µs) 200 [[curl/7.26.0] 127.0.0.1:47712] I0822 22:36:02.922869 3439 server.go:959] GET /healthz: (24.963µs) 200 [[curl/7.26.0] 127.0.0.1:47717] I0822 22:36:05.013580 3439 server.go:959] GET /stats/summary/: (6.953162ms) 200 [[Go-http-client/1.1] 10.60.2.3:57402] I0822 22:36:12.935348 3439 server.go:959] GET /healthz: (27.682µs) 200 [[curl/7.26.0] 127.0.0.1:47724] I0822 22:36:22.948215 3439 server.go:959] GET /healthz: (28.114µs) 200 [[curl/7.26.0] 127.0.0.1:47731] I0822 22:36:32.961851 3439 server.go:959] GET /healthz: (44.817µs) 200 [[curl/7.26.0] 127.0.0.1:47738] I0822 22:36:38.537762 3439 server.go:959] GET /healthz: (47.175µs) 200 [[Go-http-client/1.1] 127.0.0.1:47743] I0822 22:36:39.176725 3439 reconciler.go:254] MountVolume operation started for volume "kubernetes.io/secret/ad21d245-689f-11e6-b129-42010af0011e-default-token-i0lox" (spec.Name: "default-token-i0lox") to pod "ad21d245-689f-11e6-b129-42010af0011e" (UID: "ad21d245-689f-11e6-b129-42010af0011e"). Volume is already mounted to pod, but remount was requested. I0822 22:36:39.189075 3439 operation_executor.go:740] MountVolume.SetUp succeeded for volume "kubernetes.io/secret/ad21d245-689f-11e6-b129-42010af0011e-default-token-i0lox" (spec.Name: "default-token-i0lox") pod "ad21d245-689f-11e6-b129-42010af0011e" (UID: "ad21d245-689f-11e6-b129-42010af0011e"). I0822 22:36:39.663850 3439 container_manager_linux.go:614] Found 45 PIDs in root, 45 of them are not to be moved I0822 22:36:42.974584 3439 server.go:959] GET /healthz: (40.231µs) 200 [[curl/7.26.0] 127.0.0.1:47746] I0822 22:36:43.184638 3439 reconciler.go:254] MountVolume operation started for volume "kubernetes.io/secret/33f45369-687d-11e6-b129-42010af0011e-default-token-sb5ix" (spec.Name: "default-token-sb5ix") to pod "33f45369-687d-11e6-b129-42010af0011e" (UID: "33f45369-687d-11e6-b129-42010af0011e"). Volume is already mounted to pod, but remount was requested. I0822 22:36:43.187674 3439 operation_executor.go:740] MountVolume.SetUp succeeded for volume "kubernetes.io/secret/33f45369-687d-11e6-b129-42010af0011e-default-token-sb5ix" (spec.Name: "default-token-sb5ix") pod "33f45369-687d-11e6-b129-42010af0011e" (UID: "33f45369-687d-11e6-b129-42010af0011e"). I0822 22:36:52.988636 3439 server.go:959] GET /healthz: (40.953µs) 200 [[curl/7.26.0] 127.0.0.1:47754] I0822 22:37:03.003414 3439 server.go:959] GET /healthz: (42.733µs) 200 [[curl/7.26.0] 127.0.0.1:47759] I0822 22:37:05.034193 3439 server.go:959] GET /stats/summary/: (6.947947ms) 200 [[Go-http-client/1.1] 10.60.2.3:57402] I0822 22:37:05.233719 3439 reconciler.go:180] VerifyControllerAttachedVolume operation started for volume "kubernetes.io/gce-pd/mongo-conf" (spec.Name: "mongo-conf") pod "06ce97cd-68b4-11e6-b129-42010af0011e" (UID: "06ce97cd-68b4-11e6-b129-42010af0011e") E0822 22:37:05.236650 3439 nestedpendingoperations.go:233] Operation for "\"kubernetes.io/gce-pd/mongo-conf\"" failed. No retries permitted until 2016-08-22 22:39:05.23662061 +0000 UTC (durationBeforeRetry 2m0s). Error: Volume "kubernetes.io/gce-pd/mongo-conf" (spec.Name: "mongo-conf") pod "06ce97cd-68b4-11e6-b129-42010af0011e" (UID: "06ce97cd-68b4-11e6-b129-42010af0011e") is not yet attached according to node status. E0822 22:37:09.156182 3439 kubelet.go:1932] Unable to mount volumes for pod "mongo-rc2-aktox_default(06ce97cd-68b4-11e6-b129-42010af0011e)": timeout expired waiting for volumes to attach/mount for pod "mongo-rc2-aktox"/"default". list of unattached/unmounted volumes=[mongo-conf]; skipping pod E0822 22:37:09.156242 3439 pod_workers.go:183] Error syncing pod 06ce97cd-68b4-11e6-b129-42010af0011e, skipping: timeout expired waiting for volumes to attach/mount for pod "mongo-rc2-aktox"/"default". list of unattached/unmounted volumes=[mongo-conf] I0822 22:37:13.015933 3439 server.go:959] GET /healthz: (54.514µs) 200 [[curl/7.26.0] 127.0.0.1:47768] I0822 22:37:23.028881 3439 server.go:959] GET /healthz: (43.187µs) 200 [[curl/7.26.0] 127.0.0.1:47775] I0822 22:37:23.185043 3439 reconciler.go:254] MountVolume operation started for volume "kubernetes.io/secret/06ce97cd-68b4-11e6-b129-42010af0011e-default-token-i0lox" (spec.Name: "default-token-i0lox") to pod "06ce97cd-68b4-11e6-b129-42010af0011e" (UID: "06ce97cd-68b4-11e6-b129-42010af0011e"). Volume is already mounted to pod, but remount was requested. I0822 22:37:23.188665 3439 operation_executor.go:740] MountVolume.SetUp succeeded for volume "kubernetes.io/secret/06ce97cd-68b4-11e6-b129-42010af0011e-default-token-i0lox" (spec.Name: "default-token-i0lox") pod "06ce97cd-68b4-11e6-b129-42010af0011e" (UID: "06ce97cd-68b4-11e6-b129-42010af0011e"). I0822 22:37:33.042085 3439 server.go:959] GET /healthz: (42.351µs) 200 [[curl/7.26.0] 127.0.0.1:47784] I0822 22:37:38.537583 3439 server.go:959] GET /healthz: (40.577µs) 200 [[Go-http-client/1.1] 127.0.0.1:47789] I0822 22:37:39.667127 3439 container_manager_linux.go:614] Found 45 PIDs in root, 45 of them are not to be moved I0822 22:37:43.055076 3439 server.go:959] GET /healthz: (26.24µs) 200 [[curl/7.26.0] 127.0.0.1:47792] I0822 22:37:53.067791 3439 server.go:959] GET /healthz: (26.387µs) 200 [[curl/7.26.0] 127.0.0.1:47800] I0822 22:38:03.089970 3439 server.go:959] GET /healthz: (38.445µs) 200 [[curl/7.26.0] 127.0.0.1:47805] I0822 22:38:05.013454 3439 server.go:959] GET /stats/summary/: (7.716171ms) 200 [[Go-http-client/1.1] 10.60.2.3:57402] I0822 22:38:06.174617 3439 reconciler.go:254] MountVolume operation started for volume "kubernetes.io/secret/ad21d245-689f-11e6-b129-42010af0011e-default-token-i0lox" (spec.Name: "default-token-i0lox") to pod "ad21d245-689f-11e6-b129-42010af0011e" (UID: "ad21d245-689f-11e6-b129-42010af0011e"). Volume is already mounted to pod, but remount was requested. I0822 22:38:06.177284 3439 operation_executor.go:740] MountVolume.SetUp succeeded for volume "kubernetes.io/secret/ad21d245-689f-11e6-b129-42010af0011e-default-token-i0lox" (spec.Name: "default-token-i0lox") pod "ad21d245-689f-11e6-b129-42010af0011e" (UID: "ad21d245-689f-11e6-b129-42010af0011e"). I0822 22:38:11.184431 3439 reconciler.go:254] MountVolume operation started for volume "kubernetes.io/secret/33f45369-687d-11e6-b129-42010af0011e-default-token-sb5ix" (spec.Name: "default-token-sb5ix") to pod "33f45369-687d-11e6-b129-42010af0011e" (UID: "33f45369-687d-11e6-b129-42010af0011e"). Volume is already mounted to pod, but remount was requested. I0822 22:38:11.187573 3439 operation_executor.go:740] MountVolume.SetUp succeeded for volume "kubernetes.io/secret/33f45369-687d-11e6-b129-42010af0011e-default-token-sb5ix" (spec.Name: "default-token-sb5ix") pod "33f45369-687d-11e6-b129-42010af0011e" (UID: "33f45369-687d-11e6-b129-42010af0011e"). I0822 22:38:13.101813 3439 server.go:959] GET /healthz: (35.796µs) 200 [[curl/7.26.0] 127.0.0.1:47814] I0822 22:38:23.122472 3439 server.go:959] GET /healthz: (36.311µs) 200 [[curl/7.26.0] 127.0.0.1:47821] I0822 22:38:33.136366 3439 server.go:959] GET /healthz: (40.312µs) 200 [[curl/7.26.0] 127.0.0.1:47828] I0822 22:38:38.537838 3439 server.go:959] GET /healthz: (44.226µs) 200 [[Go-http-client/1.1] 127.0.0.1:47833] I0822 22:38:39.670329 3439 container_manager_linux.go:614] Found 45 PIDs in root, 45 of them are not to be moved I0822 22:38:43.157960 3439 server.go:959] GET /healthz: (34.945µs) 200 [[curl/7.26.0] 127.0.0.1:47836] I0822 22:38:53.169820 3439 server.go:959] GET /healthz: (25µs) 200 [[curl/7.26.0] 127.0.0.1:47843] I0822 22:39:03.181619 3439 server.go:959] GET /healthz: (29.069µs) 200 [[curl/7.26.0] 127.0.0.1:47849] I0822 22:39:05.018297 3439 server.go:959] GET /stats/summary/: (6.900965ms) 200 [[Go-http-client/1.1] 10.60.2.3:57402] I0822 22:39:05.318114 3439 reconciler.go:180] VerifyControllerAttachedVolume operation started for volume "kubernetes.io/gce-pd/mongo-conf" (spec.Name: "mongo-conf") pod "06ce97cd-68b4-11e6-b129-42010af0011e" (UID: "06ce97cd-68b4-11e6-b129-42010af0011e") E0822 22:39:05.321046 3439 nestedpendingoperations.go:233] Operation for "\"kubernetes.io/gce-pd/mongo-conf\"" failed. No retries permitted until 2016-08-22 22:41:05.321027505 +0000 UTC (durationBeforeRetry 2m0s). Error: Volume "kubernetes.io/gce-pd/mongo-conf" (spec.Name: "mongo-conf") pod "06ce97cd-68b4-11e6-b129-42010af0011e" (UID: "06ce97cd-68b4-11e6-b129-42010af0011e") is not yet attached according to node status. I0822 22:39:13.194669 3439 server.go:959] GET /healthz: (26.614µs) 200 [[curl/7.26.0] 127.0.0.1:47856] </code></pre></div>
<p dir="auto">Url</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="https://htmlpreview.github.io/?https://github.com/GoogleCloudPlatform/kubernetes/v1.0.1/docs/api-reference/definitions.html#_v1_pod"><pre class="notranslate"><code class="notranslate">https://htmlpreview.github.io/?https://github.com/GoogleCloudPlatform/kubernetes/v1.0.1/docs/api-reference/definitions.html#_v1_pod </code></pre></div> <p dir="auto">Documentation Page</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="http://kubernetes.io/v1.0/docs/user-guide/pods.html"><pre class="notranslate"><code class="notranslate">http://kubernetes.io/v1.0/docs/user-guide/pods.html </code></pre></div> <p dir="auto">Section API Object</p>
0
<p dir="auto">Hi, I'm trying to use <em>getAllDisplays()</em> API under Windows and I have a very strange behaviour.</p> <p dir="auto">Code:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const screen = require('electron').screen const arr = screen.getAllDisplays() console.log(arr)"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">screen</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'electron'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">screen</span> <span class="pl-k">const</span> <span class="pl-s1">arr</span> <span class="pl-c1">=</span> <span class="pl-s1">screen</span><span class="pl-kos">.</span><span class="pl-en">getAllDisplays</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">arr</span><span class="pl-kos">)</span></pre></div> <p dir="auto">Use case:</p> <ol dir="auto"> <li>Start the electron app</li> <li>Call the above code</li> <li>I get the monitor array in the output</li> <li>I change the resolution/disable external monitor/etc</li> <li>I re run the code of above (<strong>without relaunching</strong> the electron app)</li> <li>I obtain the same output of the point 3), nothing changed. (in some case I get duplicate monitors)</li> </ol> <p dir="auto">Under OSX there's no problem.<br> I guess this problem is related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="111205513" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/3075" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/3075/hovercard" href="https://github.com/electron/electron/issues/3075">#3075</a>.</p> <p dir="auto">In conclusion, work with the screen API under Windows is basically impossible.</p> <ul dir="auto"> <li>Electron version: 0.37.4</li> <li>Operating system: Windows</li> </ul>
<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>5.0.x</li> </ul> </li> <li><strong>Operating System:</strong> <ul dir="auto"> <li>Windows</li> </ul> </li> <li><strong>Last Known Working Electron version:</strong> <ul dir="auto"> <li>4.2.6</li> </ul> </li> </ul> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">The PE "time date stamp" compiled into electron.exe is the ~"unix epoch timestamp" when electron was compiled (specifically, when the .exe was generated by the compiler/linker).</p> <h3 dir="auto">Actual Behavior</h3> <p dir="auto">Starting in Electron 5.0.0-beta.1 and to latest 5.x, the PE timestamp embedded in the electron.exe final build output seems to be some kind of pre-generated number, possibly based on my checkout date (when doing custom builds)? It seems that the latest 4.x build (4.2.6) might work correctly, so this maybe was introduced in 5.x. I have no idea if it's due to chrome or electron build system specifically?</p> <p dir="auto">Here is a partial list of some historical builds I had on my machine (some also come from official electron builds). Pay special attention to the more recent builds' timestamps:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="E.g., for /F %i in ('dir electron.exe/a/s/b') do @dumpbin /headers %i | findstr /C:&quot;time date stamp&quot; &amp;&amp; echo %i 56AC4993 time date stamp Fri Jan 29 21:26:43 2016 electron-0.36.7\electron.exe 57F60AB8 time date stamp Thu Oct 6 01:26:32 2016 electron143\electron.exe 58753971 time date stamp Tue Jan 10 11:43:45 2017 electron1414\electron.exe 58878D77 time date stamp Tue Jan 24 09:23:03 2017 electron150\electron.exe 5898AEF2 time date stamp Mon Feb 6 09:14:26 2017 electron151\electron.exe 58992869 time date stamp Mon Feb 6 17:52:41 2017 electron160\electron.exe 58DEADD3 time date stamp Fri Mar 31 12:28:19 2017 electron165\electron.exe 5939BCEF time date stamp Thu Jun 8 14:09:03 2017 electron173\electron.exe 59DE5A37 time date stamp Wed Oct 11 10:51:51 2017 electron1615\electron.exe 5A21F071 time date stamp Fri Dec 1 16:14:41 2017 electron1823\electron.exe 5A21F078 time date stamp Fri Dec 1 16:14:48 2017 e182\electron.exe 5A665B0A time date stamp Mon Jan 22 13:43:38 2018 electron1711\electron.exe 5A66A39B time date stamp Mon Jan 22 18:53:15 2018 electron1824\electron.exe 5A7213D6 time date stamp Wed Jan 31 11:07:02 2018 electron1825\electron.exe 5A722031 time date stamp Wed Jan 31 11:59:45 2018 electron1712\electron.exe 5A7A2A0A time date stamp Tue Feb 6 14:19:54 2018 electron182-release\electron.exe 5ABAAD0C time date stamp Tue Mar 27 13:43:56 2018 electron200\electron.exe 5BDB4BCC time date stamp Thu Nov 1 11:54:04 2018 electron306\electron.exe 5BF32835 time date stamp Mon Nov 19 13:16:37 2018 electron3010-64\electron.exe 5BFE35B4 time date stamp Tue Nov 27 22:29:08 2018 electron3010-32\electron.exe 5C1B39D3 time date stamp Wed Dec 19 22:42:27 2018 e3013-32\electron.exe 5C1B8D30 time date stamp Thu Dec 20 04:38:08 2018 e3013-64\electron.exe 5C1BED9A time date stamp Thu Dec 20 11:29:30 2018 e400\electron.exe 5C342E50 time date stamp Mon Jan 7 21:00:00 2019 e500-b1\electron.exe 5C61F745 time date stamp Mon Feb 11 14:29:25 2019 e3015-64-rc.1\electron.exe 5C737650 time date stamp Sun Feb 24 21:00:00 2019 e500-b4\electron.exe 5C82EFC5 time date stamp Fri Mar 8 14:42:13 2019 e3016-32-rc.1\electron.exe 5C832872 time date stamp Fri Mar 8 18:44:02 2019 e3016-64-rc.1\electron.exe 5C91C8D0 time date stamp Tue Mar 19 22:00:00 2019 e500-b6\electron.exe 5C931A50 time date stamp Wed Mar 20 22:00:00 2019 e5-old\electron.exe 5C9B0350 time date stamp Tue Mar 26 22:00:00 2019 e500-b7\electron.exe 5CB6B2D0 time date stamp Tue Apr 16 22:00:00 2019 e5-64\electron.exe 5CC53350 time date stamp Sat Apr 27 22:00:00 2019 e500-64-rc.1\electron.exe 5CC53350 time date stamp Sat Apr 27 22:00:00 2019 e500-64-rc.2\electron.exe 5CC53350 time date stamp Sat Apr 27 22:00:00 2019 e500-64-rc.3\electron.exe 5CC684D0 time date stamp Sun Apr 28 22:00:00 2019 e5-32-working\electron.exe 5CE4D750 time date stamp Tue May 21 22:00:00 2019 e502-32-rc.1\electron.exe 5CE4D750 time date stamp Tue May 21 22:00:00 2019 e502-64-rc.1\electron.exe 5CE4D750 time date stamp Tue May 21 22:00:00 2019 e502-64-rc.2\electron.exe 5CE4D750 time date stamp Tue May 21 22:00:00 2019 e502-64-rc.3\electron.exe 5CE4D750 time date stamp Tue May 21 22:00:00 2019 e502-64-rc.5\electron.exe 5D12FBD0 time date stamp Tue Jun 25 22:00:00 2019 electron506\electron.exe 5D1A879B time date stamp Mon Jul 1 15:22:19 2019 e426\electron.exe 5D22CDD0 time date stamp Sun Jul 7 22:00:00 2019 e506-32\electron.exe 5D22CDD0 time date stamp Sun Jul 7 22:00:00 2019 e506-64\electron.exe 5D22CDD0 time date stamp Sun Jul 7 22:00:00 2019 e506\electron.exe 5D241F50 time date stamp Mon Jul 8 22:00:00 2019 e506b-64\electron.exe"><pre class="notranslate"><code class="notranslate">E.g., for /F %i in ('dir electron.exe/a/s/b') do @dumpbin /headers %i | findstr /C:"time date stamp" &amp;&amp; echo %i 56AC4993 time date stamp Fri Jan 29 21:26:43 2016 electron-0.36.7\electron.exe 57F60AB8 time date stamp Thu Oct 6 01:26:32 2016 electron143\electron.exe 58753971 time date stamp Tue Jan 10 11:43:45 2017 electron1414\electron.exe 58878D77 time date stamp Tue Jan 24 09:23:03 2017 electron150\electron.exe 5898AEF2 time date stamp Mon Feb 6 09:14:26 2017 electron151\electron.exe 58992869 time date stamp Mon Feb 6 17:52:41 2017 electron160\electron.exe 58DEADD3 time date stamp Fri Mar 31 12:28:19 2017 electron165\electron.exe 5939BCEF time date stamp Thu Jun 8 14:09:03 2017 electron173\electron.exe 59DE5A37 time date stamp Wed Oct 11 10:51:51 2017 electron1615\electron.exe 5A21F071 time date stamp Fri Dec 1 16:14:41 2017 electron1823\electron.exe 5A21F078 time date stamp Fri Dec 1 16:14:48 2017 e182\electron.exe 5A665B0A time date stamp Mon Jan 22 13:43:38 2018 electron1711\electron.exe 5A66A39B time date stamp Mon Jan 22 18:53:15 2018 electron1824\electron.exe 5A7213D6 time date stamp Wed Jan 31 11:07:02 2018 electron1825\electron.exe 5A722031 time date stamp Wed Jan 31 11:59:45 2018 electron1712\electron.exe 5A7A2A0A time date stamp Tue Feb 6 14:19:54 2018 electron182-release\electron.exe 5ABAAD0C time date stamp Tue Mar 27 13:43:56 2018 electron200\electron.exe 5BDB4BCC time date stamp Thu Nov 1 11:54:04 2018 electron306\electron.exe 5BF32835 time date stamp Mon Nov 19 13:16:37 2018 electron3010-64\electron.exe 5BFE35B4 time date stamp Tue Nov 27 22:29:08 2018 electron3010-32\electron.exe 5C1B39D3 time date stamp Wed Dec 19 22:42:27 2018 e3013-32\electron.exe 5C1B8D30 time date stamp Thu Dec 20 04:38:08 2018 e3013-64\electron.exe 5C1BED9A time date stamp Thu Dec 20 11:29:30 2018 e400\electron.exe 5C342E50 time date stamp Mon Jan 7 21:00:00 2019 e500-b1\electron.exe 5C61F745 time date stamp Mon Feb 11 14:29:25 2019 e3015-64-rc.1\electron.exe 5C737650 time date stamp Sun Feb 24 21:00:00 2019 e500-b4\electron.exe 5C82EFC5 time date stamp Fri Mar 8 14:42:13 2019 e3016-32-rc.1\electron.exe 5C832872 time date stamp Fri Mar 8 18:44:02 2019 e3016-64-rc.1\electron.exe 5C91C8D0 time date stamp Tue Mar 19 22:00:00 2019 e500-b6\electron.exe 5C931A50 time date stamp Wed Mar 20 22:00:00 2019 e5-old\electron.exe 5C9B0350 time date stamp Tue Mar 26 22:00:00 2019 e500-b7\electron.exe 5CB6B2D0 time date stamp Tue Apr 16 22:00:00 2019 e5-64\electron.exe 5CC53350 time date stamp Sat Apr 27 22:00:00 2019 e500-64-rc.1\electron.exe 5CC53350 time date stamp Sat Apr 27 22:00:00 2019 e500-64-rc.2\electron.exe 5CC53350 time date stamp Sat Apr 27 22:00:00 2019 e500-64-rc.3\electron.exe 5CC684D0 time date stamp Sun Apr 28 22:00:00 2019 e5-32-working\electron.exe 5CE4D750 time date stamp Tue May 21 22:00:00 2019 e502-32-rc.1\electron.exe 5CE4D750 time date stamp Tue May 21 22:00:00 2019 e502-64-rc.1\electron.exe 5CE4D750 time date stamp Tue May 21 22:00:00 2019 e502-64-rc.2\electron.exe 5CE4D750 time date stamp Tue May 21 22:00:00 2019 e502-64-rc.3\electron.exe 5CE4D750 time date stamp Tue May 21 22:00:00 2019 e502-64-rc.5\electron.exe 5D12FBD0 time date stamp Tue Jun 25 22:00:00 2019 electron506\electron.exe 5D1A879B time date stamp Mon Jul 1 15:22:19 2019 e426\electron.exe 5D22CDD0 time date stamp Sun Jul 7 22:00:00 2019 e506-32\electron.exe 5D22CDD0 time date stamp Sun Jul 7 22:00:00 2019 e506-64\electron.exe 5D22CDD0 time date stamp Sun Jul 7 22:00:00 2019 e506\electron.exe 5D241F50 time date stamp Mon Jul 8 22:00:00 2019 e506b-64\electron.exe </code></pre></div> <p dir="auto">Strangely, all the electron 5 builds have a "time" of exactly 22:00:00 (except outside DST where it has 21:00:00). The dates vary from build to build. HOWEVER, if I check out a build, build it, then a week later make changes and rebuild the same checkout, the date stays the same. For example, all the e500 and e502 builds above have the same date. This is despite:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="05/31/2019 11:14 AM 99,663,168 e502-64-rc.1\electron.exe 06/06/2019 03:32 PM 99,663,168 e502-64-rc.2\electron.exe 06/06/2019 04:27 PM 99,663,168 e502-64-rc.3\electron.exe 06/13/2019 03:49 PM 99,663,680 e502-64-rc.5\electron.exe"><pre class="notranslate"><code class="notranslate">05/31/2019 11:14 AM 99,663,168 e502-64-rc.1\electron.exe 06/06/2019 03:32 PM 99,663,168 e502-64-rc.2\electron.exe 06/06/2019 04:27 PM 99,663,168 e502-64-rc.3\electron.exe 06/13/2019 03:49 PM 99,663,680 e502-64-rc.5\electron.exe </code></pre></div> <p dir="auto">The actual compile time being very different (over a couple weeks). It seems that when I update the exe, it reuses some old pre-generated timestamp. Additionally, if I delete electron.exe and rebuild, I still get the old timestamp (not sure if incremental linking would be a thing there, but at the very least, deleting just the .exe was not enough to produce a new build timestamp).</p> <h3 dir="auto">To Reproduce</h3> <p dir="auto">Check out and build Electron 5 on Windows. Observe that the PE timestamp (dumpbin /headers) has an exact minute/second of 00:00, which is weird. If you wait a day or longer, and rebuild, the time/date stamp will be identical, even though the day has changed.</p> <h3 dir="auto">Additional Information</h3> <p dir="auto">Why this is important to us: When we build Electron, we store symbols for each build of Electron so that we can investigate crash dumps and the like. In Windows, symbols/dumps use the PE image timedatestamp+sizeofimage as a "key" to uniquely identify every build. .dmp files specifically include this key so that debuggers can find the correct .exe/.dll and from there find the associated .pdb file. Because of this issue, the "key" is no longer unique and is being reused between Electron builds. This causes our PE symbol store to be overwritten with the wrong files and so older PDB files become orphaned and unusable. End result: This means we can't properly debug crashes.</p> <p dir="auto">We also prefer if possible to not do a full checkout+rebuild of Electron (as that takes a significant amount of time) and we're usually rebuilding due to fixing bugs/security issues (small changes that are very fast to make and recompile). Also, if we do more than one build in a day (since the build timestamps seem to be quantized to "day"), then we get trashed symbols even if we do have separate clean checkouts.</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: 18917 Windows Terminal version (if applicable): 0.2.1715.0 AntiVirus: Trend Micro PC-Cillin 2019 15.0.1231"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 18917 Windows Terminal version (if applicable): 0.2.1715.0 AntiVirus: Trend Micro PC-Cillin 2019 15.0.1231 </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Open up Windows Terminal</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Nothing happened, just as normal terminal.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">conhost.exe was marked as <code class="notranslate">HEU_FALCONTroj.Win32.Gen.XXBM100FF005R0001</code> and got removed by antivirus.<br> WindowsTerminal.exe and conhost.exe were stopped becase of unauthorized change.</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: 0.3.2171.0 Additional Software: Ubuntu WSL1"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 10.0.18362.239 Windows Terminal version: 0.3.2171.0 Additional Software: Ubuntu WSL1 </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Unknown, happened on first launch after update to v0.3</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Open an Ubuntu WSL1-Tab</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">Open an Ubuntu WSL1-Tab and immediately closing it</p>
0
<p dir="auto">System information</p> <p dir="auto">Have I written custom code (as opposed to using a stock example script provided in TensorFlow): yes<br> OS Platform and Distribution (e.g., Linux Ubuntu 16.04): 20.04<br> I have implemented a classification model , which has Batchnormalization layers into it. While training the model , i used <code class="notranslate">tf.keras.layers.BatchNormalization</code> layer for training. Then manually extracted the bn weights (gamma, beta, mean , var) from checkpoint file and called the bn using <code class="notranslate">tf.nn.batch_normalization</code> layer using above statistics for inference. I observed a drop in testing accuracy (~75%) as compared to the scenario where i load the weights in the model using keras itself model.load_weights(chkpnt_file) (~92%).<br> Though if i replace the <code class="notranslate">tf.nn.batch_normalization</code> call to keras bn layer call by calling set_weights function , both the cases gived 0.0 diff, which apprently led me to believe that there is diff in both the calls while the input and bn_weights are exactly same. epsilon is also same.</p> <p dir="auto">Standalone code to reproduce the issue<br> Please refer to this colab notebook(<a href="https://colab.research.google.com/drive/1nysYyCR5Ay_jkPlh1WD9A1Mf01eVvhMu" rel="nofollow">https://colab.research.google.com/drive/1nysYyCR5Ay_jkPlh1WD9A1Mf01eVvhMu</a>? usp=sharing) for a small example. Here the error is coming to be a margin of 10^-3 which theoretically shouldn't be there.</p>
<p dir="auto">Hi Everyone,</p> <p dir="auto">It seems TimeDistributed wrapper forces a single shape on data unlike Recurrent layers. To reuse the Dense layer you need to create 2 TimeDistributed layers that reference the same Dense layer, otherwise you get a shape error. I am not entirely sure this behavior is desired since it duplicates the weights in the network. Here is a minimal example that should illustrate this behavior:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#Breaks import keras.layers as L shared=L.TimeDistributed(L.Dense(1)) inp1=L.Input((2,1)) inp2=L.Input((3,1)) hidden1=shared(inp1) hidden2=shared(inp2)"><pre class="notranslate"><code class="notranslate">#Breaks import keras.layers as L shared=L.TimeDistributed(L.Dense(1)) inp1=L.Input((2,1)) inp2=L.Input((3,1)) hidden1=shared(inp1) hidden2=shared(inp2) </code></pre></div> <p dir="auto">Here is the error:</p> <blockquote> <p dir="auto">ValueError: Input 0 is incompatible with layer time_distributed_19: expected shape=(None, 2, 1), found shape=(None, 3, 1)</p> </blockquote> <p dir="auto">As you can see Keras 'remembered the shape of the inp1 and threw an error when found mismatch</p> <p dir="auto">This on the other hand works fine:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#Works but duplicates the share layer weights and unnecessarily consumes memory: shared=(L.Dense(1)) inp1=L.Input((2,1)) inp2=L.Input((3,1)) hidden1=L.TimeDistributed(shared)(inp1) hidden2=L.TimeDistributed(shared)(inp2)"><pre class="notranslate"><code class="notranslate">#Works but duplicates the share layer weights and unnecessarily consumes memory: shared=(L.Dense(1)) inp1=L.Input((2,1)) inp2=L.Input((3,1)) hidden1=L.TimeDistributed(shared)(inp1) hidden2=L.TimeDistributed(shared)(inp2) </code></pre></div> <p dir="auto">Now the same logic but for the Recurrent layer works without any issue even with the wrapper :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#Works without layer duplication shared=L.Bidirectional(L.GRU(1)) inp1=L.Input((2,1)) inp2=L.Input((3,1)) hidden1=shared(inp1) hidden2=shared(inp2)"><pre class="notranslate"><code class="notranslate">#Works without layer duplication shared=L.Bidirectional(L.GRU(1)) inp1=L.Input((2,1)) inp2=L.Input((3,1)) hidden1=shared(inp1) hidden2=shared(inp2) </code></pre></div> <p dir="auto">Please let me know your thoughts or if I should provide more detail.</p> <p dir="auto">Thanks,<br> Tim</p> <ul dir="auto"> <li> <p dir="auto">[ x] Check that you are up-to-date with the master branch of Keras. You can update with:<br> pip install git+git://github.com/fchollet/keras.git --upgrade --no-deps</p> </li> <li> <p dir="auto">[ x] If running on TensorFlow, check that you are up-to-date with the latest version. The installation instructions can be found <a href="https://www.tensorflow.org/get_started/os_setup" rel="nofollow">here</a>.</p> </li> <li> <p dir="auto">[x ] If running on Theano, check that you are up-to-date with the master branch of Theano. You can update with:<br> pip install git+git://github.com/Theano/Theano.git --upgrade --no-deps</p> </li> <li> <p dir="auto">[x ] Provide a link to a GitHub Gist of a Python script that can reproduce your issue (or just copy the script here if it is short).</p> </li> </ul>
0
<p dir="auto">The docstring for <code class="notranslate">convert</code> is wonderfully explicit about providing details about the underlying assumptions in many cases, but I've found one that isn't yet covered. <code class="notranslate">convert(T, x)</code> has the behavior that if <code class="notranslate">x</code> already has type <code class="notranslate">T</code>, we just return <code class="notranslate">x</code>. But for AbstractArrays, things get more complicated:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; A = rand(3,5) 3×5 Array{Float64,2}: 0.324103 0.45017 0.469432 0.382722 0.241098 0.336333 0.481648 0.165303 0.616973 0.0452947 0.567737 0.964775 0.82846 0.300232 0.140285 julia&gt; pointer(A) Ptr{Float64} @0x00007fad96e33ba0 julia&gt; pointer(convert(Array, A)) Ptr{Float64} @0x00007fad96e33ba0 julia&gt; S = view(A, :, :) 3×5 SubArray{Float64,2,Array{Float64,2},Tuple{Colon,Colon},true}: 0.324103 0.45017 0.469432 0.382722 0.241098 0.336333 0.481648 0.165303 0.616973 0.0452947 0.567737 0.964775 0.82846 0.300232 0.140285 julia&gt; pointer(convert(Array, S)) Ptr{Float64} @0x00007fad970d8e20"><pre class="notranslate">julia<span class="pl-k">&gt;</span> A <span class="pl-k">=</span> <span class="pl-c1">rand</span>(<span class="pl-c1">3</span>,<span class="pl-c1">5</span>) <span class="pl-c1">3</span><span class="pl-k">×</span><span class="pl-c1">5</span> Array{Float64,<span class="pl-c1">2</span>}<span class="pl-k">:</span> <span class="pl-c1">0.324103</span> <span class="pl-c1">0.45017</span> <span class="pl-c1">0.469432</span> <span class="pl-c1">0.382722</span> <span class="pl-c1">0.241098</span> <span class="pl-c1">0.336333</span> <span class="pl-c1">0.481648</span> <span class="pl-c1">0.165303</span> <span class="pl-c1">0.616973</span> <span class="pl-c1">0.0452947</span> <span class="pl-c1">0.567737</span> <span class="pl-c1">0.964775</span> <span class="pl-c1">0.82846</span> <span class="pl-c1">0.300232</span> <span class="pl-c1">0.140285</span> julia<span class="pl-k">&gt;</span> <span class="pl-c1">pointer</span>(A) Ptr{Float64} @<span class="pl-c1">0x00007fad96e33ba0</span> julia<span class="pl-k">&gt;</span> <span class="pl-c1">pointer</span>(<span class="pl-c1">convert</span>(Array, A)) Ptr{Float64} @<span class="pl-c1">0x00007fad96e33ba0</span> julia<span class="pl-k">&gt;</span> S <span class="pl-k">=</span> <span class="pl-c1">view</span>(A, :, :) <span class="pl-c1">3</span><span class="pl-k">×</span><span class="pl-c1">5</span> SubArray{Float64,<span class="pl-c1">2</span>,Array{Float64,<span class="pl-c1">2</span>},Tuple{Colon,Colon},<span class="pl-c1">true</span>}<span class="pl-k">:</span> <span class="pl-c1">0.324103</span> <span class="pl-c1">0.45017</span> <span class="pl-c1">0.469432</span> <span class="pl-c1">0.382722</span> <span class="pl-c1">0.241098</span> <span class="pl-c1">0.336333</span> <span class="pl-c1">0.481648</span> <span class="pl-c1">0.165303</span> <span class="pl-c1">0.616973</span> <span class="pl-c1">0.0452947</span> <span class="pl-c1">0.567737</span> <span class="pl-c1">0.964775</span> <span class="pl-c1">0.82846</span> <span class="pl-c1">0.300232</span> <span class="pl-c1">0.140285</span> julia<span class="pl-k">&gt;</span> <span class="pl-c1">pointer</span>(<span class="pl-c1">convert</span>(Array, S)) Ptr{Float64} @<span class="pl-c1">0x00007fad970d8e20</span></pre></div> <p dir="auto">In the first case we didn't copy, in the second we did. Often there is no choice but to copy, for example if we had defined <code class="notranslate">S = view(A, 1:2, 1:3)</code>; however, in cases like <code class="notranslate">view(A, :, :)</code> it would be possible to return the original without making a copy (and it wouldn't violate type-stability).</p> <p dir="auto">An even more intermediate case comes from array types like</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="struct MyArray{T,N} &lt;: AbstractArray{T,N} data::Array{T,N} end"><pre class="notranslate"><span class="pl-k">struct</span> MyArray{T,N} <span class="pl-k">&lt;:</span> <span class="pl-c1">AbstractArray{T,N}</span> data<span class="pl-k">::</span><span class="pl-c1">Array{T,N}</span> <span class="pl-k">end</span></pre></div> <p dir="auto">For this type, <code class="notranslate">convert(Array, A::MyArray)</code> could <em>always</em> return <code class="notranslate">A.data</code> directly. But is this advisable? Or should it be a copy any time <code class="notranslate">typeof(A) != T</code>?</p>
<p dir="auto">Consider:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function foo(x) y = convert(Vector{Float64},x) y[1] = 10.0 return y end julia&gt; x = [1,2,3] 3-element Array{Int64,1}: 1 2 3 julia&gt; foo(x) 3-element Array{Float64,1}: 10.0 2.0 3.0 julia&gt; x 3-element Array{Int64,1}: 1 2 3 julia&gt; x = [1.,2.,3.] 3-element Array{Float64,1}: 1.0 2.0 3.0 julia&gt; foo(x) 3-element Array{Float64,1}: 10.0 2.0 3.0 julia&gt; x 3-element Array{Float64,1}: 10.0 2.0 3.0"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">foo</span>(x) y <span class="pl-k">=</span> <span class="pl-c1">convert</span>(Vector{Float64},x) y[<span class="pl-c1">1</span>] <span class="pl-k">=</span> <span class="pl-c1">10.0</span> <span class="pl-k">return</span> y <span class="pl-k">end</span> julia<span class="pl-k">&gt;</span> x <span class="pl-k">=</span> [<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>] <span class="pl-c1">3</span><span class="pl-k">-</span>element Array{Int64,<span class="pl-c1">1</span>}<span class="pl-k">:</span> <span class="pl-c1">1</span> <span class="pl-c1">2</span> <span class="pl-c1">3</span> julia<span class="pl-k">&gt;</span> <span class="pl-c1">foo</span>(x) <span class="pl-c1">3</span><span class="pl-k">-</span>element Array{Float64,<span class="pl-c1">1</span>}<span class="pl-k">:</span> <span class="pl-c1">10.0</span> <span class="pl-c1">2.0</span> <span class="pl-c1">3.0</span> julia<span class="pl-k">&gt;</span> x <span class="pl-c1">3</span><span class="pl-k">-</span>element Array{Int64,<span class="pl-c1">1</span>}<span class="pl-k">:</span> <span class="pl-c1">1</span> <span class="pl-c1">2</span> <span class="pl-c1">3</span> julia<span class="pl-k">&gt;</span> x <span class="pl-k">=</span> [<span class="pl-c1">1.</span>,<span class="pl-c1">2.</span>,<span class="pl-c1">3.</span>] <span class="pl-c1">3</span><span class="pl-k">-</span>element Array{Float64,<span class="pl-c1">1</span>}<span class="pl-k">:</span> <span class="pl-c1">1.0</span> <span class="pl-c1">2.0</span> <span class="pl-c1">3.0</span> julia<span class="pl-k">&gt;</span> <span class="pl-c1">foo</span>(x) <span class="pl-c1">3</span><span class="pl-k">-</span>element Array{Float64,<span class="pl-c1">1</span>}<span class="pl-k">:</span> <span class="pl-c1">10.0</span> <span class="pl-c1">2.0</span> <span class="pl-c1">3.0</span> julia<span class="pl-k">&gt;</span> x <span class="pl-c1">3</span><span class="pl-k">-</span>element Array{Float64,<span class="pl-c1">1</span>}<span class="pl-k">:</span> <span class="pl-c1">10.0</span> <span class="pl-c1">2.0</span> <span class="pl-c1">3.0</span></pre></div> <p dir="auto">The input is modified in one case, and not the other, which is in the realms of "scary". One (The?) solution is to always do a copy, even if the type matches, for mutable types.</p>
1
<h2 dir="auto">Question</h2> <p dir="auto">When using mybatis3.4.x for query. It will invoke PreparedStatementHandler.query, it's code is :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" public &lt;E&gt; List&lt;E&gt; query(Statement statement, ResultHandler resultHandler) throws SQLException { PreparedStatement ps = (PreparedStatement) statement; ps.execute(); return resultSetHandler.&lt;E&gt; handleResultSets(ps); }"><pre class="notranslate"><code class="notranslate"> public &lt;E&gt; List&lt;E&gt; query(Statement statement, ResultHandler resultHandler) throws SQLException { PreparedStatement ps = (PreparedStatement) statement; ps.execute(); return resultSetHandler.&lt;E&gt; handleResultSets(ps); } </code></pre></div> <p dir="auto">It will invoke the PreparedStatement.execute() not the PreparedStatement.executeQuery(), so it can't invoke the ShardingPrepareStatement.executeQuery() too.<br> So How Can i invoke的executeQuery() when use Mybatis?</p> <p dir="auto">Thanks a lot!</p>
<h2 dir="auto">Bug Report</h2> <p dir="auto">I open two ShardingSphere-Proxy, they share the same zookeeper and MySQL. When i execute Scaling distsql, didn't get the expected results, seem both proxy tryLock failed.</p> <p dir="auto">Related class is <code class="notranslate">PipelineJobExecutor</code>,</p> <h3 dir="auto">Which version of ShardingSphere did you use?</h3> <p dir="auto">master <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/apache/shardingsphere/commit/5839a53f73e677e97ef169282ea69eb162834ddb/hovercard" href="https://github.com/apache/shardingsphere/commit/5839a53f73e677e97ef169282ea69eb162834ddb"><tt>5839a53</tt></a></p> <h3 dir="auto">Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?</h3> <p dir="auto">ShardingSphere-Proxy</p> <h3 dir="auto">Expected behavior</h3> <p dir="auto">One of the Proxy will get the lock.</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">None of them get the lock.</p> <h3 dir="auto">Reason analyze (If you can)</h3> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/101622833/168204170-3a61578c-97aa-4155-b0cf-3beec99a99c0.png"><img width="910" alt="image" src="https://user-images.githubusercontent.com/101622833/168204170-3a61578c-97aa-4155-b0cf-3beec99a99c0.png" style="max-width: 100%;"></a></p> <p dir="auto">Maybe the problem is <code class="notranslate">isAckOK</code> at acquire, but i'm not sure, because debug may affects the lock</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" private boolean acquire(final String lockName, final long timeout) { long consumeTime = 0; String currentInstanceId = getCurrentInstanceId(); do { boolean isLocked = lockService.tryLock(lockName, TimeoutMilliseconds.DEFAULT_REGISTRY); consumeTime += TimeoutMilliseconds.DEFAULT_REGISTRY; if (isLocked) { lockedInstances.add(currentInstanceId); if (isAckOK(timeout - consumeTime)) { return true; } else { lockedInstances.remove(currentInstanceId); return false; } } } while (timeout &gt; consumeTime); log.debug(&quot;inner try lock acquire timeout, lockName={}&quot;, lockName); return false; }"><pre class="notranslate"><code class="notranslate"> private boolean acquire(final String lockName, final long timeout) { long consumeTime = 0; String currentInstanceId = getCurrentInstanceId(); do { boolean isLocked = lockService.tryLock(lockName, TimeoutMilliseconds.DEFAULT_REGISTRY); consumeTime += TimeoutMilliseconds.DEFAULT_REGISTRY; if (isLocked) { lockedInstances.add(currentInstanceId); if (isAckOK(timeout - consumeTime)) { return true; } else { lockedInstances.remove(currentInstanceId); return false; } } } while (timeout &gt; consumeTime); log.debug("inner try lock acquire timeout, lockName={}", lockName); return false; } </code></pre></div> <h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.</h3> <h4 dir="auto">Step 1</h4> <p dir="auto">Prepare environment</p> <ol dir="auto"> <li>zookeeper: 3.8</li> <li>MySQL: 8.0</li> </ol> <p dir="auto">docker command</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="docker run --name mysql8 -e MYSQL_ROOT_PASSWORD=root -p 3306:3306 -e TZ=Asia/Shanghai -d mysql:8 --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci docker run --name test-zk -p 2181:2181 -d zookeeper:3.8"><pre class="notranslate"><code class="notranslate">docker run --name mysql8 -e MYSQL_ROOT_PASSWORD=root -p 3306:3306 -e TZ=Asia/Shanghai -d mysql:8 --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci docker run --name test-zk -p 2181:2181 -d zookeeper:3.8 </code></pre></div> <p dir="auto">then init database</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="CREATE DATABASE ds_0; CREATE DATABASE ds_1; CREATE DATABASE ds_2; CREATE DATABASE ds_3; CREATE DATABASE ds_4;"><pre class="notranslate"><code class="notranslate">CREATE DATABASE ds_0; CREATE DATABASE ds_1; CREATE DATABASE ds_2; CREATE DATABASE ds_3; CREATE DATABASE ds_4; </code></pre></div> <p dir="auto">ShardingSphere-Proxy config</p> <p dir="auto">server.yaml</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="mode: type: Cluster repository: type: ZooKeeper props: namespace: governance_ds server-lists: localhost:2181 retryIntervalMilliseconds: 500 timeToLiveSeconds: 60 maxRetries: 3 operationTimeoutMilliseconds: 500 overwrite: false rules: - !AUTHORITY users: - root@%:root - sharding@:sharding provider: type: ALL_PERMITTED - !SQL_PARSER sqlCommentParseEnabled: true sqlStatementCache: initialCapacity: 2000 maximumSize: 65535 concurrencyLevel: 4 parseTreeCache: initialCapacity: 128 maximumSize: 1024 concurrencyLevel: 4 props: max-connections-size-per-query: 1 kernel-executor-size: 16 # Infinite by default. proxy-frontend-flush-threshold: 128 # The default value is 128. proxy-hint-enabled: false sql-show: false check-table-metadata-enabled: false show-process-list-enabled: false # Proxy backend query fetch size. A larger value may increase the memory usage of ShardingSphere Proxy. # The default value is -1, which means set the minimum value for different JDBC drivers. proxy-backend-query-fetch-size: -1 check-duplicate-table-enabled: false proxy-frontend-executor-size: 0 # Proxy frontend executor size. The default value is 0, which means let Netty decide. # Available options of proxy backend executor suitable: OLAP(default), OLTP. The OLTP option may reduce time cost of writing packets to client, but it may increase the latency of SQL execution # and block other clients if client connections are more than `proxy-frontend-executor-size`, especially executing slow SQL. proxy-backend-executor-suitable: OLAP proxy-frontend-max-connections: 0 # Less than or equal to 0 means no limitation. sql-federation-enabled: false # Available proxy backend driver type: JDBC (default), ExperimentalVertx proxy-backend-driver-type: JDBC proxy-default-port: 3307 # Proxy default port."><pre class="notranslate"><code class="notranslate">mode: type: Cluster repository: type: ZooKeeper props: namespace: governance_ds server-lists: localhost:2181 retryIntervalMilliseconds: 500 timeToLiveSeconds: 60 maxRetries: 3 operationTimeoutMilliseconds: 500 overwrite: false rules: - !AUTHORITY users: - root@%:root - sharding@:sharding provider: type: ALL_PERMITTED - !SQL_PARSER sqlCommentParseEnabled: true sqlStatementCache: initialCapacity: 2000 maximumSize: 65535 concurrencyLevel: 4 parseTreeCache: initialCapacity: 128 maximumSize: 1024 concurrencyLevel: 4 props: max-connections-size-per-query: 1 kernel-executor-size: 16 # Infinite by default. proxy-frontend-flush-threshold: 128 # The default value is 128. proxy-hint-enabled: false sql-show: false check-table-metadata-enabled: false show-process-list-enabled: false # Proxy backend query fetch size. A larger value may increase the memory usage of ShardingSphere Proxy. # The default value is -1, which means set the minimum value for different JDBC drivers. proxy-backend-query-fetch-size: -1 check-duplicate-table-enabled: false proxy-frontend-executor-size: 0 # Proxy frontend executor size. The default value is 0, which means let Netty decide. # Available options of proxy backend executor suitable: OLAP(default), OLTP. The OLTP option may reduce time cost of writing packets to client, but it may increase the latency of SQL execution # and block other clients if client connections are more than `proxy-frontend-executor-size`, especially executing slow SQL. proxy-backend-executor-suitable: OLAP proxy-frontend-max-connections: 0 # Less than or equal to 0 means no limitation. sql-federation-enabled: false # Available proxy backend driver type: JDBC (default), ExperimentalVertx proxy-backend-driver-type: JDBC proxy-default-port: 3307 # Proxy default port. </code></pre></div> <p dir="auto">config-sharding.yaml</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="databaseName: sharding_db dataSources: ds_0: url: jdbc:mysql://127.0.0.1:3306/ds_0?serverTimezone=UTC&amp;useSSL=false username: root password: root maxPoolSize: 5 minPoolSize: 1 ds_1: url: jdbc:mysql://127.0.0.1:3306/ds_1?serverTimezone=UTC&amp;useSSL=false username: root password: root maxPoolSize: 5 minPoolSize: 1 ds_2: url: jdbc:mysql://127.0.0.1:3306/ds_2?serverTimezone=UTC&amp;useSSL=false username: root password: root maxPoolSize: 5 minPoolSize: 1 ds_3: url: jdbc:mysql://127.0.0.1:3306/ds_3?serverTimezone=UTC&amp;useSSL=false username: root password: root maxPoolSize: 5 minPoolSize: 1 ds_4: url: jdbc:mysql://127.0.0.1:3306/ds_4?serverTimezone=UTC&amp;useSSL=false username: root password: root maxPoolSize: 5 minPoolSize: 1 rules: - !SHARDING tables: t_order: actualDataNodes: ds_${0..1}.t_order_${0..1} tableStrategy: standard: shardingColumn: order_id shardingAlgorithmName: t_order_inline keyGenerateStrategy: column: order_id keyGeneratorName: snowflake defaultDatabaseStrategy: standard: shardingColumn: user_id shardingAlgorithmName: database_inline defaultTableStrategy: none: shardingAlgorithms: database_inline: type: INLINE props: algorithm-expression: ds_${user_id % 2} t_order_inline: type: INLINE props: algorithm-expression: t_order_${order_id % 2} keyGenerators: snowflake: type: SNOWFLAKE scalingName: default_scaling scaling: default_scaling: input: workerThread: 40 batchSize: 1000 output: workerThread: 40 batchSize: 1000 streamChannel: type: MEMORY props: block-queue-size: 10000 completionDetector: type: IDLE props: incremental-task-idle-seconds-threshold: 1800 dataConsistencyChecker: type: DATA_MATCH props: chunk-size: 1000"><pre class="notranslate"><code class="notranslate">databaseName: sharding_db dataSources: ds_0: url: jdbc:mysql://127.0.0.1:3306/ds_0?serverTimezone=UTC&amp;useSSL=false username: root password: root maxPoolSize: 5 minPoolSize: 1 ds_1: url: jdbc:mysql://127.0.0.1:3306/ds_1?serverTimezone=UTC&amp;useSSL=false username: root password: root maxPoolSize: 5 minPoolSize: 1 ds_2: url: jdbc:mysql://127.0.0.1:3306/ds_2?serverTimezone=UTC&amp;useSSL=false username: root password: root maxPoolSize: 5 minPoolSize: 1 ds_3: url: jdbc:mysql://127.0.0.1:3306/ds_3?serverTimezone=UTC&amp;useSSL=false username: root password: root maxPoolSize: 5 minPoolSize: 1 ds_4: url: jdbc:mysql://127.0.0.1:3306/ds_4?serverTimezone=UTC&amp;useSSL=false username: root password: root maxPoolSize: 5 minPoolSize: 1 rules: - !SHARDING tables: t_order: actualDataNodes: ds_${0..1}.t_order_${0..1} tableStrategy: standard: shardingColumn: order_id shardingAlgorithmName: t_order_inline keyGenerateStrategy: column: order_id keyGeneratorName: snowflake defaultDatabaseStrategy: standard: shardingColumn: user_id shardingAlgorithmName: database_inline defaultTableStrategy: none: shardingAlgorithms: database_inline: type: INLINE props: algorithm-expression: ds_${user_id % 2} t_order_inline: type: INLINE props: algorithm-expression: t_order_${order_id % 2} keyGenerators: snowflake: type: SNOWFLAKE scalingName: default_scaling scaling: default_scaling: input: workerThread: 40 batchSize: 1000 output: workerThread: 40 batchSize: 1000 streamChannel: type: MEMORY props: block-queue-size: 10000 completionDetector: type: IDLE props: incremental-task-idle-seconds-threshold: 1800 dataConsistencyChecker: type: DATA_MATCH props: chunk-size: 1000 </code></pre></div> <h4 dir="auto">Step 2</h4> <p dir="auto">Start both proxy, wait them start success.</p> <h4 dir="auto">Step 3</h4> <p dir="auto">Connect to proxy, <code class="notranslate">mysql -h 127.0.0.1 -u root -p -P3308</code></p> <p dir="auto">execute scaling dist sql</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="mysql&gt; use sharding_db; Database changed mysql&gt; CREATE TABLE t_order (order_id int NOT NULL,user_id int NOT NULL,status varchar(50) DEFAULT NULL,PRIMARY KEY (order_id)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; Query OK, 0 rows affected (0.17 sec) mysql&gt; INSERT INTO t_order(order_id, user_id, status) VALUES (1, 1, 'SUCCESS'),(2, 2, 'FAIL'),(3, 3, 'FAIL'),(4, 4, 'FAIL'); Query OK, 4 rows affected (0.46 sec) mysql&gt; ALTER SHARDING TABLE RULE t_order(RESOURCES(ds_2, ds_3, ds_4),SHARDING_COLUMN=order_id,TYPE(NAME=hash_mod,PROPERTIES(&quot;sharding-count&quot;=6)),KEY_GENERATE_STRATEGY(COLUMN=order_id,TYPE(NAME=snowflake))); Query OK, 0 rows affected (0.90 sec) mysql&gt; show scaling list; +----------------------------------------------+---------+----------------------+--------+---------------------+-----------+ | id | tables | sharding_total_count | active | create_time | stop_time | +----------------------------------------------+---------+----------------------+--------+---------------------+-----------+ | 0130317c30317c3054317c7368617264696e675f6462 | t_order | 2 | true | 2022-05-13 10:29:57 | NULL | +----------------------------------------------+---------+----------------------+--------+---------------------+-----------+ 1 row in set (0.25 sec) mysql&gt; show scaling status 0130317c30317c3054317c7368617264696e675f6462; +------+-------------+--------+--------+-------------------------------+--------------------------+ | item | data_source | status | active | inventory_finished_percentage | incremental_idle_seconds | +------+-------------+--------+--------+-------------------------------+--------------------------+ | 0 | | | | | | | 1 | | | | | | +------+-------------+--------+--------+-------------------------------+--------------------------+ 2 rows in set (0.03 sec)"><pre class="notranslate"><code class="notranslate">mysql&gt; use sharding_db; Database changed mysql&gt; CREATE TABLE t_order (order_id int NOT NULL,user_id int NOT NULL,status varchar(50) DEFAULT NULL,PRIMARY KEY (order_id)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; Query OK, 0 rows affected (0.17 sec) mysql&gt; INSERT INTO t_order(order_id, user_id, status) VALUES (1, 1, 'SUCCESS'),(2, 2, 'FAIL'),(3, 3, 'FAIL'),(4, 4, 'FAIL'); Query OK, 4 rows affected (0.46 sec) mysql&gt; ALTER SHARDING TABLE RULE t_order(RESOURCES(ds_2, ds_3, ds_4),SHARDING_COLUMN=order_id,TYPE(NAME=hash_mod,PROPERTIES("sharding-count"=6)),KEY_GENERATE_STRATEGY(COLUMN=order_id,TYPE(NAME=snowflake))); Query OK, 0 rows affected (0.90 sec) mysql&gt; show scaling list; +----------------------------------------------+---------+----------------------+--------+---------------------+-----------+ | id | tables | sharding_total_count | active | create_time | stop_time | +----------------------------------------------+---------+----------------------+--------+---------------------+-----------+ | 0130317c30317c3054317c7368617264696e675f6462 | t_order | 2 | true | 2022-05-13 10:29:57 | NULL | +----------------------------------------------+---------+----------------------+--------+---------------------+-----------+ 1 row in set (0.25 sec) mysql&gt; show scaling status 0130317c30317c3054317c7368617264696e675f6462; +------+-------------+--------+--------+-------------------------------+--------------------------+ | item | data_source | status | active | inventory_finished_percentage | incremental_idle_seconds | +------+-------------+--------+--------+-------------------------------+--------------------------+ | 0 | | | | | | | 1 | | | | | | +------+-------------+--------+--------+-------------------------------+--------------------------+ 2 rows in set (0.03 sec) </code></pre></div>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo 2.6.3</li> <li>spring-integration-httpinvoker 2.0.6.RELEASE</li> <li>Operating System version: win10</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="protocol.refer(DemoService.class, URL.valueOf(&quot;http://127.0.0.1:20880/com.wg.dubbo.service.DemoService?sayHello.timeout=60000&quot;))"><pre class="notranslate"><span class="pl-s1">protocol</span>.<span class="pl-en">refer</span>(<span class="pl-smi">DemoService</span>.<span class="pl-k">class</span>, <span class="pl-smi">URL</span>.<span class="pl-en">valueOf</span>(<span class="pl-s">"http://127.0.0.1:20880/com.wg.dubbo.service.DemoService?sayHello.timeout=60000"</span>))</pre></div> <p dir="auto">或</p> <div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;dubbo:reference id=&quot;demoService&quot; interface=&quot;com.wg.dubbo.service.DemoService&quot; url=&quot;http://localhost:20880&quot;&gt; &lt;dubbo:method name=&quot;sayHello&quot; timeout=&quot;6000&quot; retries=&quot;2&quot;/&gt; &lt;/dubbo:reference&gt;"><pre class="notranslate">&lt;<span class="pl-ent">dubbo</span><span class="pl-ent">:</span><span class="pl-ent">reference</span> <span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>demoService<span class="pl-pds">"</span></span> <span class="pl-e">interface</span>=<span class="pl-s"><span class="pl-pds">"</span>com.wg.dubbo.service.DemoService<span class="pl-pds">"</span></span> <span class="pl-e">url</span>=<span class="pl-s"><span class="pl-pds">"</span>http://localhost:20880<span class="pl-pds">"</span></span>&gt; &lt;<span class="pl-ent">dubbo</span><span class="pl-ent">:</span><span class="pl-ent">method</span> <span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>sayHello<span class="pl-pds">"</span></span> <span class="pl-e">timeout</span>=<span class="pl-s"><span class="pl-pds">"</span>6000<span class="pl-pds">"</span></span> <span class="pl-e">retries</span>=<span class="pl-s"><span class="pl-pds">"</span>2<span class="pl-pds">"</span></span>/&gt; &lt;/<span class="pl-ent">dubbo</span><span class="pl-ent">:</span><span class="pl-ent">reference</span>&gt;</pre></div> <p dir="auto">provider超时的sayHello执行sleep 5秒,会报超时。</p> <p dir="auto">设置为</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="protocol.refer(DemoService.class, URL.valueOf(&quot;http://127.0.0.1:20880/com.wg.dubbo.service.DemoService?timeout=60000&quot;))"><pre class="notranslate"><span class="pl-s1">protocol</span>.<span class="pl-en">refer</span>(<span class="pl-smi">DemoService</span>.<span class="pl-k">class</span>, <span class="pl-smi">URL</span>.<span class="pl-en">valueOf</span>(<span class="pl-s">"http://127.0.0.1:20880/com.wg.dubbo.service.DemoService?timeout=60000"</span>))</pre></div> <p dir="auto">或</p> <div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;dubbo:reference id=&quot;demoService&quot; interface=&quot;com.wg.dubbo.service.DemoService&quot; url=&quot;http://localhost:20880&quot; timeout=&quot;6000&quot; retries=&quot;2&quot;&gt; &lt;dubbo:method name=&quot;sayHello&quot; /&gt; &lt;/dubbo:reference&gt;"><pre class="notranslate">&lt;<span class="pl-ent">dubbo</span><span class="pl-ent">:</span><span class="pl-ent">reference</span> <span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>demoService<span class="pl-pds">"</span></span> <span class="pl-e">interface</span>=<span class="pl-s"><span class="pl-pds">"</span>com.wg.dubbo.service.DemoService<span class="pl-pds">"</span></span> <span class="pl-e">url</span>=<span class="pl-s"><span class="pl-pds">"</span>http://localhost:20880<span class="pl-pds">"</span></span> <span class="pl-e">timeout</span>=<span class="pl-s"><span class="pl-pds">"</span>6000<span class="pl-pds">"</span></span> <span class="pl-e">retries</span>=<span class="pl-s"><span class="pl-pds">"</span>2<span class="pl-pds">"</span></span>&gt; &lt;<span class="pl-ent">dubbo</span><span class="pl-ent">:</span><span class="pl-ent">method</span> <span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>sayHello<span class="pl-pds">"</span></span> /&gt; &lt;/<span class="pl-ent">dubbo</span><span class="pl-ent">:</span><span class="pl-ent">reference</span>&gt;</pre></div> <p dir="auto">会timeout会生效</p>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.6.6</li> <li>Operating System version: *nix</li> <li>Java version: 1.7+</li> </ul> <h3 dir="auto">Expected Result</h3> <p dir="auto">throw new IOException("Unknown result flag, expect '0' '1' '2' '3' '4' '5', get " + flag);</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">throw new IOException("Unknown result flag, expect '0' '1' '2', get " + flag);</p> <p dir="auto">since dubbo add new type for class dubbocodec for issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="326001291" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/1843" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/1843/hovercard" href="https://github.com/apache/dubbo/pull/1843">#1843</a><br> we should also change the exception message .</p> <p dir="auto">For example, if dubbo provides new protocol version(higher than 2.0.2) .then the high version dubbo invoke the lower version dubbo[2.0.2] with no support codec ,then the lower version dubbo throws ioexception with incorrect message.<br> So we need fixit</p>
0
<p dir="auto">now i know that nodejs can be build into android os and can be work well.<br> like the url:<br> <a href="https://github.com/dna2github/dna2oslab">https://github.com/dna2github/dna2oslab</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.5</li> </ul> </li> <li><strong>Operating System:</strong> <ul dir="auto"> <li>macOS 10.15.5</li> </ul> </li> <li><strong>Last Known Working Electron version:</strong> <ul dir="auto"> <li>N/A</li> </ul> </li> </ul> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">When making a request through NodeJS using request-promise, I get an output with the following headers.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/13423028/87236580-0e47ed80-c3a0-11ea-904b-773541b7ed1d.png"><img width="1288" alt="Screen Shot 2020-07-11 at 5 57 14 PM" src="https://user-images.githubusercontent.com/13423028/87236580-0e47ed80-c3a0-11ea-904b-773541b7ed1d.png" style="max-width: 100%;"></a></p> <p dir="auto">This is the output that I expect to see, where there are two cookies in "Set-Cookie", the "Access-Control-Allow-Headers" header only contains "Content-Type", and the "Access-Control-Allow-Origin" header is specific.</p> <h3 dir="auto">Actual Behavior</h3> <p dir="auto">However, when I run the same exact script within an Electron context, where the same function is called from the frontend, I get different behavior. The following response headers are from when run in an Electron context.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/13423028/87236640-739bde80-c3a0-11ea-97c9-de3ba6ed3eff.png"><img width="745" alt="Screen Shot 2020-07-11 at 5 52 46 PM" src="https://user-images.githubusercontent.com/13423028/87236640-739bde80-c3a0-11ea-97c9-de3ba6ed3eff.png" style="max-width: 100%;"></a></p> <p dir="auto">There are significant discrepancies between the two, and, most importantly, one of the cookies in the 'set-cookie' header is missing, when run from an Electron context. I am unable to find an explanation as to why this is happening. Interestingly enough, when I used Electron's native Net module, I was able to get the correct HTTP response, so I have narrowed it down to some sort of NodeJS issue from within an Electron context.</p> <p dir="auto"><strong>UPDATE</strong><br> I have been able to narrow it down even further. It looks like the request is working perfectly within an electron context, <em>until I create a BrowserWindow <em>instance</em></em>. At that point, the response headers start going missing, as in the second picture.</p> <h3 dir="auto">To Reproduce</h3> <p dir="auto">Since this is a company project, I am unable to provide source code. However, my question still stands: is there some sort of difference in NodeJS when running natively versus in an electron context, and can that different be detected in an HTTP request?</p>
0
<p dir="auto">systemjs when there are duplicate dependence in system.register entry,<br> the problem occur because the below systemjs function</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function dedupe(deps) { var newDeps = []; for (var i = 0, l = deps.length; i &lt; l; i++) if (indexOf.call(newDeps, deps[i]) == -1) newDeps.push(deps[i]) return newDeps; }"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">dedupe</span><span class="pl-kos">(</span><span class="pl-s1">deps</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">newDeps</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-k">for</span> <span class="pl-kos">(</span><span class="pl-k">var</span> <span class="pl-s1">i</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-s1">l</span> <span class="pl-c1">=</span> <span class="pl-s1">deps</span><span class="pl-kos">.</span><span class="pl-c1">length</span><span class="pl-kos">;</span> <span class="pl-s1">i</span> <span class="pl-c1">&lt;</span> <span class="pl-s1">l</span><span class="pl-kos">;</span> <span class="pl-s1">i</span><span class="pl-c1">++</span><span class="pl-kos">)</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">indexOf</span><span class="pl-kos">.</span><span class="pl-en">call</span><span class="pl-kos">(</span><span class="pl-s1">newDeps</span><span class="pl-kos">,</span> <span class="pl-s1">deps</span><span class="pl-kos">[</span><span class="pl-s1">i</span><span class="pl-kos">]</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> <span class="pl-s1">newDeps</span><span class="pl-kos">.</span><span class="pl-en">push</span><span class="pl-kos">(</span><span class="pl-s1">deps</span><span class="pl-kos">[</span><span class="pl-s1">i</span><span class="pl-kos">]</span><span class="pl-kos">)</span> <span class="pl-k">return</span> <span class="pl-s1">newDeps</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">They really delete dumplicate dependence, and the system.register <code class="notranslate">dependence</code> array length can't match the <code class="notranslate">setter</code> array then I see a lot of red in my console... ...</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="86652142" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/3444" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/3444/hovercard?comment_id=113298972&amp;comment_type=issue_comment" href="https://github.com/microsoft/TypeScript/issues/3444#issuecomment-113298972">#3444 (comment)</a></p> <p dir="auto">fix solution in my local <a href="https://github.com/xsilen/TypeScript/commit/751fde222f2973acb04067b95a04daf773974742?diff=unified">https://github.com/xsilen/TypeScript/commit/751fde222f2973acb04067b95a04daf773974742?diff=unified</a></p>
<p dir="auto">An alternative to <code class="notranslate">extends</code> that is mostly identical but with the following variation: instead of erroring when properties are re-declared with different types, it would resolve to the type unions instead (properties having a function type are already overloaded in inheritance, so there's no need to address them):</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface A { x: boolean; } interface B extends A { // Error! Incorrectly extends A. Types of x are incompatible. x: number; } interface C overloads A { // OK! x is now of type boolean | number x: number; } interface D overloads A { // OK! x is now of type boolean | number | string x: number | string; } interface E overloads A { // OK! x is now of type boolean | (param: number): string x(param: number): string; }"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">A</span> <span class="pl-kos">{</span> <span class="pl-c1">x</span>: <span class="pl-smi">boolean</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">interface</span> <span class="pl-smi">B</span> <span class="pl-k">extends</span> <span class="pl-smi">A</span> <span class="pl-kos">{</span> <span class="pl-c">// Error! Incorrectly extends A. Types of x are incompatible.</span> <span class="pl-c1">x</span>: <span class="pl-smi">number</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">interface</span> <span class="pl-smi">C</span> <span class="pl-s1">overloads</span> <span class="pl-smi">A</span> <span class="pl-kos">{</span> <span class="pl-c">// OK! x is now of type boolean | number</span> <span class="pl-c1">x</span>: <span class="pl-smi">number</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">interface</span> <span class="pl-smi">D</span> <span class="pl-s1">overloads</span> <span class="pl-smi">A</span> <span class="pl-kos">{</span> <span class="pl-c">// OK! x is now of type boolean | number | string</span> <span class="pl-c1">x</span>: <span class="pl-smi">number</span> <span class="pl-c1">|</span> <span class="pl-smi">string</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">interface</span> <span class="pl-smi">E</span> <span class="pl-s1">overloads</span> <span class="pl-smi">A</span> <span class="pl-kos">{</span> <span class="pl-c">// OK! x is now of type boolean | (param: number): string</span> <span class="pl-c1">x</span><span class="pl-kos">(</span><span class="pl-s1">param</span>: <span class="pl-smi">number</span><span class="pl-kos">)</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">An operator based on this variation of inheritance would have the property that for any two (object or function) interfaces <code class="notranslate">A</code>, <code class="notranslate">B</code>, <code class="notranslate">A overload B</code> (illustrative, not suggested, name) can never fail, even if the operands contain incompatible property types (note: this assumes cycles are ignored in the operator version). In contrast to intersection, it wouldn't even fail if <code class="notranslate">A</code> is an object type and <code class="notranslate">B</code> is a function type, as hybrid object/function types are already allowed by standard inheritance.</p> <p dir="auto">This an attempt to address the <a href="https://github.com/Microsoft/TypeScript/issues/4278#issuecomment-130240112" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/4278/hovercard">challenge presented by @ahejlsberg</a> of having an inheritance-like operation that is guaranteed not to fail when applied to generic type parameters:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="declare function combine&lt;T, U&gt;(obj1: T, obj2: U): T overload U;"><pre class="notranslate"><span class="pl-k">declare</span> <span class="pl-k">function</span> <span class="pl-s1">combine</span><span class="pl-c1">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-smi">U</span><span class="pl-c1">&gt;</span><span class="pl-kos">(</span><span class="pl-s1">obj1</span>: <span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-s1">obj2</span>: <span class="pl-smi">U</span><span class="pl-kos">)</span>: <span class="pl-smi">T</span> <span class="pl-s1">overload</span> <span class="pl-smi">U</span><span class="pl-kos">;</span></pre></div> <p dir="auto">and thus may be used as a replacement to intersection that would be more consistent with the rest of the language (and inheritance logic in particular).</p> <p dir="auto">Even though I'm not a computer scientist or a language expert I tried to do my best for giving a basic direction (that is, at least a possible idea) on how to solve this. I'm not in a position to be able to see all the details, nuances or problems for integrating something like this into the language.</p>
0
<p dir="auto">Some render (I think) issues occur while using the gallery demo app downloaded from Google Play (not complied by me)<br> Shrine demo doesn't show cards while scrolling. While using the Animation demo the text and logos in the app turns into weird characters. For a better understanding I have uploaded a video <a href="https://youtu.be/5yhP94L-AGo" rel="nofollow">https://youtu.be/5yhP94L-AGo</a></p>
<p dir="auto">I recently tested the Gallery App from the Play Store on my Lenovo Vibe K5 (Android 5.1.1) using the latest version in the Play Store (0.4.2). When I go to the animation screen and scroll a bit around, all text in the whole app becomes flickering triangles and stays this way. Clicking back or opening new pages several times can sometimes reinitialise the normal font, but it seems rather random. Here are some screens:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/12623865/39925148-2a387256-54f0-11e8-8b67-0297a3154f10.png"><img src="https://user-images.githubusercontent.com/12623865/39925148-2a387256-54f0-11e8-8b67-0297a3154f10.png" alt="screenshot_2018-05-10-20-15-54" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/12623865/39925149-2a5a6172-54f0-11e8-84af-6c66ec272c26.png"><img src="https://user-images.githubusercontent.com/12623865/39925149-2a5a6172-54f0-11e8-84af-6c66ec272c26.png" alt="screenshot_2018-05-10-20-16-04" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/12623865/39925150-2a7c8b44-54f0-11e8-8185-cca6fa87dac2.png"><img src="https://user-images.githubusercontent.com/12623865/39925150-2a7c8b44-54f0-11e8-8185-cca6fa87dac2.png" alt="screenshot_2018-05-10-20-15-43" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/12623865/39925151-2a93267e-54f0-11e8-985c-d0b90dcb3e82.png"><img src="https://user-images.githubusercontent.com/12623865/39925151-2a93267e-54f0-11e8-985c-d0b90dcb3e82.png" alt="screenshot_2018-05-10-20-15-49" style="max-width: 100%;"></a></p>
1
<p dir="auto">Challenge <a href="http://freecodecamp.com/challenges/bonfire-return-largest-numbers-in-arrays" rel="nofollow">http://freecodecamp.com/challenges/bonfire-return-largest-numbers-in-arrays</a> has an issue.<br> The console outputs 'Cannot read property 'eql' of undefined' and the user cant run the code.<br> I am using chrome.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5861100/9567085/67bd4b04-4f1e-11e5-9a72-8e012e274375.png"><img src="https://cloud.githubusercontent.com/assets/5861100/9567085/67bd4b04-4f1e-11e5-9a72-8e012e274375.png" alt="capture d ecran 2015-08-30 a 13 52 05" style="max-width: 100%;"></a></p>
<p dir="auto">This is just a suggestion for improvement, when the code is edited in exercises 20s and 30s of HTML5 and CSS, the context text ( the content in the left hand side ) keeps scrolling up and down, probably because of the check to see if the code entered answers the current exercise. This does not provide a good user experience to see something scrolling for every keystroke. It would be great if the validation happens without the context text scrolling up and down.</p> <p dir="auto">I am using a 15" MBP and chrome.</p>
0
<p dir="auto"><strong>Migrated issue, originally created by Alex Fraser (<a href="https://github.com/z0u">@z0u</a>)</strong></p> <p dir="auto">I want to use Postgres' <code class="notranslate">unnest</code> function in a <code class="notranslate">JOIN</code> clause. If I use <code class="notranslate">func.unnest()</code>, I can't use the <code class="notranslate">WITH ORDINALITY</code> feature. If I use <code class="notranslate">text()</code>, the expression gets wrapped in parentheses which is illegal. If I use <code class="notranslate">select()</code>, the query fails because it needs the <code class="notranslate">LATERAL</code> keyword, which is apparently unsupported (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="384628825" data-permission-text="Title is private" data-url="https://github.com/sqlalchemy/sqlalchemy/issues/2857" data-hovercard-type="issue" data-hovercard-url="/sqlalchemy/sqlalchemy/issues/2857/hovercard" href="https://github.com/sqlalchemy/sqlalchemy/issues/2857">#2857</a>).</p> <p dir="auto">Attached is a script that demonstrates the problem. I would like the final query to produce SQL like this:</p> <div class="highlight highlight-source-sql notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="SELECT a.id AS a_id, a.refs AS a_refs, unnest AS unnest, ordinality AS ordinality, b.id AS b_id, b.ref AS b_ref FROM a LEFT OUTER JOIN unnest(a.refs) WITH ORDINALITY ON TRUE LEFT OUTER JOIN b ON unnest = b.ref ORDER BY a.id, ordinality"><pre class="notranslate"><span class="pl-k">SELECT</span> <span class="pl-c1">a</span>.<span class="pl-c1">id</span> <span class="pl-k">AS</span> a_id, <span class="pl-c1">a</span>.<span class="pl-c1">refs</span> <span class="pl-k">AS</span> a_refs, unnest <span class="pl-k">AS</span> unnest, ordinality <span class="pl-k">AS</span> ordinality, <span class="pl-c1">b</span>.<span class="pl-c1">id</span> <span class="pl-k">AS</span> b_id, <span class="pl-c1">b</span>.<span class="pl-c1">ref</span> <span class="pl-k">AS</span> b_ref <span class="pl-k">FROM</span> a <span class="pl-k">LEFT OUTER JOIN</span> unnest(<span class="pl-c1">a</span>.<span class="pl-c1">refs</span>) WITH ORDINALITY <span class="pl-k">ON</span> TRUE <span class="pl-k">LEFT OUTER JOIN</span> b <span class="pl-k">ON</span> unnest <span class="pl-k">=</span> <span class="pl-c1">b</span>.<span class="pl-c1">ref</span> <span class="pl-k">ORDER BY</span> <span class="pl-c1">a</span>.<span class="pl-c1">id</span>, ordinality</pre></div> <p dir="auto">But actually it produces this:</p> <div class="highlight highlight-source-sql notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="SELECT a.id AS a_id, a.refs AS a_refs, unnest AS unnest, ordinality AS ordinality, b.id AS b_id, b.ref AS b_ref FROM a LEFT OUTER JOIN (unnest(a.refs) WITH ORDINALITY) ON TRUE LEFT OUTER JOIN b ON unnest = b.ref ORDER BY a.id, ordinality"><pre class="notranslate"><span class="pl-k">SELECT</span> <span class="pl-c1">a</span>.<span class="pl-c1">id</span> <span class="pl-k">AS</span> a_id, <span class="pl-c1">a</span>.<span class="pl-c1">refs</span> <span class="pl-k">AS</span> a_refs, unnest <span class="pl-k">AS</span> unnest, ordinality <span class="pl-k">AS</span> ordinality, <span class="pl-c1">b</span>.<span class="pl-c1">id</span> <span class="pl-k">AS</span> b_id, <span class="pl-c1">b</span>.<span class="pl-c1">ref</span> <span class="pl-k">AS</span> b_ref <span class="pl-k">FROM</span> a <span class="pl-k">LEFT OUTER JOIN</span> (unnest(<span class="pl-c1">a</span>.<span class="pl-c1">refs</span>) WITH ORDINALITY) <span class="pl-k">ON</span> TRUE <span class="pl-k">LEFT OUTER JOIN</span> b <span class="pl-k">ON</span> unnest <span class="pl-k">=</span> <span class="pl-c1">b</span>.<span class="pl-c1">ref</span> <span class="pl-k">ORDER BY</span> <span class="pl-c1">a</span>.<span class="pl-c1">id</span>, ordinality</pre></div> <p dir="auto">Which gives this error:</p> <div class="highlight highlight-source-sql notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="sqlalchemy.exc.ProgrammingError: (psycopg2.ProgrammingError) syntax error at or near &quot;)&quot; LINE 2: ... a LEFT OUTER JOIN (unnest(a.refs) WITH ORDINALITY) ON TRUE ... ^"><pre class="notranslate"><span class="pl-c1">sqlalchemy</span>.<span class="pl-c1">exc</span>.ProgrammingError: (<span class="pl-c1">psycopg2</span>.<span class="pl-c1">ProgrammingError</span>) syntax error at <span class="pl-k">or</span> near <span class="pl-s"><span class="pl-pds">"</span>)<span class="pl-pds">"</span></span> <span class="pl-k">LINE</span> <span class="pl-c1">2</span>: ... a <span class="pl-k">LEFT OUTER JOIN</span> (unnest(<span class="pl-c1">a</span>.<span class="pl-c1">refs</span>) WITH ORDINALITY) <span class="pl-k">ON</span> TRUE ... ^</pre></div> <p dir="auto">I'd really to give an alias to the set, so that <code class="notranslate">unnest</code> could be used multiple times:</p> <div class="highlight highlight-source-sql notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="SELECT a.id AS a_id, a.refs AS a_refs, x.unnest AS x_unnest, x.ordinality AS x_ordinality, b.id AS b_id, b.ref AS b_ref FROM a LEFT OUTER JOIN unnest(a.refs) WITH ORDINALITY AS x(unnest, ordinality) ON TRUE LEFT OUTER JOIN b ON x.unnest = b.ref ORDER BY a.id, x.ordinality"><pre class="notranslate"><span class="pl-k">SELECT</span> <span class="pl-c1">a</span>.<span class="pl-c1">id</span> <span class="pl-k">AS</span> a_id, <span class="pl-c1">a</span>.<span class="pl-c1">refs</span> <span class="pl-k">AS</span> a_refs, <span class="pl-c1">x</span>.<span class="pl-c1">unnest</span> <span class="pl-k">AS</span> x_unnest, <span class="pl-c1">x</span>.<span class="pl-c1">ordinality</span> <span class="pl-k">AS</span> x_ordinality, <span class="pl-c1">b</span>.<span class="pl-c1">id</span> <span class="pl-k">AS</span> b_id, <span class="pl-c1">b</span>.<span class="pl-c1">ref</span> <span class="pl-k">AS</span> b_ref <span class="pl-k">FROM</span> a <span class="pl-k">LEFT OUTER JOIN</span> unnest(<span class="pl-c1">a</span>.<span class="pl-c1">refs</span>) WITH ORDINALITY <span class="pl-k">AS</span> x(unnest, ordinality) <span class="pl-k">ON</span> TRUE <span class="pl-k">LEFT OUTER JOIN</span> b <span class="pl-k">ON</span> <span class="pl-c1">x</span>.<span class="pl-c1">unnest</span> <span class="pl-k">=</span> <span class="pl-c1">b</span>.<span class="pl-c1">ref</span> <span class="pl-k">ORDER BY</span> <span class="pl-c1">a</span>.<span class="pl-c1">id</span>, <span class="pl-c1">x</span>.<span class="pl-c1">ordinality</span></pre></div> <p dir="auto">But <code class="notranslate">x.alias('x(unnest, ordinality)')</code> results in constructs like <code class="notranslate">AS "x(unnest, ordinality)"</code> and <code class="notranslate">"x(unnest, ordinality)".unnest = b.ref</code>.</p> <p dir="auto">So, is there a way to use <code class="notranslate">text</code> in a join clause without it being put in parentheses? Or is there something else I'm missing? I would be happy to concede that I'm going about this the wrong way.</p> <p dir="auto">SA version 1.0.9, Python 3.4.3, Postgres 9.4.3</p> <hr> <p dir="auto">Attachments: <a href="../wiki/imported_issue_attachments/3594/join_text.py">join_text.py</a></p>
<p dir="auto"><strong>Migrated issue, originally created by Michael Bayer (<a href="https://github.com/zzzeek">@zzzeek</a>)</strong></p> <p dir="auto">that is, all the functions in <a href="http://www.postgresql.org/docs/9.4/static/functions-json.html" rel="nofollow">http://www.postgresql.org/docs/9.4/static/functions-json.html</a> need to be possible without building subclasses of functions.</p>
1
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[X] bug report [ ] feature request [ ] support request"><pre class="notranslate"><code class="notranslate">[X] bug report [ ] feature request [ ] support request </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> A secondary child named outlet inside an empty primary outlet does not match.</p> <p dir="auto"><strong>Expected behavior</strong><br> A secondary child named outlet inside an empty primary outlet should match.</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br> <a href="http://plnkr.co/edit/O4XNG3FHhWM0m1XRwX0p?p=preview" rel="nofollow">http://plnkr.co/edit/O4XNG3FHhWM0m1XRwX0p?p=preview</a></p> <p dir="auto">Just click on link "show bar in secondary outlet".<br> Going to http://.../(foo:bar) <strong>does not init</strong> the Bar component inside the foo named router-outlet<br> Going to http://.../(foo:bar) <strong>should</strong> init Bar component inside the foo named router-outlet</p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p> <p dir="auto"><strong>Please tell us about your environment:</strong></p> <ul dir="auto"> <li><strong>Angular version:</strong> 4.0</li> <li><strong>Browser:</strong> [all]</li> <li><strong>Language:</strong> [all | TypeScript X.X | ES6/7 | ES5]</li> </ul>
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report [ ] feature request [ ] support request =&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 [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong></p> <p dir="auto">Aux-Routes are not found when using two levels of "default routes" (with <code class="notranslate">path:''</code>).<br> This config works:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" RouterModule.forRoot([ { path: 'tasks', component: TasksComponent, //container-component has two outlets! children: [ { path: '', component:TaskListComponent }, { path: 'overview/:id', component: TasksComponent, outlet: 'right' }, ] } ],"><pre class="notranslate"> <span class="pl-smi">RouterModule</span><span class="pl-kos">.</span><span class="pl-c1">forRoot</span><span class="pl-kos">(</span><span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">path</span>: <span class="pl-s">'tasks'</span><span class="pl-kos">,</span> <span class="pl-c1">component</span>: <span class="pl-smi">TasksComponent</span><span class="pl-kos">,</span> <span class="pl-c">//container-component has two outlets! </span> <span class="pl-c1">children</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">path</span>: <span class="pl-s">''</span><span class="pl-kos">,</span> <span class="pl-c1">component</span>:<span class="pl-smi">TaskListComponent</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">path</span>: <span class="pl-s">'overview/:id'</span><span class="pl-kos">,</span> <span class="pl-c1">component</span>: <span class="pl-smi">TasksComponent</span><span class="pl-kos">,</span> <span class="pl-c1">outlet</span>: <span class="pl-s">'right'</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">I can open the Tasks-overview by doing:</p> <p dir="auto"><code class="notranslate">http://localhost:4200/tasks/(right:overview/3)</code></p> <p dir="auto">See this plnkr and click "to list", "open aux"</p> <p dir="auto">As I want to extract the whole Tasks-Functionality into a <code class="notranslate">TasksModule</code> I need to be able to do something like this:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" RouterModule.forRoot([ { path: 'tasks', : children: [ // this one would be in main module //this is defined in the TasksModule: { path: '', component: TasksComponent, //container-component has two outlets! children: [ { path: '', component:TaskListComponent }, { path: 'overview/:id', component: TasksComponent, outlet: 'right' }, ] } ],"><pre class="notranslate"> <span class="pl-smi">RouterModule</span><span class="pl-kos">.</span><span class="pl-c1">forRoot</span><span class="pl-kos">(</span><span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">path</span>: <span class="pl-s">'tasks'</span><span class="pl-kos">,</span> : <span class="pl-c1">children</span>: <span class="pl-kos">[</span> <span class="pl-c">// this one would be in main module</span> <span class="pl-c">//this is defined in the TasksModule:</span> <span class="pl-kos">{</span> <span class="pl-c1">path</span>: <span class="pl-s">''</span><span class="pl-kos">,</span> <span class="pl-c1">component</span>: <span class="pl-smi">TasksComponent</span><span class="pl-kos">,</span> <span class="pl-c">//container-component has two outlets! </span> <span class="pl-c1">children</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">path</span>: <span class="pl-s">''</span><span class="pl-kos">,</span> <span class="pl-c1">component</span>:<span class="pl-smi">TaskListComponent</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">path</span>: <span class="pl-s">'overview/:id'</span><span class="pl-kos">,</span> <span class="pl-c1">component</span>: <span class="pl-smi">TasksComponent</span><span class="pl-kos">,</span> <span class="pl-c1">outlet</span>: <span class="pl-s">'right'</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">I would assume both configs are equivalent, and all of the "normal" routing works perfectly fine. But now the link above <code class="notranslate">http://localhost:4200/tasks/(right:overview/3)</code> leads to:</p> <p dir="auto"><code class="notranslate">Uncaught (in promise): Error: Cannot match any routes: 'tasks'</code></p> <p dir="auto">See this plnkr: <a href="http://plnkr.co/edit/xd77Mkpqfq6U9tKM4USU?p=preview" rel="nofollow">http://plnkr.co/edit/xd77Mkpqfq6U9tKM4USU?p=preview</a></p> <p dir="auto"><strong>Expected/desired behavior</strong></p> <p dir="auto">Aux-Routes should also work with empty-path parents</p> <p dir="auto"><strong>Reproduction of the problem</strong></p> <p dir="auto">Working version: <a href="http://plnkr.co/edit/Twx4hXQ0TLfHfrYSe4MO?p=preview" rel="nofollow">http://plnkr.co/edit/Twx4hXQ0TLfHfrYSe4MO?p=preview</a><br> Non-working version: <a href="http://plnkr.co/edit/xd77Mkpqfq6U9tKM4USU?p=preview" rel="nofollow">http://plnkr.co/edit/xd77Mkpqfq6U9tKM4USU?p=preview</a></p> <p dir="auto"><strong>What is the expected behavior?</strong></p> <p dir="auto">Both versions of route definition should lead to the same behavior</p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p> <p dir="auto">With the current implementation it is impossible to create an encapsulated Config / Module for the tasks behaviour and include it under a certain path into the main config e.g. "myTasks".</p> <p dir="auto">/cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vsavkin/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vsavkin">@vsavkin</a></p> <p dir="auto"><strong>Please tell us about your environment:</strong></p> <ul dir="auto"> <li><strong>Angular version:</strong> 2.0.0-rc.5</li> <li><strong>Browser:</strong> [all ]</li> <li><strong>Language:</strong> [TS ]</li> </ul>
1
<p dir="auto">When using a Drawer component with a ModalProps attribute, TS encounters a compile error <code class="notranslate">error TS2339: Property 'ModalProps' does not exist on type 'IntrinsicAttributes &amp; DrawerProps &amp; { children?: ReactNode; }'.</code></p> <ul dir="auto"> <li>[x ] I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">Drawer TS DrawerProps definitions should support using ModalProps={{...}} prop in a TS project.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">Error as stated above</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import * as React from 'react'; import './Header.css'; import { AppBar, Toolbar, Typography, IconButton, Hidden, Drawer } from 'material-ui'; import { Menu as MenuIcon, NavigateBefore as NavigateBeforeIcon } from 'material-ui-icons'; export default () =&gt; { return ( &lt;div className=&quot;Header&quot;&gt; &lt;AppBar position=&quot;static&quot;&gt; &lt;Toolbar&gt; &lt;IconButton className=&quot;menu&quot; color=&quot;contrast&quot; aria-label=&quot;Menu&quot;&gt; &lt;NavigateBeforeIcon /&gt; &lt;/IconButton&gt; &lt;Typography type=&quot;title&quot; color=&quot;inherit&quot; className=&quot;title&quot;&gt; Sample &lt;/Typography&gt; &lt;IconButton className=&quot;menu&quot; color=&quot;contrast&quot; aria-label=&quot;Menu&quot;&gt; &lt;MenuIcon /&gt; &lt;/IconButton&gt; &lt;/Toolbar&gt; &lt;/AppBar&gt; &lt;Hidden mdUp&gt; &lt;Drawer type=&quot;temporary&quot; anchor=&quot;right&quot; open={true} ModalProps={{ keepMounted: true, // !---------- HERE'S THE ISSUE }} &gt; List stuff here &lt;/Drawer&gt; &lt;/Hidden&gt; &lt;/div&gt; ); };"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-c1">*</span> <span class="pl-k">as</span> <span class="pl-v">React</span> <span class="pl-k">from</span> <span class="pl-s">'react'</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-s">'./Header.css'</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-v">AppBar</span><span class="pl-kos">,</span> <span class="pl-v">Toolbar</span><span class="pl-kos">,</span> <span class="pl-v">Typography</span><span class="pl-kos">,</span> <span class="pl-v">IconButton</span><span class="pl-kos">,</span> <span class="pl-v">Hidden</span><span class="pl-kos">,</span> <span class="pl-v">Drawer</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'material-ui'</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-v">Menu</span> <span class="pl-k">as</span> <span class="pl-v">MenuIcon</span><span class="pl-kos">,</span> <span class="pl-v">NavigateBefore</span> <span class="pl-k">as</span> <span class="pl-v">NavigateBeforeIcon</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'material-ui-icons'</span><span class="pl-kos">;</span> <span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-kos">(</span> <span class="pl-c1">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">className</span><span class="pl-c1">=</span><span class="pl-s">"Header"</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">AppBar</span> <span class="pl-c1">position</span><span class="pl-c1">=</span><span class="pl-s">"static"</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">Toolbar</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">IconButton</span> <span class="pl-c1">className</span><span class="pl-c1">=</span><span class="pl-s">"menu"</span> <span class="pl-c1">color</span><span class="pl-c1">=</span><span class="pl-s">"contrast"</span> <span class="pl-c1">aria-label</span><span class="pl-c1">=</span><span class="pl-s">"Menu"</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">NavigateBeforeIcon</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-c1">&lt;</span><span class="pl-ent">Typography</span> <span class="pl-c1">type</span><span class="pl-c1">=</span><span class="pl-s">"title"</span> <span class="pl-c1">color</span><span class="pl-c1">=</span><span class="pl-s">"inherit"</span> <span class="pl-c1">className</span><span class="pl-c1">=</span><span class="pl-s">"title"</span><span class="pl-c1">&gt;</span> Sample <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">Typography</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">IconButton</span> <span class="pl-c1">className</span><span class="pl-c1">=</span><span class="pl-s">"menu"</span> <span class="pl-c1">color</span><span class="pl-c1">=</span><span class="pl-s">"contrast"</span> <span class="pl-c1">aria-label</span><span class="pl-c1">=</span><span class="pl-s">"Menu"</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">MenuIcon</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-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">Toolbar</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">AppBar</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">Hidden</span> <span class="pl-c1">mdUp</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">Drawer</span> <span class="pl-c1">type</span><span class="pl-c1">=</span><span class="pl-s">"temporary"</span> <span class="pl-c1">anchor</span><span class="pl-c1">=</span><span class="pl-s">"right"</span> <span class="pl-c1">open</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">true</span><span class="pl-kos">}</span> <span class="pl-c1">ModalProps</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-kos">{</span> <span class="pl-c1">keepMounted</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c">// !---------- HERE'S THE ISSUE</span> <span class="pl-kos">}</span><span class="pl-kos">}</span> <span class="pl-c1">&gt;</span> List stuff here <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">Drawer</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">Hidden</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div> <h2 dir="auto">Context</h2> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>^1.0.0-beta.21</td> </tr> <tr> <td>React</td> <td>^16.1.1</td> </tr> <tr> <td>browser</td> <td>Chrome 62</td> </tr> <tr> <td>etc</td> <td>Typescript@^2.6.2</td> </tr> </tbody> </table>
<p dir="auto">I am trying to use the builtin material-ui-icons and I was wondering if it is possible to get the light (white) version of the material icons instead of the dark ones.</p> <ul dir="auto"> <li>[ x] I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">ability to import light version of material icons</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">cannot import</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>import material-ui-icons/Dashboard (no option to get light version)</li> </ol>
0
<p dir="auto">hey,everyone!<br> At first,i can run the demo in /ios_examples/camera successfully.then I use retrain.py to retrain with my own dataset,and get a output_graph.pb flie and a output_labels.txt file.after that, I replace the files in /ios_examples/camera/data with them,and run the demo again,but it failed ,error description are as follow:<br> ####error#########<br> :Could not create TensorFlow Graph: Invalid argument: No OpKernel was registered to support Op 'DecodeJpeg' with these attrs. Registered devices: [CPU], Registered kernels:<br> </p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" [[Node: DecodeJpeg = DecodeJpeg[acceptable_fraction=1, channels=3, dct_method=&quot;&quot;, fancy_upscaling=true, ratio=1, try_recover_truncated=false](DecodeJpeg/contents)]];"><pre class="notranslate"><code class="notranslate"> [[Node: DecodeJpeg = DecodeJpeg[acceptable_fraction=1, channels=3, dct_method="", fancy_upscaling=true, ratio=1, try_recover_truncated=false](DecodeJpeg/contents)]]; </code></pre></div> <p dir="auto">:Couldn't load model: Invalid argument: No OpKernel was registered to support Op 'DecodeJpeg' with these attrs. Registered devices: [CPU], Registered kernels:<br> </p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" [[Node: DecodeJpeg = DecodeJpeg[acceptable_fraction=1, channels=3, dct_method=&quot;&quot;, fancy_upscaling=true, ratio=1, try_recover_truncated=false](DecodeJpeg/contents)]]"><pre class="notranslate"><code class="notranslate"> [[Node: DecodeJpeg = DecodeJpeg[acceptable_fraction=1, channels=3, dct_method="", fancy_upscaling=true, ratio=1, try_recover_truncated=false](DecodeJpeg/contents)]] </code></pre></div> <p dir="auto">Can someone tell me how to fix it?</p>
<h3 dir="auto">Environment info</h3> <p dir="auto">Operating System: iOS</p> <h3 dir="auto">Steps to reproduce</h3> <ol dir="auto"> <li>Follow the contrib/makefile/README to install the tensorflow iOS core lib</li> <li>Create my own model with the Image Retraining tutorial</li> <li>Run the iOS example, error is logged.</li> </ol> <h3 dir="auto">Logs or other output that would be helpful</h3> <p dir="auto"><code class="notranslate">Running model failed:Invalid argument: No OpKernel was registered to support Op 'DecodeJpeg' with these attrs [[Node: DecodeJpeg = DecodeJpeg[acceptable_fraction=1, channels=3, fancy_upscaling=true, ratio=1, try_recover_truncated=false](DecodeJpeg/contents)]]</code></p> <h3 dir="auto">Related to</h3> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="159384272" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/2754" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/2754/hovercard" href="https://github.com/tensorflow/tensorflow/issues/2754">#2754</a> except that I want to use the pd file generated from the Image Retraining tutorial</p>
1
<p dir="auto">Link in the corner at docs.julialang.org is not working. I assumed should be reported at julialang.org website Github. Letting know as here seems to be the right place, FYI also other issues:</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="587014810" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/www.julialang.org/issues/684" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/www.julialang.org/issues/684/hovercard" href="https://github.com/JuliaLang/www.julialang.org/issues/684">JuliaLang/www.julialang.org#684</a></p> <blockquote> <p dir="auto">[EDIT] in corner at, at least: <a href="https://github.com/JuliaLang/julia/blob/master/doc/src/NEWS.md">https://github.com/JuliaLang/julia/blob/master/doc/src/NEWS.md</a></p> </blockquote>
<p dir="auto">On <a href="https://docs.julialang.org/en/v1/NEWS/" rel="nofollow">NEWS page</a>, <code class="notranslate">Edit on GitHub</code> link is broken.<br> It is going to <a href="https://github.com/JuliaLang/julia/blob/master/doc/src/NEWS.md">https://github.com/JuliaLang/julia/blob/master/doc/src/NEWS.md</a> but should go to <a href="https://github.com/JuliaLang/julia/blob/master/NEWS.md">https://github.com/JuliaLang/julia/blob/master/NEWS.md</a></p>
1
<p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gce-serial/1816/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gce-serial/1816/</a></p> <p dir="auto">Failed: [k8s.io] [HPA] Horizontal pod autoscaling (scale resource: CPU) [k8s.io] [Serial] [Slow] Deployment Should scale from 5 pods to 3 pods and from 3 to 1 {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/horizontal_pod_autoscaling.go:52 Jul 28 22:14:33.656: timeout waiting 15m0s for pods size to be 3 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/autoscaling_utils.go:284"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/horizontal_pod_autoscaling.go:52 Jul 28 22:14:33.656: timeout waiting 15m0s for pods size to be 3 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/autoscaling_utils.go:284 </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="160317302" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/27406" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/27406/hovercard" href="https://github.com/kubernetes/kubernetes/issues/27406">#27406</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="161038583" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/27669" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/27669/hovercard" href="https://github.com/kubernetes/kubernetes/issues/27669">#27669</a></p>
<p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gce-serial/2033/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gce-serial/2033/</a></p> <p dir="auto">Failed: [k8s.io] [HPA] Horizontal pod autoscaling (scale resource: CPU) [k8s.io] [Serial] [Slow] Deployment Should scale from 1 pod to 3 pods and from 3 to 5 {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/horizontal_pod_autoscaling.go:49 Aug 28 09:38:39.413: timeout waiting 15m0s for pods size to be 5 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/autoscaling_utils.go:284"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/horizontal_pod_autoscaling.go:49 Aug 28 09:38:39.413: timeout waiting 15m0s for pods size to be 5 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/autoscaling_utils.go:284 </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="170291155" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/30317" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/30317/hovercard" href="https://github.com/kubernetes/kubernetes/issues/30317">#30317</a></p>
1
<h3 dir="auto">Bug summary</h3> <p dir="auto">The color bar is not properly displayed after version 3.5.0</p> <h3 dir="auto">Code for reproduction</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Compare: https://matplotlib.org/stable/tutorials/colors/colormapnorms.html#twoslopenorm-different-mapping-on-either-side-of-a-center OR https://matplotlib.org/devdocs/tutorials/colors/colormapnorms.html#twoslopenorm-different-mapping-on-either-side-of-a-center with the older version: https://matplotlib.org/3.4.3/tutorials/colors/colormapnorms.html#twoslopenorm-different-mapping-on-either-side-of-a-center"><pre class="notranslate"><span class="pl-v">Compare</span>: <span class="pl-s1">https</span>:<span class="pl-c1">//</span><span class="pl-s1">matplotlib</span>.<span class="pl-s1">org</span><span class="pl-c1">/</span><span class="pl-s1">stable</span><span class="pl-c1">/</span><span class="pl-s1">tutorials</span><span class="pl-c1">/</span><span class="pl-s1">colors</span><span class="pl-c1">/</span><span class="pl-s1">colormapnorms</span>.<span class="pl-s1">html</span><span class="pl-c">#twoslopenorm-different-mapping-on-either-side-of-a-center</span> <span class="pl-v">OR</span> <span class="pl-s1">https</span>:<span class="pl-c1">//</span><span class="pl-s1">matplotlib</span>.<span class="pl-s1">org</span><span class="pl-c1">/</span><span class="pl-s1">devdocs</span><span class="pl-c1">/</span><span class="pl-s1">tutorials</span><span class="pl-c1">/</span><span class="pl-s1">colors</span><span class="pl-c1">/</span><span class="pl-s1">colormapnorms</span>.<span class="pl-s1">html</span><span class="pl-c">#twoslopenorm-different-mapping-on-either-side-of-a-center</span> <span class="pl-k">with</span> <span class="pl-s1">the</span> <span class="pl-s1">older</span> <span class="pl-s1">version</span>: <span class="pl-s1">https</span>:<span class="pl-c1">//</span><span class="pl-s1">matplotlib</span>.<span class="pl-s1">org</span><span class="pl-c1">/</span><span class="pl-c1">3.4</span>.<span class="pl-c1">3</span><span class="pl-c1">/</span><span class="pl-s1">tutorials</span><span class="pl-c1">/</span><span class="pl-s1">colors</span><span class="pl-c1">/</span><span class="pl-s1">colormapnorms</span>.<span class="pl-s1">html</span><span class="pl-c">#twoslopenorm-different-mapping-on-either-side-of-a-center</span></pre></div> <h3 dir="auto">Actual outcome</h3> <p dir="auto"><a href="https://github.com/matplotlib/matplotlib/files/9292469/new.pdf">new.pdf</a></p> <p dir="auto">the color bar between -500 to 0 is as long as from 0 to 4000, although should be as long as 0 to 500</p> <h3 dir="auto">Expected outcome</h3> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/23103092/183694722-37a206f2-b783-4d27-a9ac-fc9d67a6f2ca.png"><img src="https://user-images.githubusercontent.com/23103092/183694722-37a206f2-b783-4d27-a9ac-fc9d67a6f2ca.png" alt="old" style="max-width: 100%;"></a></p> <h3 dir="auto">Additional information</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Operating system</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Matplotlib Version</h3> <p dir="auto">stable/dev</p> <h3 dir="auto">Matplotlib Backend</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Python version</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Jupyter version</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Installation</h3> <p dir="auto"><em>No response</em></p>
<h3 dir="auto">Bug summary</h3> <p dir="auto">When using <code class="notranslate">TwoSlopeNorm</code> with <code class="notranslate">pcolormesh</code>, I receive errors when I try to set the colorbar limits to both be on one side of the <code class="notranslate">vcenter</code> specified in <code class="notranslate">TwoSlopeNorm</code>.</p> <h3 dir="auto">Code for reproduction</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt import matplotlib.colors as mcolors x = [[0, 1, 2], [0, 1, 2], [0, 1, 2]] y = [[0, 0, 0], [1, 1, 1], [2, 2, 2]] data = [[-1, -2], [-2, -3]] plt.pcolormesh(x, y, data, cmap=&quot;coolwarm&quot;, norm=mcolors.TwoSlopeNorm(vmin=-3, vcenter=0, vmax=1)) plt.colorbar() plt.clim([-3, -1]) # this breaks # plt.clim([-3, 1]) # this works fine # plt.clim([1, 3]) # this also breaks"><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">matplotlib</span>.<span class="pl-s1">colors</span> <span class="pl-k">as</span> <span class="pl-s1">mcolors</span> <span class="pl-s1">x</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-c1">0</span>, <span class="pl-c1">1</span>, <span class="pl-c1">2</span>], [<span class="pl-c1">0</span>, <span class="pl-c1">1</span>, <span class="pl-c1">2</span>]] <span class="pl-s1">y</span> <span class="pl-c1">=</span> [[<span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>], [<span class="pl-c1">1</span>, <span class="pl-c1">1</span>, <span class="pl-c1">1</span>], [<span class="pl-c1">2</span>, <span class="pl-c1">2</span>, <span class="pl-c1">2</span>]] <span class="pl-s1">data</span> <span class="pl-c1">=</span> [[<span class="pl-c1">-</span><span class="pl-c1">1</span>, <span class="pl-c1">-</span><span class="pl-c1">2</span>], [<span class="pl-c1">-</span><span class="pl-c1">2</span>, <span class="pl-c1">-</span><span class="pl-c1">3</span>]] <span class="pl-s1">plt</span>.<span class="pl-en">pcolormesh</span>(<span class="pl-s1">x</span>, <span class="pl-s1">y</span>, <span class="pl-s1">data</span>, <span class="pl-s1">cmap</span><span class="pl-c1">=</span><span class="pl-s">"coolwarm"</span>, <span class="pl-s1">norm</span><span class="pl-c1">=</span><span class="pl-s1">mcolors</span>.<span class="pl-v">TwoSlopeNorm</span>(<span class="pl-s1">vmin</span><span class="pl-c1">=</span><span class="pl-c1">-</span><span class="pl-c1">3</span>, <span class="pl-s1">vcenter</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">vmax</span><span class="pl-c1">=</span><span class="pl-c1">1</span>)) <span class="pl-s1">plt</span>.<span class="pl-en">colorbar</span>() <span class="pl-s1">plt</span>.<span class="pl-en">clim</span>([<span class="pl-c1">-</span><span class="pl-c1">3</span>, <span class="pl-c1">-</span><span class="pl-c1">1</span>]) <span class="pl-c"># this breaks</span> <span class="pl-c"># plt.clim([-3, 1]) # this works fine</span> <span class="pl-c"># plt.clim([1, 3]) # this also breaks</span></pre></div> <h3 dir="auto">Actual outcome</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;/home/eytan/Documents/matplotlib_debug.py&quot;, line 11, in &lt;module&gt; plt.clim([-3, -1]) # this breaks File &quot;/home/eytan/miniconda3/envs/mpl_debug/lib/python3.9/site-packages/matplotlib/pyplot.py&quot;, line 2131, in clim im.set_clim(vmin, vmax) File &quot;/home/eytan/miniconda3/envs/mpl_debug/lib/python3.9/site-packages/matplotlib/cm.py&quot;, line 525, in set_clim self.norm.vmax = colors._sanitize_extrema(vmax) File &quot;/home/eytan/miniconda3/envs/mpl_debug/lib/python3.9/site-packages/matplotlib/colors.py&quot;, line 1161, in vmax self._changed() File &quot;/home/eytan/miniconda3/envs/mpl_debug/lib/python3.9/site-packages/matplotlib/colors.py&quot;, line 1178, in _changed self.callbacks.process('changed') File &quot;/home/eytan/miniconda3/envs/mpl_debug/lib/python3.9/site-packages/matplotlib/cbook/__init__.py&quot;, line 292, in process self.exception_handler(exc) File &quot;/home/eytan/miniconda3/envs/mpl_debug/lib/python3.9/site-packages/matplotlib/cbook/__init__.py&quot;, line 96, in _exception_printer raise exc File &quot;/home/eytan/miniconda3/envs/mpl_debug/lib/python3.9/site-packages/matplotlib/cbook/__init__.py&quot;, line 287, in process func(*args, **kwargs) File &quot;/home/eytan/miniconda3/envs/mpl_debug/lib/python3.9/site-packages/matplotlib/cm.py&quot;, line 618, in changed self.callbacks.process('changed', self) File &quot;/home/eytan/miniconda3/envs/mpl_debug/lib/python3.9/site-packages/matplotlib/cbook/__init__.py&quot;, line 292, in process self.exception_handler(exc) File &quot;/home/eytan/miniconda3/envs/mpl_debug/lib/python3.9/site-packages/matplotlib/cbook/__init__.py&quot;, line 96, in _exception_printer raise exc File &quot;/home/eytan/miniconda3/envs/mpl_debug/lib/python3.9/site-packages/matplotlib/cbook/__init__.py&quot;, line 287, in process func(*args, **kwargs) File &quot;/home/eytan/miniconda3/envs/mpl_debug/lib/python3.9/site-packages/matplotlib/colorbar.py&quot;, line 551, in update_normal self.draw_all() File &quot;/home/eytan/miniconda3/envs/mpl_debug/lib/python3.9/site-packages/matplotlib/colorbar.py&quot;, line 608, in draw_all self._add_solids(X, Y, self._values[ind, np.newaxis]) File &quot;/home/eytan/miniconda3/envs/mpl_debug/lib/python3.9/site-packages/matplotlib/colorbar.py&quot;, line 624, in _add_solids self.solids = self.ax.pcolormesh( File &quot;/home/eytan/miniconda3/envs/mpl_debug/lib/python3.9/site-packages/matplotlib/__init__.py&quot;, line 1412, in inner return func(ax, *map(sanitize_sequence, args), **kwargs) File &quot;/home/eytan/miniconda3/envs/mpl_debug/lib/python3.9/site-packages/matplotlib/axes/_axes.py&quot;, line 6058, in pcolormesh X, Y, C, shading = self._pcolorargs('pcolormesh', *args, File &quot;/home/eytan/miniconda3/envs/mpl_debug/lib/python3.9/site-packages/matplotlib/axes/_axes.py&quot;, line 5533, in _pcolorargs raise ValueError( ValueError: x and y arguments to pcolormesh cannot have non-finite values or be of type numpy.ma.core.MaskedArray with masked values"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "/home/eytan/Documents/matplotlib_debug.py", line 11, in &lt;module&gt; plt.clim([-3, -1]) # this breaks File "/home/eytan/miniconda3/envs/mpl_debug/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2131, in clim im.set_clim(vmin, vmax) File "/home/eytan/miniconda3/envs/mpl_debug/lib/python3.9/site-packages/matplotlib/cm.py", line 525, in set_clim self.norm.vmax = colors._sanitize_extrema(vmax) File "/home/eytan/miniconda3/envs/mpl_debug/lib/python3.9/site-packages/matplotlib/colors.py", line 1161, in vmax self._changed() File "/home/eytan/miniconda3/envs/mpl_debug/lib/python3.9/site-packages/matplotlib/colors.py", line 1178, in _changed self.callbacks.process('changed') File "/home/eytan/miniconda3/envs/mpl_debug/lib/python3.9/site-packages/matplotlib/cbook/__init__.py", line 292, in process self.exception_handler(exc) File "/home/eytan/miniconda3/envs/mpl_debug/lib/python3.9/site-packages/matplotlib/cbook/__init__.py", line 96, in _exception_printer raise exc File "/home/eytan/miniconda3/envs/mpl_debug/lib/python3.9/site-packages/matplotlib/cbook/__init__.py", line 287, in process func(*args, **kwargs) File "/home/eytan/miniconda3/envs/mpl_debug/lib/python3.9/site-packages/matplotlib/cm.py", line 618, in changed self.callbacks.process('changed', self) File "/home/eytan/miniconda3/envs/mpl_debug/lib/python3.9/site-packages/matplotlib/cbook/__init__.py", line 292, in process self.exception_handler(exc) File "/home/eytan/miniconda3/envs/mpl_debug/lib/python3.9/site-packages/matplotlib/cbook/__init__.py", line 96, in _exception_printer raise exc File "/home/eytan/miniconda3/envs/mpl_debug/lib/python3.9/site-packages/matplotlib/cbook/__init__.py", line 287, in process func(*args, **kwargs) File "/home/eytan/miniconda3/envs/mpl_debug/lib/python3.9/site-packages/matplotlib/colorbar.py", line 551, in update_normal self.draw_all() File "/home/eytan/miniconda3/envs/mpl_debug/lib/python3.9/site-packages/matplotlib/colorbar.py", line 608, in draw_all self._add_solids(X, Y, self._values[ind, np.newaxis]) File "/home/eytan/miniconda3/envs/mpl_debug/lib/python3.9/site-packages/matplotlib/colorbar.py", line 624, in _add_solids self.solids = self.ax.pcolormesh( File "/home/eytan/miniconda3/envs/mpl_debug/lib/python3.9/site-packages/matplotlib/__init__.py", line 1412, in inner return func(ax, *map(sanitize_sequence, args), **kwargs) File "/home/eytan/miniconda3/envs/mpl_debug/lib/python3.9/site-packages/matplotlib/axes/_axes.py", line 6058, in pcolormesh X, Y, C, shading = self._pcolorargs('pcolormesh', *args, File "/home/eytan/miniconda3/envs/mpl_debug/lib/python3.9/site-packages/matplotlib/axes/_axes.py", line 5533, in _pcolorargs raise ValueError( ValueError: x and y arguments to pcolormesh cannot have non-finite values or be of type numpy.ma.core.MaskedArray with masked values </code></pre></div> <h3 dir="auto">Expected outcome</h3> <p dir="auto">A <code class="notranslate">pcolormesh</code> figure with a colorbar limit with a minimum of -3 and maximum of -1.</p> <h3 dir="auto">Additional information</h3> <p dir="auto">Works in version 3.4.3, breaks in version 3.5.0. Could it be related to the fix for <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1057493855" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/21671" data-hovercard-type="issue" data-hovercard-url="/matplotlib/matplotlib/issues/21671/hovercard" href="https://github.com/matplotlib/matplotlib/issues/21671">#21671</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1058183168" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/21676" data-hovercard-type="pull_request" data-hovercard-url="/matplotlib/matplotlib/pull/21676/hovercard" href="https://github.com/matplotlib/matplotlib/pull/21676">#21676</a>? It seems like a similar issue and also showed up in version 3.5.0.</p> <h3 dir="auto">Operating system</h3> <p dir="auto">Ubuntu 20.04</p> <h3 dir="auto">Matplotlib Version</h3> <p dir="auto">3.5.2</p> <h3 dir="auto">Matplotlib Backend</h3> <p dir="auto">TkAgg</p> <h3 dir="auto">Python version</h3> <p dir="auto">3.9.12</p> <h3 dir="auto">Jupyter version</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Installation</h3> <p dir="auto">pip</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" checked=""> Check for duplicate issues.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Provide a complete example of how to reproduce the bug, wrapped in triple backticks like this:</li> </ul> <p dir="auto">In essence, when an input is passed into a fan out, and then a fan in concat, regardless of n on the FanOut, element wise operations do not work.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import jax import jax.example_libraries.stax as stax from jax import random import jax.numpy as jnp input_rows = 10 input_columns = 5 key = random.PRNGKey(42) input = random.normal(key, (input_rows, input_columns)) out_stack = 5 # bugged with any value input_comparison = jnp.column_stack([input]*out_stack) s = stax.serial( stax.FanOut(out_stack), stax.FanInConcat(), stax.Selu, # stax.Elu, # stax.Exp, ) params, shape = s[0](key, input.shape) assert jnp.isclose(s[1](params, input), input_comparison).all()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">jax</span> <span class="pl-k">import</span> <span class="pl-s1">jax</span>.<span class="pl-s1">example_libraries</span>.<span class="pl-s1">stax</span> <span class="pl-k">as</span> <span class="pl-s1">stax</span> <span class="pl-k">from</span> <span class="pl-s1">jax</span> <span class="pl-k">import</span> <span class="pl-s1">random</span> <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-s1">input_rows</span> <span class="pl-c1">=</span> <span class="pl-c1">10</span> <span class="pl-s1">input_columns</span> <span class="pl-c1">=</span> <span class="pl-c1">5</span> <span class="pl-s1">key</span> <span class="pl-c1">=</span> <span class="pl-s1">random</span>.<span class="pl-v">PRNGKey</span>(<span class="pl-c1">42</span>) <span class="pl-s1">input</span> <span class="pl-c1">=</span> <span class="pl-s1">random</span>.<span class="pl-en">normal</span>(<span class="pl-s1">key</span>, (<span class="pl-s1">input_rows</span>, <span class="pl-s1">input_columns</span>)) <span class="pl-s1">out_stack</span> <span class="pl-c1">=</span> <span class="pl-c1">5</span> <span class="pl-c"># bugged with any value</span> <span class="pl-s1">input_comparison</span> <span class="pl-c1">=</span> <span class="pl-s1">jnp</span>.<span class="pl-en">column_stack</span>([<span class="pl-s1">input</span>]<span class="pl-c1">*</span><span class="pl-s1">out_stack</span>) <span class="pl-s1">s</span> <span class="pl-c1">=</span> <span class="pl-s1">stax</span>.<span class="pl-en">serial</span>( <span class="pl-s1">stax</span>.<span class="pl-v">FanOut</span>(<span class="pl-s1">out_stack</span>), <span class="pl-s1">stax</span>.<span class="pl-v">FanInConcat</span>(), <span class="pl-s1">stax</span>.<span class="pl-v">Selu</span>, <span class="pl-c"># stax.Elu,</span> <span class="pl-c"># stax.Exp,</span> ) <span class="pl-s1">params</span>, <span class="pl-s1">shape</span> <span class="pl-c1">=</span> <span class="pl-s1">s</span>[<span class="pl-c1">0</span>](<span class="pl-s1">key</span>, <span class="pl-s1">input</span>.<span class="pl-s1">shape</span>) <span class="pl-k">assert</span> <span class="pl-s1">jnp</span>.<span class="pl-en">isclose</span>(<span class="pl-s1">s</span>[<span class="pl-c1">1</span>](<span class="pl-s1">params</span>, <span class="pl-s1">input</span>), <span class="pl-s1">input_comparison</span>).<span class="pl-en">all</span>()</pre></div> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> If applicable, include full error messages/tracebacks.<br> N/A</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Python 3.9.7 (default, Sep 16 2021, 08:50:36) [Clang 10.0.0 ] :: Anaconda, Inc. on darwin Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information. &gt;&gt;&gt; import jax &gt;&gt;&gt; jax.__version__ '0.2.25'"><pre class="notranslate"><code class="notranslate">Python 3.9.7 (default, Sep 16 2021, 08:50:36) [Clang 10.0.0 ] :: Anaconda, Inc. on darwin Type "help", "copyright", "credits" or "license" for more information. &gt;&gt;&gt; import jax &gt;&gt;&gt; jax.__version__ '0.2.25' </code></pre></div>
<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" checked=""> Check for duplicate issues.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> 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 import jax.numpy as jnp import numpy as np def apply(mask, scores): attention_mask = -1. * 1e30 * (1.0 - mask) scores += attention_mask unnormalized = scores - scores.max() return unnormalized mask = np.array(1.0) scores = jax.numpy.array([0.7, 0.5]) apply(mask, scores), jax.jit(apply)(mask, scores)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">jax</span> <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-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">def</span> <span class="pl-en">apply</span>(<span class="pl-s1">mask</span>, <span class="pl-s1">scores</span>): <span class="pl-s1">attention_mask</span> <span class="pl-c1">=</span> <span class="pl-c1">-</span><span class="pl-c1">1.</span> <span class="pl-c1">*</span> <span class="pl-c1">1e30</span> <span class="pl-c1">*</span> (<span class="pl-c1">1.0</span> <span class="pl-c1">-</span> <span class="pl-s1">mask</span>) <span class="pl-s1">scores</span> <span class="pl-c1">+=</span> <span class="pl-s1">attention_mask</span> <span class="pl-s1">unnormalized</span> <span class="pl-c1">=</span> <span class="pl-s1">scores</span> <span class="pl-c1">-</span> <span class="pl-s1">scores</span>.<span class="pl-en">max</span>() <span class="pl-k">return</span> <span class="pl-s1">unnormalized</span> <span class="pl-s1">mask</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>(<span class="pl-c1">1.0</span>) <span class="pl-s1">scores</span> <span class="pl-c1">=</span> <span class="pl-s1">jax</span>.<span class="pl-s1">numpy</span>.<span class="pl-en">array</span>([<span class="pl-c1">0.7</span>, <span class="pl-c1">0.5</span>]) <span class="pl-en">apply</span>(<span class="pl-s1">mask</span>, <span class="pl-s1">scores</span>), <span class="pl-s1">jax</span>.<span class="pl-en">jit</span>(<span class="pl-s1">apply</span>)(<span class="pl-s1">mask</span>, <span class="pl-s1">scores</span>)</pre></div> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> If applicable, include full error messages/tracebacks.</li> </ul> <p dir="auto">The code above produces:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(DeviceArray([ 0. , -0.19999999], dtype=float32), DeviceArray([0., 0.], dtype=float32))"><pre class="notranslate"><code class="notranslate">(DeviceArray([ 0. , -0.19999999], dtype=float32), DeviceArray([0., 0.], dtype=float32)) </code></pre></div> <p dir="auto">on a CPU machine but correctly produces:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(DeviceArray([ 0. , -0.19999999], dtype=float32), DeviceArray([ 0. , -0.19999999], dtype=float32))"><pre class="notranslate"><code class="notranslate">(DeviceArray([ 0. , -0.19999999], dtype=float32), DeviceArray([ 0. , -0.19999999], dtype=float32)) </code></pre></div> <p dir="auto">on GPU and TPU<br> The issue seems to be around <code class="notranslate">-0.0</code> and adding it to the score.<br> If the key part of the code snippet that adds the <code class="notranslate">-0.0</code> is rephrased as the equivalent:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" attention_mask = 1. * 1e30 * (1.0 - mask) scores -= attention_mask"><pre class="notranslate"><code class="notranslate"> attention_mask = 1. * 1e30 * (1.0 - mask) scores -= attention_mask </code></pre></div> <p dir="auto">Then the CPU produces the same results as GPU and TPU</p>
0
<p dir="auto">I can't align the label of TextFields from right to left. I need it for Farsi (or Arabic) language because they're written from right to left.</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Ability to change label position (direction) to right."><pre class="notranslate"><code class="notranslate">Ability to change label position (direction) to right. </code></pre></div> <h2 dir="auto">Current Behavior</h2> <p dir="auto">Textfield label is positioned only on the left.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/20892179/30536602-f96f3504-9c55-11e7-9f2a-c78c4a2fda14.png"><img src="https://user-images.githubusercontent.com/20892179/30536602-f96f3504-9c55-11e7-9f2a-c78c4a2fda14.png" alt="image" style="max-width: 100%;"></a></p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>v1.0.0-beta.10</td> </tr> </tbody> </table>
0
<ul dir="auto"> <li>[ ✔️] I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li>[<g-emoji class="g-emoji" alias="heavy_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2714.png">✔️</g-emoji> ] 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</li> </ul> <h3 dir="auto">Description</h3> <p dir="auto">When using Nacos registry &amp; metadatastore &amp; configcenter, we can pass some parameters in the url, such as:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="nacos://127.0.0.1:8848?namespace=dubbo&amp;clusterName=DEFAULT&amp;namingLoadCacheAtStart=true"><pre class="notranslate"><code class="notranslate">nacos://127.0.0.1:8848?namespace=dubbo&amp;clusterName=DEFAULT&amp;namingLoadCacheAtStart=true </code></pre></div> <p dir="auto">Some parameters can be recognized, while some others can't like <code class="notranslate">namingLoadCacheAtStart</code>.</p> <p dir="auto">In my use case, the config item <code class="notranslate">namingLoadCacheAtStart=true</code> is very important to let naocs load local cache files to avoid the crash of Nacos cluster. It will ensure the stability of application.</p> <p dir="auto">But the latest version of Dubbo don't support the param of <code class="notranslate">namingLoadCacheAtStart</code>.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/11485990/69842218-5f85ef80-129d-11ea-883f-538d689adbb5.png"><img src="https://user-images.githubusercontent.com/11485990/69842218-5f85ef80-129d-11ea-883f-538d689adbb5.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">I will send a pr to fix this problem.</p>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.3</li> <li>Operating System version: windows 10</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>当将dubbo配置类不放在根包的目录时,用scanBasePackages指定要扫描的包,org.apache.dubbo.config.spring.context.annotation.DubboComponentScanRegistrar类中getPackagesToScan方法返回是dubbo配置类所在的包(即默认值)</li> </ol> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">返回scanBasePackages指定的包</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">实际上返回的是默认值</p>
0
<p dir="auto">I've written a code that uses flow_from_directory method to import augmented images and their masks into a generator.</p> <p dir="auto">Then I want to 'reshape' these masks and create 'sample_weight' vector and build my own custom generator that yields (image, mask, sample_weights).</p> <p dir="auto">This is my implementation:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="data_trn_gen_args_mask = dict(preprocessing_function = preprocess_mask, horizontal_flip=True, zoom_range=0.2) data_trn_gen_args_image = dict(preprocessing_function = preprocess_input, horizontal_flip=True, zoom_range=0.2) mask_datagen = ImageDataGenerator(**data_gen_args_mask) image_datagen = ImageDataGenerator(**data_gen_args_image) image_generator = image_datagen.flow_from_directory(PATH, classes = ['train'], class_mode=None, batch_size=16, shuffle=True, seed=29) mask_generator = mask_datagen.flow_from_directory(PATH, color_mode = 'grayscale' classes = ['SegmentationClassAug'], class_mode=None, batch_size=16, shuffle=True, seed=29) def segmentation_generator(image_gen, mask_gen): while True: X = image_gen.next() y = mask_gen.next() y = np.reshape(y, (mask_gen.batch_size, -1, 1)) y = y.astype('int32') sample_weights = np.ones(y.shape) sample_weights[y==0] = .1 sample_weights[y==255] = 0 yield X, y, sample_weights[...,0] train_gen = segmentation_generator(image_generator, mask_generator) model.fit_generator(train_gen, ...)"><pre class="notranslate"><code class="notranslate">data_trn_gen_args_mask = dict(preprocessing_function = preprocess_mask, horizontal_flip=True, zoom_range=0.2) data_trn_gen_args_image = dict(preprocessing_function = preprocess_input, horizontal_flip=True, zoom_range=0.2) mask_datagen = ImageDataGenerator(**data_gen_args_mask) image_datagen = ImageDataGenerator(**data_gen_args_image) image_generator = image_datagen.flow_from_directory(PATH, classes = ['train'], class_mode=None, batch_size=16, shuffle=True, seed=29) mask_generator = mask_datagen.flow_from_directory(PATH, color_mode = 'grayscale' classes = ['SegmentationClassAug'], class_mode=None, batch_size=16, shuffle=True, seed=29) def segmentation_generator(image_gen, mask_gen): while True: X = image_gen.next() y = mask_gen.next() y = np.reshape(y, (mask_gen.batch_size, -1, 1)) y = y.astype('int32') sample_weights = np.ones(y.shape) sample_weights[y==0] = .1 sample_weights[y==255] = 0 yield X, y, sample_weights[...,0] train_gen = segmentation_generator(image_generator, mask_generator) model.fit_generator(train_gen, ...) </code></pre></div> <p dir="auto">It works, but I'm concerned since this implementation doesn't avoid duplicate data when using multiprocessing, as I'm not using <strong>keras.utils.Sequence</strong> object.</p> <p dir="auto">How should I modify <strong>segmentation_generator</strong> then?</p> <p dir="auto">Thanks in advance</p>
<p dir="auto">I am learning python and started working with existing codes in google, but this code is not providing proper output , always giving wrong value.</p> <p dir="auto">import nltk<br> nltk.download('punkt')<br> nltk.download('wordnet')<br> from nltk.stem import WordNetLemmatizer<br> lemmatizer = WordNetLemmatizer()<br> import json<br> import pickle</p> <p dir="auto">import numpy as np<br> from keras.models import Sequential<br> from keras.layers import Dense, Activation, Dropout<br> from keras.optimizers import SGD<br> import random<br> import tensorflow as tf<br> import tensorflow_hub as hub<br> import tensorflow_datasets as tfds</p> <p dir="auto">intents_file = open('intents.json').read()<br> intents = json.loads(intents_file)</p> <p dir="auto">words=[]<br> classes = []<br> documents = []<br> ignore_letters = []</p> <p dir="auto">for intent in intents['intents']:<br> for pattern in intent['patterns']:<br> #tokenize each word<br> w = nltk.word_tokenize(pattern)<br> words.extend(w)<br> #add documents in the corpus<br> documents.append((w, intent['tag']))<br> # add to our classes list<br> if intent['tag'] not in classes:<br> classes.append(intent['tag'])<br> print(documents)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" # lemmatize, lower each word and remove duplicates words = [lemmatizer.lemmatize(w.lower()) for w in words if w not in ignore_letters] words = sorted(list(set(words))) # sort classes classes = sorted(list(set(classes))) # documents = combination between patterns and intents print(len(documents), &quot;documents&quot;) # classes = intents print(len(classes), &quot;classes&quot;, classes) # words = all words, vocabulary print(len(words), &quot;unique lemmatized words&quot;, words) pickle.dump(words, open('words.pkl', 'wb')) pickle.dump(classes, open('classes.pkl', 'wb')) # create our training data training = [] # create an empty array for our output output_empty = [0] * len(classes) # training set, bag of words for each sentence for doc in documents: # initialize our bag of words bag = [] # list of tokenized words for the pattern pattern_words = doc[0] # lemmatize each word - create base word, in attempt to represent related words pattern_words = [lemmatizer.lemmatize(word.lower()) for word in pattern_words] # create our bag of words array with 1, if word match found in current pattern for w in words: bag.append(1) if w in pattern_words else bag.append(0) # output is a '0' for each tag and '1' for current tag (for each pattern) output_row = list(output_empty) output_row[classes.index(doc[1])] = 1 training.append([bag, output_row]) # shuffle our features and turn into np.array random.shuffle(training) training = np.array(training) # create train and test lists. X - patterns, Y - intents train_x = list(training[:, 0]) train_y = list(training[:, 1]) print(&quot;Training data created&quot;) # Create model - 3 layers. First layer 128 neurons, second layer 64 neurons and 3rd output layer contains number of neurons # equal to number of intents to predict output intent with softmax model = Sequential() model.add(Dense(128, input_shape=(len(train_x[0]),), activation='relu')) model.add(Dropout(0.5)) model.add(Dense(64, activation='relu')) model.add(Dropout(0.5)) model.add(Dense(len(train_y[0]), activation='softmax')) # Compile model. Stochastic gradient descent with Nesterov accelerated gradient gives good results for this model sgd = SGD(lr=0.01, decay=1e-6, momentum=0.9, nesterov=True) model.compile(loss='categorical_crossentropy', optimizer=sgd, metrics=['accuracy']) # fitting and saving the model hist = model.fit(np.array(train_x), np.array(train_y), epochs=8, batch_size=8, verbose=8) model.save('chatbot_model.h5', hist) print(&quot;model created&quot;) # fitting and saving the model"><pre class="notranslate"><code class="notranslate"> # lemmatize, lower each word and remove duplicates words = [lemmatizer.lemmatize(w.lower()) for w in words if w not in ignore_letters] words = sorted(list(set(words))) # sort classes classes = sorted(list(set(classes))) # documents = combination between patterns and intents print(len(documents), "documents") # classes = intents print(len(classes), "classes", classes) # words = all words, vocabulary print(len(words), "unique lemmatized words", words) pickle.dump(words, open('words.pkl', 'wb')) pickle.dump(classes, open('classes.pkl', 'wb')) # create our training data training = [] # create an empty array for our output output_empty = [0] * len(classes) # training set, bag of words for each sentence for doc in documents: # initialize our bag of words bag = [] # list of tokenized words for the pattern pattern_words = doc[0] # lemmatize each word - create base word, in attempt to represent related words pattern_words = [lemmatizer.lemmatize(word.lower()) for word in pattern_words] # create our bag of words array with 1, if word match found in current pattern for w in words: bag.append(1) if w in pattern_words else bag.append(0) # output is a '0' for each tag and '1' for current tag (for each pattern) output_row = list(output_empty) output_row[classes.index(doc[1])] = 1 training.append([bag, output_row]) # shuffle our features and turn into np.array random.shuffle(training) training = np.array(training) # create train and test lists. X - patterns, Y - intents train_x = list(training[:, 0]) train_y = list(training[:, 1]) print("Training data created") # Create model - 3 layers. First layer 128 neurons, second layer 64 neurons and 3rd output layer contains number of neurons # equal to number of intents to predict output intent with softmax model = Sequential() model.add(Dense(128, input_shape=(len(train_x[0]),), activation='relu')) model.add(Dropout(0.5)) model.add(Dense(64, activation='relu')) model.add(Dropout(0.5)) model.add(Dense(len(train_y[0]), activation='softmax')) # Compile model. Stochastic gradient descent with Nesterov accelerated gradient gives good results for this model sgd = SGD(lr=0.01, decay=1e-6, momentum=0.9, nesterov=True) model.compile(loss='categorical_crossentropy', optimizer=sgd, metrics=['accuracy']) # fitting and saving the model hist = model.fit(np.array(train_x), np.array(train_y), epochs=8, batch_size=8, verbose=8) model.save('chatbot_model.h5', hist) print("model created") # fitting and saving the model </code></pre></div> <p dir="auto">hist = model.fit(np.array(train_x), np.array(train_y), epochs=1, batch_size=1, verbose=8,shuffle=True)<br> model.save('chatbot_model.h5', hist)<br> print("model created")</p> <p dir="auto">model.summary()<br> cvscores = []<br> scores = model.evaluate(train_x, train_y, verbose=0)<br> print("%s: %.2f%%" % (model.metrics_names[1], scores[1]*100))<br> cvscores.append(scores[1] * 100)<br> print("%.2f%% (+/- %.2f%%)" % (numpy.mean(cvscores), numpy.std(cvscores)))</p>
0
<p dir="auto"><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/flutter/flutter/commit/84ee41686d1332bdb7c0a62f2f7b883d912629ba/hovercard" href="https://github.com/flutter/flutter/commit/84ee41686d1332bdb7c0a62f2f7b883d912629ba"><tt>84ee416</tt></a> (engine roll with containing only skia roll) caused a regression for benchmark <code class="notranslate">complex_layout_scroll_perf__timeline_summary/worst_frame_rasterizer_time_millis</code> from 50ms to 103ms.</p> <p dir="auto">If this change is expected the benchmark should be rebased.</p> <p dir="auto">/cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/cbracken/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/cbracken">@cbracken</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/liyuqian/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/liyuqian">@liyuqian</a></p>
<p dir="auto">The regression is caused by an engine roll that has only one Skia roll that has only one Skia commit.</p> <p dir="auto">See:<br> <a href="https://flutter-dashboard.appspot.com/benchmarks.html" rel="nofollow">https://flutter-dashboard.appspot.com/benchmarks.html</a><br> <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/flutter/flutter/commit/84ee41686d1332bdb7c0a62f2f7b883d912629ba/hovercard" href="https://github.com/flutter/flutter/commit/84ee41686d1332bdb7c0a62f2f7b883d912629ba"><tt>84ee416</tt></a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="356447518" data-permission-text="Title is private" data-url="https://github.com/flutter/engine/issues/6144" data-hovercard-type="pull_request" data-hovercard-url="/flutter/engine/pull/6144/hovercard" href="https://github.com/flutter/engine/pull/6144">flutter/engine#6144</a><br> <a href="https://skia.googlesource.com/skia.git/+log/2f53025e8bf1..09a7bb222172" rel="nofollow">https://skia.googlesource.com/skia.git/+log/2f53025e8bf1..09a7bb222172</a></p>
1
<p dir="auto"><a href="https://github.com/servo/servo/blob/master/src/components/util/smallvec.rs">SmallVec</a> is a cool collection (family) that attempts to keep some small constant-sized number of elements in-stack before failing over to heap-allocated Slices.</p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/aturon/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/aturon">@aturon</a> has indicated interest in including this, in some form, in libcollections.</p>
<p dir="auto">It's often useful to have a vector optimized for storing small sequences. LLVM includes a <code class="notranslate">SmallVector</code> templated type which takes the size to store inside the struct as a template parameter, which isn't possible at the moment in Rust. However, it would be fine to just copy what libc++ does for <code class="notranslate">std::string</code> which is to store 3 words in the struct (size, capacity, and the pointer) and reuse that space for the small string optimization.</p>
1
<p dir="auto">If a python list argument to <code class="notranslate">np.array</code> contains a mixture of <code class="notranslate">int</code> and <code class="notranslate">np.uint64</code>, the array will have <code class="notranslate">dtype=np.float64</code>.<br> Which results in a loss of information, since values are not exactly representable by float64.</p> <h3 dir="auto">Reproducing code example:</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np def print_array(a): print(a.dtype, a) large = 2**63 - 1 print_array(np.array([-1, large])) print_array(np.array([-1, np.int64(large)])) print_array(np.array([-1, np.uint64(large)])) "><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">def</span> <span class="pl-en">print_array</span>(<span class="pl-s1">a</span>): <span class="pl-en">print</span>(<span class="pl-s1">a</span>.<span class="pl-s1">dtype</span>, <span class="pl-s1">a</span>) <span class="pl-s1">large</span> <span class="pl-c1">=</span> <span class="pl-c1">2</span><span class="pl-c1">**</span><span class="pl-c1">63</span> <span class="pl-c1">-</span> <span class="pl-c1">1</span> <span class="pl-en">print_array</span>(<span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">-</span><span class="pl-c1">1</span>, <span class="pl-s1">large</span>])) <span class="pl-en">print_array</span>(<span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">-</span><span class="pl-c1">1</span>, <span class="pl-s1">np</span>.<span class="pl-en">int64</span>(<span class="pl-s1">large</span>)])) <span class="pl-en">print_array</span>(<span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">-</span><span class="pl-c1">1</span>, <span class="pl-s1">np</span>.<span class="pl-en">uint64</span>(<span class="pl-s1">large</span>)]))</pre></div> <p dir="auto">Results in:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="int64 [ -1 9223372036854775807] int64 [ -1 9223372036854775807] float64 [-1.00000000e+00 9.22337204e+18]"><pre class="notranslate"><code class="notranslate">int64 [ -1 9223372036854775807] int64 [ -1 9223372036854775807] float64 [-1.00000000e+00 9.22337204e+18] </code></pre></div> <h3 dir="auto">NumPy/Python version information:</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="1.20.1 3.9.2 (default, Feb 20 2021, 18:40:11) [GCC 10.2.0]"><pre class="notranslate"><code class="notranslate">1.20.1 3.9.2 (default, Feb 20 2021, 18:40:11) [GCC 10.2.0] </code></pre></div>
<p dir="auto">I expected to get uint64</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="umax = np.iinfo(np.uint64).max np.array([umax]).dtype # &lt;-- uint64, as expected np.array([0, umax]).dtype # &lt;-- float64, surprising"><pre class="notranslate"><code class="notranslate">umax = np.iinfo(np.uint64).max np.array([umax]).dtype # &lt;-- uint64, as expected np.array([0, umax]).dtype # &lt;-- float64, surprising </code></pre></div> <p dir="auto">There seems to be something special going on inference-wise around the int64 bound:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="imax = np.iinfo(np.int64).max np.array([imax, umax]).dtype # &lt;-- float64 np.array([imax+1, umax]).dtype # &lt;-- uint64"><pre class="notranslate"><code class="notranslate">imax = np.iinfo(np.int64).max np.array([imax, umax]).dtype # &lt;-- float64 np.array([imax+1, umax]).dtype # &lt;-- uint64 </code></pre></div>
1
<p dir="auto">Is mfcc support in tensorflow now? I found this <a href="https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/kernels/mfcc.h">https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/kernels/mfcc.h</a></p> <p dir="auto">but I can't find this op in Python API in tensorflow.</p> <p dir="auto">So is that not open yet? Or it's wrapped in some other Python api?</p>
<h3 dir="auto">System information</h3> <ul dir="auto"> <li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: Mac OS X 10.10.5</li> <li><strong>TensorFlow installed from (source or binary)</strong>: binary</li> <li><strong>TensorFlow version (use command below)</strong>: 1.2.1</li> <li><strong>Python version</strong>: 3.5.2</li> </ul> <p dir="auto">There are some very useful audio operations defined in tensorflow/core/ops/audio_ops.cc. It would be great if python client users could access these by default.</p>
1
<p dir="auto">When I attempted to use f2py with Intel Fortran, it seemed that distutils can not find ifort in my computer, and raised the numpy.distutils.fcompiler.CompilerNotFound.</p> <p dir="auto">The reason is that, Intel Compilers are set to print their version information via standard error, not the stand output. So that these information cannot be captured by subprocess.check_output in numpy/distutils/ccomplier.py.</p> <p dir="auto">It works now after adding 'stderr=subprocess.STDOUT' into check_output.</p>
<p dir="auto">Hi,<br> I have intel compilers installed, but get this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Found executable /opt/intel/compilers_and_libraries_2018.1.163/linux/bin/intel64/icc customize IntelEM64TFCompiler Found executable /opt/intel/compilers_and_libraries_2018.1.163/linux/bin/intel64/ifort Traceback (most recent call last): File &quot;setup.py&quot;, line 418, in &lt;module&gt;setup_package() File &quot;setup.py&quot;, line 414, in setup_packagesetup(**metadata) File &quot;/usr/lib/python3.6/site-packages/numpy/distutils/core.py&quot;, line 169, in setupreturn old_setup(**new_attr) File &quot;/usr/lib/python3.6/site-packages/setuptools/__init__.py&quot;, line 129, in setupreturn distutils.core.setup(**attrs) File &quot;/usr/lib/python3.6/distutils/core.py&quot;, line 148, in setupdist.run_commands() File &quot;/usr/lib/python3.6/distutils/dist.py&quot;, line 955, in run_commandsself.run_command(cmd) File &quot;/usr/lib/python3.6/distutils/dist.py&quot;, line 974, in run_commandcmd_obj.run() File &quot;/usr/lib/python3.6/site-packages/numpy/distutils/command/build_clib.py&quot;, line 75, in runself.run_command('build_src') File &quot;/usr/lib/python3.6/distutils/cmd.py&quot;, line 313, in run_commandself.distribution.run_command(command) File &quot;/usr/lib/python3.6/distutils/dist.py&quot;, line 974, in run_commandcmd_obj.run() File &quot;/usr/lib/python3.6/site-packages/numpy/distutils/command/build_src.py&quot;, line 148, in runself.build_sources() File &quot;/usr/lib/python3.6/site-packages/numpy/distutils/command/build_src.py&quot;, line 165, in build_sourcesself.build_extension_sources(ext) File &quot;/usr/lib/python3.6/site-packages/numpy/distutils/command/build_src.py&quot;, line 324, in build_extension_sourcessources = self.generate_sources(sources, ext) File &quot;/usr/lib/python3.6/site-packages/numpy/distutils/command/build_src.py&quot;, line 377, in generate_sourcessource = func(extension, build_dir) File &quot;scipy/_lib/setup.py&quot;, line 32, in get_messagestream_configif config_cmd.check_func('open_memstream', decl=True, call=True): File &quot;/usr/lib/python3.6/site-packages/numpy/distutils/command/config.py&quot;, line 312, in check_funcself._check_compiler() File &quot;/usr/lib/python3.6/site-packages/numpy/distutils/command/config.py&quot;, line 83, in _check_compilerself.fcompiler.customize(self.distribution) File &quot;/usr/lib/python3.6/site-packages/numpy/distutils/fcompiler/__init__.py&quot;, line 499, in customizeget_flags('opt', oflags) File &quot;/usr/lib/python3.6/site-packages/numpy/distutils/fcompiler/__init__.py&quot;, line 490, in get_flagsflags.extend(getattr(self.flag_vars, tag)) File &quot;/usr/lib/python3.6/site-packages/numpy/distutils/environment.py&quot;, line 39, in __getattr__return self._get_var(name, conf_desc) File &quot;/usr/lib/python3.6/site-packages/numpy/distutils/environment.py&quot;, line 53, in _get_varvar = self._hook_handler(name, hook) File &quot;/usr/lib/python3.6/site-packages/numpy/distutils/fcompiler/__init__.py&quot;, line 697, in _environment_hookreturn hook() File &quot;/usr/lib/python3.6/site-packages/numpy/distutils/fcompiler/intel.py&quot;, line 125, in get_flags_optv = self.get_version() File &quot;/usr/lib/python3.6/site-packages/numpy/distutils/fcompiler/__init__.py&quot;, line 430, in get_versionraise CompilerNotFound() numpy.distutils.fcompiler.CompilerNotFound"><pre class="notranslate"><code class="notranslate">Found executable /opt/intel/compilers_and_libraries_2018.1.163/linux/bin/intel64/icc customize IntelEM64TFCompiler Found executable /opt/intel/compilers_and_libraries_2018.1.163/linux/bin/intel64/ifort Traceback (most recent call last): File "setup.py", line 418, in &lt;module&gt;setup_package() File "setup.py", line 414, in setup_packagesetup(**metadata) File "/usr/lib/python3.6/site-packages/numpy/distutils/core.py", line 169, in setupreturn old_setup(**new_attr) File "/usr/lib/python3.6/site-packages/setuptools/__init__.py", line 129, in setupreturn distutils.core.setup(**attrs) File "/usr/lib/python3.6/distutils/core.py", line 148, in setupdist.run_commands() File "/usr/lib/python3.6/distutils/dist.py", line 955, in run_commandsself.run_command(cmd) File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_commandcmd_obj.run() File "/usr/lib/python3.6/site-packages/numpy/distutils/command/build_clib.py", line 75, in runself.run_command('build_src') File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_commandself.distribution.run_command(command) File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_commandcmd_obj.run() File "/usr/lib/python3.6/site-packages/numpy/distutils/command/build_src.py", line 148, in runself.build_sources() File "/usr/lib/python3.6/site-packages/numpy/distutils/command/build_src.py", line 165, in build_sourcesself.build_extension_sources(ext) File "/usr/lib/python3.6/site-packages/numpy/distutils/command/build_src.py", line 324, in build_extension_sourcessources = self.generate_sources(sources, ext) File "/usr/lib/python3.6/site-packages/numpy/distutils/command/build_src.py", line 377, in generate_sourcessource = func(extension, build_dir) File "scipy/_lib/setup.py", line 32, in get_messagestream_configif config_cmd.check_func('open_memstream', decl=True, call=True): File "/usr/lib/python3.6/site-packages/numpy/distutils/command/config.py", line 312, in check_funcself._check_compiler() File "/usr/lib/python3.6/site-packages/numpy/distutils/command/config.py", line 83, in _check_compilerself.fcompiler.customize(self.distribution) File "/usr/lib/python3.6/site-packages/numpy/distutils/fcompiler/__init__.py", line 499, in customizeget_flags('opt', oflags) File "/usr/lib/python3.6/site-packages/numpy/distutils/fcompiler/__init__.py", line 490, in get_flagsflags.extend(getattr(self.flag_vars, tag)) File "/usr/lib/python3.6/site-packages/numpy/distutils/environment.py", line 39, in __getattr__return self._get_var(name, conf_desc) File "/usr/lib/python3.6/site-packages/numpy/distutils/environment.py", line 53, in _get_varvar = self._hook_handler(name, hook) File "/usr/lib/python3.6/site-packages/numpy/distutils/fcompiler/__init__.py", line 697, in _environment_hookreturn hook() File "/usr/lib/python3.6/site-packages/numpy/distutils/fcompiler/intel.py", line 125, in get_flags_optv = self.get_version() File "/usr/lib/python3.6/site-packages/numpy/distutils/fcompiler/__init__.py", line 430, in get_versionraise CompilerNotFound() numpy.distutils.fcompiler.CompilerNotFound </code></pre></div>
1
<p dir="auto">I have installed a number of modules system-wide under <code class="notranslate">/usr/share/julia/environments/v1.0</code> using a Linux distribution package <a href="https://aur.archlinux.org/packages/julia-ijulia/" rel="nofollow">https://aur.archlinux.org/packages/julia-ijulia/</a></p> <p dir="auto">With Julia 1.0.2 these packages are detected and loaded, e.g.:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ strace -f -estat julia ... julia&gt; using IJulia [pid 30509] stat(&quot;/home/jonathon/.julia/environments/v1.0&quot;, 0x7ffdf6e551e0) = -1 ENOENT (No such file or directory) [pid 30509] stat(&quot;/usr/local/share/julia/environments/v1.0&quot;, 0x7ffdf6e551e0) = -1 ENOENT (No such file or directory) [pid 30509] stat(&quot;/usr/share/julia/environments/v1.0&quot;, {st_mode=S_IFDIR|0755, st_size=242, ...}) = 0 [pid 30509] stat(&quot;/usr/share/julia/environments/v1.0/JuliaProject.toml&quot;, 0x7ffdf6e551e0) = -1 ENOENT (No such file or directory) [pid 30509] stat(&quot;/usr/share/julia/environments/v1.0/Project.toml&quot;, 0x7ffdf6e551e0) = -1 ENOENT (No such file or directory) [pid 30509] stat(&quot;/usr/share/julia/environments/v1.0&quot;, {st_mode=S_IFDIR|0755, st_size=242, ...}) = 0 [pid 30509] stat(&quot;/usr/share/julia/environments/v1.0/JuliaProject.toml&quot;, 0x7ffdf6e55340) = -1 ENOENT (No such file or directory) [pid 30509] stat(&quot;/usr/share/julia/environments/v1.0/Project.toml&quot;, 0x7ffdf6e55340) = -1 ENOENT (No such file or directory) [pid 30509] stat(&quot;/usr/share/julia/environments/v1.0/IJulia.jl&quot;, 0x7ffdf6e55340) = -1 ENOENT (No such file or directory) [pid 30509] stat(&quot;/usr/share/julia/environments/v1.0/IJulia/src/IJulia.jl&quot;, {st_mode=S_IFREG|0644, st_size=12461, ...}) = 0 ..."><pre class="notranslate"><code class="notranslate">$ strace -f -estat julia ... julia&gt; using IJulia [pid 30509] stat("/home/jonathon/.julia/environments/v1.0", 0x7ffdf6e551e0) = -1 ENOENT (No such file or directory) [pid 30509] stat("/usr/local/share/julia/environments/v1.0", 0x7ffdf6e551e0) = -1 ENOENT (No such file or directory) [pid 30509] stat("/usr/share/julia/environments/v1.0", {st_mode=S_IFDIR|0755, st_size=242, ...}) = 0 [pid 30509] stat("/usr/share/julia/environments/v1.0/JuliaProject.toml", 0x7ffdf6e551e0) = -1 ENOENT (No such file or directory) [pid 30509] stat("/usr/share/julia/environments/v1.0/Project.toml", 0x7ffdf6e551e0) = -1 ENOENT (No such file or directory) [pid 30509] stat("/usr/share/julia/environments/v1.0", {st_mode=S_IFDIR|0755, st_size=242, ...}) = 0 [pid 30509] stat("/usr/share/julia/environments/v1.0/JuliaProject.toml", 0x7ffdf6e55340) = -1 ENOENT (No such file or directory) [pid 30509] stat("/usr/share/julia/environments/v1.0/Project.toml", 0x7ffdf6e55340) = -1 ENOENT (No such file or directory) [pid 30509] stat("/usr/share/julia/environments/v1.0/IJulia.jl", 0x7ffdf6e55340) = -1 ENOENT (No such file or directory) [pid 30509] stat("/usr/share/julia/environments/v1.0/IJulia/src/IJulia.jl", {st_mode=S_IFREG|0644, st_size=12461, ...}) = 0 ... </code></pre></div> <p dir="auto">Note that it looks under the path <code class="notranslate">/usr/share/julia/environments/v1.0/IJulia/src/IJulia.jl</code>.</p> <p dir="auto">With 1.0.3 this fails:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; using IJulia [pid 17444] stat(&quot;/home/jonathon/.julia/environments/v1.0&quot;, 0x7ffe0d5fde00) = -1 ENOENT (No such file or directory) [pid 17444] stat(&quot;/usr/local/share/julia/environments/v1.0&quot;, 0x7ffe0d5fde00) = -1 ENOENT (No such file or directory) [pid 17444] stat(&quot;/usr/share/julia/environments/v1.0&quot;, {st_mode=S_IFDIR|0755, st_size=242, ...}) = 0 [pid 17444] stat(&quot;/usr/share/julia/environments/v1.0/JuliaProject.toml&quot;, 0x7ffe0d5fde00) = -1 ENOENT (No such file or directory) [pid 17444] stat(&quot;/usr/share/julia/environments/v1.0/Project.toml&quot;, 0x7ffe0d5fde00) = -1 ENOENT (No such file or directory) [pid 17444] stat(&quot;/home/jonathon/.julia/environments/v1.0/Project.toml&quot;, 0x7ffe0d5fdf80) = -1 ENOENT (No such file or directory) [pid 17444] stat(&quot;/home/jonathon/.julia/environments/v1.0/Project.toml&quot;, 0x7ffe0d5fdf80) = -1 ENOENT (No such file or directory) [pid 17444] stat(&quot;/usr/share/julia/stdlib/v1.0&quot;, {st_mode=S_IFDIR|0755, st_size=460, ...}) = 0 [pid 17444] stat(&quot;/usr/share/julia/stdlib/v1.0/JuliaProject.toml&quot;, 0x7ffe0d5fdf80) = -1 ENOENT (No such file or directory) [pid 17444] stat(&quot;/usr/share/julia/stdlib/v1.0/Project.toml&quot;, 0x7ffe0d5fdf80) = -1 ENOENT (No such file or directory) [pid 17444] stat(&quot;/usr/share/julia/stdlib/v1.0/IJulia.jl&quot;, 0x7ffe0d5fdf80) = -1 ENOENT (No such file or directory) [pid 17444] stat(&quot;/usr/share/julia/stdlib/v1.0/IJulia/src/IJulia.jl&quot;, 0x7ffe0d5fdf80) = -1 ENOENT (No such file or directory) [pid 17444] stat(&quot;/usr/share/julia/stdlib/v1.0/IJulia.jl/src/IJulia.jl&quot;, 0x7ffe0d5fdf80) = -1 ENOENT (No such file or directory) ERROR: ArgumentError: Package IJulia not found in current path: - Run `import Pkg; Pkg.add(&quot;IJulia&quot;)` to install the IJulia package."><pre class="notranslate"><code class="notranslate">julia&gt; using IJulia [pid 17444] stat("/home/jonathon/.julia/environments/v1.0", 0x7ffe0d5fde00) = -1 ENOENT (No such file or directory) [pid 17444] stat("/usr/local/share/julia/environments/v1.0", 0x7ffe0d5fde00) = -1 ENOENT (No such file or directory) [pid 17444] stat("/usr/share/julia/environments/v1.0", {st_mode=S_IFDIR|0755, st_size=242, ...}) = 0 [pid 17444] stat("/usr/share/julia/environments/v1.0/JuliaProject.toml", 0x7ffe0d5fde00) = -1 ENOENT (No such file or directory) [pid 17444] stat("/usr/share/julia/environments/v1.0/Project.toml", 0x7ffe0d5fde00) = -1 ENOENT (No such file or directory) [pid 17444] stat("/home/jonathon/.julia/environments/v1.0/Project.toml", 0x7ffe0d5fdf80) = -1 ENOENT (No such file or directory) [pid 17444] stat("/home/jonathon/.julia/environments/v1.0/Project.toml", 0x7ffe0d5fdf80) = -1 ENOENT (No such file or directory) [pid 17444] stat("/usr/share/julia/stdlib/v1.0", {st_mode=S_IFDIR|0755, st_size=460, ...}) = 0 [pid 17444] stat("/usr/share/julia/stdlib/v1.0/JuliaProject.toml", 0x7ffe0d5fdf80) = -1 ENOENT (No such file or directory) [pid 17444] stat("/usr/share/julia/stdlib/v1.0/Project.toml", 0x7ffe0d5fdf80) = -1 ENOENT (No such file or directory) [pid 17444] stat("/usr/share/julia/stdlib/v1.0/IJulia.jl", 0x7ffe0d5fdf80) = -1 ENOENT (No such file or directory) [pid 17444] stat("/usr/share/julia/stdlib/v1.0/IJulia/src/IJulia.jl", 0x7ffe0d5fdf80) = -1 ENOENT (No such file or directory) [pid 17444] stat("/usr/share/julia/stdlib/v1.0/IJulia.jl/src/IJulia.jl", 0x7ffe0d5fdf80) = -1 ENOENT (No such file or directory) ERROR: ArgumentError: Package IJulia not found in current path: - Run `import Pkg; Pkg.add("IJulia")` to install the IJulia package. </code></pre></div> <p dir="auto">Note that it no longer looks in subdirectories under the path <code class="notranslate">/usr/share/julia/environments/v1.0/</code>.</p> <p dir="auto">I am currently investigating <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/JuliaLang/julia/commit/eb8a9333b040b8dc86b2ed7a93bb23e70830cf14/hovercard" href="https://github.com/JuliaLang/julia/commit/eb8a9333b040b8dc86b2ed7a93bb23e70830cf14"><tt>eb8a933</tt></a> and <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/JuliaLang/julia/commit/71748da03b5a8f9a52fee021570a803e33e309a5/hovercard" href="https://github.com/JuliaLang/julia/commit/71748da03b5a8f9a52fee021570a803e33e309a5"><tt>71748da</tt></a> as potentially related but I don't really know if they are.</p> <hr> <p dir="auto">Julia distro package: <a href="https://www.archlinux.org/packages/community/x86_64/julia/" rel="nofollow">https://www.archlinux.org/packages/community/x86_64/julia/</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; versioninfo() Julia Version 1.0.2 Commit d789231e99 (2018-11-08 20:11 UTC) Platform Info: OS: Linux (x86_64-pc-linux-gnu) CPU: Intel(R) Core(TM) i7-3630QM CPU @ 2.40GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-6.0.0 (ORCJIT, ivybridge)"><pre class="notranslate"><code class="notranslate">julia&gt; versioninfo() Julia Version 1.0.2 Commit d789231e99 (2018-11-08 20:11 UTC) Platform Info: OS: Linux (x86_64-pc-linux-gnu) CPU: Intel(R) Core(TM) i7-3630QM CPU @ 2.40GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-6.0.0 (ORCJIT, ivybridge) </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; versioninfo() Julia Version 1.0.3 Commit 099e826241* (2018-12-18 01:34 UTC) Platform Info: OS: Linux (x86_64-pc-linux-gnu) CPU: Intel(R) Core(TM) i7-3630QM CPU @ 2.40GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-6.0.0 (ORCJIT, ivybridge)"><pre class="notranslate"><code class="notranslate">julia&gt; versioninfo() Julia Version 1.0.3 Commit 099e826241* (2018-12-18 01:34 UTC) Platform Info: OS: Linux (x86_64-pc-linux-gnu) CPU: Intel(R) Core(TM) i7-3630QM CPU @ 2.40GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-6.0.0 (ORCJIT, ivybridge) </code></pre></div> <hr> <p dir="auto">Mainly for my own reference, full list of changes between 1.0.2 and 1.0.3: <a class="commit-link" href="https://github.com/JuliaLang/julia/compare/v1.0.2...v1.0.3"><tt>v1.0.2...v1.0.3</tt></a></p>
<p dir="auto">I'm using Julia Version 0.5.0 (2016-09-19 18:14 UTC) and noticed that in a comprehension you can't iterate over empty sequences unless that variable is the last one. (EDIT: I just tested in the binaries of the nightly builds and the same thing happens.)</p> <p dir="auto">I'd expect both of these comprehensions to result in empty arrays:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; [a for a in [1] for b in []] 0-element Array{Int64,1} julia&gt; [a for a in [] for b in [1]] ERROR: ArgumentError: argument to Flatten must contain at least one iterator in start(::Base.Flatten{Base.Generator{Array{Any,1},##193#195}}) at ./iterator.jl:599 in grow_to!(::Array{Any,1}, ::Base.Flatten{Base.Generator{Array{Any,1},##193#195}}) at ./array.jl:357 in collect(::Base.Flatten{Base.Generator{Array{Any,1},##193#195}}) at ./array.jl:273"><pre class="notranslate">julia<span class="pl-k">&gt;</span> [a <span class="pl-k">for</span> a <span class="pl-k">in</span> [<span class="pl-c1">1</span>] <span class="pl-k">for</span> b <span class="pl-k">in</span> []] <span class="pl-c1">0</span><span class="pl-k">-</span>element Array{Int64,<span class="pl-c1">1</span>} julia<span class="pl-k">&gt;</span> [a <span class="pl-k">for</span> a <span class="pl-k">in</span> [] <span class="pl-k">for</span> b <span class="pl-k">in</span> [<span class="pl-c1">1</span>]] ERROR<span class="pl-k">:</span> ArgumentError<span class="pl-k">:</span> argument to Flatten must contain at least one iterator <span class="pl-k">in</span> <span class="pl-c1">start</span>(<span class="pl-k">::</span><span class="pl-c1">Base.Flatten{Base.Generator{Array{Any,1},##193#195}}</span>) at <span class="pl-k">./</span>iterator<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">599</span> <span class="pl-k">in</span> <span class="pl-c1">grow_to!</span>(<span class="pl-k">::</span><span class="pl-c1">Array{Any,1}</span>, <span class="pl-k">::</span><span class="pl-c1">Base.Flatten{Base.Generator{Array{Any,1},##193#195}}</span>) at <span class="pl-k">./</span>array<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">357</span> <span class="pl-k">in</span> <span class="pl-c1">collect</span>(<span class="pl-k">::</span><span class="pl-c1">Base.Flatten{Base.Generator{Array{Any,1},##193#195}}</span>) at <span class="pl-k">./</span>array<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">273</span></pre></div> <p dir="auto">Or a list of triples (a,b,a+b) where 1&lt;=a&lt;b&lt;5 and a+b is prime:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; [(a,b,c) for a=1:5 for b=a+1:5 for c in [a+b] if isprime(c)] ERROR: ArgumentError: argument to Flatten must contain at least one iterator in start(::Base.Flatten{Base.Generator{UnitRange{Int64},##18#21{Int64}}}) at ./iterator.jl:599 in next at ./iterator.jl:614 [inlined] in grow_to!(::Array{Tuple{Int64,Int64,Int64},1}, ::Base.Flatten{Base.Generator{UnitRange{Int64},##17#20}}, ::Tuple{Int64,Base.Flatten{Base.Generator{UnitRange{Int64},##18#21{Int64}}},Tuple{Int64,Base.Generator{Filter{#isprime,Array{Int64,1}},##19#22{Int64,Int64}},Tuple{Bool,Int64,Int64}}}) at ./array.jl:364 in grow_to!(::Array{Union{},1}, ::Base.Flatten{Base.Generator{UnitRange{Int64},##17#20}}, ::Tuple{Int64,Base.Flatten{Base.Generator{UnitRange{Int64},##18#21{Int64}}},Tuple{Int64,Base.Generator{Filter{#isprime,Array{Int64,1}},##19#22{Int64,Int64}},Tuple{Bool,Int64,Int64}}}) at ./array.jl:372 in grow_to!(::Array{Tuple{Int64,Int64,Int64},1}, ::Base.Flatten{Base.Generator{UnitRange{Int64},##17#20}}) at ./array.jl:357 in collect(::Base.Flatten{Base.Generator{UnitRange{Int64},##17#20}}) at ./array.jl:273"><pre class="notranslate">julia<span class="pl-k">&gt;</span> [(a,b,c) <span class="pl-k">for</span> a<span class="pl-k">=</span><span class="pl-c1">1</span><span class="pl-k">:</span><span class="pl-c1">5</span> <span class="pl-k">for</span> b<span class="pl-k">=</span>a<span class="pl-k">+</span><span class="pl-c1">1</span><span class="pl-k">:</span><span class="pl-c1">5</span> <span class="pl-k">for</span> c <span class="pl-k">in</span> [a<span class="pl-k">+</span>b] <span class="pl-k">if</span> <span class="pl-c1">isprime</span>(c)] ERROR<span class="pl-k">:</span> ArgumentError<span class="pl-k">:</span> argument to Flatten must contain at least one iterator <span class="pl-k">in</span> <span class="pl-c1">start</span>(<span class="pl-k">::</span><span class="pl-c1">Base.Flatten{Base.Generator{UnitRange{Int64},##18#21{Int64}}}</span>) at <span class="pl-k">./</span>iterator<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">599</span> <span class="pl-k">in</span> next at <span class="pl-k">./</span>iterator<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">614</span> [inlined] <span class="pl-k">in</span> <span class="pl-c1">grow_to!</span>(<span class="pl-k">::</span><span class="pl-c1">Array{Tuple{Int64,Int64,Int64},1}</span>, <span class="pl-k">::</span><span class="pl-c1">Base.Flatten{Base.Generator{UnitRange{Int64},##17#20}}</span>, <span class="pl-k">::</span><span class="pl-c1">Tuple</span>{Int64,Base<span class="pl-k">.</span>Flatten{Base<span class="pl-k">.</span>Generator{UnitRange{Int64},<span class="pl-c"><span class="pl-c">#</span>#18#21{Int64}}},Tuple{Int64,Base.Generator{Filter{#isprime,Array{Int64,1}},##19#22{Int64,Int64}},Tuple{Bool,Int64,Int64}}}) at ./array.jl:364</span> <span class="pl-k">in</span> <span class="pl-c1">grow_to!</span>(<span class="pl-k">::</span><span class="pl-c1">Array{Union{},1}</span>, <span class="pl-k">::</span><span class="pl-c1">Base.Flatten{Base.Generator{UnitRange{Int64},##17#20}}</span>, <span class="pl-k">::</span><span class="pl-c1">Tuple</span>{Int64,Base<span class="pl-k">.</span>Flatten{Base<span class="pl-k">.</span>Generator{UnitRange{Int64},<span class="pl-c"><span class="pl-c">#</span>#18#21{Int64}}},Tuple{Int64,Base.Generator{Filter{#isprime,Array{Int64,1}},##19#22{Int64,Int64}},Tuple{Bool,Int64,Int64}}}) at ./array.jl:372</span> <span class="pl-k">in</span> <span class="pl-c1">grow_to!</span>(<span class="pl-k">::</span><span class="pl-c1">Array{Tuple{Int64,Int64,Int64},1}</span>, <span class="pl-k">::</span><span class="pl-c1">Base.Flatten{Base.Generator{UnitRange{Int64},##17#20}}</span>) at <span class="pl-k">./</span>array<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">357</span> <span class="pl-k">in</span> <span class="pl-c1">collect</span>(<span class="pl-k">::</span><span class="pl-c1">Base.Flatten{Base.Generator{UnitRange{Int64},##17#20}}</span>) at <span class="pl-k">./</span>array<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">273</span></pre></div> <p dir="auto">Oops, that last value of <code class="notranslate">a</code> let to an empty range for <code class="notranslate">b</code>, better skip it:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; [(a,b,c) for a=1:4 for b=a+1:5 for c in [a+b] if isprime(c)] 5-element Array{Tuple{Int64,Int64,Int64},1}: (1,2,3) (1,4,5) (2,3,5) (2,5,7) (3,4,7)"><pre class="notranslate">julia<span class="pl-k">&gt;</span> [(a,b,c) <span class="pl-k">for</span> a<span class="pl-k">=</span><span class="pl-c1">1</span><span class="pl-k">:</span><span class="pl-c1">4</span> <span class="pl-k">for</span> b<span class="pl-k">=</span>a<span class="pl-k">+</span><span class="pl-c1">1</span><span class="pl-k">:</span><span class="pl-c1">5</span> <span class="pl-k">for</span> c <span class="pl-k">in</span> [a<span class="pl-k">+</span>b] <span class="pl-k">if</span> <span class="pl-c1">isprime</span>(c)] <span class="pl-c1">5</span><span class="pl-k">-</span>element Array{Tuple{Int64,Int64,Int64},<span class="pl-c1">1</span>}<span class="pl-k">:</span> (<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>) (<span class="pl-c1">1</span>,<span class="pl-c1">4</span>,<span class="pl-c1">5</span>) (<span class="pl-c1">2</span>,<span class="pl-c1">3</span>,<span class="pl-c1">5</span>) (<span class="pl-c1">2</span>,<span class="pl-c1">5</span>,<span class="pl-c1">7</span>) (<span class="pl-c1">3</span>,<span class="pl-c1">4</span>,<span class="pl-c1">7</span>)</pre></div>
0
<p dir="auto">Please have a look at</p> <p dir="auto"><a href="https://groups.google.com/forum/?fromgroups=#!topic/twitter-bootstrap/O2J2ht6-qoM" rel="nofollow">https://groups.google.com/forum/?fromgroups=#!topic/twitter-bootstrap/O2J2ht6-qoM</a></p> <p dir="auto">so there is no duplication.</p>
<p dir="auto">directive block with unrecognised format on line 253 in file 'mixins.less':<br> [252]: // Multiple shadow solution from <a href="http://toekneestuck.com/blog/2012/05/15/less-css-arguments-variable/" rel="nofollow">http://toekneestuck.com/blog/2012/05/15/less-css-arguments-variable/</a><br> [253]: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/props/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/props">@props</a>: ~<code class="notranslate">"@{arguments}".replace(/[\[\]]|\,\sX/g, '')</code>;<br> --^<br> [254]: -webkit-box-shadow: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/props/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/props">@props</a>;<br> [Done - Failed]</p> <p dir="auto">Process finished with exit code -5</p> <p dir="auto">2.1.1</p>
0
<p dir="auto">by <strong><a href="mailto:[email protected]">[email protected]</a></strong>:</p> <pre class="notranslate">The http.ResonseWriter exposes a UsingTLS() method which is good, but the other info stored in the tls.Conn structure is not available. Could the interface be extended/changed to allow access to more of the TLS properties? (this is related to <a href="https://golang.org/issue/155)" rel="nofollow">https://golang.org/issue/155)</a> Which compiler are you using (5g, 6g, 8g, gccgo)? 6g Which operating system are you using? linux,x86_64 Which revision are you using? (hg identify) d206790cdd7d tip Please provide any additional information below. I can "patch in" by creating a custom Listener that mimics the tls.Listener and gets the information there, but I can't figure out a way of propagating that info up the stack to the actual handlers without: a) hacking in the http/server.go and adding an accessor there similar to the way UsingTLS() is implemented - which is not real nice I guess. or b) writing a custom equivalent of http.conn/http.response, which is a lot of duplicated code.</pre>
<p dir="auto">by <strong>jnwhiteh</strong>:</p> <pre class="notranslate">What steps will reproduce the problem? 1. Run make test on the attached source 2. Note the line number for cache.go in the stack trace What is the expected output? The actual invalid memory address/nil pointer dereference happens on line 178. I was able to verify this by adding debug/panic statements. What do you see instead? The stack trace lists cache.go:226, which is actually never reached: panic: runtime error: invalid memory address or nil pointer dereference [signal 0xb code=0x1 addr=0x30 pc=0x16951] runtime.panic+0xac /Users/jnwhiteh/scm/golang.hg/src/pkg/runtime/proc.c:1060 runtime.panic(0x96148, 0xf840001410) runtime.panicstring+0xa3 /Users/jnwhiteh/scm/golang.hg/src/pkg/runtime/runtime.c:116 runtime.panicstring(0x11cdbf, 0x2a97a) runtime.sigpanic+0x144 /Users/jnwhiteh/scm/golang.hg/src/pkg/runtime/darwin/thread.c:470 runtime.sigpanic() jnwhiteh/minixfs.*LRUCache·GetBlock+0x5dc /Users/jnwhiteh/Desktop/minixfs/cache.go:226 jnwhiteh/minixfs.*LRUCache·GetBlock(0xf840025ae0, 0x400000000, 0x0, 0x100000008, 0x18e8a, ...) jnwhiteh/minixfs.*FileSystem·get_block+0x49 /Users/jnwhiteh/Desktop/minixfs/fs.go:80 jnwhiteh/minixfs.*FileSystem·get_block(0xf84000c820, 0x400000000, 0x0, 0x2a7af, 0xf84001a800, ...) jnwhiteh/minixfs.*FileSystem·get_inode+0x1ce /Users/jnwhiteh/Desktop/minixfs/inode.go:73 jnwhiteh/minixfs.*FileSystem·get_inode(0xf84000c820, 0x100000000, 0xf84000c7d0, 0xf84000fc30, 0xf84000c780, ...) jnwhiteh/minixfs.OpenFileSystemFile+0x407 /Users/jnwhiteh/Desktop/minixfs/fs.go:55 jnwhiteh/minixfs.OpenFileSystemFile(0xb1b9c, 0x746f6f620000000c, 0xf840003000, 0xf84001a678, 0x217af98, ...) Which compiler are you using (5g, 6g, 8g, gccgo)? 6g Which operating system are you using? Mac OS X 10.6.7 Which revision are you using? (hg identify) $ hg identify 26a2b651a7a9 tip Please provide any additional information below. There was indeed a bug in my program (uncomment line 99 and things work properly) but it's rather difficult to track down a bug when you're looking 40+ lines away from the actual issue. Let me know if I can provide any further information.</pre> <p dir="auto">Attachments:</p> <ol dir="auto"> <li><a href="https://storage.googleapis.com/go-attachment/1873/0/badlinenum.zip" rel="nofollow">badlinenum.zip</a> (477905 bytes)</li> </ol>
0