text1
stringlengths
0
536k
text2
stringlengths
0
536k
label
int64
0
1
<p dir="auto"><a href="http://jsfiddle.net/3gxA5/3/" rel="nofollow">http://jsfiddle.net/3gxA5/3/</a></p> <ol dir="auto"> <li>Click "Data 1" to open popover</li> <li>Close popover with the 'hide' or 'destroy' button</li> <li>Try to click "Data 3" to activate it's popover</li> </ol> <p dir="auto">Trying to inspect element on "Data 3" shows the popover div still exists on top of the td</p>
<p dir="auto">i searched for an already opened issue but did not found any that was reporting this exact problem.</p> <p dir="auto">I'm trying to use the destroy method on tooltip (bootstrap v3) but it does not remove the element from the DOM.</p> <p dir="auto">Any idea ?</p> <p dir="auto">Fiddle : <a href="http://jsfiddle.net/52VtD/59/" rel="nofollow">http://jsfiddle.net/52VtD/59/</a></p> <p dir="auto">click on the button to trigger the tooltip destroy method</p>
1
<h1 dir="auto"><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Bug</h1> <h2 dir="auto">Information</h2> <p dir="auto">One more question did run_bertology also support albert model?<br> Model I am using (Bert, XLNet ...): Bert</p> <p dir="auto">Language I am using the model on (English, Chinese ...):English</p> <p dir="auto">The problem arises when using:</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> the official example scripts: (give details below)<br> run_bertology.py</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> my own modified scripts: (give details below)<br> python3.7/site-packages/transformers/data/processors/glue.py</li> </ul> <h1 dir="auto">Because the dataset SciEntsBank-3way labeled as "correct", "incorrect", "contradictory".</h1> <p dir="auto">-223 return ["contradiction", "entailment", "neutral"]<br> +223 return ["correct", "incorrect", "contradictory"]</p> <h1 dir="auto">Because the dataset SciEntsBank-3way structure. label at first position, text_a at second position and text_b at third position.</h1> <p dir="auto">-232 text_a = line[8]<br> -233 text_b = line[9]<br> -234 label = line[-1]<br> +232 text_a = line[1]<br> +233 text_b = line[2]<br> +234 label = line[0]</p> <p dir="auto">The tasks I am working on is:</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> an official GLUE/SQUaD task: (give the name)<br> mnli</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> my own task or dataset: (give details below)<br> dataset: SciEntsBank-3way(<a href="https://www.cs.york.ac.uk/semeval-2013/task7.html" rel="nofollow">https://www.cs.york.ac.uk/semeval-2013/task7.html</a>)</li> </ul> <h2 dir="auto">To reproduce</h2> <p dir="auto">Steps to reproduce the behavior:</p> <p dir="auto">python ./run_bertology.py --data_dir SciEntsBank-3way<br> --model_name bert-base-uncased<br> --task_name mnli<br> --max_seq_length 128<br> --output_dir ./tmp/$TASK_NAME/<br> --try_masking</p> <p dir="auto">Iteration: 100%|██████████| 4561/4561 [02:15&lt;00:00, 33.57it/s]<br> INFO:<strong>main</strong>:Attention entropies<br> INFO:<strong>main</strong>:lv, h &gt; 1 2 3 4 5 6 7 8 9 10 11 12<br> INFO:<strong>main</strong>:layer 1: 3.03255 2.82196 1.77876 1.64802 3.27255 2.91101 3.34266 3.03600 2.73255 3.09043 1.35738 2.52412<br> INFO:<strong>main</strong>:layer 2: 2.73629 1.11241 2.86221 2.44852 0.95509 2.39331 0.45580 2.82749 2.93869 2.88269 2.19532 2.48865<br> INFO:<strong>main</strong>:layer 3: 0.05847 1.66529 1.91624 2.79214 2.31408 2.67645 2.18180 2.62745 2.48442 0.05168 2.52636 2.49648<br> INFO:<strong>main</strong>:layer 4: 1.54150 2.90387 2.40694 2.06858 2.77907 0.80181 2.69664 2.88957 2.70095 1.19583 2.33666 1.83265<br> INFO:<strong>main</strong>:layer 5: 2.34246 2.64519 2.03515 1.37404 2.88754 1.67422 2.14421 1.41457 2.03571 2.69347 1.98139 1.44582<br> INFO:<strong>main</strong>:layer 6: 1.71052 1.10676 2.28401 1.87228 2.55920 1.75916 1.22450 1.35704 1.92916 1.02535 1.67920 1.60766<br> INFO:<strong>main</strong>:layer 7: 1.63887 1.93625 1.83002 1.20811 1.58296 1.65662 1.55572 2.38742 2.09030 1.69326 1.42275 1.08153<br> INFO:<strong>main</strong>:layer 8: 1.95536 1.73146 1.59791 1.17307 1.12128 1.95980 1.11606 1.11680 1.97816 1.64787 1.53183 1.28007<br> INFO:<strong>main</strong>:layer 9: 1.54698 1.96436 1.45466 2.03807 1.60202 1.44075 1.36014 2.32559 2.59592 2.09076 1.75704 1.85274<br> INFO:<strong>main</strong>:layer 10: 2.00444 1.91784 2.12478 1.99289 1.58305 2.48627 2.08822 1.69971 2.70500 1.71860 2.03850 2.38604<br> INFO:<strong>main</strong>:layer 11: 2.76158 1.53031 1.99278 2.26007 1.97855 1.66471 1.90139 2.13217 2.45516 1.83803 1.99372 2.15438<br> INFO:<strong>main</strong>:layer 12: 1.73656 2.10304 2.72498 1.85723 2.04607 2.20456 2.16210 1.82173 2.18728 2.71702 1.84256 1.83663<br> INFO:<strong>main</strong>:Head importance scores<br> INFO:<strong>main</strong>:lv, h &gt; 1 2 3 4 5 6 7 8 9 10 11 12<br> INFO:<strong>main</strong>:layer 1: 0.30328 0.05899 0.06971 0.03727 0.13938 1.00000 0.04436 0.03679 0.22807 0.07911 0.19918 0.05241<br> INFO:<strong>main</strong>:layer 2: 0.04867 0.02256 0.21194 0.04069 0.23058 0.15942 0.65188 0.38251 0.47535 0.40172 0.10869 0.34316<br> INFO:<strong>main</strong>:layer 3: 0.06349 0.08003 0.56604 0.41141 0.38410 0.16264 0.29070 0.37301 0.28161 0.18325 0.45048 0.02401<br> INFO:<strong>main</strong>:layer 4: 0.74869 0.15986 0.29754 0.02072 0.20961 0.06570 0.35717 0.44580 0.01144 0.11113 0.26962 0.28707<br> INFO:<strong>main</strong>:layer 5: 0.05413 0.58029 0.29859 0.64154 0.25539 0.11611 0.36774 0.05591 0.19390 0.34493 0.04906 0.02742<br> INFO:<strong>main</strong>:layer 6: 0.24067 0.06599 0.45376 0.22384 0.40461 0.53808 0.06806 0.21937 0.04209 0.13334 0.19226 0.57838<br> INFO:<strong>main</strong>:layer 7: 0.33972 0.12576 0.31489 0.10031 0.29630 0.19341 0.28052 0.29937 0.78337 0.09395 0.23640 0.05812<br> INFO:<strong>main</strong>:layer 8: 0.23342 0.27415 0.27682 0.22111 0.23234 0.79778 0.03235 0.09092 0.40418 0.01651 0.21795 0.22528<br> INFO:<strong>main</strong>:layer 9: 0.01306 0.88878 0.08858 0.45180 0.04019 0.08035 0.13417 0.15899 0.39753 0.01761 0.10785 0.01428<br> INFO:<strong>main</strong>:layer 10: 0.01597 0.01365 0.08691 0.04718 0.01268 0.32052 0.00453 0.05614 0.81534 0.00000 0.02659 0.66734<br> INFO:<strong>main</strong>:layer 11: 0.86446 0.00818 0.05306 0.12751 0.13587 0.00293 0.06480 0.22173 0.21643 0.04838 0.48050 0.32190<br> INFO:<strong>main</strong>:layer 12: 0.08048 0.32489 0.56753 0.28201 0.37204 0.09334 0.26549 0.07130 0.00372 0.53481 0.24909 0.36108<br> INFO:<strong>main</strong>:Head ranked by importance scores<br> INFO:<strong>main</strong>:lv, h &gt; 1 2 3 4 5 6 7 8 9 10 11 12<br> INFO:<strong>main</strong>:layer 1: 41 108 102 123 81 0 119 124 62 100 72 114<br> INFO:<strong>main</strong>:layer 2: 116 129 70 121 61 79 8 28 17 25 89 35<br> INFO:<strong>main</strong>:layer 3: 107 99 13 22 27 77 46 29 49 76 20 128<br> INFO:<strong>main</strong>:layer 4: 6 78 44 130 71 105 33 21 138 88 53 47<br> INFO:<strong>main</strong>:layer 5: 112 10 43 9 55 87 31 111 73 34 115 126<br> INFO:<strong>main</strong>:layer 6: 57 104 18 64 23 14 103 67 120 84 75 11<br> INFO:<strong>main</strong>:layer 7: 36 86 40 91 45 74 50 42 5 92 58 109<br> INFO:<strong>main</strong>:layer 8: 59 52 51 66 60 4 125 94 24 132 68 63<br> INFO:<strong>main</strong>:layer 9: 136 1 95 19 122 98 83 80 26 131 90 134<br> INFO:<strong>main</strong>:layer 10: 133 135 96 118 137 39 140 110 3 143 127 7<br> INFO:<strong>main</strong>:layer 11: 2 139 113 85 82 142 106 65 69 117 16 38<br> INFO:<strong>main</strong>:layer 12: 97 37 12 48 30 93 54 101 141 15 56 32<br> Iteration: 100%|██████████| 4561/4561 [01:54&lt;00:00, 39.80it/s]<br> INFO:<strong>main</strong>:Attention entropies<br> INFO:<strong>main</strong>:lv, h &gt; 1 2 3 4 5 6 7 8 9 10 11 12<br> INFO:<strong>main</strong>:layer 1: 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000<br> INFO:<strong>main</strong>:layer 2: 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000<br> INFO:<strong>main</strong>:layer 3: 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000<br> INFO:<strong>main</strong>:layer 4: 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000<br> INFO:<strong>main</strong>:layer 5: 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000<br> INFO:<strong>main</strong>:layer 6: 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000<br> INFO:<strong>main</strong>:layer 7: 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000<br> INFO:<strong>main</strong>:layer 8: 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000<br> INFO:<strong>main</strong>:layer 9: 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000<br> INFO:<strong>main</strong>:layer 10: 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000<br> INFO:<strong>main</strong>:layer 11: 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000<br> INFO:<strong>main</strong>:layer 12: 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000<br> INFO:<strong>main</strong>:Head importance scores<br> INFO:<strong>main</strong>:lv, h &gt; 1 2 3 4 5 6 7 8 9 10 11 12<br> INFO:<strong>main</strong>:layer 1: 0.30328 0.05899 0.06971 0.03727 0.13938 1.00000 0.04436 0.03679 0.22807 0.07911 0.19918 0.05241<br> INFO:<strong>main</strong>:layer 2: 0.04867 0.02256 0.21194 0.04069 0.23058 0.15942 0.65188 0.38251 0.47535 0.40172 0.10869 0.34316<br> INFO:<strong>main</strong>:layer 3: 0.06349 0.08003 0.56604 0.41141 0.38410 0.16264 0.29070 0.37301 0.28161 0.18325 0.45048 0.02401<br> INFO:<strong>main</strong>:layer 4: 0.74869 0.15986 0.29754 0.02072 0.20961 0.06570 0.35717 0.44580 0.01144 0.11113 0.26962 0.28707<br> INFO:<strong>main</strong>:layer 5: 0.05413 0.58029 0.29859 0.64154 0.25539 0.11611 0.36774 0.05591 0.19390 0.34493 0.04906 0.02742<br> INFO:<strong>main</strong>:layer 6: 0.24067 0.06599 0.45376 0.22384 0.40461 0.53808 0.06806 0.21937 0.04209 0.13334 0.19226 0.57838<br> INFO:<strong>main</strong>:layer 7: 0.33972 0.12576 0.31489 0.10031 0.29630 0.19341 0.28052 0.29937 0.78337 0.09395 0.23640 0.05812<br> INFO:<strong>main</strong>:layer 8: 0.23342 0.27415 0.27682 0.22111 0.23234 0.79778 0.03235 0.09092 0.40418 0.01651 0.21795 0.22528<br> INFO:<strong>main</strong>:layer 9: 0.01306 0.88878 0.08858 0.45180 0.04019 0.08035 0.13417 0.15899 0.39753 0.01761 0.10785 0.01428<br> INFO:<strong>main</strong>:layer 10: 0.01597 0.01365 0.08691 0.04718 0.01268 0.32052 0.00453 0.05614 0.81534 0.00000 0.02659 0.66734<br> INFO:<strong>main</strong>:layer 11: 0.86446 0.00818 0.05306 0.12751 0.13587 0.00293 0.06480 0.22173 0.21643 0.04838 0.48050 0.32190<br> INFO:<strong>main</strong>:layer 12: 0.08048 0.32489 0.56753 0.28201 0.37204 0.09334 0.26549 0.07130 0.00372 0.53481 0.24909 0.36108<br> INFO:<strong>main</strong>:Head ranked by importance scores<br> INFO:<strong>main</strong>:lv, h &gt; 1 2 3 4 5 6 7 8 9 10 11 12<br> INFO:<strong>main</strong>:layer 1: 41 108 102 123 81 0 119 124 62 100 72 114<br> INFO:<strong>main</strong>:layer 2: 116 129 70 121 61 79 8 28 17 25 89 35<br> INFO:<strong>main</strong>:layer 3: 107 99 13 22 27 77 46 29 49 76 20 128<br> INFO:<strong>main</strong>:layer 4: 6 78 44 130 71 105 33 21 138 88 53 47<br> INFO:<strong>main</strong>:layer 5: 112 10 43 9 55 87 31 111 73 34 115 126<br> INFO:<strong>main</strong>:layer 6: 57 104 18 64 23 14 103 67 120 84 75 11<br> INFO:<strong>main</strong>:layer 7: 36 86 40 91 45 74 50 42 5 92 58 109<br> INFO:<strong>main</strong>:layer 8: 59 52 51 66 60 4 125 94 24 132 68 63<br> INFO:<strong>main</strong>:layer 9: 136 1 95 19 122 98 83 80 26 131 90 134<br> INFO:<strong>main</strong>:layer 10: 133 135 96 118 137 39 140 110 3 143 127 7<br> INFO:<strong>main</strong>:layer 11: 2 139 113 85 82 142 106 65 69 117 16 38<br> INFO:<strong>main</strong>:layer 12: 97 37 12 48 30 93 54 101 141 15 56 32<br> INFO:<strong>main</strong>:Pruning: original score: 0.091866, threshold: 0.082679<br> INFO:<strong>main</strong>:Heads to mask: [117, 125, 140, 114, 121, 44, 112, 96, 109, 107, 108, 93, 105, 39]<br> INFO:<strong>main</strong>:lv, h &gt; 1 2 3 4 5 6 7 8 9 10 11 12<br> INFO:<strong>main</strong>:layer 1: 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000<br> INFO:<strong>main</strong>:layer 2: 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000<br> INFO:<strong>main</strong>:layer 3: 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000<br> INFO:<strong>main</strong>:layer 4: 1.00000 1.00000 1.00000 0.00000 1.00000 1.00000 1.00000 1.00000 0.00000 1.00000 1.00000 1.00000<br> INFO:<strong>main</strong>:layer 5: 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000<br> INFO:<strong>main</strong>:layer 6: 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000<br> INFO:<strong>main</strong>:layer 7: 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000<br> INFO:<strong>main</strong>:layer 8: 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 0.00000 1.00000 1.00000<br> INFO:<strong>main</strong>:layer 9: 0.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 0.00000 1.00000 0.00000<br> INFO:<strong>main</strong>:layer 10: 0.00000 0.00000 1.00000 1.00000 0.00000 1.00000 0.00000 1.00000 1.00000 0.00000 1.00000 1.00000<br> INFO:<strong>main</strong>:layer 11: 1.00000 0.00000 1.00000 1.00000 1.00000 0.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000<br> INFO:<strong>main</strong>:layer 12: 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 0.00000 1.00000 1.00000 1.00000<br> Iteration: 100%|██████████| 4561/4561 [01:54&lt;00:00, 39.68it/s]<br> INFO:<strong>main</strong>:Attention entropies<br> INFO:<strong>main</strong>:lv, h &gt; 1 2 3 4 5 6 7 8 9 10 11 12<br> INFO:<strong>main</strong>:layer 1: 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000<br> INFO:<strong>main</strong>:layer 2: 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000<br> INFO:<strong>main</strong>:layer 3: 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000<br> INFO:<strong>main</strong>:layer 4: 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000<br> INFO:<strong>main</strong>:layer 5: 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000<br> INFO:<strong>main</strong>:layer 6: 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000<br> INFO:<strong>main</strong>:layer 7: 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000<br> INFO:<strong>main</strong>:layer 8: 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000<br> INFO:<strong>main</strong>:layer 9: 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000<br> INFO:<strong>main</strong>:layer 10: 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000<br> INFO:<strong>main</strong>:layer 11: 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000<br> INFO:<strong>main</strong>:layer 12: 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000<br> INFO:<strong>main</strong>:Head importance scores<br> INFO:<strong>main</strong>:lv, h &gt; 1 2 3 4 5 6 7 8 9 10 11 12<br> INFO:<strong>main</strong>:layer 1: 0.39574 0.02468 0.08140 0.12466 0.12766 1.00000 0.09364 0.03733 0.21125 0.05515 0.27669 0.01294<br> INFO:<strong>main</strong>:layer 2: 0.04871 0.01492 0.02147 0.00766 0.25008 0.16705 0.73248 0.48019 0.40388 0.39327 0.06609 0.38033<br> INFO:<strong>main</strong>:layer 3: 0.14803 0.02220 0.64758 0.29125 0.45867 0.02242 0.34411 0.33109 0.30959 0.29897 0.41782 0.01806<br> INFO:<strong>main</strong>:layer 4: 0.82395 0.20768 0.33463 0.05595 0.30457 0.01353 0.38665 0.33563 0.02096 0.12274 0.15990 0.30594<br> INFO:<strong>main</strong>:layer 5: 0.24467 0.77639 0.26634 0.43066 0.28580 0.15136 0.29888 0.09479 0.20161 0.38652 0.07106 0.09292<br> INFO:<strong>main</strong>:layer 6: 0.24192 0.04294 0.19242 0.18251 0.64465 0.64657 0.03439 0.17273 0.05866 0.20935 0.14715 0.51240<br> INFO:<strong>main</strong>:layer 7: 0.24221 0.11722 0.54783 0.09908 0.30887 0.33625 0.18271 0.09798 0.76243 0.19917 0.26639 0.02415<br> INFO:<strong>main</strong>:layer 8: 0.34639 0.10483 0.42852 0.23310 0.20756 0.85146 0.05960 0.06187 0.25805 0.12922 0.14193 0.28091<br> INFO:<strong>main</strong>:layer 9: 0.02696 0.97099 0.08023 0.36748 0.05116 0.06451 0.07015 0.23535 0.39404 0.14999 0.01570 0.01164<br> INFO:<strong>main</strong>:layer 10: 0.02307 0.01918 0.09727 0.05241 0.03105 0.32034 0.02875 0.08710 0.92011 0.00000 0.05011 0.59763<br> INFO:<strong>main</strong>:layer 11: 0.81794 0.00753 0.05141 0.14622 0.09715 0.00008 0.03071 0.09413 0.17420 0.05189 0.69652 0.31542<br> INFO:<strong>main</strong>:layer 12: 0.09312 0.36467 0.56134 0.25867 0.37935 0.06446 0.34758 0.09796 0.03789 0.56186 0.25654 0.37430<br> INFO:<strong>main</strong>:Head ranked by importance scores<br> INFO:<strong>main</strong>:lv, h &gt; 1 2 3 4 5 6 7 8 9 10 11 12<br> INFO:<strong>main</strong>:layer 1: 24 126 100 85 84 0 96 120 64 111 52 138<br> INFO:<strong>main</strong>:layer 2: 117 136 131 140 58 75 8 18 23 26 104 29<br> INFO:<strong>main</strong>:layer 3: 79 130 10 49 19 129 36 40 43 47 22 134<br> INFO:<strong>main</strong>:layer 4: 4 66 39 110 46 137 27 38 132 86 76 45<br> INFO:<strong>main</strong>:layer 5: 59 6 54 20 50 77 48 94 68 28 102 98<br> INFO:<strong>main</strong>:layer 6: 61 118 70 72 12 11 121 74 109 65 80 17<br> INFO:<strong>main</strong>:layer 7: 60 87 16 89 44 37 71 90 7 69 53 127<br> INFO:<strong>main</strong>:layer 8: 35 88 21 63 67 3 108 107 56 83 82 51<br> INFO:<strong>main</strong>:layer 9: 125 1 101 32 115 105 103 62 25 78 135 139<br> INFO:<strong>main</strong>:layer 10: 128 133 92 112 122 41 124 99 2 143 116 13<br> INFO:<strong>main</strong>:layer 11: 5 141 114 81 93 142 123 95 73 113 9 42<br> INFO:<strong>main</strong>:layer 12: 97 33 15 55 30 106 34 91 119 14 57 31<br> INFO:<strong>main</strong>:Masking: current score: 0.092085, remaning heads 130 (90.3 percents)<br> INFO:<strong>main</strong>:Heads to mask: [15, 11, 41, 13, 106, 35, 14, 25, 29, 83, 1, 126, 66, 7]<br> INFO:<strong>main</strong>:lv, h &gt; 1 2 3 4 5 6 7 8 9 10 11 12<br> INFO:<strong>main</strong>:layer 1: 1.00000 0.00000 1.00000 1.00000 1.00000 1.00000 1.00000 0.00000 1.00000 1.00000 1.00000 0.00000<br> INFO:<strong>main</strong>:layer 2: 1.00000 0.00000 0.00000 0.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000<br> INFO:<strong>main</strong>:layer 3: 1.00000 0.00000 1.00000 1.00000 1.00000 0.00000 1.00000 1.00000 1.00000 1.00000 1.00000 0.00000<br> INFO:<strong>main</strong>:layer 4: 1.00000 1.00000 1.00000 0.00000 1.00000 0.00000 1.00000 1.00000 0.00000 1.00000 1.00000 1.00000<br> INFO:<strong>main</strong>:layer 5: 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000<br> INFO:<strong>main</strong>:layer 6: 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 0.00000 1.00000 1.00000 1.00000 1.00000 1.00000<br> INFO:<strong>main</strong>:layer 7: 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 0.00000<br> INFO:<strong>main</strong>:layer 8: 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 0.00000 1.00000 1.00000<br> INFO:<strong>main</strong>:layer 9: 0.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 0.00000 0.00000 0.00000<br> INFO:<strong>main</strong>:layer 10: 0.00000 0.00000 1.00000 1.00000 0.00000 1.00000 0.00000 1.00000 1.00000 0.00000 1.00000 1.00000<br> INFO:<strong>main</strong>:layer 11: 1.00000 0.00000 1.00000 1.00000 1.00000 0.00000 0.00000 1.00000 1.00000 1.00000 1.00000 1.00000<br> INFO:<strong>main</strong>:layer 12: 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 0.00000 1.00000 1.00000 1.00000<br> Iteration: 0%| | 0/4561 [00:00&lt;?, ?it/s]<br> Traceback (most recent call last):<br> File "run_bertology.py", line 426, in <br> main()<br> File "run_bertology.py", line 421, in main<br> head_mask = mask_heads(args, model, eval_dataloader)<br> File "run_bertology.py", line 179, in mask_heads<br> args, model, eval_dataloader, compute_entropy=False, head_mask=new_head_mask<br> File "run_bertology.py", line 104, in compute_heads_importance<br> head_importance += head_mask.grad.abs().detach()<br> AttributeError: 'NoneType' object has no attribute 'abs'</p> <h2 dir="auto">Environment info</h2> <ul dir="auto"> <li><code class="notranslate">transformers</code> version:2.8.0</li> <li>Platform:</li> <li>Python version:3.7</li> <li>PyTorch version (GPU?):</li> <li>Tensorflow version (GPU?):</li> <li>Using GPU in script?:yes</li> <li>Using distributed or parallel set-up in script?:</li> </ul>
<h3 dir="auto">System Info</h3> <p dir="auto">Transformers: 4.25.1<br> Python: 3.10.8<br> OS: Manajro-KDE</p> <h3 dir="auto">Who can help?</h3> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/sgugger/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/sgugger">@sgugger</a></p> <h3 dir="auto">Information</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> The official example scripts</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> My own modified scripts</li> </ul> <h3 dir="auto">Tasks</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> An officially supported task in the <code class="notranslate">examples</code> folder (such as GLUE/SQuAD, ...)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> My own task or dataset (give details below)</li> </ul> <h3 dir="auto">Reproduction</h3> <ol dir="auto"> <li>Create the following compute metrics method:</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" logits, labels = eval_pred predictions = np.argmax(logits, axis=-1) accuracy_score = accuracy.compute(predictions=predictions, references=labels) auc_score = auc.compute(prediction_scores=logits[:, 1], references=labels) f1_score = f1.compute(predictions=predictions, references=labels) aupr = average_precision_score(y_score=logits[:, 1], y_true=labels) return {**f1_score , **{'PR-AUC': aupr}, **accuracy_score, **auc_score}"><pre lang="def" class="notranslate"><code class="notranslate"> logits, labels = eval_pred predictions = np.argmax(logits, axis=-1) accuracy_score = accuracy.compute(predictions=predictions, references=labels) auc_score = auc.compute(prediction_scores=logits[:, 1], references=labels) f1_score = f1.compute(predictions=predictions, references=labels) aupr = average_precision_score(y_score=logits[:, 1], y_true=labels) return {**f1_score , **{'PR-AUC': aupr}, **accuracy_score, **auc_score} </code></pre></div> <ol start="2" dir="auto"> <li>Create a trainer object with multiple eval datasets:</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="training_args = TrainingArguments( output_dir=&quot;./results&quot;, learning_rate=2e-5, per_device_train_batch_size=4, per_device_eval_batch_size=4, gradient_accumulation_steps=4, num_train_epochs=3, weight_decay=0.01, evaluation_strategy=IntervalStrategy.STEPS, report_to='wandb', run_name='ChemBERTa Test', log_level='critical', logging_steps=1, )"><pre class="notranslate"><code class="notranslate">training_args = TrainingArguments( output_dir="./results", learning_rate=2e-5, per_device_train_batch_size=4, per_device_eval_batch_size=4, gradient_accumulation_steps=4, num_train_epochs=3, weight_decay=0.01, evaluation_strategy=IntervalStrategy.STEPS, report_to='wandb', run_name='ChemBERTa Test', log_level='critical', logging_steps=1, ) </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" model=model, args=training_args, train_dataset=dataset[&quot;train&quot;], eval_dataset={'Validation': dataset[&quot;validation&quot;], 'Test': dataset[&quot;test&quot;]}, tokenizer=tokenizer, compute_metrics=compute_metrics )"><pre lang="trainer" class="notranslate"><code class="notranslate"> model=model, args=training_args, train_dataset=dataset["train"], eval_dataset={'Validation': dataset["validation"], 'Test': dataset["test"]}, tokenizer=tokenizer, compute_metrics=compute_metrics ) </code></pre></div> <ol start="4" dir="auto"> <li>Run the trainer<br> <code class="notranslate">trainer.train()</code></li> </ol> <p dir="auto">Result:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/34383384/205439136-0364b8fe-3e71-488b-b1a4-acdcdd9bef3e.png"><img src="https://user-images.githubusercontent.com/34383384/205439136-0364b8fe-3e71-488b-b1a4-acdcdd9bef3e.png" alt="image" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/34383384/205439150-34a5fab9-9775-4771-8a6e-1d33ebed36fd.png"><img src="https://user-images.githubusercontent.com/34383384/205439150-34a5fab9-9775-4771-8a6e-1d33ebed36fd.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">the problem arises in <code class="notranslate">transformers/utils/notebook.py/</code><br> in line 244, it raises <code class="notranslate">KeyError: 'Validation F1'</code><br> The reason for that is that only on the first iteration it populates the names of the columns for the table it prints in the notebook (lines 237-243).<br> But the trainer runs each dataset in a standalone <code class="notranslate">self.evaluate</code> run<br> So when the 2nd <code class="notranslate">self.evaluate</code> with the test dataset calls<br> <code class="notranslate">self.callback_handler.on_evaluate(self.args, self.state, self.control, output.metrics)</code><br> the table already has the names of the columns from the validation set, so lines 237-243 don't run again<br> and then on line 244, since it's the test dataset, all the metrics are called "Test " so it raises an error since it iterates over the table columns and doesn't find the validation metrics.</p> <p dir="auto">A workaround is removing the if statement in line 238 and having it update columns each time it's called<br> and changing line 244 to: <code class="notranslate">self.inner_table.append([values[c] if c in values else 'NaN' for c in columns])</code></p> <p dir="auto">i.e.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" def write_line(self, values): &quot;&quot;&quot; Write the values in the inner table. Args: values (`Dict[str, float]`): The values to display. &quot;&quot;&quot; if self.inner_table is None: self.inner_table = [list(values.keys()), list(values.values())] else: columns = self.inner_table[0] # if len(self.inner_table) == 1: # # We give a chance to update the column names at the first iteration for key in values.keys(): if key not in columns: columns.append(key) self.inner_table[0] = columns print(f'{columns=}, {values=}') self.inner_table.append([values[c] if c in values else 'NaN' for c in columns])"><pre class="notranslate"><code class="notranslate"> def write_line(self, values): """ Write the values in the inner table. Args: values (`Dict[str, float]`): The values to display. """ if self.inner_table is None: self.inner_table = [list(values.keys()), list(values.values())] else: columns = self.inner_table[0] # if len(self.inner_table) == 1: # # We give a chance to update the column names at the first iteration for key in values.keys(): if key not in columns: columns.append(key) self.inner_table[0] = columns print(f'{columns=}, {values=}') self.inner_table.append([values[c] if c in values else 'NaN' for c in columns]) </code></pre></div> <p dir="auto">(the print is only for debugging)</p> <p dir="auto">but then it creates a weird table where the rows are duplicated at the logging step<br> and half of the columns in the first row are NaN<br> and the other half is NaN in the 2nd row.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/34383384/205439041-587335cb-0004-4b8e-8e7f-2f1d76c549be.png"><img src="https://user-images.githubusercontent.com/34383384/205439041-587335cb-0004-4b8e-8e7f-2f1d76c549be.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">edit: Another bug is on <code class="notranslate">NotebookProgressCallback.on_evaluate</code> lines 342-345</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="for k, v in metrics.items(): if k == f&quot;{metric_key_prefix}_loss&quot;: values[&quot;Validation Loss&quot;] = v"><pre class="notranslate"><code class="notranslate">for k, v in metrics.items(): if k == f"{metric_key_prefix}_loss": values["Validation Loss"] = v </code></pre></div> <p dir="auto">This forces the output to consistently be named validation loss, even if I use the test dataset; this means that in the table created I don't get 2 different losses printed, cause the test loss overrides the validation loss</p> <h3 dir="auto">Expected behavior</h3> <p dir="auto">A single row containing both the validation and test metrics</p>
0
<p dir="auto">I'm currently building an vim extension for vscode when I encountered this problem.<br> I need to bind keys such as <code class="notranslate">i</code> in <code class="notranslate">Normal Mode</code> and unbind it in <code class="notranslate">Insert Mode</code> so suggestions and other vscode's builtin features could work as normal.<br> In detail, my desired package.json can be:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;contributes&quot;: { &quot;keybindings&quot;: [ { &quot;command&quot;: &quot;vim.i&quot;, &quot;key&quot;: &quot;i&quot;, &quot;when&quot;: &quot;editorTextFocus &amp;&amp; !isVimInsertMode&quot; }, // ... ] // ... } // ... }"><pre class="notranslate"><code class="notranslate">{ "contributes": { "keybindings": [ { "command": "vim.i", "key": "i", "when": "editorTextFocus &amp;&amp; !isVimInsertMode" }, // ... ] // ... } // ... } </code></pre></div> <p dir="auto">It would be a great help if extension can access <code class="notranslate">KeybindingService</code> to register context to keybindings or bind/unbind in runtime.</p> <p dir="auto">ps: I can mimic all the default behaviours in <code class="notranslate">Insert Mode</code>, but that's just a lot of duplicate code and unnessery time.</p>
<ul dir="auto"> <li>VSCode Version: 1.2.0-insider</li> <li>OS Version: Windows, OS X, Linux</li> </ul> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>Create a new app or open an existing one.</li> <li>Hit F5 to start debugger.</li> </ol> <p dir="auto">When no <code class="notranslate">launch.json</code> file exists VSCode creates it but then refuses to recognize it and start the debugger.</p> <p dir="auto">This buggy behavior is noticeable when at start you press F5 from anywhere but the Debugger. If you navigate to the Debugger and hit F5 it works and then VSCode remembers it.</p> <p dir="auto">Note: VSCode 1.1.1 works.</p>
0
<p dir="auto">Sometimes you want to define a complex variable dictionary and do not want to create a separate vault file for passwords. It would be cool for history purpose to use a plain yml file for variable definition and inline vault variable content like the following. This feature is described by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jpmens/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jpmens">@jpmens</a> on <a href="http://jpmens.net/2014/02/22/my-thoughts-on-ansible-s-vault/" rel="nofollow">http://jpmens.net/2014/02/22/my-thoughts-on-ansible-s-vault/</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="nameserver: 10.0.0.1 admin: Jane Jolie dbpassword: @vault@&quot;AHchx0a+G8mejs84tGxCNKxMFP7tM7Y7kl&quot; webservertype: nginx"><pre class="notranslate"><code class="notranslate">nameserver: 10.0.0.1 admin: Jane Jolie dbpassword: @vault@"AHchx0a+G8mejs84tGxCNKxMFP7tM7Y7kl" webservertype: nginx </code></pre></div>
<h5 dir="auto">Issue Type:</h5> <p dir="auto">Bug Report</p> <h5 dir="auto">Ansible Version:</h5> <p dir="auto">2.0.0 (devel <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/ansible/ansible/commit/139138c6049a375acd7cf765b987b8223d19b1b6/hovercard" href="https://github.com/ansible/ansible/commit/139138c6049a375acd7cf765b987b8223d19b1b6"><tt>139138c</tt></a>)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.0.0 (devel 139138c604) last updated 2015/07/03 12:38:26 (GMT +200) lib/ansible/modules/core: (detached HEAD ff69ce7912) last updated 2015/07/03 12:38:49 (GMT +200) lib/ansible/modules/extras: (detached HEAD 4e48ef9eca) last updated 2015/07/03 12:38:49 (GMT +200) v1/ansible/modules/core: (detached HEAD f8d8af17cd) last updated 2015/06/11 22:17:01 (GMT +200) v1/ansible/modules/extras: (detached HEAD 495ad450e5) last updated 2015/06/11 22:17:04 (GMT +200) configured module search path = /opt/ansible/library"><pre class="notranslate"><code class="notranslate">ansible 2.0.0 (devel 139138c604) last updated 2015/07/03 12:38:26 (GMT +200) lib/ansible/modules/core: (detached HEAD ff69ce7912) last updated 2015/07/03 12:38:49 (GMT +200) lib/ansible/modules/extras: (detached HEAD 4e48ef9eca) last updated 2015/07/03 12:38:49 (GMT +200) v1/ansible/modules/core: (detached HEAD f8d8af17cd) last updated 2015/06/11 22:17:01 (GMT +200) v1/ansible/modules/extras: (detached HEAD 495ad450e5) last updated 2015/06/11 22:17:04 (GMT +200) configured module search path = /opt/ansible/library </code></pre></div> <h5 dir="auto">Ansible Configuration:</h5> <p dir="auto">Not sure it has any relevance, but just to be sure: I installed via git to <code class="notranslate">/opt/ansible</code>. I didn't change anything in the config. I can't find ansible.cfg i the above path, though (the issue guide lines asks me to compare that with the most recent version on git)</p> <h5 dir="auto">Environment:</h5> <p dir="auto">Local: Ubuntu 15.04. The issues reproduces on local connection and on a Ubuntu 14.04 vagrant VM box.</p> <h5 dir="auto">Summary:</h5> <p dir="auto">As the title states: Tasks are executed duplicate times when including plays from 'master play', i.e. a play that does nothing than include other plays. Task in the first included play gets executed once, tasks in the next included play gets executed twice ... and so forth (the example below is just for two plays).</p> <p dir="auto">(I'm not sure if the task actually gets executed more than once or if it's just an issue with the terminal out output)</p> <h5 dir="auto">Steps To Reproduce:</h5> <p dir="auto">Put the files below in the same folder and run: <code class="notranslate">$ ansible-playbook masterplay.yml -i 127.0.0.1,</code> (inlucde the trailing comma). You can also just grab the files here: <a href="https://gist.github.com/andersbc/33daefe44e31eccd21aa">https://gist.github.com/andersbc/33daefe44e31eccd21aa</a>.</p> <p dir="auto">masterplay.yml:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" --- - include: play_a.yml - include: play_b.yml"><pre class="notranslate">--- - <span class="pl-ent">include</span>: <span class="pl-s">play_a.yml</span> - <span class="pl-ent">include</span>: <span class="pl-s">play_b.yml</span></pre></div> <p dir="auto">play_a.yml:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" --- - hosts: 127.0.0.1 connection: local name: play a vars: foo: bar tasks: - name: the task in play a debug: msg=&quot;{{ foo }}&quot;"><pre class="notranslate">--- - <span class="pl-ent">hosts</span>: <span class="pl-s">127.0.0.1</span> <span class="pl-ent">connection</span>: <span class="pl-s">local</span> <span class="pl-ent">name</span>: <span class="pl-s">play a</span> <span class="pl-ent">vars</span>: <span class="pl-ent">foo</span>: <span class="pl-s">bar</span> <span class="pl-ent">tasks</span>: - <span class="pl-ent">name</span>: <span class="pl-s">the task in play a</span> <span class="pl-ent">debug</span>: <span class="pl-s">msg="{{ foo }}"</span></pre></div> <p dir="auto">play_b.yml:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" --- - hosts: 127.0.0.1 connection: local name: play b vars: foo2: bar tasks: - name: the task in play b debug: msg=&quot;{{ foo2 }}&quot;"><pre class="notranslate">--- - <span class="pl-ent">hosts</span>: <span class="pl-s">127.0.0.1</span> <span class="pl-ent">connection</span>: <span class="pl-s">local</span> <span class="pl-ent">name</span>: <span class="pl-s">play b</span> <span class="pl-ent">vars</span>: <span class="pl-ent">foo2</span>: <span class="pl-s">bar</span> <span class="pl-ent">tasks</span>: - <span class="pl-ent">name</span>: <span class="pl-s">the task in play b</span> <span class="pl-ent">debug</span>: <span class="pl-s">msg="{{ foo2 }}"</span></pre></div> <h5 dir="auto">Expected Results:</h5> <p dir="auto">Only one execution of the task in the second included play (play b)</p> <h5 dir="auto">Actual Results:</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY: play a ******************************************************************** TASK [setup] ******************************************************************** ok: [127.0.0.1] TASK [the task in play a] ******************************************************* ok: [127.0.0.1] =&gt; { &quot;msg&quot;: &quot;bar&quot;, &quot;changed&quot;: false } PLAY: play b ******************************************************************** PLAY: play b ******************************************************************** TASK [the task in play b] ******************************************************* TASK [the task in play b] ******************************************************* ok: [127.0.0.1] =&gt; { &quot;msg&quot;: &quot;bar&quot;, &quot;changed&quot;: false } ok: [127.0.0.1] PLAY RECAP ********************************************************************** 127.0.0.1 : ok=3 changed=0 unreachable=0 failed=0 "><pre class="notranslate"><code class="notranslate">PLAY: play a ******************************************************************** TASK [setup] ******************************************************************** ok: [127.0.0.1] TASK [the task in play a] ******************************************************* ok: [127.0.0.1] =&gt; { "msg": "bar", "changed": false } PLAY: play b ******************************************************************** PLAY: play b ******************************************************************** TASK [the task in play b] ******************************************************* TASK [the task in play b] ******************************************************* ok: [127.0.0.1] =&gt; { "msg": "bar", "changed": false } ok: [127.0.0.1] PLAY RECAP ********************************************************************** 127.0.0.1 : ok=3 changed=0 unreachable=0 failed=0 </code></pre></div>
0
<p dir="auto">Is there anything in place supporting this yet? Wanted to ask before I implement my own.</p>
<p dir="auto">Hi,<br> I'm wondering which steps are necessary to move from the greedy decoder currently implemented to an actual beam search decoder. Is this enhancement already in someone's roadmap? If not, could anyone tell me which is the right point in the code where to add this functionality?<br> Thanks a lot!<br> Marcello</p>
1
<p dir="auto">I've described the original issue at <a href="http://stackoverflow.com/questions/25601380/neo4j-merge-with-comma-in-pattern-throws-invalid-syntax-unlike-match-or-crea" rel="nofollow">stackoverflow.com</a>.</p> <p dir="auto">CREATE and especially MATCH support more or less complex patterns that can't be written without breaking up the pattern into multiple parts, separated by commas. This is due to the one-dimensional nature of a line of text used to describe the pattern in Cypher.</p> <p dir="auto">For example, in order to get my mom, dad and brother I have to split up the pattern and repeat the node identifier (me):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="MATCH (dad)&lt;-[:FATHER]-(me { Name: 'Jan'})-[:MOTHER]-&gt;(mom), (me)-[:BROTHER]-&gt;(brother) RETURN mom, dad, brother;"><pre class="notranslate"><code class="notranslate">MATCH (dad)&lt;-[:FATHER]-(me { Name: 'Jan'})-[:MOTHER]-&gt;(mom), (me)-[:BROTHER]-&gt;(brother) RETURN mom, dad, brother; </code></pre></div> <p dir="auto">I expected that MERGE would allow for the same syntax, but it does not: it returns an error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Invalid input ',': expected whitespace, a relationship pattern ..."><pre class="notranslate"><code class="notranslate">Invalid input ',': expected whitespace, a relationship pattern ... </code></pre></div> <p dir="auto">I can't split up the pattern into multiple MERGEs because that would give different results (either the <em>whole</em> pattern matches or it doesn't).</p> <p dir="auto">Can this be supported?</p> <p dir="auto">Thanks,<br> Jan</p>
<p dir="auto">I am not for certain this is a bug, but looks like so.</p> <p dir="auto">First add 3 duplicate nodes by<br> CREATE (:Person {Name:'Peter'})<br> CREATE (:Person {Name:'Peter'})<br> CREATE (:Person {Name:'Peter'})</p> <p dir="auto">Then add another 3 duplicate nodes by<br> CREATE (:Person {Name:'Tom'})<br> CREATE (:Person {Name:'Tom'})<br> CREATE (:Person {Name:'Tom'})</p> <p dir="auto">Then the following query returns an incorrect result.<br> MATCH (e1:Person {Name:'Peter'}),(e2:Person {Name:'Tom'}) RETURN count(e1)<br> The result for count(e1) is 9 instead of 3.</p> <p dir="auto">If "distinct" keyword is used, the result is correct.<br> MATCH (e1:Person {Name:'Peter'}),(e2:Person {Name:'Tom'}) RETURN count(distinct e1)<br> The result for count(distinct e1) is 3.</p> <p dir="auto">Perhaps I misunderstand the query? But I think 3 is expected for "count(e1)" in this case.</p>
0
<p dir="auto">Having stacked versions of all possible linear algebra functions would be nice, lstsq being one in particular.</p> <p dir="auto">See also <a href="http://stackoverflow.com/questions/30442377" rel="nofollow">http://stackoverflow.com/questions/30442377</a> regarding a workaround using svd.</p> <p dir="auto">See also <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="12995550" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/3217" data-hovercard-type="issue" data-hovercard-url="/numpy/numpy/issues/3217/hovercard" href="https://github.com/numpy/numpy/issues/3217">#3217</a>.</p>
<p dir="auto">Many <code class="notranslate">linalg</code> functions are already broadcastable, <code class="notranslate">lstsq</code> isn't.</p> <p dir="auto">A workaround is via <code class="notranslate">svd</code> which is already broadcasted:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="u, s, v = numpy.linalg.svd(A, full_matrices=False) uTb = numpy.einsum('ijk,ij-&gt;ik', u, b) xx = numpy.einsum('ijk, ij-&gt;ik', v, uTb / s)"><pre class="notranslate"><span class="pl-s1">u</span>, <span class="pl-s1">s</span>, <span class="pl-s1">v</span> <span class="pl-c1">=</span> <span class="pl-s1">numpy</span>.<span class="pl-s1">linalg</span>.<span class="pl-en">svd</span>(<span class="pl-v">A</span>, <span class="pl-s1">full_matrices</span><span class="pl-c1">=</span><span class="pl-c1">False</span>) <span class="pl-s1">uTb</span> <span class="pl-c1">=</span> <span class="pl-s1">numpy</span>.<span class="pl-en">einsum</span>(<span class="pl-s">'ijk,ij-&gt;ik'</span>, <span class="pl-s1">u</span>, <span class="pl-s1">b</span>) <span class="pl-s1">xx</span> <span class="pl-c1">=</span> <span class="pl-s1">numpy</span>.<span class="pl-en">einsum</span>(<span class="pl-s">'ijk, ij-&gt;ik'</span>, <span class="pl-s1">v</span>, <span class="pl-s1">uTb</span> <span class="pl-c1">/</span> <span class="pl-s1">s</span>)</pre></div>
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">Error: WebGL: texImage2D: Incurred CPU-side conversion, which is very slow. three.js:19017:5<br> Error: WebGL: texImage2D: Incurred CPU pixel conversion, which is very slow. three.js:19017:5<br> Error: WebGL: texImage2D: Chosen format/type incurred an expensive reformat: 0x1907/0x1401 three.js:19017:5</p> <h5 dir="auto">Three.js version</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Dev</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r82</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> ...</li> </ul> <h5 dir="auto">Browser</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Chrome</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Firefox</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Internet Explorer</li> </ul> <h5 dir="auto">OS</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Windows</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> 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<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/18611035/20637331/a4879100-b3bf-11e6-9798-c77b6c0d4461.png"><img src="https://cloud.githubusercontent.com/assets/18611035/20637331/a4879100-b3bf-11e6-9798-c77b6c0d4461.png" alt="2016-11-26_10-03-29" style="max-width: 100%;"></a></li> </ul> <h5 dir="auto">Hardware Requirements (graphics card, VR Device, ...)</h5> <p dir="auto">GTX1080 graphics card</p>
<h5 dir="auto">Description of the problem</h5> <p dir="auto">When I try to clone a mesh object I expect it will be full cloned, with "new" material and geometry objects. Is this behavior on purpose?</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=""> r93</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> ...</li> </ul> <h5 dir="auto">Browser</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> 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> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> chromium (nw js actually)</li> </ul> <h5 dir="auto">OS</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Windows</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> macOS</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Linux</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Android</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> iOS<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/2068045/40987938-3e197930-68c0-11e8-9852-9c14948a77b6.png"><img src="https://user-images.githubusercontent.com/2068045/40987938-3e197930-68c0-11e8-9852-9c14948a77b6.png" alt="captura de tela de 2018-06-04 21-59-15" style="max-width: 100%;"></a></li> </ul>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/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: dubbo-2.7.1</li> <li>Operating System version: win10 edge/chrome</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>[Used by] maven GAV has made a mistake</li> </ol> <div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;dependency&gt; &lt;groupId&gt;org.apache.dubbo&lt;/groupId&gt; &lt;artifactId&gt;dubbo&lt;/artifactId&gt; &lt;version&gt;ubbo-2.7.1&lt;/version&gt; &lt;/dependency&gt;"><pre class="notranslate">&lt;<span class="pl-ent">dependency</span>&gt; &lt;<span class="pl-ent">groupId</span>&gt;org.apache.dubbo&lt;/<span class="pl-ent">groupId</span>&gt; &lt;<span class="pl-ent">artifactId</span>&gt;dubbo&lt;/<span class="pl-ent">artifactId</span>&gt; &lt;<span class="pl-ent">version</span>&gt;ubbo-2.7.1&lt;/<span class="pl-ent">version</span>&gt; &lt;/<span class="pl-ent">dependency</span>&gt;</pre></div> <h3 dir="auto">Expected Result</h3> <div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;dependency&gt; &lt;groupId&gt;org.apache.dubbo&lt;/groupId&gt; &lt;artifactId&gt;dubbo&lt;/artifactId&gt; &lt;version&gt;2.7.1&lt;/version&gt; &lt;/dependency&gt;"><pre class="notranslate">&lt;<span class="pl-ent">dependency</span>&gt; &lt;<span class="pl-ent">groupId</span>&gt;org.apache.dubbo&lt;/<span class="pl-ent">groupId</span>&gt; &lt;<span class="pl-ent">artifactId</span>&gt;dubbo&lt;/<span class="pl-ent">artifactId</span>&gt; &lt;<span class="pl-ent">version</span>&gt;2.7.1&lt;/<span class="pl-ent">version</span>&gt; &lt;/<span class="pl-ent">dependency</span>&gt;</pre></div> <p dir="auto"><strong>ubbo-2.7.1</strong> -&gt; <strong>2.7.1</strong></p> <h3 dir="auto">Actual Result</h3> <p dir="auto">What actually happens?</p> <p dir="auto">If there is an exception, please attach the exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here! </code></pre></div>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.6</li> <li>Operating System version: centos7</li> <li>Java version: jdk1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>provider/consumer 都是2.7.6版本 spring版本4.3.2</li> <li>provider配置 -Ddubbo.shutdown.hook=true</li> <li>服务停止脚本使用: kill [pid]</li> </ol> <h3 dir="auto">Expected Result</h3> <p dir="auto">能够正常优雅停机</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">每次生产环境服务发布时consumer会收到各种报错信息,貌似dubbo没有做到优雅停机</p> <p dir="auto">错误1:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="org.apache.dubbo.rpc.RpcException: java.util.concurrent.ExecutionException: java.lang.IllegalStateException: Consumer is shutting down and this call is going to be stopped without receiving any result, usually this is called by a slow provider instance or bad service implementation. org.apache.dubbo.rpc.AsyncRpcResult.getAppResponse(AsyncRpcResult.java:151) org.apache.dubbo.rpc.AsyncRpcResult.recreate(AsyncRpcResult.java:191) org.apache.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:74) org.apache.dubbo.common.bytecode.proxy11.getDetailInfo(proxy11.java) com.xxx.uc.token.gateway.controller.AuthByTokenController.detailInfo(AuthByTokenController.java:185) com.xxx.uc.token.gateway.controller.AuthByTokenController$$FastClassBySpringCGLIB$$28c43dc2.invoke() org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:720) org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:97) com.xxx.uc.token.gateway.aop.RouteHandlerAOP.route(RouteHandlerAOP.java:119) com.xxx.uc.token.gateway.aop.RouteHandlerAOP.around(RouteHandlerAOP.java:74) sun.reflect.GeneratedMethodAccessor426.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:498) org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:629) org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:618) org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70) org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:97) com.xxx.pay.commons.service.log.LogAspect.aspect(LogAspect.java:39) sun.reflect.GeneratedMethodAccessor2386.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:498) org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:629) org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:618) org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70) org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92) org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:655) com.xxx.uc.token.gateway.controller.AuthByTokenController$$EnhancerBySpringCGLIB$$5cc5d2fd.detailInfo() sun.reflect.GeneratedMethodAccessor2322.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:498) org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221) org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136) org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:114) org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827) org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738) org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85) org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963) org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897) org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970) org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872) javax.servlet.http.HttpServlet.service(HttpServlet.java:661) org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846) javax.servlet.http.HttpServlet.service(HttpServlet.java:742) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) com.xxx.usercenter.http.filter.SpringMVCRequestContextFilter.doFilter(SpringMVCRequestContextFilter.java:63) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) com.xxx.uc.token.gateway.trace.TraceFilter.doFilter(TraceFilter.java:126) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) com.xxx.usercenter.http.filter.AuthIpVisitUrlFilter.doFilter(AuthIpVisitUrlFilter.java:66) org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346) org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81) org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342) org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803) org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868) org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459) org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) java.lang.Thread.run(Thread.java:748) Caused by: java.util.concurrent.ExecutionException: java.lang.IllegalStateException: Consumer is shutting down and this call is going to be stopped without receiving any result, usually this is called by a slow provider instance or bad service implementation. java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357) java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1908) org.apache.dubbo.rpc.AsyncRpcResult.getAppResponse(AsyncRpcResult.java:146) org.apache.dubbo.rpc.AsyncRpcResult.recreate(AsyncRpcResult.java:191) org.apache.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:74) org.apache.dubbo.common.bytecode.proxy11.getDetailInfo(proxy11.java) com.xxx.uc.token.gateway.controller.AuthByTokenController.detailInfo(AuthByTokenController.java:185) com.xxx.uc.token.gateway.controller.AuthByTokenController$$FastClassBySpringCGLIB$$28c43dc2.invoke() org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:720) org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:97) com.xxx.uc.token.gateway.aop.RouteHandlerAOP.route(RouteHandlerAOP.java:119) com.xxx.uc.token.gateway.aop.RouteHandlerAOP.around(RouteHandlerAOP.java:74) sun.reflect.GeneratedMethodAccessor426.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:498) org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:629) org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:618) org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70) org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:97) com.xxx.pay.commons.service.log.LogAspect.aspect(LogAspect.java:39) sun.reflect.GeneratedMethodAccessor2386.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:498) org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:629) org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:618) org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70) org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92) org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:655) com.xxx.uc.token.gateway.controller.AuthByTokenController$$EnhancerBySpringCGLIB$$5cc5d2fd.detailInfo() sun.reflect.GeneratedMethodAccessor2322.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:498) org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221) org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136) org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:114) org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827) org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738) org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85) org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963) org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897) org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970) org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872) javax.servlet.http.HttpServlet.service(HttpServlet.java:661) org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846) javax.servlet.http.HttpServlet.service(HttpServlet.java:742) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) com.xxx.usercenter.http.filter.SpringMVCRequestContextFilter.doFilter(SpringMVCRequestContextFilter.java:63) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) com.xxx.uc.token.gateway.trace.TraceFilter.doFilter(TraceFilter.java:126) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) com.xxx.usercenter.http.filter.AuthIpVisitUrlFilter.doFilter(AuthIpVisitUrlFilter.java:66) org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346) org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81) org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342) org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803) org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868) org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459) org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) java.lang.Thread.run(Thread.java:748) Caused by: java.lang.IllegalStateException: Consumer is shutting down and this call is going to be stopped without receiving any result, usually this is called by a slow provider instance or bad service implementation. org.apache.dubbo.common.threadpool.ThreadlessExecutor.shutdownNow(ThreadlessExecutor.java:164) org.apache.dubbo.remoting.exchange.support.DefaultFuture.closeChannel(DefaultFuture.java:147) org.apache.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.disconnected(HeaderExchangeHandler.java:134) org.apache.dubbo.remoting.transport.AbstractChannelHandlerDelegate.disconnected(AbstractChannelHandlerDelegate.java:48) org.apache.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.run(ChannelEventRunnable.java:73) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) java.lang.Thread.run(Thread.java:748) "><pre class="notranslate"><code class="notranslate">org.apache.dubbo.rpc.RpcException: java.util.concurrent.ExecutionException: java.lang.IllegalStateException: Consumer is shutting down and this call is going to be stopped without receiving any result, usually this is called by a slow provider instance or bad service implementation. org.apache.dubbo.rpc.AsyncRpcResult.getAppResponse(AsyncRpcResult.java:151) org.apache.dubbo.rpc.AsyncRpcResult.recreate(AsyncRpcResult.java:191) org.apache.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:74) org.apache.dubbo.common.bytecode.proxy11.getDetailInfo(proxy11.java) com.xxx.uc.token.gateway.controller.AuthByTokenController.detailInfo(AuthByTokenController.java:185) com.xxx.uc.token.gateway.controller.AuthByTokenController$$FastClassBySpringCGLIB$$28c43dc2.invoke() org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:720) org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:97) com.xxx.uc.token.gateway.aop.RouteHandlerAOP.route(RouteHandlerAOP.java:119) com.xxx.uc.token.gateway.aop.RouteHandlerAOP.around(RouteHandlerAOP.java:74) sun.reflect.GeneratedMethodAccessor426.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:498) org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:629) org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:618) org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70) org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:97) com.xxx.pay.commons.service.log.LogAspect.aspect(LogAspect.java:39) sun.reflect.GeneratedMethodAccessor2386.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:498) org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:629) org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:618) org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70) org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92) org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:655) com.xxx.uc.token.gateway.controller.AuthByTokenController$$EnhancerBySpringCGLIB$$5cc5d2fd.detailInfo() sun.reflect.GeneratedMethodAccessor2322.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:498) org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221) org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136) org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:114) org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827) org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738) org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85) org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963) org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897) org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970) org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872) javax.servlet.http.HttpServlet.service(HttpServlet.java:661) org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846) javax.servlet.http.HttpServlet.service(HttpServlet.java:742) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) com.xxx.usercenter.http.filter.SpringMVCRequestContextFilter.doFilter(SpringMVCRequestContextFilter.java:63) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) com.xxx.uc.token.gateway.trace.TraceFilter.doFilter(TraceFilter.java:126) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) com.xxx.usercenter.http.filter.AuthIpVisitUrlFilter.doFilter(AuthIpVisitUrlFilter.java:66) org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346) org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81) org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342) org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803) org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868) org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459) org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) java.lang.Thread.run(Thread.java:748) Caused by: java.util.concurrent.ExecutionException: java.lang.IllegalStateException: Consumer is shutting down and this call is going to be stopped without receiving any result, usually this is called by a slow provider instance or bad service implementation. java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357) java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1908) org.apache.dubbo.rpc.AsyncRpcResult.getAppResponse(AsyncRpcResult.java:146) org.apache.dubbo.rpc.AsyncRpcResult.recreate(AsyncRpcResult.java:191) org.apache.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:74) org.apache.dubbo.common.bytecode.proxy11.getDetailInfo(proxy11.java) com.xxx.uc.token.gateway.controller.AuthByTokenController.detailInfo(AuthByTokenController.java:185) com.xxx.uc.token.gateway.controller.AuthByTokenController$$FastClassBySpringCGLIB$$28c43dc2.invoke() org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:720) org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:97) com.xxx.uc.token.gateway.aop.RouteHandlerAOP.route(RouteHandlerAOP.java:119) com.xxx.uc.token.gateway.aop.RouteHandlerAOP.around(RouteHandlerAOP.java:74) sun.reflect.GeneratedMethodAccessor426.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:498) org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:629) org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:618) org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70) org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:97) com.xxx.pay.commons.service.log.LogAspect.aspect(LogAspect.java:39) sun.reflect.GeneratedMethodAccessor2386.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:498) org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:629) org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:618) org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70) org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92) org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:655) com.xxx.uc.token.gateway.controller.AuthByTokenController$$EnhancerBySpringCGLIB$$5cc5d2fd.detailInfo() sun.reflect.GeneratedMethodAccessor2322.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:498) org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221) org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136) org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:114) org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827) org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738) org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85) org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963) org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897) org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970) org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872) javax.servlet.http.HttpServlet.service(HttpServlet.java:661) org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846) javax.servlet.http.HttpServlet.service(HttpServlet.java:742) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) com.xxx.usercenter.http.filter.SpringMVCRequestContextFilter.doFilter(SpringMVCRequestContextFilter.java:63) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) com.xxx.uc.token.gateway.trace.TraceFilter.doFilter(TraceFilter.java:126) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) com.xxx.usercenter.http.filter.AuthIpVisitUrlFilter.doFilter(AuthIpVisitUrlFilter.java:66) org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346) org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81) org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342) org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803) org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868) org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459) org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) java.lang.Thread.run(Thread.java:748) Caused by: java.lang.IllegalStateException: Consumer is shutting down and this call is going to be stopped without receiving any result, usually this is called by a slow provider instance or bad service implementation. org.apache.dubbo.common.threadpool.ThreadlessExecutor.shutdownNow(ThreadlessExecutor.java:164) org.apache.dubbo.remoting.exchange.support.DefaultFuture.closeChannel(DefaultFuture.java:147) org.apache.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.disconnected(HeaderExchangeHandler.java:134) org.apache.dubbo.remoting.transport.AbstractChannelHandlerDelegate.disconnected(AbstractChannelHandlerDelegate.java:48) org.apache.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.run(ChannelEventRunnable.java:73) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) java.lang.Thread.run(Thread.java:748) </code></pre></div> <p dir="auto">错误2:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[DUBBO] Got exception when trying to fetch the underlying result from asyncRpcResult,dubbo version:2.7.6"><pre class="notranslate"><code class="notranslate">[DUBBO] Got exception when trying to fetch the underlying result from asyncRpcResult,dubbo version:2.7.6 </code></pre></div> <p dir="auto">错误3:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="consumer 会接收到NPE,原因是执行kill 之后, dubbo引用到了已经销毁的spring bean"><pre class="notranslate"><code class="notranslate">consumer 会接收到NPE,原因是执行kill 之后, dubbo引用到了已经销毁的spring bean </code></pre></div> <p dir="auto">dubbo的启动类是自己封装的 调用了一些前置的方法:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="public class Main{ public static void main(String[] args){ ///执行一些方法 org.apache.dubbo.container.Main.main(args) } "><pre class="notranslate"><code class="notranslate">public class Main{ public static void main(String[] args){ ///执行一些方法 org.apache.dubbo.container.Main.main(args) } </code></pre></div>
0
<p dir="auto">To extract the port from a random port in a Deno.listen is somewhat painful:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" const listener = Deno.listen({ port: 0, transport: &quot;tcp&quot; }); //@ts-ignore const {port} = listener.addr this.port = port"><pre class="notranslate"><code class="notranslate"> const listener = Deno.listen({ port: 0, transport: "tcp" }); //@ts-ignore const {port} = listener.addr this.port = port </code></pre></div> <p dir="auto">While the random port doesn't seem that useful, it is extremely. For unit tests, launching a listener or process at a random port means that unit tests can really be independent, and not hardcoded.</p>
<p dir="auto">Ctrl+Z stopped Deno run<br> but I don't know why, after another <code class="notranslate">deno run</code> the port of the server (was 8080) were still in use.<br> so I tried to use a random free port with the 0.</p> <p dir="auto">after a console.warn(server), I got:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Server { listener: ListenerImpl { rid: 5, addr: { hostname: &quot;127.0.0.1&quot;, port: 34263, transport: &quot;tcp&quot; } }, closing: false, connections: [] }"><pre class="notranslate"><code class="notranslate">Server { listener: ListenerImpl { rid: 5, addr: { hostname: "127.0.0.1", port: 34263, transport: "tcp" } }, closing: false, connections: [] } </code></pre></div> <p dir="auto">but when I tried to access to the port with <code class="notranslate">server.listener.addr.port</code>, I had this message:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error TS2339: Property 'port' does not exist on type 'Addr'. Property 'port' does not exist on type 'UnixAddr'."><pre class="notranslate"><code class="notranslate">error TS2339: Property 'port' does not exist on type 'Addr'. Property 'port' does not exist on type 'UnixAddr'. </code></pre></div> <p dir="auto">it doesn't make sense. it seems like port is not defined on type Addr (obvious but confusing)</p>
1
<p dir="auto">I was looking for an easy/straightforward way to open observatory for my app. <code class="notranslate">flutter --help</code> doesn't appear to give me an option to <code class="notranslate">flutter observe</code>.</p> <p dir="auto">Is there another way to open the observatory for my app? Or, should we made a <code class="notranslate">flutter observe</code> ?</p> <p dir="auto">use case: I want to see the timeline of how my app starts up, and I am assuming that a good way to do that is open the Observatory.</p> <p dir="auto">Workaround: <code class="notranslate">flutter run &amp;&amp; open http://localhost:8181</code></p>
<p dir="auto">This could be done via an additional keycode command, like <code class="notranslate">K</code>. The logic to launch devtools is fairly straightforward. For example, see the following code in dwds:</p> <p dir="auto"><a href="https://github.com/dart-lang/webdev/blob/master/dwds/lib/src/servers/devtools.dart">https://github.com/dart-lang/webdev/blob/master/dwds/lib/src/servers/devtools.dart</a></p>
1
<p dir="auto">From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/calvinII/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/calvinII">@calvinII</a> on 2016-05-31T18:35:14Z</p> <h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">known_hosts</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.1.0.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides &lt;!--- Paste verbatim output from “ansible --version” between quotes --&gt; "><pre class="notranslate"><code class="notranslate">ansible 2.1.0.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides &lt;!--- Paste verbatim output from “ansible --version” between quotes --&gt; </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">Debian Jessie</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">If I call known_hosts to add a given key it changes on every call</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">Easy to reproduce, insert new key via known_hosts module in your .ssh/known_hosts, check for it, retry it again, and see that it changes again even if the correct key is already in your known_hosts.</p> <p dir="auto">Example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# Insert Key using known_hosts module uhochholdinger@xelo:~$ ansible -i 'localhost,' all -m known_hosts -a 'key=&quot;xelo ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBJzrHvJZ7bVys4f73Qr1B3qgLkX7sUP6JUpUgAJCCacTeelzQu2JbbOr6aho7K4k1iTZICfaEXEwFMAMtuchpw4= root@xelo&quot; name=&quot;xelo&quot;' localhost | SUCCESS =&gt; { &quot;changed&quot;: true, &quot;gid&quot;: 10000, &quot;group&quot;: &quot;np&quot;, &quot;key&quot;: &quot;xelo ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBJzrHvJZ7bVys4f73Qr1B3qgLkX7sUP6JUpUgAJCCacTeelzQu2JbbOr6aho7K4k1iTZICfaEXEwFMAMtuchpw4= root@xelo&quot;, &quot;mode&quot;: &quot;0600&quot;, &quot;name&quot;: &quot;xelo&quot;, &quot;owner&quot;: &quot;uhochholdinger&quot;, &quot;path&quot;: &quot;/home/uhochholdinger/.ssh/known_hosts&quot;, &quot;size&quot;: 300811, &quot;state&quot;: &quot;file&quot;, &quot;uid&quot;: 1016 } # Check if key is available, compare with added key! uhochholdinger@xelo:~$ ssh-keygen -F xelo # Host xelo found: line 978 type ECDSA xelo ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBJzrHvJZ7bVys4f73Qr1B3qgLkX7sUP6JUpUgAJCCacTeelzQu2JbbOr6aho7K4k1iTZICfaEXEwFMAMtuchpw4= # Try to add key again uhochholdinger@xelo:~$ ansible -i 'localhost,' all -m known_hosts -a 'key=&quot;xelo ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBJzrHvJZ7bVys4f73Qr1B3qgLkX7sUP6JUpUgAJCCacTeelzQu2JbbOr6aho7K4k1iTZICfaEXEwFMAMtuchpw4= root@xelo&quot; name=&quot;xelo&quot;' localhost | SUCCESS =&gt; { &quot;changed&quot;: true, &quot;gid&quot;: 10000, &quot;group&quot;: &quot;np&quot;, &quot;key&quot;: &quot;xelo ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBJzrHvJZ7bVys4f73Qr1B3qgLkX7sUP6JUpUgAJCCacTeelzQu2JbbOr6aho7K4k1iTZICfaEXEwFMAMtuchpw4= root@xelo&quot;, &quot;mode&quot;: &quot;0600&quot;, &quot;name&quot;: &quot;xelo&quot;, &quot;owner&quot;: &quot;uhochholdinger&quot;, &quot;path&quot;: &quot;/home/uhochholdinger/.ssh/known_hosts&quot;, &quot;size&quot;: 300811, &quot;state&quot;: &quot;file&quot;, &quot;uid&quot;: 1016 } "><pre class="notranslate"><code class="notranslate"># Insert Key using known_hosts module uhochholdinger@xelo:~$ ansible -i 'localhost,' all -m known_hosts -a 'key="xelo ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBJzrHvJZ7bVys4f73Qr1B3qgLkX7sUP6JUpUgAJCCacTeelzQu2JbbOr6aho7K4k1iTZICfaEXEwFMAMtuchpw4= root@xelo" name="xelo"' localhost | SUCCESS =&gt; { "changed": true, "gid": 10000, "group": "np", "key": "xelo ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBJzrHvJZ7bVys4f73Qr1B3qgLkX7sUP6JUpUgAJCCacTeelzQu2JbbOr6aho7K4k1iTZICfaEXEwFMAMtuchpw4= root@xelo", "mode": "0600", "name": "xelo", "owner": "uhochholdinger", "path": "/home/uhochholdinger/.ssh/known_hosts", "size": 300811, "state": "file", "uid": 1016 } # Check if key is available, compare with added key! uhochholdinger@xelo:~$ ssh-keygen -F xelo # Host xelo found: line 978 type ECDSA xelo ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBJzrHvJZ7bVys4f73Qr1B3qgLkX7sUP6JUpUgAJCCacTeelzQu2JbbOr6aho7K4k1iTZICfaEXEwFMAMtuchpw4= # Try to add key again uhochholdinger@xelo:~$ ansible -i 'localhost,' all -m known_hosts -a 'key="xelo ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBJzrHvJZ7bVys4f73Qr1B3qgLkX7sUP6JUpUgAJCCacTeelzQu2JbbOr6aho7K4k1iTZICfaEXEwFMAMtuchpw4= root@xelo" name="xelo"' localhost | SUCCESS =&gt; { "changed": true, "gid": 10000, "group": "np", "key": "xelo ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBJzrHvJZ7bVys4f73Qr1B3qgLkX7sUP6JUpUgAJCCacTeelzQu2JbbOr6aho7K4k1iTZICfaEXEwFMAMtuchpw4= root@xelo", "mode": "0600", "name": "xelo", "owner": "uhochholdinger", "path": "/home/uhochholdinger/.ssh/known_hosts", "size": 300811, "state": "file", "uid": 1016 } </code></pre></div> <p dir="auto">Cheers<br> Ulli</p> <p dir="auto">Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="157740068" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible-modules-extras/issues/2350" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible-modules-extras/issues/2350/hovercard" href="https://github.com/ansible/ansible-modules-extras/issues/2350">ansible/ansible-modules-extras#2350</a></p>
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report / Feature Idea</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">ini_file</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.2.0 config file = /etc/ansible/ansible.cfg configured module search path = [u'/home/something/.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.6 (default, Nov 23 2017, 15:49:48) [GCC 4.8.4]"><pre class="notranslate"><code class="notranslate">ansible 2.4.2.0 config file = /etc/ansible/ansible.cfg configured module search path = [u'/home/something/.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.6 (default, Nov 23 2017, 15:49:48) [GCC 4.8.4] </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <p dir="auto">DEFAULT_REMOTE_PORT(/etc/ansible/ansible.cfg) = 22<br> PERSISTENT_CONNECT_TIMEOUT(/etc/ansible/ansible.cfg) = 30</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">Ubuntu Server 16.04 LTS, 64-bit</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">When writing INI files from two instances to the same file and host it sometimes corrupts the file, resulting in wrong INI syntax (duplicates or a half section written to file).</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">Try to setup a test host and write to a INI file, execute the playbook/script few times at the same time.</p> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">I understand that it's a bad concept of potentially having the INI write at the same time, but with some deployment setup it could happen at any time you have scheduled tasks and manual tasks at the same time. It would be awesome to have a lock mechanism to the INI function.</p> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">Duplicates or weird syntax in the ini file.</p>
0
<p dir="auto"><a href="https://console.cloud.google.com/storage/kubernetes-jenkins/logs/kubernetes-e2e-gce-scalability/7790/" rel="nofollow">https://console.cloud.google.com/storage/kubernetes-jenkins/logs/kubernetes-e2e-gce-scalability/7790/</a></p> <p dir="auto">Failed: BeforeSuite {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/e2e.go:138 May 24 17:15:53.306: Error waiting for all pods to be running and ready: Not all pods in namespace 'kube-system' running and ready within 10m0s"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/e2e.go:138 May 24 17:15:53.306: Error waiting for all pods to be running and ready: Not all pods in namespace 'kube-system' running and ready within 10m0s </code></pre></div>
<p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gce-scalability/7761/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gce-scalability/7761/</a></p> <p dir="auto">Failed: BeforeSuite {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/e2e.go:138 May 23 21:08:38.707: Error waiting for all pods to be running and ready: Not all pods in namespace 'kube-system' running and ready within 10m0s"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/e2e.go:138 May 23 21:08:38.707: Error waiting for all pods to be running and ready: Not all pods in namespace 'kube-system' running and ready within 10m0s </code></pre></div>
1
<hr> <h3 dir="auto">System information</h3> <ul dir="auto"> <li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>:</li> <li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>:</li> <li><strong>TensorFlow installed from (source or binary)</strong>:</li> <li><strong>TensorFlow version (use command below)</strong>:</li> <li><strong>Python version</strong>:</li> <li><strong>Bazel version (if compiling from source)</strong>:</li> <li><strong>GCC/Compiler version (if compiling from source)</strong>:</li> <li><strong>CUDA/cuDNN version</strong>:</li> <li><strong>GPU model and memory</strong>:</li> <li><strong>Exact command to reproduce</strong>:</li> </ul> <p dir="auto">You can collect some of this information using our environment capture script:</p> <p dir="auto"><a href="https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh">https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh</a></p> <p dir="auto">You can obtain the TensorFlow version with</p> <p dir="auto">python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"</p> <h3 dir="auto">Describe the problem</h3> <p dir="auto">Describe the problem clearly here. Be sure to convey here why it's a bug in TensorFlow or a feature request.</p> <h3 dir="auto">Source code / logs</h3> <p dir="auto">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. Try to provide a reproducible test case that is the bare minimum necessary to generate the problem.</p>
<p dir="auto"><em>Please make sure that this is a build/installation issue. As per our <a href="https://github.com/tensorflow/tensorflow/blob/master/ISSUES.md">GitHub Policy</a>, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template</em></p> <p dir="auto"><strong>System information</strong></p> <ul dir="auto"> <li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): centos7</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): source</li> <li>TensorFlow version: r1.12</li> <li>Python version: python2.7.14</li> <li>Installed using virtualenv? pip? conda?: source</li> <li>Bazel version (if compiling from source): 0.18.0</li> <li>GCC/Compiler version (if compiling from source): gcc4.8.5</li> <li>CUDA/cuDNN version: cuda9.0</li> <li>GPU model and memory: p40 20g</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><br> ./configure<br> bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package</p> <p dir="auto"><strong>Any other info / logs</strong><br> Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.</p> <p dir="auto">After bazel build:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="WARNING: Duplicate rc file: /home/adamzhangchao/bin/tensorflow/tools/bazel.rc is read multiple times, most recently imported from /home/adamzhangchao/bin/tensorflow/.bazelrc WARNING: Processed legacy workspace file /home/adamzhangchao/bin/tensorflow/tools/bazel.rc. This file will not be processed in the next release of Bazel. Please read https://github.com/bazelbuild/bazel/issues/6319 for further information, including how to upgrade. Starting local Bazel server and connecting to it... WARNING: The following configs were expanded more than once: [cuda]. For repeatable flags, repeats are counted twice and may lead to unexpected behavior. DEBUG: /home/adamzhangchao/.cache/bazel/_bazel_adamzhangchao/6492ced5c6ed3f5961e75357254e4c4a/external/bazel_tools/tools/cpp/lib_cc_configure.bzl:115:5: Auto-Configuration Warning: 'TMP' environment variable is not set, using 'C:\Windows\Temp' as default ERROR: /home/adamzhangchao/bin/tensorflow/tensorflow/contrib/kafka/BUILD:36:1: no such package '@kafka//': Traceback (most recent call last): File &quot;/home/adamzhangchao/bin/tensorflow/third_party/repo.bzl&quot;, line 106 _apply_patch(ctx, ctx.attr.patch_file) File &quot;/home/adamzhangchao/bin/tensorflow/third_party/repo.bzl&quot;, line 68, in _apply_patch fail(&quot;patch command is not found, ple...&quot;) patch command is not found, please install it and referenced by '//tensorflow/contrib/kafka:dataset_kernels' ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted: no such package '@kafka//': Traceback (most recent call last): File &quot;/home/adamzhangchao/bin/tensorflow/third_party/repo.bzl&quot;, line 106 _apply_patch(ctx, ctx.attr.patch_file) File &quot;/home/adamzhangchao/bin/tensorflow/third_party/repo.bzl&quot;, line 68, in _apply_patch fail(&quot;patch command is not found, ple...&quot;) patch command is not found, please install it INFO: Elapsed time: 7.860s INFO: 0 processes. FAILED: Build did NOT complete successfully (251 packages loaded) currently loading: tensorflow/core/kernels"><pre class="notranslate"><code class="notranslate">WARNING: Duplicate rc file: /home/adamzhangchao/bin/tensorflow/tools/bazel.rc is read multiple times, most recently imported from /home/adamzhangchao/bin/tensorflow/.bazelrc WARNING: Processed legacy workspace file /home/adamzhangchao/bin/tensorflow/tools/bazel.rc. This file will not be processed in the next release of Bazel. Please read https://github.com/bazelbuild/bazel/issues/6319 for further information, including how to upgrade. Starting local Bazel server and connecting to it... WARNING: The following configs were expanded more than once: [cuda]. For repeatable flags, repeats are counted twice and may lead to unexpected behavior. DEBUG: /home/adamzhangchao/.cache/bazel/_bazel_adamzhangchao/6492ced5c6ed3f5961e75357254e4c4a/external/bazel_tools/tools/cpp/lib_cc_configure.bzl:115:5: Auto-Configuration Warning: 'TMP' environment variable is not set, using 'C:\Windows\Temp' as default ERROR: /home/adamzhangchao/bin/tensorflow/tensorflow/contrib/kafka/BUILD:36:1: no such package '@kafka//': Traceback (most recent call last): File "/home/adamzhangchao/bin/tensorflow/third_party/repo.bzl", line 106 _apply_patch(ctx, ctx.attr.patch_file) File "/home/adamzhangchao/bin/tensorflow/third_party/repo.bzl", line 68, in _apply_patch fail("patch command is not found, ple...") patch command is not found, please install it and referenced by '//tensorflow/contrib/kafka:dataset_kernels' ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted: no such package '@kafka//': Traceback (most recent call last): File "/home/adamzhangchao/bin/tensorflow/third_party/repo.bzl", line 106 _apply_patch(ctx, ctx.attr.patch_file) File "/home/adamzhangchao/bin/tensorflow/third_party/repo.bzl", line 68, in _apply_patch fail("patch command is not found, ple...") patch command is not found, please install it INFO: Elapsed time: 7.860s INFO: 0 processes. FAILED: Build did NOT complete successfully (251 packages loaded) currently loading: tensorflow/core/kernels </code></pre></div>
0
<p dir="auto">For select field, if we press keyboard, it should focus on the option start with the letter same as key press.</p> <p dir="auto">Give a simple select with 3 options:</p> <blockquote> <p dir="auto"><code class="notranslate">&lt;Select value={this.state.age} onChange={this.handleChange} inputProps={{ name: 'age', id: 'age-simple', }} &gt; &lt;MenuItem value=""&gt; &lt;em&gt;None&lt;/em&gt; &lt;/MenuItem&gt; &lt;MenuItem value={1}&gt;One&lt;/MenuItem&gt; &lt;MenuItem value={10}&gt;Ten&lt;/MenuItem&gt; &lt;MenuItem value={50}&gt;Fifty&lt;/MenuItem&gt; &lt;/Select&gt;</code></p> </blockquote> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">Press O, the first option should be focused<br> Press F, the last option should be focused</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">Press O, T or F does on the keyboard does not have any action.</p> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>1.0.0-beta.30</td> </tr> <tr> <td>React</td> <td>16.2.0</td> </tr> <tr> <td>browser</td> <td>Chrome</td> </tr> <tr> <td>etc</td> <td></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/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">Hi, Im trying to use the updated <code class="notranslate">Hidden</code> with <code class="notranslate">initialWidth</code></p> <p dir="auto">Not sure which one of these is correct:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;Hidden xsDown initialWidth={100}&gt; &lt;/Hidden&gt; &lt;Hidden xsDown initialWidth={&quot;xs&quot;}&gt; &lt;/Hidden&gt;"><pre class="notranslate"><code class="notranslate">&lt;Hidden xsDown initialWidth={100}&gt; &lt;/Hidden&gt; &lt;Hidden xsDown initialWidth={"xs"}&gt; &lt;/Hidden&gt; </code></pre></div> <p dir="auto">Either option gives me a warning</p> <blockquote> <p dir="auto">Warning: Failed prop type: Invalid prop <code class="notranslate">initialWidth</code> of type <code class="notranslate">string</code> supplied to <code class="notranslate">Hidden</code>, expected <code class="notranslate">number</code>.<br> in Hidden</p> </blockquote> <blockquote> <p dir="auto">Warning: Failed prop type: Invalid prop <code class="notranslate">initialWidth</code> of value <code class="notranslate">100</code> supplied to <code class="notranslate">WithWidth(HiddenJs)</code>, expected one of ["xs","sm","md","lg","xl"].<br> in WithWidth(HiddenJs)</p> </blockquote> <blockquote> <p dir="auto">Warning: Failed prop type: Invalid prop <code class="notranslate">width</code> of type <code class="notranslate">number</code> supplied to <code class="notranslate">HiddenJs</code>, expected <code class="notranslate">string</code>.<br> in HiddenJs</p> </blockquote> <p dir="auto">I dont see the property on Hidden.d.ts either in HiddenProps/HiddenJsProps</p> <h2 dir="auto">Current Behavior</h2> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <p dir="auto">Looking into the source</p> <p dir="auto">HiddenJs suggests it should be a number<br> <a href="https://github.com/mui-org/material-ui/blob/b72e77151659484c4c1a4a3853e66ee742d1a845/src/Hidden/HiddenJs.js#L98">https://github.com/mui-org/material-ui/blob/b72e77151659484c4c1a4a3853e66ee742d1a845/src/Hidden/HiddenJs.js#L98</a></p> <p dir="auto">However <code class="notranslate">initialWidth</code> also gets passed into <code class="notranslate">withWidth</code><br> <a href="https://github.com/mui-org/material-ui/blob/b72e77151659484c4c1a4a3853e66ee742d1a845/src/Hidden/HiddenJs.js#L153">https://github.com/mui-org/material-ui/blob/b72e77151659484c4c1a4a3853e66ee742d1a845/src/Hidden/HiddenJs.js#L153</a></p> <p dir="auto">Which expects a string<br> <a href="https://github.com/mui-org/material-ui/blob/b72e77151659484c4c1a4a3853e66ee742d1a845/src/utils/withWidth.js#L121">https://github.com/mui-org/material-ui/blob/b72e77151659484c4c1a4a3853e66ee742d1a845/src/utils/withWidth.js#L121</a></p> <h2 dir="auto">Context</h2> <p dir="auto">For the moment my workaround is this, which seems to do what I want (ie hidden on SSR)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var hiddenmdprops: any = { mdDown: true, initialWidth: 'md', }; &lt;Hidden {...hiddenmdprops}&gt; &lt;/Hidden&gt;"><pre class="notranslate"><code class="notranslate">var hiddenmdprops: any = { mdDown: true, initialWidth: 'md', }; &lt;Hidden {...hiddenmdprops}&gt; &lt;/Hidden&gt; </code></pre></div> <p dir="auto">And just ignore the warning.</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.27</td> </tr> <tr> <td>React</td> <td></td> </tr> <tr> <td>browser</td> <td></td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table>
0
<p dir="auto">I seem to get this error at random times while training a GaussianHMM.</p> <p dir="auto">Is this because of underflow?</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" File &quot;train_states.py&quot;, line 156, in &lt;module&gt; best_seq = model.decode(t) File &quot;/Library/Python/2.7/site-packages/scikit_learn-0.13.1-py2.7-macosx-10.7-intel.egg/sklearn/hmm.py&quot;, line 304, in decode logprob, state_sequence = decoder[algorithm](obs) File &quot;/Library/Python/2.7/site-packages/scikit_learn-0.13.1-py2.7-macosx-10.7-intel.egg/sklearn/hmm.py&quot;, line 241, in _decode_viterbi framelogprob = self._compute_log_likelihood(obs) File &quot;/Library/Python/2.7/site-packages/scikit_learn-0.13.1-py2.7-macosx-10.7-intel.egg/sklearn/hmm.py&quot;, line 743, in _compute_log_likelihood obs, self._means_, self._covars_, self._covariance_type) File &quot;/Library/Python/2.7/site-packages/scikit_learn-0.13.1-py2.7-macosx-10.7-intel.egg/sklearn/mixture/gmm.py&quot;, line 56, in log_multivariate_normal_density X, means, covars) File &quot;/Library/Python/2.7/site-packages/scikit_learn-0.13.1-py2.7-macosx-10.7-intel.egg/sklearn/mixture/gmm.py&quot;, line 603, in _log_multivariate_normal_density_full lower=True) File &quot;/src/scipy/scipy/linalg/decomp_cholesky.py&quot;, line 66, in cholesky c, lower = _cholesky(a, lower=lower, overwrite_a=overwrite_a, clean=True) File &quot;/src/scipy/scipy/linalg/decomp_cholesky.py&quot;, line 24, in _cholesky raise LinAlgError(&quot;%d-th leading minor not positive definite&quot; % info) numpy.linalg.linalg.LinAlgError: 2-th leading minor not positive definite"><pre class="notranslate"><code class="notranslate"> File "train_states.py", line 156, in &lt;module&gt; best_seq = model.decode(t) File "/Library/Python/2.7/site-packages/scikit_learn-0.13.1-py2.7-macosx-10.7-intel.egg/sklearn/hmm.py", line 304, in decode logprob, state_sequence = decoder[algorithm](obs) File "/Library/Python/2.7/site-packages/scikit_learn-0.13.1-py2.7-macosx-10.7-intel.egg/sklearn/hmm.py", line 241, in _decode_viterbi framelogprob = self._compute_log_likelihood(obs) File "/Library/Python/2.7/site-packages/scikit_learn-0.13.1-py2.7-macosx-10.7-intel.egg/sklearn/hmm.py", line 743, in _compute_log_likelihood obs, self._means_, self._covars_, self._covariance_type) File "/Library/Python/2.7/site-packages/scikit_learn-0.13.1-py2.7-macosx-10.7-intel.egg/sklearn/mixture/gmm.py", line 56, in log_multivariate_normal_density X, means, covars) File "/Library/Python/2.7/site-packages/scikit_learn-0.13.1-py2.7-macosx-10.7-intel.egg/sklearn/mixture/gmm.py", line 603, in _log_multivariate_normal_density_full lower=True) File "/src/scipy/scipy/linalg/decomp_cholesky.py", line 66, in cholesky c, lower = _cholesky(a, lower=lower, overwrite_a=overwrite_a, clean=True) File "/src/scipy/scipy/linalg/decomp_cholesky.py", line 24, in _cholesky raise LinAlgError("%d-th leading minor not positive definite" % info) numpy.linalg.linalg.LinAlgError: 2-th leading minor not positive definite </code></pre></div>
<p dir="auto">On Ubuntu 13.10 (Saucy), with numpy 1.8.0 and scipy 0.13.3, I get the following failure:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="====================================================================== ERROR: sklearn.cluster.tests.test_spectral.test_spectral_lobpcg_mode ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;/home/vagrant/venvs/2.7/local/lib/python2.7/site-packages/nose/case.py&quot;, line 197, in runTest self.test(*self.arg) File &quot;/home/vagrant/code/scikit-learn/sklearn/cluster/tests/test_spectral.py&quot;, line 68, in test_spectral_lobpcg_mode random_state=0, eigen_solver=&quot;lobpcg&quot;) File &quot;/home/vagrant/code/scikit-learn/sklearn/cluster/spectral.py&quot;, line 255, in spectral_clustering eigen_tol=eigen_tol, drop_first=False) File &quot;/home/vagrant/code/scikit-learn/sklearn/manifold/spectral_embedding_.py&quot;, line 303, in spectral_embedding largest=False, maxiter=2000) File &quot;/home/vagrant/venvs/2.7/local/lib/python2.7/site-packages/scipy/sparse/linalg/eigen/lobpcg/lobpcg.py&quot;, line 411, in lobpcg activeBlockVectorBP, retInvR=True) File &quot;/home/vagrant/venvs/2.7/local/lib/python2.7/site-packages/scipy/sparse/linalg/eigen/lobpcg/lobpcg.py&quot;, line 148, in b_orthonormalize gramVBV = sla.cholesky(gramVBV) File &quot;/home/vagrant/venvs/2.7/local/lib/python2.7/site-packages/scipy/linalg/decomp_cholesky.py&quot;, line 81, in cholesky check_finite=check_finite) File &quot;/home/vagrant/venvs/2.7/local/lib/python2.7/site-packages/scipy/linalg/decomp_cholesky.py&quot;, line 30, in _cholesky raise LinAlgError(&quot;%d-th leading minor not positive definite&quot; % info) LinAlgError: 2-th leading minor not positive definite ---------------------------------------------------------------------- "><pre class="notranslate"><code class="notranslate">====================================================================== ERROR: sklearn.cluster.tests.test_spectral.test_spectral_lobpcg_mode ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/vagrant/venvs/2.7/local/lib/python2.7/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/home/vagrant/code/scikit-learn/sklearn/cluster/tests/test_spectral.py", line 68, in test_spectral_lobpcg_mode random_state=0, eigen_solver="lobpcg") File "/home/vagrant/code/scikit-learn/sklearn/cluster/spectral.py", line 255, in spectral_clustering eigen_tol=eigen_tol, drop_first=False) File "/home/vagrant/code/scikit-learn/sklearn/manifold/spectral_embedding_.py", line 303, in spectral_embedding largest=False, maxiter=2000) File "/home/vagrant/venvs/2.7/local/lib/python2.7/site-packages/scipy/sparse/linalg/eigen/lobpcg/lobpcg.py", line 411, in lobpcg activeBlockVectorBP, retInvR=True) File "/home/vagrant/venvs/2.7/local/lib/python2.7/site-packages/scipy/sparse/linalg/eigen/lobpcg/lobpcg.py", line 148, in b_orthonormalize gramVBV = sla.cholesky(gramVBV) File "/home/vagrant/venvs/2.7/local/lib/python2.7/site-packages/scipy/linalg/decomp_cholesky.py", line 81, in cholesky check_finite=check_finite) File "/home/vagrant/venvs/2.7/local/lib/python2.7/site-packages/scipy/linalg/decomp_cholesky.py", line 30, in _cholesky raise LinAlgError("%d-th leading minor not positive definite" % info) LinAlgError: 2-th leading minor not positive definite ---------------------------------------------------------------------- </code></pre></div> <p dir="auto">The <code class="notranslate">libatlas3-base</code> and <code class="notranslate">libatlas-dev</code> packages are installed.</p>
1
<p dir="auto">The nav starts out great once you lower the bowser width the nav becomes stacked, this is great. Once you open the window back up the nav items are in two rows. Here's a pic.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/951d4a5f2d194bf565aea6b94c257d21d57fc3a3e15707b8bc2b3ae3eb2f836b/687474703a2f2f692e737461636b2e696d6775722e636f6d2f7271326a392e706e67"><img src="https://camo.githubusercontent.com/951d4a5f2d194bf565aea6b94c257d21d57fc3a3e15707b8bc2b3ae3eb2f836b/687474703a2f2f692e737461636b2e696d6775722e636f6d2f7271326a392e706e67" alt="enter image description here" data-canonical-src="http://i.stack.imgur.com/rq2j9.png" style="max-width: 100%;"></a></p> <p dir="auto">This is how it starts out:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/83635c05285edbfa23b8709b21c0c506e0ed744b2670b00ee6b557f4aca92dbe/687474703a2f2f692e737461636b2e696d6775722e636f6d2f33336631412e706e67"><img src="https://camo.githubusercontent.com/83635c05285edbfa23b8709b21c0c506e0ed744b2670b00ee6b557f4aca92dbe/687474703a2f2f692e737461636b2e696d6775722e636f6d2f33336631412e706e67" alt="enter image description here" data-canonical-src="http://i.stack.imgur.com/33f1A.png" style="max-width: 100%;"></a></p> <p dir="auto"><a href="http://reggi.myshopify.com/pages/about#" rel="nofollow">http://reggi.myshopify.com/pages/about#</a></p> <p dir="auto"><a href="http://stackoverflow.com/questions/19412786/bootstrap-nav-justified-odd-responsive-issue" rel="nofollow">http://stackoverflow.com/questions/19412786/bootstrap-nav-justified-odd-responsive-issue</a></p>
<p dir="auto">The justified nav example (<a href="http://getbootstrap.com/examples/justified-nav" rel="nofollow">http://getbootstrap.com/examples/justified-nav</a>) collapses perfectly when the screen is narrowed, but when the screen is expanded it get wonky.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/db69ca8e316e013e7709351d88ecf7d585b87ae58bdeb880ad477c8bc93e6608/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f38333730382f3938323439352f33383763663635362d303766382d313165332d393330382d6363376238306661653266642e706e67"><img src="https://camo.githubusercontent.com/db69ca8e316e013e7709351d88ecf7d585b87ae58bdeb880ad477c8bc93e6608/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f38333730382f3938323439352f33383763663635362d303766382d313165332d393330382d6363376238306661653266642e706e67" alt="justified nav" data-canonical-src="https://f.cloud.github.com/assets/83708/982495/387cf656-07f8-11e3-9308-cc7b80fae2fd.png" style="max-width: 100%;"></a><br> expanded</p>
1
<p dir="auto">I am trying to implement Deno in WinGet package manager. I converted the ps1 file into an exe file and i have tested the installer, but I have a 2 big problems.</p> <ul dir="auto"> <li>I dont have a website to host the installer.</li> <li>Since I cannot create a manifest (for the reason i just said) i cannot test the behaviour of the installer.</li> </ul> <p dir="auto">I sugest that you hosted the exe installer in your website once you have tried it and you see if it works!!</p>
<p dir="auto">Please add support for WinGet Packages releases.</p> <p dir="auto">Details on how to available here: <a href="https://github.com/microsoft/winget-pkgs">https://github.com/microsoft/winget-pkgs</a></p>
1
<h5 dir="auto">ISSUE TYPE</h5> <p dir="auto">Feature Idea</p> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">handlers</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.1.1.0"><pre class="notranslate"><code class="notranslate">ansible 2.1.1.0 </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <h5 dir="auto">OS / ENVIRONMENT</h5> <h5 dir="auto">SUMMARY</h5> <p dir="auto">Duplicate handler task names causes task ordering to get messed up starting in 2.1.1. Ansible should instead error if it detects two or more handlers with the same task name.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">I expected systemd reload before restarting service foo. Instead, the order was reversed because of the duplicate handler task.</p> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">Order was random. Sometimes good, but often it failed.</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">Ansible shouldn't permit duplicate handlers with the same task name to be used since it produces undesirable behavior.</p>
<p dir="auto">same problem as this closed ticket<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="69010378" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible/issues/10753" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible/issues/10753/hovercard" href="https://github.com/ansible/ansible/issues/10753">#10753</a></p> <h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">ANSIBLE VERSION</h5> <p dir="auto">1.9.4 and 2.0.1.0</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">Mac OS X El Capitan</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">When adding a security group using the ec2_group module. A duplicate entry error is thrown. This does not happen when using IP address with <code class="notranslate">cidr_ip</code>.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" - name: Update Security Group ec2_group: name: &quot;SSH Access&quot; description: &quot;Access To That Other Security Group&quot; region: &quot;{{ item.region }}&quot; rules: - proto: tcp from_port: 22 to_port: 22 group_id: some-other-group"><pre class="notranslate"><code class="notranslate"> - name: Update Security Group ec2_group: name: "SSH Access" description: "Access To That Other Security Group" region: "{{ item.region }}" rules: - proto: tcp from_port: 22 to_port: 22 group_id: some-other-group </code></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">Duplicates should not trigger a play book failure.</p> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">This error stops play book execution when using <code class="notranslate">group_id</code>.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="An exception occurred during task execution. To see the full traceback, use -vvv. The error was: &lt;Response&gt;&lt;Errors&gt;&lt;Error&gt;&lt;Code&gt;InvalidPermission.Duplicate&lt;/Code&gt;&lt;Message&gt;the specified rule &quot;peer: sg-xxxxxx, TCP, from port: 22, to port: 22, ALLOW&quot; already exists&lt;/Message&gt;&lt;/Error&gt;&lt;/Errors&gt;"><pre class="notranslate"><code class="notranslate">An exception occurred during task execution. To see the full traceback, use -vvv. The error was: &lt;Response&gt;&lt;Errors&gt;&lt;Error&gt;&lt;Code&gt;InvalidPermission.Duplicate&lt;/Code&gt;&lt;Message&gt;the specified rule "peer: sg-xxxxxx, TCP, from port: 22, to port: 22, ALLOW" already exists&lt;/Message&gt;&lt;/Error&gt;&lt;/Errors&gt; </code></pre></div>
0
<p dir="auto">While I'm not an Objective-C developer, I did some digging on the webs and it looks like getting the coordinates/position of the Dock Icon for a particular app is possible. Please see <a href="http://stackoverflow.com/a/6684646/416845" rel="nofollow">this response</a> and the <a href="http://stackoverflow.com/questions/6684278/getting-the-position-of-my-applications-dock-icon-using-cocoas-accessibility-a#comment7930301_6684646" rel="nofollow">subsequent comment</a> with an update to the method. I verified <a href="https://developer.apple.com/reference/appkit/nsrunningapplication" rel="nofollow">here</a> that the API still exists and is valid, and the method appears to be sound still.</p> <p dir="auto">I investigated using various plists on the machine to determine dock icon size (which doesn't appear to be possible anymore) and the index of a dock icon, but unfortunately that's not possible unless the app has been pinned to the dock.</p> <p dir="auto">I think that would add significant benefit for developers if that info was available to <code class="notranslate">app.dock</code>. My particular use case is that I'm rewriting an old app I wrote for windows which makes use of taskbar window thumbnail grouping, something I'm duplicating using a BrowserWindow, but I have no way of knowing how to align the window as I don't have access to the location of the dock icon. At the moment I can only query <code class="notranslate">defaults read com.apple.dock</code> through the shell to glean the position of the dock on the screen, which unfortunately isn't specific enough for my window alignment needs.</p> <ul dir="auto"> <li>Electron version: 1.6.5</li> <li>Operating system: MacOS 10.12.4</li> </ul> <h3 dir="auto">Expected behavior</h3> <p dir="auto">n/a</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">n/a</p> <h3 dir="auto">How to reproduce</h3> <p dir="auto">n/a</p>
<h3 dir="auto">Problem Description</h3> <p dir="auto">In electron 5.x, there'll be a LOG file in the ~/Library/Application Support/xxx/(userData directory), which is a duplicate with mine.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/11768033/67834762-339f0f00-fb23-11e9-8478-0dc61391410a.png"><img src="https://user-images.githubusercontent.com/11768033/67834762-339f0f00-fb23-11e9-8478-0dc61391410a.png" alt="image" style="max-width: 100%;"></a></p> <h3 dir="auto">Proposed Solution</h3> <p dir="auto">Disable the creation of this LOG file</p> <h3 dir="auto">Alternatives Considered</h3> <p dir="auto">None</p>
0
<p dir="auto">The output shape for multi-label predict_proba is inconsistent :-(<br> The OneVsRest classifier produces (n_samples, n_classes) (like multi-class)<br> where for example RandomForestClassifier produces a list of probabilities per label, which are each (n_samples, 2) or (n_samples, 1).</p> <p dir="auto">Not sure how to do a deprecation for that.<br> But we should do a common test for whether a classifier supports multi-label and what the output shapes are.</p>
<p dir="auto">The <code class="notranslate">decision_function</code> and <code class="notranslate">predict_proba</code> of a multi-label classifier (e.g. <code class="notranslate">OneVsRestClassifier</code>) is a 2d arrays where each column correspond to a label and each row correspond to a sample. (added in 0.14?)</p> <p dir="auto">The <code class="notranslate">decision_function</code> and <code class="notranslate">predict_proba</code> of multi-output multi-class classifier (e.g. <code class="notranslate">RandomForestClassifier</code>) is a list of length equal to the number of output with a multi-class decision_function or predict_proba output (a 2d array where each row corresponds to the samples and where each columns correspond to a class).</p> <p dir="auto">So this means that multi-output problem with only binary class output is a multi-label task, but isn't consistent with the multi-label format...</p> <p dir="auto">This is problematic if you want to code a <code class="notranslate">roc_auc_score</code> function to support multi-label output.</p>
1
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/bonfire-return-largest-numbers-in-arrays" rel="nofollow">http://www.freecodecamp.com/challenges/bonfire-return-largest-numbers-in-arrays</a> has an issue.</p> <p dir="auto">This issue occurs no matter what code I put in. Believe something in the background may be broken. I was told in the Helproom that a few others are getting this too.</p>
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-bring-your-javascript-slot-machine-to-life" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-bring-your-javascript-slot-machine-to-life</a> has an issue.</p> <p dir="auto">while trying to type $($(".slot")[0]).html(slotOne);<br> program freezes, having to close and reopen tab.</p> <p dir="auto">however pasting $($(".slot")[0]).html(slotOne); works fine.<br> something about <math-renderer class="js-inline-math" style="display: inline" data-static-url="https://github.githubassets.com/static" data-run-id="166c02be8498a4606726cd52687a29d9">$($</math-renderer>) while typing messes everything up</p>
0
<p dir="auto">Here is the problem:<br> I would like to train a network with two different shapes of input tensor. Each epoch chooses one type. Here I write a small code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import tensorflow as tf import numpy as np with tf.Session() as sess: imgs1 = tf.placeholder(tf.float32, [4, 224, 224, 3], name = 'input_imgs1') imgs2 = tf.placeholder(tf.float32, [4, 180, 180, 3], name = 'input_imgs2') epoch_num_tf = tf.placeholder(tf.int32, [], name = 'input_epoch_num') imgs = tf.cond(tf.equal(tf.mod(epoch_num_tf, 2), 0), lambda: tf.Print(imgs2, [imgs2.get_shape()], message='(even number) input epoch number is '), lambda: tf.Print(imgs1, [imgs1.get_shape()], message='(odd number) input epoch number is')) print(imgs.get_shape()) for epoch in range(10): epoch_num = np.array(epoch).astype(np.int32) imgs1_input = np.ones([4, 224, 224, 3], dtype = np.float32) imgs2_input = np.ones([4, 180, 180, 3], dtype = np.float32) output = sess.run(imgs, feed_dict = {epoch_num_tf: epoch_num, imgs1: imgs1_input, imgs2: imgs2_input})"><pre class="notranslate"><code class="notranslate">import tensorflow as tf import numpy as np with tf.Session() as sess: imgs1 = tf.placeholder(tf.float32, [4, 224, 224, 3], name = 'input_imgs1') imgs2 = tf.placeholder(tf.float32, [4, 180, 180, 3], name = 'input_imgs2') epoch_num_tf = tf.placeholder(tf.int32, [], name = 'input_epoch_num') imgs = tf.cond(tf.equal(tf.mod(epoch_num_tf, 2), 0), lambda: tf.Print(imgs2, [imgs2.get_shape()], message='(even number) input epoch number is '), lambda: tf.Print(imgs1, [imgs1.get_shape()], message='(odd number) input epoch number is')) print(imgs.get_shape()) for epoch in range(10): epoch_num = np.array(epoch).astype(np.int32) imgs1_input = np.ones([4, 224, 224, 3], dtype = np.float32) imgs2_input = np.ones([4, 180, 180, 3], dtype = np.float32) output = sess.run(imgs, feed_dict = {epoch_num_tf: epoch_num, imgs1: imgs1_input, imgs2: imgs2_input}) </code></pre></div> <p dir="auto">When I execute it, the output of <code class="notranslate">imgs.get_shape()</code> is <code class="notranslate">(4, ?, ?, 3)</code> i.e. <code class="notranslate">imgs.get_shape()[1]=None, imgs.get_shape()[2]=None</code>.</p> <p dir="auto">But I will use the value of the output of <code class="notranslate">imgs.get_shape()</code> to define the kernel (<code class="notranslate">ksize</code>) and strides size (<code class="notranslate">strides</code>) of the <code class="notranslate">tf.nn.max_pool()</code> e.g. <code class="notranslate">ksize=[1,imgs.get_shape()[1]/6, imgs.get_shape()[2]/6, 1]</code> in the future code. I think ksize and strides cannot support <code class="notranslate">tf.Tensor</code> value.</p> <p dir="auto">How to solve this problem?</p> <p dir="auto">I also asked in the <a href="http://stackoverflow.com/questions/40932002/tensorflow-how-to-set-the-shape-of-tensor-with-different-conditional-statements" rel="nofollow">stackoverflow</a>.</p>
<p dir="auto">I am trying to build a convolution (followed by max_pool) for variable length input size. Since the length of the input in a batch should be the same, I set the batch size to 1. However, for some reason ksize in tf.nn.max_pool is a list attribute required at run-time. This would prevent any neural network that uses variable input size to apply max pool. Is there a workaround for this? Should ksize be an input tensor otherwise?</p>
1
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 3.4.1 pre-built release</li> <li>Tensorflow =&gt; 1.8.0 latest master</li> <li>Operating System / Platform =&gt; Windows 10 64bit</li> <li>Compiler =&gt; Visual Studio 2015</li> </ul> <p dir="auto">I have retrained an image classifier based on TFHub Mobilenet V2, using the following command:</p> <p dir="auto"><code class="notranslate">retrain.py --image_dir .\data --output_graph output.pb --output_labels labels.txt --tfhub_module https://tfhub.dev/google/imagenet/mobilenet_v2_100_224/feature_vector/1 --saved_model_dir .\export</code></p> <p dir="auto">The resulting output.pb works fine with TF label image:</p> <p dir="auto"><code class="notranslate">tensorflow\examples\label_image\label_image.py --graph=.\output.pb --labels=.\labels.txt --input_layer=Placeholder --output_layer=final_result --input_height=224 --input_width=224 --image=.\111.jpg</code></p> <p dir="auto">But when using OpenCV DNN module, it crashes at the following line:</p> <p dir="auto"><code class="notranslate">dnn::Net net = readNetFromTensorflow(modelFile);</code></p> <p dir="auto">with error message:</p> <p dir="auto"><code class="notranslate">OpenCV(3.4.1) Error: Unspecified error (Unknown layer type Sub in op module_apply_default/hub_input/Sub) in cv::dnn::experimental_dnn_v4::'anonymous-namespace'::TFImporter::populateNet, file C:\build\master_winpack-build-win64-vc14\opencv\modules\dnn\src\tensorflow\tf_importer.cpp, line 1582</code></p> <p dir="auto">Running optimize_for_inference.py and transform_graph does not help.</p> <p dir="auto">After some inspecting with tensorboard graph, it seems that one hub_input block caused this problem.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/13673628/40423491-54cb0eaa-5ec5-11e8-8053-037d32c0a8d4.png"><img src="https://user-images.githubusercontent.com/13673628/40423491-54cb0eaa-5ec5-11e8-8053-037d32c0a8d4.png" alt="hub_input" style="max-width: 100%;"></a></p> <p dir="auto">Looks like TF Hub models have this block between Placeholder(input node) and the MobilenetV2 block, and the Sub operation is not supported by DNN.</p> <p dir="auto">Am I missing something here?</p> <p dir="auto">Here is my retrained model, load it with readNetFromTensorflow() to reproduce the problem<br> <a href="https://github.com/opencv/opencv/files/2030954/output.zip">output.zip</a></p> <p dir="auto">Any help is appreciated!</p>
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 4.1</li> <li>Operating System / Platform =&gt; OS X 10.13.6</li> <li>Compiler =&gt; clang</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">I installed opencv using homebrew and it installed fine. I edited the rb file to include ffmpeg, which was the <a href="https://github.com/opencv/opencv/issues/7474#issuecomment-281799812" data-hovercard-type="issue" data-hovercard-url="/opencv/opencv/issues/7474/hovercard">solution to this issue in ocv 3.1</a>. I was unable to install with the <code class="notranslate">--with-ffmpeg</code> flag for ver 4.1. My code works on Ubuntu 18.04 but not OS X. This is the error I get:</p> <details> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="2019-04-22 17:40:46.985 Python[29225:130069098] !!! BUG: The current event queue and the main event queue are not the same. Events will not be handled correctly. This is probably because _TSGetMainThread was called for the first time off the main thread. 2019-04-22 17:40:46.993 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2019-04-22 17:40:47.004 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2019-04-22 17:40:47.004 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2019-04-22 17:40:47.004 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2019-04-22 17:40:47.004 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2019-04-22 17:40:47.004 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2019-04-22 17:40:47.004 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2019-04-22 17:40:47.004 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2019-04-22 17:40:47.004 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2019-04-22 17:40:47.004 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2019-04-22 17:40:47.004 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2019-04-22 17:40:47.004 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2019-04-22 17:40:47.004 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2019-04-22 17:40:47.135 Python[29225:130069179] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'nextEventMatchingMask should only be called from the Main Thread!' *** First throw call stack: ( 0 CoreFoundation 0x00007fff5779623b __exceptionPreprocess + 171 1 libobjc.A.dylib 0x00007fff7ea28c76 objc_exception_throw + 48 2 AppKit 0x00007fff55441297 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 4167 3 libopencv_highgui.4.1.dylib 0x000000013088fb8e cvWaitKey + 352 4 libopencv_highgui.4.1.dylib 0x000000013088b598 _ZN2cv9waitKeyExEi + 34 5 libopencv_highgui.4.1.dylib 0x000000013088b600 _ZN2cv7waitKeyEi + 34 6 cv2.so 0x000000012eb96d9d _ZL19pyopencv_cv_waitKeyP7_objectS0_S0_ + 99 7 Python 0x0000000107938e32 PyEval_EvalFrameEx + 19200 8 Python 0x0000000107934118 PyEval_EvalCodeEx + 1540 9 Python 0x00000001078da838 function_call + 327 10 Python 0x00000001078bcc19 PyObject_Call + 97 11 Python 0x00000001079396f3 PyEval_EvalFrameEx + 21441 12 Python 0x000000010793d121 fast_function + 190 13 Python 0x0000000107938d1c PyEval_EvalFrameEx + 18922 14 Python 0x000000010793d121 fast_function + 190 15 Python 0x0000000107938d1c PyEval_EvalFrameEx + 18922 16 Python 0x0000000107934118 PyEval_EvalCodeEx + 1540 17 Python 0x00000001078da838 function_call + 327 18 Python 0x00000001078bcc19 PyObject_Call + 97 19 Python 0x00000001078c751b instancemethod_call + 163 20 Python 0x00000001078bcc19 PyObject_Call + 97 21 Python 0x000000010793cab4 PyEval_CallObjectWithKeywords + 159 22 Python 0x0000000107968db4 t_bootstrap + 70 23 Python 0x0000000107964a70 pythread_wrapper + 25 24 libsystem_pthread.dylib 0x00007fff7f95a661 _pthread_body + 340 25 libsystem_pthread.dylib 0x00007fff7f95a50d _pthread_body + 0 26 libsystem_pthread.dylib 0x00007fff7f959bf9 thread_start + 13 ) libc++abi.dylib: terminating with uncaught exception of type NSException Abort trap: 6 "><pre class="notranslate">2019-04-22 17:40:46.985 Python[29225:130069098] <span class="pl-k">!!!</span> BUG: The current event queue and the main event queue are not the same. Events will not be handled correctly. This is probably because _TSGetMainThread was called <span class="pl-k">for</span> the first <span class="pl-k">time</span> off the main thread. 2019-04-22 17:40:46.993 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM <span class="pl-k">in</span> non-main thread environment, ERROR <span class="pl-c1">:</span> This is NOT allowed. Please call TIS/TSM <span class="pl-k">in</span> main thread<span class="pl-k">!!!</span> 2019-04-22 17:40:47.004 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM <span class="pl-k">in</span> non-main thread environment, ERROR <span class="pl-c1">:</span> This is NOT allowed. Please call TIS/TSM <span class="pl-k">in</span> main thread<span class="pl-k">!!!</span> 2019-04-22 17:40:47.004 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM <span class="pl-k">in</span> non-main thread environment, ERROR <span class="pl-c1">:</span> This is NOT allowed. Please call TIS/TSM <span class="pl-k">in</span> main thread<span class="pl-k">!!!</span> 2019-04-22 17:40:47.004 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM <span class="pl-k">in</span> non-main thread environment, ERROR <span class="pl-c1">:</span> This is NOT allowed. Please call TIS/TSM <span class="pl-k">in</span> main thread<span class="pl-k">!!!</span> 2019-04-22 17:40:47.004 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM <span class="pl-k">in</span> non-main thread environment, ERROR <span class="pl-c1">:</span> This is NOT allowed. Please call TIS/TSM <span class="pl-k">in</span> main thread<span class="pl-k">!!!</span> 2019-04-22 17:40:47.004 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM <span class="pl-k">in</span> non-main thread environment, ERROR <span class="pl-c1">:</span> This is NOT allowed. Please call TIS/TSM <span class="pl-k">in</span> main thread<span class="pl-k">!!!</span> 2019-04-22 17:40:47.004 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM <span class="pl-k">in</span> non-main thread environment, ERROR <span class="pl-c1">:</span> This is NOT allowed. Please call TIS/TSM <span class="pl-k">in</span> main thread<span class="pl-k">!!!</span> 2019-04-22 17:40:47.004 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM <span class="pl-k">in</span> non-main thread environment, ERROR <span class="pl-c1">:</span> This is NOT allowed. Please call TIS/TSM <span class="pl-k">in</span> main thread<span class="pl-k">!!!</span> 2019-04-22 17:40:47.004 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM <span class="pl-k">in</span> non-main thread environment, ERROR <span class="pl-c1">:</span> This is NOT allowed. Please call TIS/TSM <span class="pl-k">in</span> main thread<span class="pl-k">!!!</span> 2019-04-22 17:40:47.004 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM <span class="pl-k">in</span> non-main thread environment, ERROR <span class="pl-c1">:</span> This is NOT allowed. Please call TIS/TSM <span class="pl-k">in</span> main thread<span class="pl-k">!!!</span> 2019-04-22 17:40:47.004 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM <span class="pl-k">in</span> non-main thread environment, ERROR <span class="pl-c1">:</span> This is NOT allowed. Please call TIS/TSM <span class="pl-k">in</span> main thread<span class="pl-k">!!!</span> 2019-04-22 17:40:47.004 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM <span class="pl-k">in</span> non-main thread environment, ERROR <span class="pl-c1">:</span> This is NOT allowed. Please call TIS/TSM <span class="pl-k">in</span> main thread<span class="pl-k">!!!</span> 2019-04-22 17:40:47.004 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM <span class="pl-k">in</span> non-main thread environment, ERROR <span class="pl-c1">:</span> This is NOT allowed. Please call TIS/TSM <span class="pl-k">in</span> main thread<span class="pl-k">!!!</span> 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM <span class="pl-k">in</span> non-main thread environment, ERROR <span class="pl-c1">:</span> This is NOT allowed. Please call TIS/TSM <span class="pl-k">in</span> main thread<span class="pl-k">!!!</span> 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM <span class="pl-k">in</span> non-main thread environment, ERROR <span class="pl-c1">:</span> This is NOT allowed. Please call TIS/TSM <span class="pl-k">in</span> main thread<span class="pl-k">!!!</span> 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM <span class="pl-k">in</span> non-main thread environment, ERROR <span class="pl-c1">:</span> This is NOT allowed. Please call TIS/TSM <span class="pl-k">in</span> main thread<span class="pl-k">!!!</span> 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM <span class="pl-k">in</span> non-main thread environment, ERROR <span class="pl-c1">:</span> This is NOT allowed. Please call TIS/TSM <span class="pl-k">in</span> main thread<span class="pl-k">!!!</span> 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM <span class="pl-k">in</span> non-main thread environment, ERROR <span class="pl-c1">:</span> This is NOT allowed. Please call TIS/TSM <span class="pl-k">in</span> main thread<span class="pl-k">!!!</span> 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM <span class="pl-k">in</span> non-main thread environment, ERROR <span class="pl-c1">:</span> This is NOT allowed. Please call TIS/TSM <span class="pl-k">in</span> main thread<span class="pl-k">!!!</span> 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM <span class="pl-k">in</span> non-main thread environment, ERROR <span class="pl-c1">:</span> This is NOT allowed. Please call TIS/TSM <span class="pl-k">in</span> main thread<span class="pl-k">!!!</span> 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM <span class="pl-k">in</span> non-main thread environment, ERROR <span class="pl-c1">:</span> This is NOT allowed. Please call TIS/TSM <span class="pl-k">in</span> main thread<span class="pl-k">!!!</span> 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM <span class="pl-k">in</span> non-main thread environment, ERROR <span class="pl-c1">:</span> This is NOT allowed. Please call TIS/TSM <span class="pl-k">in</span> main thread<span class="pl-k">!!!</span> 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM <span class="pl-k">in</span> non-main thread environment, ERROR <span class="pl-c1">:</span> This is NOT allowed. Please call TIS/TSM <span class="pl-k">in</span> main thread<span class="pl-k">!!!</span> 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM <span class="pl-k">in</span> non-main thread environment, ERROR <span class="pl-c1">:</span> This is NOT allowed. Please call TIS/TSM <span class="pl-k">in</span> main thread<span class="pl-k">!!!</span> 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM <span class="pl-k">in</span> non-main thread environment, ERROR <span class="pl-c1">:</span> This is NOT allowed. Please call TIS/TSM <span class="pl-k">in</span> main thread<span class="pl-k">!!!</span> 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM <span class="pl-k">in</span> non-main thread environment, ERROR <span class="pl-c1">:</span> This is NOT allowed. Please call TIS/TSM <span class="pl-k">in</span> main thread<span class="pl-k">!!!</span> 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM <span class="pl-k">in</span> non-main thread environment, ERROR <span class="pl-c1">:</span> This is NOT allowed. Please call TIS/TSM <span class="pl-k">in</span> main thread<span class="pl-k">!!!</span> 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM <span class="pl-k">in</span> non-main thread environment, ERROR <span class="pl-c1">:</span> This is NOT allowed. Please call TIS/TSM <span class="pl-k">in</span> main thread<span class="pl-k">!!!</span> 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM <span class="pl-k">in</span> non-main thread environment, ERROR <span class="pl-c1">:</span> This is NOT allowed. Please call TIS/TSM <span class="pl-k">in</span> main thread<span class="pl-k">!!!</span> 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM <span class="pl-k">in</span> non-main thread environment, ERROR <span class="pl-c1">:</span> This is NOT allowed. Please call TIS/TSM <span class="pl-k">in</span> main thread<span class="pl-k">!!!</span> 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM <span class="pl-k">in</span> non-main thread environment, ERROR <span class="pl-c1">:</span> This is NOT allowed. Please call TIS/TSM <span class="pl-k">in</span> main thread<span class="pl-k">!!!</span> 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM <span class="pl-k">in</span> non-main thread environment, ERROR <span class="pl-c1">:</span> This is NOT allowed. Please call TIS/TSM <span class="pl-k">in</span> main thread<span class="pl-k">!!!</span> 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM <span class="pl-k">in</span> non-main thread environment, ERROR <span class="pl-c1">:</span> This is NOT allowed. Please call TIS/TSM <span class="pl-k">in</span> main thread<span class="pl-k">!!!</span> 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM <span class="pl-k">in</span> non-main thread environment, ERROR <span class="pl-c1">:</span> This is NOT allowed. Please call TIS/TSM <span class="pl-k">in</span> main thread<span class="pl-k">!!!</span> 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM <span class="pl-k">in</span> non-main thread environment, ERROR <span class="pl-c1">:</span> This is NOT allowed. Please call TIS/TSM <span class="pl-k">in</span> main thread<span class="pl-k">!!!</span> 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM <span class="pl-k">in</span> non-main thread environment, ERROR <span class="pl-c1">:</span> This is NOT allowed. Please call TIS/TSM <span class="pl-k">in</span> main thread<span class="pl-k">!!!</span> 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM <span class="pl-k">in</span> non-main thread environment, ERROR <span class="pl-c1">:</span> This is NOT allowed. Please call TIS/TSM <span class="pl-k">in</span> main thread<span class="pl-k">!!!</span> 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM <span class="pl-k">in</span> non-main thread environment, ERROR <span class="pl-c1">:</span> This is NOT allowed. Please call TIS/TSM <span class="pl-k">in</span> main thread<span class="pl-k">!!!</span> 2019-04-22 17:40:47.006 Python[29225:130069098] pid(29225)/euid(504) is calling TIS/TSM <span class="pl-k">in</span> non-main thread environment, ERROR <span class="pl-c1">:</span> This is NOT allowed. Please call TIS/TSM <span class="pl-k">in</span> main thread<span class="pl-k">!!!</span> 2019-04-22 17:40:47.135 Python[29225:130069179] <span class="pl-k">***</span> Terminating app due to uncaught exception <span class="pl-s"><span class="pl-pds">'</span>NSInternalInconsistencyException<span class="pl-pds">'</span></span>, reason: <span class="pl-s"><span class="pl-pds">'</span>nextEventMatchingMask should only be called from the Main Thread!<span class="pl-pds">'</span></span> <span class="pl-k">***</span> First throw call stack: ( 0 CoreFoundation 0x00007fff5779623b __exceptionPreprocess + 171 1 libobjc.A.dylib 0x00007fff7ea28c76 objc_exception_throw + 48 2 AppKit 0x00007fff55441297 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 4167 3 libopencv_highgui.4.1.dylib 0x000000013088fb8e cvWaitKey + 352 4 libopencv_highgui.4.1.dylib 0x000000013088b598 _ZN2cv9waitKeyExEi + 34 5 libopencv_highgui.4.1.dylib 0x000000013088b600 _ZN2cv7waitKeyEi + 34 6 cv2.so 0x000000012eb96d9d _ZL19pyopencv_cv_waitKeyP7_objectS0_S0_ + 99 7 Python 0x0000000107938e32 PyEval_EvalFrameEx + 19200 8 Python 0x0000000107934118 PyEval_EvalCodeEx + 1540 9 Python 0x00000001078da838 function_call + 327 10 Python 0x00000001078bcc19 PyObject_Call + 97 11 Python 0x00000001079396f3 PyEval_EvalFrameEx + 21441 12 Python 0x000000010793d121 fast_function + 190 13 Python 0x0000000107938d1c PyEval_EvalFrameEx + 18922 14 Python 0x000000010793d121 fast_function + 190 15 Python 0x0000000107938d1c PyEval_EvalFrameEx + 18922 16 Python 0x0000000107934118 PyEval_EvalCodeEx + 1540 17 Python 0x00000001078da838 function_call + 327 18 Python 0x00000001078bcc19 PyObject_Call + 97 19 Python 0x00000001078c751b instancemethod_call + 163 20 Python 0x00000001078bcc19 PyObject_Call + 97 21 Python 0x000000010793cab4 PyEval_CallObjectWithKeywords + 159 22 Python 0x0000000107968db4 t_bootstrap + 70 23 Python 0x0000000107964a70 pythread_wrapper + 25 24 libsystem_pthread.dylib 0x00007fff7f95a661 _pthread_body + 340 25 libsystem_pthread.dylib 0x00007fff7f95a50d _pthread_body + 0 26 libsystem_pthread.dylib 0x00007fff7f959bf9 thread_start + 13 ) libc++abi.dylib: terminating with uncaught exception of <span class="pl-c1">type</span> NSException Abort trap: 6 </pre></div> </details> <h5 dir="auto">Steps to reproduce</h5> <details> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" import sys, cv2, time,cmapy import numpy as np import matplotlib matplotlib.use('TkAgg') import matplotlib.pyplot as plt from threading import Thread, RLock from Queue import Queue import imutils from cv2 import * ip = '192.168.122.1' class VideoGet: def __init__(self,url): self.stream=cv2.VideoCapture(url) self.stream.set(cv2.CAP_PROP_BUFFERSIZE, 0) (self.grabbed,self.frame)=self.stream.read() self.frame = self.frame[:,:,0] #self.frame = cv2.resize(self.frame, (1920,1080)) self.stopped = False def start(self): Thread(target=self.get, args=()).start() return self def get(self): while not self.stopped: if not self.grabbed: self.stop() else: (self.grabbed, self.frame) = self.stream.read() self.frame = self.frame[:,:,0] def stop(self): self.stopped = True class VideoGetAll: def __init__(self,url1,url2,url3,url4,url5,url6,url7): self.cap1=cv2.VideoCapture(url1) (self.grabbed1,self.frame1)=self.stream1.read() self.cap2=cv2.VideoCapture(url2) (self.grabbed2,self.frame2)=self.stream2.read() self.cap3=cv2.VideoCapture(url3) (self.grabbed3,self.frame3)=self.stream3.read() self.cap4=cv2.VideoCapture(url4) (self.grabbed4,self.frame4)=self.stream4.read() self.cap5=cv2.VideoCapture(url5) (self.grabbed5,self.frame5)=self.stream5.read() self.cap6=cv2.VideoCapture(url6) (self.grabbed6,self.frame6)=self.stream6.read() self.cap7=cv2.VideoCapture(url7) (self.grabbed7,self.frame7)=self.stream7.read() self.grabbed = self.grabbed1&amp;self.grabbed2&amp;self.grabbed3&amp;self.grabbed4&amp;self.grabbed5&amp;self.grabbed6&amp;self.grabbed7 self.frame = concat(self.frame1[0:1080,:],self.frame2[0:1080,:],self.frame3[0:1080,:],self.frame4[0:1080,:],self.frame5[0:1080,:],self.frame6[0:1080,:]) #self.frame = cv2.resize(self.frame, (1920,1080)) self.stopped = False def start(self): Thread(target=self.get, args=()).start() return self def get(self): while not self.stopped: if not self.grabbed: self.stop() else: (self.grabbed1, self.frame1) = self.stream1.read() (self.grabbed2, self.frame2) = self.stream2.read() (self.grabbed3, self.frame3) = self.stream3.read() (self.grabbed4, self.frame4) = self.stream4.read() (self.grabbed5, self.frame5) = self.stream5.read() (self.grabbed6, self.frame6) = self.stream6.read() (self.grabbed7, self.frame7) = self.stream7.read() self.frame0 = concat(self.frame1[0:1080,:],self.frame2[0:1080,:],self.frame3[0:1080,:],self.frame4[0:1080,:],self.frame5[0:1080,:],self.frame5[0:1080,:],self.frame6[0:1080,:]) self.frame = cv2.resize(self.frame0, (1280,720)) def stop(self): self.stopped = True class VideoShow: def __init__(self, frame1=None,frame2=None,frame3=None): self.frame1 = frame1 self.frame2 = frame2 self.frame3 = frame3 self.stopped = False self.xoff1 = 0 self.yoff1 = 0 self.angle1 = 0 self.xoff2 = 0 self.yoff2 = 0 self.angle2 = 0 self.rchan = 5 self.gchan = 4 self.bchan = 3 def start(self): Thread(target=self.show, args=()).start() return self def show(self): cv2.namedWindow('Frame',cv2.WINDOW_NORMAL) cv2.resizeWindow('Frame',1280,720) cv2.namedWindow(&quot;Transform&quot;) cv2.createTrackbar(&quot;X1&quot;,&quot;Transform&quot;,91,300,nothing) cv2.createTrackbar(&quot;Y1&quot;,&quot;Transform&quot;,-85,300,nothing) cv2.createTrackbar(&quot;Angle1&quot;,&quot;Transform&quot;,0,180,nothing) cv2.setTrackbarMin(&quot;X1&quot;,&quot;Transform&quot;,-300) cv2.setTrackbarMin(&quot;Y1&quot;,&quot;Transform&quot;,-300) cv2.setTrackbarMin(&quot;Angle1&quot;,&quot;Transform&quot;,-180) cv2.createTrackbar(&quot;X2&quot;,&quot;Transform&quot;,-87,300,nothing) cv2.createTrackbar(&quot;Y2&quot;,&quot;Transform&quot;,-1,300,nothing) cv2.createTrackbar(&quot;Angle2&quot;,&quot;Transform&quot;,-2,180,nothing) cv2.setTrackbarMin(&quot;X2&quot;,&quot;Transform&quot;,-300) cv2.setTrackbarMin(&quot;Y2&quot;,&quot;Transform&quot;,-300) cv2.setTrackbarMin(&quot;Angle2&quot;,&quot;Transform&quot;,-180) cv2.createTrackbar('Red',&quot;Transform&quot;,5,5,nothing) cv2.createTrackbar('Green',&quot;Transform&quot;,4,5,nothing) cv2.createTrackbar('Blue',&quot;Transform&quot;,3,5,nothing) while not self.stopped: cv2.imshow('Frame', cv2.merge((self.frame1,self.frame2,self.frame3))) self.xoff1 = cv2.getTrackbarPos(&quot;X1&quot;,&quot;Transform&quot;) self.yoff1 = cv2.getTrackbarPos(&quot;Y1&quot;,&quot;Transform&quot;) self.angle1 = cv2.getTrackbarPos(&quot;Angle1&quot;,&quot;Transform&quot;) self.xoff2 = cv2.getTrackbarPos(&quot;X2&quot;,&quot;Transform&quot;) self.yoff2 = cv2.getTrackbarPos(&quot;Y2&quot;,&quot;Transform&quot;) self.angle2 = cv2.getTrackbarPos(&quot;Angle2&quot;,&quot;Transform&quot;) self.rchan = cv2.getTrackbarPos(&quot;Red&quot;,&quot;Transform&quot;) self.gchan = cv2.getTrackbarPos(&quot;Green&quot;,&quot;Transform&quot;) self.bchan = cv2.getTrackbarPos(&quot;Blue&quot;,&quot;Transform&quot;) if cv2.waitKey(1) == 27: self.stopped = True def stop(self): self.stopped = True cv2.destroyAllWindows() def concat(f1,f2,f3,f4,f5,f6): return np.concatenate((np.concatenate((f1,f2,f3),axis=1),np.concatenate((f4,f5,f6),axis=1)),axis=0) def shift(img,x,y,theta): return imutils.rotate(cv2.warpAffine(img,np.float32([[1,0,x],[0,1,y]]), (640, 512)),theta) get1 = VideoGet('http://'+ip+':8081/?action=stream').start() get2 = VideoGet('http://'+ip+':8082/?action=stream').start() get3 = VideoGet('http://'+ip+':8083/?action=stream').start() get4 = VideoGet('http://'+ip+':8084/?action=stream').start() get5 = VideoGet('http://'+ip+':8080/?action=stream').start() get6 = VideoGet('http://'+ip+':8085/?action=stream').start() get7 = VideoGet('http://'+ip+':8086/?action=stream').start() show = VideoShow(cv2.merge((get3.frame,get4.frame, get5.frame))).start() while True: if show.stopped: show.stop() get1.stop() get2.stop() get3.stop() get4.stop() get5.stop() get6.stop() get7.stop() break if show.rchan&gt;=0 and show.rchan&lt;1: show.frame3=shift(get1.frame,show.xoff2,show.yoff2,show.angle2) elif show.rchan&gt;=1 and show.rchan&lt;2: show.frame3=shift(get2.frame,show.xoff2,show.yoff2,show.angle2) elif show.rchan&gt;=2 and show.rchan&lt;3: show.frame3=shift(get3.frame,show.xoff2,show.yoff2,show.angle2) elif show.rchan&gt;=3 and show.rchan&lt;4: show.frame3=shift(get4.frame,show.xoff2,show.yoff2,show.angle2) elif show.rchan&gt;=4 and show.rchan&lt;5: show.frame3=shift(get5.frame,show.xoff2,show.yoff2,show.angle2) elif show.rchan&gt;=5 and show.rchan&lt;=6: show.frame3=shift(get6.frame,show.xoff2,show.yoff2,show.angle2) if show.gchan&gt;=0 and show.gchan&lt;1: show.frame2=shift(get1.frame,show.xoff1,show.yoff1,show.angle1) elif show.gchan&gt;=1 and show.gchan&lt;2: show.frame2=shift(get2.frame,show.xoff1,show.yoff1,show.angle1) elif show.gchan&gt;=2 and show.gchan&lt;3: show.frame2=shift(get3.frame,show.xoff1,show.yoff1,show.angle1) elif show.gchan&gt;=3 and show.gchan&lt;4: show.frame2=shift(get4.frame,show.xoff1,show.yoff1,show.angle1) elif show.gchan&gt;=4 and show.gchan&lt;5: show.frame2=shift(get5.frame,show.xoff1,show.yoff1,show.angle1) elif show.gchan&gt;=5 and show.gchan&lt;=6: show.frame2=shift(get6.frame,show.xoff1,show.yoff1,show.angle1) if show.bchan&gt;=0 and show.bchan&lt;1: show.frame1=get1.frame elif show.bchan&gt;=1 and show.bchan&lt;2: show.frame1=get2.frame elif show.bchan&gt;=2 and show.bchan&lt;3: show.frame1=get3.frame elif show.bchan&gt;=3 and show.bchan&lt;4: show.frame1=get4.frame elif show.bchan&gt;=4 and show.bchan&lt;5: show.frame1=get5.frame elif show.bchan&gt;=5 and show.bchan&lt;=6: show.frame1=get6.frame if cv2.waitKey(1) == 27: break"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">sys</span>, <span class="pl-s1">cv2</span>, <span class="pl-s1">time</span>,<span class="pl-s1">cmapy</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">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-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-k">from</span> <span class="pl-s1">threading</span> <span class="pl-k">import</span> <span class="pl-v">Thread</span>, <span class="pl-v">RLock</span> <span class="pl-k">from</span> <span class="pl-v">Queue</span> <span class="pl-k">import</span> <span class="pl-v">Queue</span> <span class="pl-k">import</span> <span class="pl-s1">imutils</span> <span class="pl-k">from</span> <span class="pl-s1">cv2</span> <span class="pl-k">import</span> <span class="pl-c1">*</span> <span class="pl-s1">ip</span> <span class="pl-c1">=</span> <span class="pl-s">'192.168.122.1'</span> <span class="pl-k">class</span> <span class="pl-v">VideoGet</span>: <span class="pl-k">def</span> <span class="pl-en">__init__</span>(<span class="pl-s1">self</span>,<span class="pl-s1">url</span>): <span class="pl-s1">self</span>.<span class="pl-s1">stream</span><span class="pl-c1">=</span><span class="pl-s1">cv2</span>.<span class="pl-v">VideoCapture</span>(<span class="pl-s1">url</span>) <span class="pl-s1">self</span>.<span class="pl-s1">stream</span>.<span class="pl-en">set</span>(<span class="pl-s1">cv2</span>.<span class="pl-v">CAP_PROP_BUFFERSIZE</span>, <span class="pl-c1">0</span>) (<span class="pl-s1">self</span>.<span class="pl-s1">grabbed</span>,<span class="pl-s1">self</span>.<span class="pl-s1">frame</span>)<span class="pl-c1">=</span><span class="pl-s1">self</span>.<span class="pl-s1">stream</span>.<span class="pl-en">read</span>() <span class="pl-s1">self</span>.<span class="pl-s1">frame</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-s1">frame</span>[:,:,<span class="pl-c1">0</span>] <span class="pl-c">#self.frame = cv2.resize(self.frame, (1920,1080))</span> <span class="pl-s1">self</span>.<span class="pl-s1">stopped</span> <span class="pl-c1">=</span> <span class="pl-c1">False</span> <span class="pl-k">def</span> <span class="pl-en">start</span>(<span class="pl-s1">self</span>): <span class="pl-v">Thread</span>(<span class="pl-s1">target</span><span class="pl-c1">=</span><span class="pl-s1">self</span>.<span class="pl-s1">get</span>, <span class="pl-s1">args</span><span class="pl-c1">=</span>()).<span class="pl-en">start</span>() <span class="pl-k">return</span> <span class="pl-s1">self</span> <span class="pl-k">def</span> <span class="pl-en">get</span>(<span class="pl-s1">self</span>): <span class="pl-k">while</span> <span class="pl-c1">not</span> <span class="pl-s1">self</span>.<span class="pl-s1">stopped</span>: <span class="pl-k">if</span> <span class="pl-c1">not</span> <span class="pl-s1">self</span>.<span class="pl-s1">grabbed</span>: <span class="pl-s1">self</span>.<span class="pl-en">stop</span>() <span class="pl-k">else</span>: (<span class="pl-s1">self</span>.<span class="pl-s1">grabbed</span>, <span class="pl-s1">self</span>.<span class="pl-s1">frame</span>) <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-s1">stream</span>.<span class="pl-en">read</span>() <span class="pl-s1">self</span>.<span class="pl-s1">frame</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-s1">frame</span>[:,:,<span class="pl-c1">0</span>] <span class="pl-k">def</span> <span class="pl-en">stop</span>(<span class="pl-s1">self</span>): <span class="pl-s1">self</span>.<span class="pl-s1">stopped</span> <span class="pl-c1">=</span> <span class="pl-c1">True</span> <span class="pl-k">class</span> <span class="pl-v">VideoGetAll</span>: <span class="pl-k">def</span> <span class="pl-en">__init__</span>(<span class="pl-s1">self</span>,<span class="pl-s1">url1</span>,<span class="pl-s1">url2</span>,<span class="pl-s1">url3</span>,<span class="pl-s1">url4</span>,<span class="pl-s1">url5</span>,<span class="pl-s1">url6</span>,<span class="pl-s1">url7</span>): <span class="pl-s1">self</span>.<span class="pl-s1">cap1</span><span class="pl-c1">=</span><span class="pl-s1">cv2</span>.<span class="pl-v">VideoCapture</span>(<span class="pl-s1">url1</span>) (<span class="pl-s1">self</span>.<span class="pl-s1">grabbed1</span>,<span class="pl-s1">self</span>.<span class="pl-s1">frame1</span>)<span class="pl-c1">=</span><span class="pl-s1">self</span>.<span class="pl-s1">stream1</span>.<span class="pl-en">read</span>() <span class="pl-s1">self</span>.<span class="pl-s1">cap2</span><span class="pl-c1">=</span><span class="pl-s1">cv2</span>.<span class="pl-v">VideoCapture</span>(<span class="pl-s1">url2</span>) (<span class="pl-s1">self</span>.<span class="pl-s1">grabbed2</span>,<span class="pl-s1">self</span>.<span class="pl-s1">frame2</span>)<span class="pl-c1">=</span><span class="pl-s1">self</span>.<span class="pl-s1">stream2</span>.<span class="pl-en">read</span>() <span class="pl-s1">self</span>.<span class="pl-s1">cap3</span><span class="pl-c1">=</span><span class="pl-s1">cv2</span>.<span class="pl-v">VideoCapture</span>(<span class="pl-s1">url3</span>) (<span class="pl-s1">self</span>.<span class="pl-s1">grabbed3</span>,<span class="pl-s1">self</span>.<span class="pl-s1">frame3</span>)<span class="pl-c1">=</span><span class="pl-s1">self</span>.<span class="pl-s1">stream3</span>.<span class="pl-en">read</span>() <span class="pl-s1">self</span>.<span class="pl-s1">cap4</span><span class="pl-c1">=</span><span class="pl-s1">cv2</span>.<span class="pl-v">VideoCapture</span>(<span class="pl-s1">url4</span>) (<span class="pl-s1">self</span>.<span class="pl-s1">grabbed4</span>,<span class="pl-s1">self</span>.<span class="pl-s1">frame4</span>)<span class="pl-c1">=</span><span class="pl-s1">self</span>.<span class="pl-s1">stream4</span>.<span class="pl-en">read</span>() <span class="pl-s1">self</span>.<span class="pl-s1">cap5</span><span class="pl-c1">=</span><span class="pl-s1">cv2</span>.<span class="pl-v">VideoCapture</span>(<span class="pl-s1">url5</span>) (<span class="pl-s1">self</span>.<span class="pl-s1">grabbed5</span>,<span class="pl-s1">self</span>.<span class="pl-s1">frame5</span>)<span class="pl-c1">=</span><span class="pl-s1">self</span>.<span class="pl-s1">stream5</span>.<span class="pl-en">read</span>() <span class="pl-s1">self</span>.<span class="pl-s1">cap6</span><span class="pl-c1">=</span><span class="pl-s1">cv2</span>.<span class="pl-v">VideoCapture</span>(<span class="pl-s1">url6</span>) (<span class="pl-s1">self</span>.<span class="pl-s1">grabbed6</span>,<span class="pl-s1">self</span>.<span class="pl-s1">frame6</span>)<span class="pl-c1">=</span><span class="pl-s1">self</span>.<span class="pl-s1">stream6</span>.<span class="pl-en">read</span>() <span class="pl-s1">self</span>.<span class="pl-s1">cap7</span><span class="pl-c1">=</span><span class="pl-s1">cv2</span>.<span class="pl-v">VideoCapture</span>(<span class="pl-s1">url7</span>) (<span class="pl-s1">self</span>.<span class="pl-s1">grabbed7</span>,<span class="pl-s1">self</span>.<span class="pl-s1">frame7</span>)<span class="pl-c1">=</span><span class="pl-s1">self</span>.<span class="pl-s1">stream7</span>.<span class="pl-en">read</span>() <span class="pl-s1">self</span>.<span class="pl-s1">grabbed</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-s1">grabbed1</span><span class="pl-c1">&amp;</span><span class="pl-s1">self</span>.<span class="pl-s1">grabbed2</span><span class="pl-c1">&amp;</span><span class="pl-s1">self</span>.<span class="pl-s1">grabbed3</span><span class="pl-c1">&amp;</span><span class="pl-s1">self</span>.<span class="pl-s1">grabbed4</span><span class="pl-c1">&amp;</span><span class="pl-s1">self</span>.<span class="pl-s1">grabbed5</span><span class="pl-c1">&amp;</span><span class="pl-s1">self</span>.<span class="pl-s1">grabbed6</span><span class="pl-c1">&amp;</span><span class="pl-s1">self</span>.<span class="pl-s1">grabbed7</span> <span class="pl-s1">self</span>.<span class="pl-s1">frame</span> <span class="pl-c1">=</span> <span class="pl-en">concat</span>(<span class="pl-s1">self</span>.<span class="pl-s1">frame1</span>[<span class="pl-c1">0</span>:<span class="pl-c1">1080</span>,:],<span class="pl-s1">self</span>.<span class="pl-s1">frame2</span>[<span class="pl-c1">0</span>:<span class="pl-c1">1080</span>,:],<span class="pl-s1">self</span>.<span class="pl-s1">frame3</span>[<span class="pl-c1">0</span>:<span class="pl-c1">1080</span>,:],<span class="pl-s1">self</span>.<span class="pl-s1">frame4</span>[<span class="pl-c1">0</span>:<span class="pl-c1">1080</span>,:],<span class="pl-s1">self</span>.<span class="pl-s1">frame5</span>[<span class="pl-c1">0</span>:<span class="pl-c1">1080</span>,:],<span class="pl-s1">self</span>.<span class="pl-s1">frame6</span>[<span class="pl-c1">0</span>:<span class="pl-c1">1080</span>,:]) <span class="pl-c">#self.frame = cv2.resize(self.frame, (1920,1080))</span> <span class="pl-s1">self</span>.<span class="pl-s1">stopped</span> <span class="pl-c1">=</span> <span class="pl-c1">False</span> <span class="pl-k">def</span> <span class="pl-en">start</span>(<span class="pl-s1">self</span>): <span class="pl-v">Thread</span>(<span class="pl-s1">target</span><span class="pl-c1">=</span><span class="pl-s1">self</span>.<span class="pl-s1">get</span>, <span class="pl-s1">args</span><span class="pl-c1">=</span>()).<span class="pl-en">start</span>() <span class="pl-k">return</span> <span class="pl-s1">self</span> <span class="pl-k">def</span> <span class="pl-en">get</span>(<span class="pl-s1">self</span>): <span class="pl-k">while</span> <span class="pl-c1">not</span> <span class="pl-s1">self</span>.<span class="pl-s1">stopped</span>: <span class="pl-k">if</span> <span class="pl-c1">not</span> <span class="pl-s1">self</span>.<span class="pl-s1">grabbed</span>: <span class="pl-s1">self</span>.<span class="pl-en">stop</span>() <span class="pl-k">else</span>: (<span class="pl-s1">self</span>.<span class="pl-s1">grabbed1</span>, <span class="pl-s1">self</span>.<span class="pl-s1">frame1</span>) <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-s1">stream1</span>.<span class="pl-en">read</span>() (<span class="pl-s1">self</span>.<span class="pl-s1">grabbed2</span>, <span class="pl-s1">self</span>.<span class="pl-s1">frame2</span>) <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-s1">stream2</span>.<span class="pl-en">read</span>() (<span class="pl-s1">self</span>.<span class="pl-s1">grabbed3</span>, <span class="pl-s1">self</span>.<span class="pl-s1">frame3</span>) <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-s1">stream3</span>.<span class="pl-en">read</span>() (<span class="pl-s1">self</span>.<span class="pl-s1">grabbed4</span>, <span class="pl-s1">self</span>.<span class="pl-s1">frame4</span>) <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-s1">stream4</span>.<span class="pl-en">read</span>() (<span class="pl-s1">self</span>.<span class="pl-s1">grabbed5</span>, <span class="pl-s1">self</span>.<span class="pl-s1">frame5</span>) <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-s1">stream5</span>.<span class="pl-en">read</span>() (<span class="pl-s1">self</span>.<span class="pl-s1">grabbed6</span>, <span class="pl-s1">self</span>.<span class="pl-s1">frame6</span>) <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-s1">stream6</span>.<span class="pl-en">read</span>() (<span class="pl-s1">self</span>.<span class="pl-s1">grabbed7</span>, <span class="pl-s1">self</span>.<span class="pl-s1">frame7</span>) <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-s1">stream7</span>.<span class="pl-en">read</span>() <span class="pl-s1">self</span>.<span class="pl-s1">frame0</span> <span class="pl-c1">=</span> <span class="pl-en">concat</span>(<span class="pl-s1">self</span>.<span class="pl-s1">frame1</span>[<span class="pl-c1">0</span>:<span class="pl-c1">1080</span>,:],<span class="pl-s1">self</span>.<span class="pl-s1">frame2</span>[<span class="pl-c1">0</span>:<span class="pl-c1">1080</span>,:],<span class="pl-s1">self</span>.<span class="pl-s1">frame3</span>[<span class="pl-c1">0</span>:<span class="pl-c1">1080</span>,:],<span class="pl-s1">self</span>.<span class="pl-s1">frame4</span>[<span class="pl-c1">0</span>:<span class="pl-c1">1080</span>,:],<span class="pl-s1">self</span>.<span class="pl-s1">frame5</span>[<span class="pl-c1">0</span>:<span class="pl-c1">1080</span>,:],<span class="pl-s1">self</span>.<span class="pl-s1">frame5</span>[<span class="pl-c1">0</span>:<span class="pl-c1">1080</span>,:],<span class="pl-s1">self</span>.<span class="pl-s1">frame6</span>[<span class="pl-c1">0</span>:<span class="pl-c1">1080</span>,:]) <span class="pl-s1">self</span>.<span class="pl-s1">frame</span> <span class="pl-c1">=</span> <span class="pl-s1">cv2</span>.<span class="pl-en">resize</span>(<span class="pl-s1">self</span>.<span class="pl-s1">frame0</span>, (<span class="pl-c1">1280</span>,<span class="pl-c1">720</span>)) <span class="pl-k">def</span> <span class="pl-en">stop</span>(<span class="pl-s1">self</span>): <span class="pl-s1">self</span>.<span class="pl-s1">stopped</span> <span class="pl-c1">=</span> <span class="pl-c1">True</span> <span class="pl-k">class</span> <span class="pl-v">VideoShow</span>: <span class="pl-k">def</span> <span class="pl-en">__init__</span>(<span class="pl-s1">self</span>, <span class="pl-s1">frame1</span><span class="pl-c1">=</span><span class="pl-c1">None</span>,<span class="pl-s1">frame2</span><span class="pl-c1">=</span><span class="pl-c1">None</span>,<span class="pl-s1">frame3</span><span class="pl-c1">=</span><span class="pl-c1">None</span>): <span class="pl-s1">self</span>.<span class="pl-s1">frame1</span> <span class="pl-c1">=</span> <span class="pl-s1">frame1</span> <span class="pl-s1">self</span>.<span class="pl-s1">frame2</span> <span class="pl-c1">=</span> <span class="pl-s1">frame2</span> <span class="pl-s1">self</span>.<span class="pl-s1">frame3</span> <span class="pl-c1">=</span> <span class="pl-s1">frame3</span> <span class="pl-s1">self</span>.<span class="pl-s1">stopped</span> <span class="pl-c1">=</span> <span class="pl-c1">False</span> <span class="pl-s1">self</span>.<span class="pl-s1">xoff1</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span> <span class="pl-s1">self</span>.<span class="pl-s1">yoff1</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span> <span class="pl-s1">self</span>.<span class="pl-s1">angle1</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span> <span class="pl-s1">self</span>.<span class="pl-s1">xoff2</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span> <span class="pl-s1">self</span>.<span class="pl-s1">yoff2</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span> <span class="pl-s1">self</span>.<span class="pl-s1">angle2</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span> <span class="pl-s1">self</span>.<span class="pl-s1">rchan</span> <span class="pl-c1">=</span> <span class="pl-c1">5</span> <span class="pl-s1">self</span>.<span class="pl-s1">gchan</span> <span class="pl-c1">=</span> <span class="pl-c1">4</span> <span class="pl-s1">self</span>.<span class="pl-s1">bchan</span> <span class="pl-c1">=</span> <span class="pl-c1">3</span> <span class="pl-k">def</span> <span class="pl-en">start</span>(<span class="pl-s1">self</span>): <span class="pl-v">Thread</span>(<span class="pl-s1">target</span><span class="pl-c1">=</span><span class="pl-s1">self</span>.<span class="pl-s1">show</span>, <span class="pl-s1">args</span><span class="pl-c1">=</span>()).<span class="pl-en">start</span>() <span class="pl-k">return</span> <span class="pl-s1">self</span> <span class="pl-k">def</span> <span class="pl-en">show</span>(<span class="pl-s1">self</span>): <span class="pl-s1">cv2</span>.<span class="pl-en">namedWindow</span>(<span class="pl-s">'Frame'</span>,<span class="pl-s1">cv2</span>.<span class="pl-v">WINDOW_NORMAL</span>) <span class="pl-s1">cv2</span>.<span class="pl-en">resizeWindow</span>(<span class="pl-s">'Frame'</span>,<span class="pl-c1">1280</span>,<span class="pl-c1">720</span>) <span class="pl-s1">cv2</span>.<span class="pl-en">namedWindow</span>(<span class="pl-s">"Transform"</span>) <span class="pl-s1">cv2</span>.<span class="pl-en">createTrackbar</span>(<span class="pl-s">"X1"</span>,<span class="pl-s">"Transform"</span>,<span class="pl-c1">91</span>,<span class="pl-c1">300</span>,<span class="pl-s1">nothing</span>) <span class="pl-s1">cv2</span>.<span class="pl-en">createTrackbar</span>(<span class="pl-s">"Y1"</span>,<span class="pl-s">"Transform"</span>,<span class="pl-c1">-</span><span class="pl-c1">85</span>,<span class="pl-c1">300</span>,<span class="pl-s1">nothing</span>) <span class="pl-s1">cv2</span>.<span class="pl-en">createTrackbar</span>(<span class="pl-s">"Angle1"</span>,<span class="pl-s">"Transform"</span>,<span class="pl-c1">0</span>,<span class="pl-c1">180</span>,<span class="pl-s1">nothing</span>) <span class="pl-s1">cv2</span>.<span class="pl-en">setTrackbarMin</span>(<span class="pl-s">"X1"</span>,<span class="pl-s">"Transform"</span>,<span class="pl-c1">-</span><span class="pl-c1">300</span>) <span class="pl-s1">cv2</span>.<span class="pl-en">setTrackbarMin</span>(<span class="pl-s">"Y1"</span>,<span class="pl-s">"Transform"</span>,<span class="pl-c1">-</span><span class="pl-c1">300</span>) <span class="pl-s1">cv2</span>.<span class="pl-en">setTrackbarMin</span>(<span class="pl-s">"Angle1"</span>,<span class="pl-s">"Transform"</span>,<span class="pl-c1">-</span><span class="pl-c1">180</span>) <span class="pl-s1">cv2</span>.<span class="pl-en">createTrackbar</span>(<span class="pl-s">"X2"</span>,<span class="pl-s">"Transform"</span>,<span class="pl-c1">-</span><span class="pl-c1">87</span>,<span class="pl-c1">300</span>,<span class="pl-s1">nothing</span>) <span class="pl-s1">cv2</span>.<span class="pl-en">createTrackbar</span>(<span class="pl-s">"Y2"</span>,<span class="pl-s">"Transform"</span>,<span class="pl-c1">-</span><span class="pl-c1">1</span>,<span class="pl-c1">300</span>,<span class="pl-s1">nothing</span>) <span class="pl-s1">cv2</span>.<span class="pl-en">createTrackbar</span>(<span class="pl-s">"Angle2"</span>,<span class="pl-s">"Transform"</span>,<span class="pl-c1">-</span><span class="pl-c1">2</span>,<span class="pl-c1">180</span>,<span class="pl-s1">nothing</span>) <span class="pl-s1">cv2</span>.<span class="pl-en">setTrackbarMin</span>(<span class="pl-s">"X2"</span>,<span class="pl-s">"Transform"</span>,<span class="pl-c1">-</span><span class="pl-c1">300</span>) <span class="pl-s1">cv2</span>.<span class="pl-en">setTrackbarMin</span>(<span class="pl-s">"Y2"</span>,<span class="pl-s">"Transform"</span>,<span class="pl-c1">-</span><span class="pl-c1">300</span>) <span class="pl-s1">cv2</span>.<span class="pl-en">setTrackbarMin</span>(<span class="pl-s">"Angle2"</span>,<span class="pl-s">"Transform"</span>,<span class="pl-c1">-</span><span class="pl-c1">180</span>) <span class="pl-s1">cv2</span>.<span class="pl-en">createTrackbar</span>(<span class="pl-s">'Red'</span>,<span class="pl-s">"Transform"</span>,<span class="pl-c1">5</span>,<span class="pl-c1">5</span>,<span class="pl-s1">nothing</span>) <span class="pl-s1">cv2</span>.<span class="pl-en">createTrackbar</span>(<span class="pl-s">'Green'</span>,<span class="pl-s">"Transform"</span>,<span class="pl-c1">4</span>,<span class="pl-c1">5</span>,<span class="pl-s1">nothing</span>) <span class="pl-s1">cv2</span>.<span class="pl-en">createTrackbar</span>(<span class="pl-s">'Blue'</span>,<span class="pl-s">"Transform"</span>,<span class="pl-c1">3</span>,<span class="pl-c1">5</span>,<span class="pl-s1">nothing</span>) <span class="pl-k">while</span> <span class="pl-c1">not</span> <span class="pl-s1">self</span>.<span class="pl-s1">stopped</span>: <span class="pl-s1">cv2</span>.<span class="pl-en">imshow</span>(<span class="pl-s">'Frame'</span>, <span class="pl-s1">cv2</span>.<span class="pl-en">merge</span>((<span class="pl-s1">self</span>.<span class="pl-s1">frame1</span>,<span class="pl-s1">self</span>.<span class="pl-s1">frame2</span>,<span class="pl-s1">self</span>.<span class="pl-s1">frame3</span>))) <span class="pl-s1">self</span>.<span class="pl-s1">xoff1</span> <span class="pl-c1">=</span> <span class="pl-s1">cv2</span>.<span class="pl-en">getTrackbarPos</span>(<span class="pl-s">"X1"</span>,<span class="pl-s">"Transform"</span>) <span class="pl-s1">self</span>.<span class="pl-s1">yoff1</span> <span class="pl-c1">=</span> <span class="pl-s1">cv2</span>.<span class="pl-en">getTrackbarPos</span>(<span class="pl-s">"Y1"</span>,<span class="pl-s">"Transform"</span>) <span class="pl-s1">self</span>.<span class="pl-s1">angle1</span> <span class="pl-c1">=</span> <span class="pl-s1">cv2</span>.<span class="pl-en">getTrackbarPos</span>(<span class="pl-s">"Angle1"</span>,<span class="pl-s">"Transform"</span>) <span class="pl-s1">self</span>.<span class="pl-s1">xoff2</span> <span class="pl-c1">=</span> <span class="pl-s1">cv2</span>.<span class="pl-en">getTrackbarPos</span>(<span class="pl-s">"X2"</span>,<span class="pl-s">"Transform"</span>) <span class="pl-s1">self</span>.<span class="pl-s1">yoff2</span> <span class="pl-c1">=</span> <span class="pl-s1">cv2</span>.<span class="pl-en">getTrackbarPos</span>(<span class="pl-s">"Y2"</span>,<span class="pl-s">"Transform"</span>) <span class="pl-s1">self</span>.<span class="pl-s1">angle2</span> <span class="pl-c1">=</span> <span class="pl-s1">cv2</span>.<span class="pl-en">getTrackbarPos</span>(<span class="pl-s">"Angle2"</span>,<span class="pl-s">"Transform"</span>) <span class="pl-s1">self</span>.<span class="pl-s1">rchan</span> <span class="pl-c1">=</span> <span class="pl-s1">cv2</span>.<span class="pl-en">getTrackbarPos</span>(<span class="pl-s">"Red"</span>,<span class="pl-s">"Transform"</span>) <span class="pl-s1">self</span>.<span class="pl-s1">gchan</span> <span class="pl-c1">=</span> <span class="pl-s1">cv2</span>.<span class="pl-en">getTrackbarPos</span>(<span class="pl-s">"Green"</span>,<span class="pl-s">"Transform"</span>) <span class="pl-s1">self</span>.<span class="pl-s1">bchan</span> <span class="pl-c1">=</span> <span class="pl-s1">cv2</span>.<span class="pl-en">getTrackbarPos</span>(<span class="pl-s">"Blue"</span>,<span class="pl-s">"Transform"</span>) <span class="pl-k">if</span> <span class="pl-s1">cv2</span>.<span class="pl-en">waitKey</span>(<span class="pl-c1">1</span>) <span class="pl-c1">==</span> <span class="pl-c1">27</span>: <span class="pl-s1">self</span>.<span class="pl-s1">stopped</span> <span class="pl-c1">=</span> <span class="pl-c1">True</span> <span class="pl-k">def</span> <span class="pl-en">stop</span>(<span class="pl-s1">self</span>): <span class="pl-s1">self</span>.<span class="pl-s1">stopped</span> <span class="pl-c1">=</span> <span class="pl-c1">True</span> <span class="pl-s1">cv2</span>.<span class="pl-en">destroyAllWindows</span>() <span class="pl-k">def</span> <span class="pl-en">concat</span>(<span class="pl-s1">f1</span>,<span class="pl-s1">f2</span>,<span class="pl-s1">f3</span>,<span class="pl-s1">f4</span>,<span class="pl-s1">f5</span>,<span class="pl-s1">f6</span>): <span class="pl-k">return</span> <span class="pl-s1">np</span>.<span class="pl-en">concatenate</span>((<span class="pl-s1">np</span>.<span class="pl-en">concatenate</span>((<span class="pl-s1">f1</span>,<span class="pl-s1">f2</span>,<span class="pl-s1">f3</span>),<span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">1</span>),<span class="pl-s1">np</span>.<span class="pl-en">concatenate</span>((<span class="pl-s1">f4</span>,<span class="pl-s1">f5</span>,<span class="pl-s1">f6</span>),<span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">1</span>)),<span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">0</span>) <span class="pl-k">def</span> <span class="pl-en">shift</span>(<span class="pl-s1">img</span>,<span class="pl-s1">x</span>,<span class="pl-s1">y</span>,<span class="pl-s1">theta</span>): <span class="pl-k">return</span> <span class="pl-s1">imutils</span>.<span class="pl-en">rotate</span>(<span class="pl-s1">cv2</span>.<span class="pl-en">warpAffine</span>(<span class="pl-s1">img</span>,<span class="pl-s1">np</span>.<span class="pl-en">float32</span>([[<span class="pl-c1">1</span>,<span class="pl-c1">0</span>,<span class="pl-s1">x</span>],[<span class="pl-c1">0</span>,<span class="pl-c1">1</span>,<span class="pl-s1">y</span>]]), (<span class="pl-c1">640</span>, <span class="pl-c1">512</span>)),<span class="pl-s1">theta</span>) <span class="pl-s1">get1</span> <span class="pl-c1">=</span> <span class="pl-v">VideoGet</span>(<span class="pl-s">'http://'</span><span class="pl-c1">+</span><span class="pl-s1">ip</span><span class="pl-c1">+</span><span class="pl-s">':8081/?action=stream'</span>).<span class="pl-en">start</span>() <span class="pl-s1">get2</span> <span class="pl-c1">=</span> <span class="pl-v">VideoGet</span>(<span class="pl-s">'http://'</span><span class="pl-c1">+</span><span class="pl-s1">ip</span><span class="pl-c1">+</span><span class="pl-s">':8082/?action=stream'</span>).<span class="pl-en">start</span>() <span class="pl-s1">get3</span> <span class="pl-c1">=</span> <span class="pl-v">VideoGet</span>(<span class="pl-s">'http://'</span><span class="pl-c1">+</span><span class="pl-s1">ip</span><span class="pl-c1">+</span><span class="pl-s">':8083/?action=stream'</span>).<span class="pl-en">start</span>() <span class="pl-s1">get4</span> <span class="pl-c1">=</span> <span class="pl-v">VideoGet</span>(<span class="pl-s">'http://'</span><span class="pl-c1">+</span><span class="pl-s1">ip</span><span class="pl-c1">+</span><span class="pl-s">':8084/?action=stream'</span>).<span class="pl-en">start</span>() <span class="pl-s1">get5</span> <span class="pl-c1">=</span> <span class="pl-v">VideoGet</span>(<span class="pl-s">'http://'</span><span class="pl-c1">+</span><span class="pl-s1">ip</span><span class="pl-c1">+</span><span class="pl-s">':8080/?action=stream'</span>).<span class="pl-en">start</span>() <span class="pl-s1">get6</span> <span class="pl-c1">=</span> <span class="pl-v">VideoGet</span>(<span class="pl-s">'http://'</span><span class="pl-c1">+</span><span class="pl-s1">ip</span><span class="pl-c1">+</span><span class="pl-s">':8085/?action=stream'</span>).<span class="pl-en">start</span>() <span class="pl-s1">get7</span> <span class="pl-c1">=</span> <span class="pl-v">VideoGet</span>(<span class="pl-s">'http://'</span><span class="pl-c1">+</span><span class="pl-s1">ip</span><span class="pl-c1">+</span><span class="pl-s">':8086/?action=stream'</span>).<span class="pl-en">start</span>() <span class="pl-s1">show</span> <span class="pl-c1">=</span> <span class="pl-v">VideoShow</span>(<span class="pl-s1">cv2</span>.<span class="pl-en">merge</span>((<span class="pl-s1">get3</span>.<span class="pl-s1">frame</span>,<span class="pl-s1">get4</span>.<span class="pl-s1">frame</span>, <span class="pl-s1">get5</span>.<span class="pl-s1">frame</span>))).<span class="pl-en">start</span>() <span class="pl-k">while</span> <span class="pl-c1">True</span>: <span class="pl-k">if</span> <span class="pl-s1">show</span>.<span class="pl-s1">stopped</span>: <span class="pl-s1">show</span>.<span class="pl-en">stop</span>() <span class="pl-s1">get1</span>.<span class="pl-en">stop</span>() <span class="pl-s1">get2</span>.<span class="pl-en">stop</span>() <span class="pl-s1">get3</span>.<span class="pl-en">stop</span>() <span class="pl-s1">get4</span>.<span class="pl-en">stop</span>() <span class="pl-s1">get5</span>.<span class="pl-en">stop</span>() <span class="pl-s1">get6</span>.<span class="pl-en">stop</span>() <span class="pl-s1">get7</span>.<span class="pl-en">stop</span>() <span class="pl-k">break</span> <span class="pl-k">if</span> <span class="pl-s1">show</span>.<span class="pl-s1">rchan</span><span class="pl-c1">&gt;=</span><span class="pl-c1">0</span> <span class="pl-c1">and</span> <span class="pl-s1">show</span>.<span class="pl-s1">rchan</span><span class="pl-c1">&lt;</span><span class="pl-c1">1</span>: <span class="pl-s1">show</span>.<span class="pl-s1">frame3</span><span class="pl-c1">=</span><span class="pl-en">shift</span>(<span class="pl-s1">get1</span>.<span class="pl-s1">frame</span>,<span class="pl-s1">show</span>.<span class="pl-s1">xoff2</span>,<span class="pl-s1">show</span>.<span class="pl-s1">yoff2</span>,<span class="pl-s1">show</span>.<span class="pl-s1">angle2</span>) <span class="pl-k">elif</span> <span class="pl-s1">show</span>.<span class="pl-s1">rchan</span><span class="pl-c1">&gt;=</span><span class="pl-c1">1</span> <span class="pl-c1">and</span> <span class="pl-s1">show</span>.<span class="pl-s1">rchan</span><span class="pl-c1">&lt;</span><span class="pl-c1">2</span>: <span class="pl-s1">show</span>.<span class="pl-s1">frame3</span><span class="pl-c1">=</span><span class="pl-en">shift</span>(<span class="pl-s1">get2</span>.<span class="pl-s1">frame</span>,<span class="pl-s1">show</span>.<span class="pl-s1">xoff2</span>,<span class="pl-s1">show</span>.<span class="pl-s1">yoff2</span>,<span class="pl-s1">show</span>.<span class="pl-s1">angle2</span>) <span class="pl-k">elif</span> <span class="pl-s1">show</span>.<span class="pl-s1">rchan</span><span class="pl-c1">&gt;=</span><span class="pl-c1">2</span> <span class="pl-c1">and</span> <span class="pl-s1">show</span>.<span class="pl-s1">rchan</span><span class="pl-c1">&lt;</span><span class="pl-c1">3</span>: <span class="pl-s1">show</span>.<span class="pl-s1">frame3</span><span class="pl-c1">=</span><span class="pl-en">shift</span>(<span class="pl-s1">get3</span>.<span class="pl-s1">frame</span>,<span class="pl-s1">show</span>.<span class="pl-s1">xoff2</span>,<span class="pl-s1">show</span>.<span class="pl-s1">yoff2</span>,<span class="pl-s1">show</span>.<span class="pl-s1">angle2</span>) <span class="pl-k">elif</span> <span class="pl-s1">show</span>.<span class="pl-s1">rchan</span><span class="pl-c1">&gt;=</span><span class="pl-c1">3</span> <span class="pl-c1">and</span> <span class="pl-s1">show</span>.<span class="pl-s1">rchan</span><span class="pl-c1">&lt;</span><span class="pl-c1">4</span>: <span class="pl-s1">show</span>.<span class="pl-s1">frame3</span><span class="pl-c1">=</span><span class="pl-en">shift</span>(<span class="pl-s1">get4</span>.<span class="pl-s1">frame</span>,<span class="pl-s1">show</span>.<span class="pl-s1">xoff2</span>,<span class="pl-s1">show</span>.<span class="pl-s1">yoff2</span>,<span class="pl-s1">show</span>.<span class="pl-s1">angle2</span>) <span class="pl-k">elif</span> <span class="pl-s1">show</span>.<span class="pl-s1">rchan</span><span class="pl-c1">&gt;=</span><span class="pl-c1">4</span> <span class="pl-c1">and</span> <span class="pl-s1">show</span>.<span class="pl-s1">rchan</span><span class="pl-c1">&lt;</span><span class="pl-c1">5</span>: <span class="pl-s1">show</span>.<span class="pl-s1">frame3</span><span class="pl-c1">=</span><span class="pl-en">shift</span>(<span class="pl-s1">get5</span>.<span class="pl-s1">frame</span>,<span class="pl-s1">show</span>.<span class="pl-s1">xoff2</span>,<span class="pl-s1">show</span>.<span class="pl-s1">yoff2</span>,<span class="pl-s1">show</span>.<span class="pl-s1">angle2</span>) <span class="pl-k">elif</span> <span class="pl-s1">show</span>.<span class="pl-s1">rchan</span><span class="pl-c1">&gt;=</span><span class="pl-c1">5</span> <span class="pl-c1">and</span> <span class="pl-s1">show</span>.<span class="pl-s1">rchan</span><span class="pl-c1">&lt;=</span><span class="pl-c1">6</span>: <span class="pl-s1">show</span>.<span class="pl-s1">frame3</span><span class="pl-c1">=</span><span class="pl-en">shift</span>(<span class="pl-s1">get6</span>.<span class="pl-s1">frame</span>,<span class="pl-s1">show</span>.<span class="pl-s1">xoff2</span>,<span class="pl-s1">show</span>.<span class="pl-s1">yoff2</span>,<span class="pl-s1">show</span>.<span class="pl-s1">angle2</span>) <span class="pl-k">if</span> <span class="pl-s1">show</span>.<span class="pl-s1">gchan</span><span class="pl-c1">&gt;=</span><span class="pl-c1">0</span> <span class="pl-c1">and</span> <span class="pl-s1">show</span>.<span class="pl-s1">gchan</span><span class="pl-c1">&lt;</span><span class="pl-c1">1</span>: <span class="pl-s1">show</span>.<span class="pl-s1">frame2</span><span class="pl-c1">=</span><span class="pl-en">shift</span>(<span class="pl-s1">get1</span>.<span class="pl-s1">frame</span>,<span class="pl-s1">show</span>.<span class="pl-s1">xoff1</span>,<span class="pl-s1">show</span>.<span class="pl-s1">yoff1</span>,<span class="pl-s1">show</span>.<span class="pl-s1">angle1</span>) <span class="pl-k">elif</span> <span class="pl-s1">show</span>.<span class="pl-s1">gchan</span><span class="pl-c1">&gt;=</span><span class="pl-c1">1</span> <span class="pl-c1">and</span> <span class="pl-s1">show</span>.<span class="pl-s1">gchan</span><span class="pl-c1">&lt;</span><span class="pl-c1">2</span>: <span class="pl-s1">show</span>.<span class="pl-s1">frame2</span><span class="pl-c1">=</span><span class="pl-en">shift</span>(<span class="pl-s1">get2</span>.<span class="pl-s1">frame</span>,<span class="pl-s1">show</span>.<span class="pl-s1">xoff1</span>,<span class="pl-s1">show</span>.<span class="pl-s1">yoff1</span>,<span class="pl-s1">show</span>.<span class="pl-s1">angle1</span>) <span class="pl-k">elif</span> <span class="pl-s1">show</span>.<span class="pl-s1">gchan</span><span class="pl-c1">&gt;=</span><span class="pl-c1">2</span> <span class="pl-c1">and</span> <span class="pl-s1">show</span>.<span class="pl-s1">gchan</span><span class="pl-c1">&lt;</span><span class="pl-c1">3</span>: <span class="pl-s1">show</span>.<span class="pl-s1">frame2</span><span class="pl-c1">=</span><span class="pl-en">shift</span>(<span class="pl-s1">get3</span>.<span class="pl-s1">frame</span>,<span class="pl-s1">show</span>.<span class="pl-s1">xoff1</span>,<span class="pl-s1">show</span>.<span class="pl-s1">yoff1</span>,<span class="pl-s1">show</span>.<span class="pl-s1">angle1</span>) <span class="pl-k">elif</span> <span class="pl-s1">show</span>.<span class="pl-s1">gchan</span><span class="pl-c1">&gt;=</span><span class="pl-c1">3</span> <span class="pl-c1">and</span> <span class="pl-s1">show</span>.<span class="pl-s1">gchan</span><span class="pl-c1">&lt;</span><span class="pl-c1">4</span>: <span class="pl-s1">show</span>.<span class="pl-s1">frame2</span><span class="pl-c1">=</span><span class="pl-en">shift</span>(<span class="pl-s1">get4</span>.<span class="pl-s1">frame</span>,<span class="pl-s1">show</span>.<span class="pl-s1">xoff1</span>,<span class="pl-s1">show</span>.<span class="pl-s1">yoff1</span>,<span class="pl-s1">show</span>.<span class="pl-s1">angle1</span>) <span class="pl-k">elif</span> <span class="pl-s1">show</span>.<span class="pl-s1">gchan</span><span class="pl-c1">&gt;=</span><span class="pl-c1">4</span> <span class="pl-c1">and</span> <span class="pl-s1">show</span>.<span class="pl-s1">gchan</span><span class="pl-c1">&lt;</span><span class="pl-c1">5</span>: <span class="pl-s1">show</span>.<span class="pl-s1">frame2</span><span class="pl-c1">=</span><span class="pl-en">shift</span>(<span class="pl-s1">get5</span>.<span class="pl-s1">frame</span>,<span class="pl-s1">show</span>.<span class="pl-s1">xoff1</span>,<span class="pl-s1">show</span>.<span class="pl-s1">yoff1</span>,<span class="pl-s1">show</span>.<span class="pl-s1">angle1</span>) <span class="pl-k">elif</span> <span class="pl-s1">show</span>.<span class="pl-s1">gchan</span><span class="pl-c1">&gt;=</span><span class="pl-c1">5</span> <span class="pl-c1">and</span> <span class="pl-s1">show</span>.<span class="pl-s1">gchan</span><span class="pl-c1">&lt;=</span><span class="pl-c1">6</span>: <span class="pl-s1">show</span>.<span class="pl-s1">frame2</span><span class="pl-c1">=</span><span class="pl-en">shift</span>(<span class="pl-s1">get6</span>.<span class="pl-s1">frame</span>,<span class="pl-s1">show</span>.<span class="pl-s1">xoff1</span>,<span class="pl-s1">show</span>.<span class="pl-s1">yoff1</span>,<span class="pl-s1">show</span>.<span class="pl-s1">angle1</span>) <span class="pl-k">if</span> <span class="pl-s1">show</span>.<span class="pl-s1">bchan</span><span class="pl-c1">&gt;=</span><span class="pl-c1">0</span> <span class="pl-c1">and</span> <span class="pl-s1">show</span>.<span class="pl-s1">bchan</span><span class="pl-c1">&lt;</span><span class="pl-c1">1</span>: <span class="pl-s1">show</span>.<span class="pl-s1">frame1</span><span class="pl-c1">=</span><span class="pl-s1">get1</span>.<span class="pl-s1">frame</span> <span class="pl-k">elif</span> <span class="pl-s1">show</span>.<span class="pl-s1">bchan</span><span class="pl-c1">&gt;=</span><span class="pl-c1">1</span> <span class="pl-c1">and</span> <span class="pl-s1">show</span>.<span class="pl-s1">bchan</span><span class="pl-c1">&lt;</span><span class="pl-c1">2</span>: <span class="pl-s1">show</span>.<span class="pl-s1">frame1</span><span class="pl-c1">=</span><span class="pl-s1">get2</span>.<span class="pl-s1">frame</span> <span class="pl-k">elif</span> <span class="pl-s1">show</span>.<span class="pl-s1">bchan</span><span class="pl-c1">&gt;=</span><span class="pl-c1">2</span> <span class="pl-c1">and</span> <span class="pl-s1">show</span>.<span class="pl-s1">bchan</span><span class="pl-c1">&lt;</span><span class="pl-c1">3</span>: <span class="pl-s1">show</span>.<span class="pl-s1">frame1</span><span class="pl-c1">=</span><span class="pl-s1">get3</span>.<span class="pl-s1">frame</span> <span class="pl-k">elif</span> <span class="pl-s1">show</span>.<span class="pl-s1">bchan</span><span class="pl-c1">&gt;=</span><span class="pl-c1">3</span> <span class="pl-c1">and</span> <span class="pl-s1">show</span>.<span class="pl-s1">bchan</span><span class="pl-c1">&lt;</span><span class="pl-c1">4</span>: <span class="pl-s1">show</span>.<span class="pl-s1">frame1</span><span class="pl-c1">=</span><span class="pl-s1">get4</span>.<span class="pl-s1">frame</span> <span class="pl-k">elif</span> <span class="pl-s1">show</span>.<span class="pl-s1">bchan</span><span class="pl-c1">&gt;=</span><span class="pl-c1">4</span> <span class="pl-c1">and</span> <span class="pl-s1">show</span>.<span class="pl-s1">bchan</span><span class="pl-c1">&lt;</span><span class="pl-c1">5</span>: <span class="pl-s1">show</span>.<span class="pl-s1">frame1</span><span class="pl-c1">=</span><span class="pl-s1">get5</span>.<span class="pl-s1">frame</span> <span class="pl-k">elif</span> <span class="pl-s1">show</span>.<span class="pl-s1">bchan</span><span class="pl-c1">&gt;=</span><span class="pl-c1">5</span> <span class="pl-c1">and</span> <span class="pl-s1">show</span>.<span class="pl-s1">bchan</span><span class="pl-c1">&lt;=</span><span class="pl-c1">6</span>: <span class="pl-s1">show</span>.<span class="pl-s1">frame1</span><span class="pl-c1">=</span><span class="pl-s1">get6</span>.<span class="pl-s1">frame</span> <span class="pl-k">if</span> <span class="pl-s1">cv2</span>.<span class="pl-en">waitKey</span>(<span class="pl-c1">1</span>) <span class="pl-c1">==</span> <span class="pl-c1">27</span>: <span class="pl-k">break</span></pre></div> </details>
0
<h3 dir="auto">Describe your issue.</h3> <p dir="auto"><strong>Version used</strong> : <code class="notranslate">Using cached scipy-1.6.1.tar.gz (27.3 MB)</code></p> <p dir="auto">I've attached the log file and the suspected issue - <a href="https://github.com/scipy/scipy/files/8765273/scipy-compile.log">scipy-compile.log</a></p> <h3 dir="auto">Reproducing Code Example</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="pip install scipy Pip version - pip 22.1.1 from /home/rishacha/.local/lib/python3.11/site-packages/pip (python 3.11) Python version - Python 3.11.0b1 OS - elementaryOS &gt;&gt;&gt; import sys, numpy; print(&quot;Numpy version: &quot;, numpy.__version__,&quot;\nSys version: &quot;, sys.version_info) Numpy version: 1.22.3 "><pre class="notranslate"><span class="pl-s1">pip</span> <span class="pl-s1">install</span> <span class="pl-s1">scipy</span> <span class="pl-v">Pip</span> <span class="pl-s1">version</span> <span class="pl-c1">-</span> <span class="pl-s1">pip</span> <span class="pl-c1">22.1</span><span class="pl-c1">.1</span> <span class="pl-k">from</span> <span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">rishacha</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">python3</span>.<span class="pl-c1">11</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-en">pip</span> (<span class="pl-s1">python</span> <span class="pl-c1">3.11</span>) <span class="pl-v">Python</span> <span class="pl-s1">version</span> <span class="pl-c1">-</span> <span class="pl-v">Python</span> <span class="pl-c1">3.11</span><span class="pl-c1">.0</span><span class="pl-s1">b1</span> <span class="pl-v">OS</span> <span class="pl-c1">-</span> <span class="pl-s1">elementaryOS</span> <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-k">import</span> <span class="pl-s1">sys</span>, <span class="pl-s1">numpy</span>; <span class="pl-en">print</span>(<span class="pl-s">"Numpy version: "</span>, <span class="pl-s1">numpy</span>.<span class="pl-s1">__version__</span>,<span class="pl-s">"<span class="pl-cce">\n</span>Sys version: "</span>, <span class="pl-s1">sys</span>.<span class="pl-s1">version_info</span>) <span class="pl-v">Numpy</span> <span class="pl-s1">version</span>: <span class="pl-c1">1.22</span>.<span class="pl-c1">3</span> </pre></div> <p dir="auto">Sys version: sys.version_info(major=3, minor=11, micro=0, releaselevel='beta', serial=1)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" ### Error message ```shell 2022-05-24T23:43:03,313 scipy/cluster/_vq.c:196:12: fatal error: longintrepr.h: No such file or directory 2022-05-24T23:43:03,313 196 | #include &quot;longintrepr.h&quot; 2022-05-24T23:43:03,313 | ^~~~~~~~~~~~~~~ 2022-05-24T23:43:03,313 compilation terminated."><pre class="notranslate"><code class="notranslate"> ### Error message ```shell 2022-05-24T23:43:03,313 scipy/cluster/_vq.c:196:12: fatal error: longintrepr.h: No such file or directory 2022-05-24T23:43:03,313 196 | #include "longintrepr.h" 2022-05-24T23:43:03,313 | ^~~~~~~~~~~~~~~ 2022-05-24T23:43:03,313 compilation terminated. </code></pre></div> <h3 dir="auto">SciPy/NumPy/Python version information</h3> <blockquote> <blockquote> <blockquote> <p dir="auto">import sys, numpy; print("Numpy version: ", numpy.<strong>version</strong>,"\nSys version: ", sys.version_info) Numpy version: 1.22.3 Sys version: sys.version_info(major=3, minor=11, micro=0, releaselevel='beta', serial=1)</p> </blockquote> </blockquote> </blockquote>
<p dir="auto">My issue is about ...</p> <h4 dir="auto">Reproducing code example:</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Sample code to reproduce the problem"><pre class="notranslate"><code class="notranslate">Sample code to reproduce the problem </code></pre></div> <h4 dir="auto">Error message:</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt; ..."><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; ... </code></pre></div> <h4 dir="auto">Scipy/Numpy/Python version information:</h4>
0
<p dir="auto">MWE:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@inline use(i::Int64) = Base.llvmcall(&quot;&quot;&quot;%slot = alloca i64 store volatile i64 %0, i64* %slot %value = load volatile i64, i64* %slot ret i64 %value&quot;&quot;&quot;, Int64, Tuple{Int64}, i) struct Wrapper{F} &lt;: Core.Function f::F end function (k::Wrapper)(arg1, arg2) (k.f)(arg1, arg2) return nothing end foobar(unused, used) = use(used) code_llvm(Wrapper(foobar), Tuple{Type{Int64}, Int64})"><pre class="notranslate"><span class="pl-c1">@inline</span> <span class="pl-en">use</span>(i<span class="pl-k">::</span><span class="pl-c1">Int64</span>) <span class="pl-k">=</span> Base<span class="pl-k">.</span><span class="pl-c1">llvmcall</span>(<span class="pl-s"><span class="pl-pds">"""</span>%slot = alloca i64</span> <span class="pl-s"> store volatile i64 %0, i64* %slot</span> <span class="pl-s"> %value = load volatile i64, i64* %slot</span> <span class="pl-s"> ret i64 %value<span class="pl-pds">"""</span></span>, Int64, Tuple{Int64}, i) <span class="pl-k">struct</span> Wrapper{F} <span class="pl-k">&lt;:</span> <span class="pl-c1">Core.Function</span> f<span class="pl-k">::</span><span class="pl-c1">F</span> <span class="pl-k">end</span> <span class="pl-k">function</span> (k<span class="pl-k">::</span><span class="pl-c1">Wrapper</span>)(arg1, arg2) (k<span class="pl-k">.</span>f)(arg1, arg2) <span class="pl-k">return</span> <span class="pl-c1">nothing</span> <span class="pl-k">end</span> <span class="pl-en">foobar</span>(unused, used) <span class="pl-k">=</span> <span class="pl-c1">use</span>(used) <span class="pl-c1">code_llvm</span>(<span class="pl-c1">Wrapper</span>(foobar), Tuple{Type{Int64}, Int64})</pre></div> <p dir="auto">Before <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="336858559" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/27857" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/27857/hovercard" href="https://github.com/JuliaLang/julia/pull/27857">#27857</a>:</p> <div class="highlight highlight-source-llvm notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="; Function Wrapper ; Location: /home/tbesard/Julia/CUDAnative/wip.jl:13 define void @julia_Wrapper_32376(%jl_value_t addrspace(10)*, i64) { top: %slot.i = alloca i64, align 8 ; Function foobar; { ; Location: /home/tbesard/Julia/CUDAnative/wip.jl:18 ; Function use; { ; Location: /home/tbesard/Julia/CUDAnative/wip.jl:1 %slot.i.0.slot.i.0..sroa_cast = bitcast i64* %slot.i to i8* call void @llvm.lifetime.start.p0i8(i64 8, i8* %slot.i.0.slot.i.0..sroa_cast) store volatile i64 %1, i64* %slot.i, align 8 %slot.i.0.slot.i.0.slot.0.slot.0.value.i = load volatile i64, i64* %slot.i, align 8 call void @llvm.lifetime.end.p0i8(i64 8, i8* %slot.i.0.slot.i.0..sroa_cast) ;}} ; Location: /home/tbesard/Julia/CUDAnative/wip.jl:14 ret void }"><pre class="notranslate"><span class="pl-c">; Function Wrapper</span> <span class="pl-c">; Location: /home/tbesard/Julia/CUDAnative/wip.jl:13</span> <span class="pl-k">define</span> <span class="pl-k">void</span> <span class="pl-c1">@julia_Wrapper_32376</span>(<span class="pl-c1">%jl_value_t</span> <span class="pl-k">addrspace</span>(<span class="pl-c1">10</span>)*, <span class="pl-k">i64</span>) { top: <span class="pl-c1">%slot.i</span> = <span class="pl-k">alloca</span> <span class="pl-k">i64</span>, <span class="pl-k">align</span> <span class="pl-c1">8</span> <span class="pl-c">; Function foobar; {</span> <span class="pl-c">; Location: /home/tbesard/Julia/CUDAnative/wip.jl:18</span> <span class="pl-c">; Function use; {</span> <span class="pl-c">; Location: /home/tbesard/Julia/CUDAnative/wip.jl:1</span> <span class="pl-c1">%slot.i.0.slot.i.0..sroa_cast</span> = <span class="pl-k">bitcast</span> <span class="pl-k">i64*</span> <span class="pl-c1">%slot.i</span> <span class="pl-k">to</span> <span class="pl-k">i8*</span> <span class="pl-k">call</span> <span class="pl-k">void</span> <span class="pl-c1">@llvm.lifetime.start.p0i8</span>(<span class="pl-k">i64</span> <span class="pl-c1">8</span>, <span class="pl-k">i8*</span> <span class="pl-c1">%slot.i.0.slot.i.0..sroa_cast</span>) <span class="pl-k">store</span> <span class="pl-k">volatile</span> <span class="pl-k">i64</span> <span class="pl-c1">%1</span>, <span class="pl-k">i64*</span> <span class="pl-c1">%slot.i</span>, <span class="pl-k">align</span> <span class="pl-c1">8</span> <span class="pl-c1">%slot.i.0.slot.i.0.slot.0.slot.0.value.i</span> = <span class="pl-k">load</span> <span class="pl-k">volatile</span> <span class="pl-k">i64</span>, <span class="pl-k">i64*</span> <span class="pl-c1">%slot.i</span>, <span class="pl-k">align</span> <span class="pl-c1">8</span> <span class="pl-k">call</span> <span class="pl-k">void</span> <span class="pl-c1">@llvm.lifetime.end.p0i8</span>(<span class="pl-k">i64</span> <span class="pl-c1">8</span>, <span class="pl-k">i8*</span> <span class="pl-c1">%slot.i.0.slot.i.0..sroa_cast</span>) <span class="pl-c">;}}</span> <span class="pl-c">; Location: /home/tbesard/Julia/CUDAnative/wip.jl:14</span> <span class="pl-k">ret</span> <span class="pl-k">void</span> }</pre></div> <p dir="auto">After:</p> <div class="highlight highlight-source-llvm notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="; Function Wrapper ; Location: /home/tbesard/Julia/CUDAnative/wip.jl:13 define void @julia_Wrapper_32797(%jl_value_t addrspace(10)*, i64) { top: %2 = alloca %jl_value_t addrspace(10)*, i32 3 %gcframe = alloca %jl_value_t addrspace(10)*, i32 3 %3 = bitcast %jl_value_t addrspace(10)** %gcframe to i8* call void @llvm.memset.p0i8.i32(i8* %3, i8 0, i32 24, i32 0, i1 false) %thread_ptr = call i8* asm &quot;movq %fs:0, $0&quot;, &quot;=r&quot;() %ptls_i8 = getelementptr i8, i8* %thread_ptr, i64 -10920 %ptls = bitcast i8* %ptls_i8 to %jl_value_t*** %4 = getelementptr %jl_value_t addrspace(10)*, %jl_value_t addrspace(10)** %gcframe, i32 0 %5 = bitcast %jl_value_t addrspace(10)** %4 to i64* store i64 2, i64* %5 %6 = getelementptr %jl_value_t**, %jl_value_t*** %ptls, i32 0 %7 = getelementptr %jl_value_t addrspace(10)*, %jl_value_t addrspace(10)** %gcframe, i32 1 %8 = bitcast %jl_value_t addrspace(10)** %7 to %jl_value_t*** %9 = load %jl_value_t**, %jl_value_t*** %6 store %jl_value_t** %9, %jl_value_t*** %8 %10 = bitcast %jl_value_t*** %6 to %jl_value_t addrspace(10)*** store %jl_value_t addrspace(10)** %gcframe, %jl_value_t addrspace(10)*** %10 %11 = call %jl_value_t addrspace(10)* @jl_box_int64(i64 signext %1) %12 = getelementptr %jl_value_t addrspace(10)*, %jl_value_t addrspace(10)** %gcframe, i32 2 store %jl_value_t addrspace(10)* %11, %jl_value_t addrspace(10)** %12 %13 = getelementptr %jl_value_t addrspace(10)*, %jl_value_t addrspace(10)** %2, i32 0 store %jl_value_t addrspace(10)* addrspacecast (%jl_value_t* inttoptr (i64 140506765508720 to %jl_value_t*) to %jl_value_t addrspace(10)*), %jl_value_t addrspace(10)** %13 %14 = getelementptr %jl_value_t addrspace(10)*, %jl_value_t addrspace(10)** %2, i32 1 store %jl_value_t addrspace(10)* addrspacecast (%jl_value_t* inttoptr (i64 140506765445104 to %jl_value_t*) to %jl_value_t addrspace(10)*), %jl_value_t addrspace(10)** %14 %15 = getelementptr %jl_value_t addrspace(10)*, %jl_value_t addrspace(10)** %2, i32 2 store %jl_value_t addrspace(10)* %11, %jl_value_t addrspace(10)** %15 %16 = call nonnull %jl_value_t addrspace(10)* @jl_invoke(%jl_value_t addrspace(10)* addrspacecast (%jl_value_t* inttoptr (i64 140506779001488 to %jl_value_t*) to %jl_value_t addrspace(10)*), %jl_value_t addrspace(10)** %2, i32 3) ; Location: /home/tbesard/Julia/CUDAnative/wip.jl:14 %17 = getelementptr %jl_value_t addrspace(10)*, %jl_value_t addrspace(10)** %gcframe, i32 1 %18 = load %jl_value_t addrspace(10)*, %jl_value_t addrspace(10)** %17 %19 = getelementptr %jl_value_t**, %jl_value_t*** %ptls, i32 0 %20 = bitcast %jl_value_t*** %19 to %jl_value_t addrspace(10)** store %jl_value_t addrspace(10)* %18, %jl_value_t addrspace(10)** %20 ret void }"><pre class="notranslate"><span class="pl-c">; Function Wrapper</span> <span class="pl-c">; Location: /home/tbesard/Julia/CUDAnative/wip.jl:13</span> <span class="pl-k">define</span> <span class="pl-k">void</span> <span class="pl-c1">@julia_Wrapper_32797</span>(<span class="pl-c1">%jl_value_t</span> <span class="pl-k">addrspace</span>(<span class="pl-c1">10</span>)*, <span class="pl-k">i64</span>) { top: <span class="pl-c1">%2</span> = <span class="pl-k">alloca</span> <span class="pl-c1">%jl_value_t</span> <span class="pl-k">addrspace</span>(<span class="pl-c1">10</span>)*, <span class="pl-k">i32</span> <span class="pl-c1">3</span> <span class="pl-c1">%gcframe</span> = <span class="pl-k">alloca</span> <span class="pl-c1">%jl_value_t</span> <span class="pl-k">addrspace</span>(<span class="pl-c1">10</span>)*, <span class="pl-k">i32</span> <span class="pl-c1">3</span> <span class="pl-c1">%3</span> = <span class="pl-k">bitcast</span> <span class="pl-c1">%jl_value_t</span> <span class="pl-k">addrspace</span>(<span class="pl-c1">10</span>)** <span class="pl-c1">%gcframe</span> <span class="pl-k">to</span> <span class="pl-k">i8*</span> <span class="pl-k">call</span> <span class="pl-k">void</span> <span class="pl-c1">@llvm.memset.p0i8.i32</span>(<span class="pl-k">i8*</span> <span class="pl-c1">%3</span>, <span class="pl-k">i8</span> <span class="pl-c1">0</span>, <span class="pl-k">i32</span> <span class="pl-c1">24</span>, <span class="pl-k">i32</span> <span class="pl-c1">0</span>, <span class="pl-k">i1</span> <span class="pl-k">false</span>) <span class="pl-c1">%thread_ptr</span> = <span class="pl-k">call</span> <span class="pl-k">i8*</span> <span class="pl-k">asm</span> <span class="pl-s">"movq %fs:0, $0"</span>, <span class="pl-s">"=r"</span>() <span class="pl-c1">%ptls_i8</span> = <span class="pl-k">getelementptr</span> <span class="pl-k">i8</span>, <span class="pl-k">i8*</span> <span class="pl-c1">%thread_ptr</span>, <span class="pl-k">i64</span> -<span class="pl-c1">10920</span> <span class="pl-c1">%ptls</span> = <span class="pl-k">bitcast</span> <span class="pl-k">i8*</span> <span class="pl-c1">%ptls_i8</span> <span class="pl-k">to</span> <span class="pl-k">%jl_value_t***</span> <span class="pl-c1">%4</span> = <span class="pl-k">getelementptr</span> <span class="pl-c1">%jl_value_t</span> <span class="pl-k">addrspace</span>(<span class="pl-c1">10</span>)*, <span class="pl-c1">%jl_value_t</span> <span class="pl-k">addrspace</span>(<span class="pl-c1">10</span>)** <span class="pl-c1">%gcframe</span>, <span class="pl-k">i32</span> <span class="pl-c1">0</span> <span class="pl-c1">%5</span> = <span class="pl-k">bitcast</span> <span class="pl-c1">%jl_value_t</span> <span class="pl-k">addrspace</span>(<span class="pl-c1">10</span>)** <span class="pl-c1">%4</span> <span class="pl-k">to</span> <span class="pl-k">i64*</span> <span class="pl-k">store</span> <span class="pl-k">i64</span> <span class="pl-c1">2</span>, <span class="pl-k">i64*</span> <span class="pl-c1">%5</span> <span class="pl-c1">%6</span> = <span class="pl-k">getelementptr</span> <span class="pl-k">%jl_value_t**</span>, <span class="pl-k">%jl_value_t***</span> <span class="pl-c1">%ptls</span>, <span class="pl-k">i32</span> <span class="pl-c1">0</span> <span class="pl-c1">%7</span> = <span class="pl-k">getelementptr</span> <span class="pl-c1">%jl_value_t</span> <span class="pl-k">addrspace</span>(<span class="pl-c1">10</span>)*, <span class="pl-c1">%jl_value_t</span> <span class="pl-k">addrspace</span>(<span class="pl-c1">10</span>)** <span class="pl-c1">%gcframe</span>, <span class="pl-k">i32</span> <span class="pl-c1">1</span> <span class="pl-c1">%8</span> = <span class="pl-k">bitcast</span> <span class="pl-c1">%jl_value_t</span> <span class="pl-k">addrspace</span>(<span class="pl-c1">10</span>)** <span class="pl-c1">%7</span> <span class="pl-k">to</span> <span class="pl-k">%jl_value_t***</span> <span class="pl-c1">%9</span> = <span class="pl-k">load</span> <span class="pl-k">%jl_value_t**</span>, <span class="pl-k">%jl_value_t***</span> <span class="pl-c1">%6</span> <span class="pl-k">store</span> <span class="pl-k">%jl_value_t**</span> <span class="pl-c1">%9</span>, <span class="pl-k">%jl_value_t***</span> <span class="pl-c1">%8</span> <span class="pl-c1">%10</span> = <span class="pl-k">bitcast</span> <span class="pl-k">%jl_value_t***</span> <span class="pl-c1">%6</span> <span class="pl-k">to</span> <span class="pl-c1">%jl_value_t</span> <span class="pl-k">addrspace</span>(<span class="pl-c1">10</span>)*** <span class="pl-k">store</span> <span class="pl-c1">%jl_value_t</span> <span class="pl-k">addrspace</span>(<span class="pl-c1">10</span>)** <span class="pl-c1">%gcframe</span>, <span class="pl-c1">%jl_value_t</span> <span class="pl-k">addrspace</span>(<span class="pl-c1">10</span>)*** <span class="pl-c1">%10</span> <span class="pl-c1">%11</span> = <span class="pl-k">call</span> <span class="pl-c1">%jl_value_t</span> <span class="pl-k">addrspace</span>(<span class="pl-c1">10</span>)* <span class="pl-c1">@jl_box_int64</span>(<span class="pl-k">i64</span> <span class="pl-k">signext</span> <span class="pl-c1">%1</span>) <span class="pl-c1">%12</span> = <span class="pl-k">getelementptr</span> <span class="pl-c1">%jl_value_t</span> <span class="pl-k">addrspace</span>(<span class="pl-c1">10</span>)*, <span class="pl-c1">%jl_value_t</span> <span class="pl-k">addrspace</span>(<span class="pl-c1">10</span>)** <span class="pl-c1">%gcframe</span>, <span class="pl-k">i32</span> <span class="pl-c1">2</span> <span class="pl-k">store</span> <span class="pl-c1">%jl_value_t</span> <span class="pl-k">addrspace</span>(<span class="pl-c1">10</span>)* <span class="pl-c1">%11</span>, <span class="pl-c1">%jl_value_t</span> <span class="pl-k">addrspace</span>(<span class="pl-c1">10</span>)** <span class="pl-c1">%12</span> <span class="pl-c1">%13</span> = <span class="pl-k">getelementptr</span> <span class="pl-c1">%jl_value_t</span> <span class="pl-k">addrspace</span>(<span class="pl-c1">10</span>)*, <span class="pl-c1">%jl_value_t</span> <span class="pl-k">addrspace</span>(<span class="pl-c1">10</span>)** <span class="pl-c1">%2</span>, <span class="pl-k">i32</span> <span class="pl-c1">0</span> <span class="pl-k">store</span> <span class="pl-c1">%jl_value_t</span> <span class="pl-k">addrspace</span>(<span class="pl-c1">10</span>)* addrspacecast (<span class="pl-k">%jl_value_t*</span> <span class="pl-k">inttoptr</span> (<span class="pl-k">i64</span> <span class="pl-c1">140506765508720</span> <span class="pl-k">to</span> <span class="pl-k">%jl_value_t*</span>) <span class="pl-k">to</span> <span class="pl-c1">%jl_value_t</span> <span class="pl-k">addrspace</span>(<span class="pl-c1">10</span>)*), <span class="pl-c1">%jl_value_t</span> <span class="pl-k">addrspace</span>(<span class="pl-c1">10</span>)** <span class="pl-c1">%13</span> <span class="pl-c1">%14</span> = <span class="pl-k">getelementptr</span> <span class="pl-c1">%jl_value_t</span> <span class="pl-k">addrspace</span>(<span class="pl-c1">10</span>)*, <span class="pl-c1">%jl_value_t</span> <span class="pl-k">addrspace</span>(<span class="pl-c1">10</span>)** <span class="pl-c1">%2</span>, <span class="pl-k">i32</span> <span class="pl-c1">1</span> <span class="pl-k">store</span> <span class="pl-c1">%jl_value_t</span> <span class="pl-k">addrspace</span>(<span class="pl-c1">10</span>)* addrspacecast (<span class="pl-k">%jl_value_t*</span> <span class="pl-k">inttoptr</span> (<span class="pl-k">i64</span> <span class="pl-c1">140506765445104</span> <span class="pl-k">to</span> <span class="pl-k">%jl_value_t*</span>) <span class="pl-k">to</span> <span class="pl-c1">%jl_value_t</span> <span class="pl-k">addrspace</span>(<span class="pl-c1">10</span>)*), <span class="pl-c1">%jl_value_t</span> <span class="pl-k">addrspace</span>(<span class="pl-c1">10</span>)** <span class="pl-c1">%14</span> <span class="pl-c1">%15</span> = <span class="pl-k">getelementptr</span> <span class="pl-c1">%jl_value_t</span> <span class="pl-k">addrspace</span>(<span class="pl-c1">10</span>)*, <span class="pl-c1">%jl_value_t</span> <span class="pl-k">addrspace</span>(<span class="pl-c1">10</span>)** <span class="pl-c1">%2</span>, <span class="pl-k">i32</span> <span class="pl-c1">2</span> <span class="pl-k">store</span> <span class="pl-c1">%jl_value_t</span> <span class="pl-k">addrspace</span>(<span class="pl-c1">10</span>)* <span class="pl-c1">%11</span>, <span class="pl-c1">%jl_value_t</span> <span class="pl-k">addrspace</span>(<span class="pl-c1">10</span>)** <span class="pl-c1">%15</span> <span class="pl-c1">%16</span> = <span class="pl-k">call</span> <span class="pl-k">nonnull</span> <span class="pl-c1">%jl_value_t</span> <span class="pl-k">addrspace</span>(<span class="pl-c1">10</span>)* <span class="pl-c1">@jl_invoke</span>(<span class="pl-c1">%jl_value_t</span> <span class="pl-k">addrspace</span>(<span class="pl-c1">10</span>)* addrspacecast (<span class="pl-k">%jl_value_t*</span> <span class="pl-k">inttoptr</span> (<span class="pl-k">i64</span> <span class="pl-c1">140506779001488</span> <span class="pl-k">to</span> <span class="pl-k">%jl_value_t*</span>) <span class="pl-k">to</span> <span class="pl-c1">%jl_value_t</span> <span class="pl-k">addrspace</span>(<span class="pl-c1">10</span>)*), <span class="pl-c1">%jl_value_t</span> <span class="pl-k">addrspace</span>(<span class="pl-c1">10</span>)** <span class="pl-c1">%2</span>, <span class="pl-k">i32</span> <span class="pl-c1">3</span>) <span class="pl-c">; Location: /home/tbesard/Julia/CUDAnative/wip.jl:14</span> <span class="pl-c1">%17</span> = <span class="pl-k">getelementptr</span> <span class="pl-c1">%jl_value_t</span> <span class="pl-k">addrspace</span>(<span class="pl-c1">10</span>)*, <span class="pl-c1">%jl_value_t</span> <span class="pl-k">addrspace</span>(<span class="pl-c1">10</span>)** <span class="pl-c1">%gcframe</span>, <span class="pl-k">i32</span> <span class="pl-c1">1</span> <span class="pl-c1">%18</span> = <span class="pl-k">load</span> <span class="pl-c1">%jl_value_t</span> <span class="pl-k">addrspace</span>(<span class="pl-c1">10</span>)*, <span class="pl-c1">%jl_value_t</span> <span class="pl-k">addrspace</span>(<span class="pl-c1">10</span>)** <span class="pl-c1">%17</span> <span class="pl-c1">%19</span> = <span class="pl-k">getelementptr</span> <span class="pl-k">%jl_value_t**</span>, <span class="pl-k">%jl_value_t***</span> <span class="pl-c1">%ptls</span>, <span class="pl-k">i32</span> <span class="pl-c1">0</span> <span class="pl-c1">%20</span> = <span class="pl-k">bitcast</span> <span class="pl-k">%jl_value_t***</span> <span class="pl-c1">%19</span> <span class="pl-k">to</span> <span class="pl-c1">%jl_value_t</span> <span class="pl-k">addrspace</span>(<span class="pl-c1">10</span>)** <span class="pl-k">store</span> <span class="pl-c1">%jl_value_t</span> <span class="pl-k">addrspace</span>(<span class="pl-c1">10</span>)* <span class="pl-c1">%18</span>, <span class="pl-c1">%jl_value_t</span> <span class="pl-k">addrspace</span>(<span class="pl-c1">10</span>)** <span class="pl-c1">%20</span> <span class="pl-k">ret</span> <span class="pl-k">void</span> }</pre></div> <p dir="auto">Bisected to <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/JuliaLang/julia/commit/9277d3af2dcfc107021989473829a6c9454d83fb/hovercard" href="https://github.com/JuliaLang/julia/commit/9277d3af2dcfc107021989473829a6c9454d83fb"><tt>9277d3a</tt></a>.</p>
<p dir="auto">Somehow all atomics became really slow and allocating. Example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; using Base.Threads julia&gt; using BenchmarkTools julia&gt; a = Atomic{Int64}(0); julia&gt; @btime atomic_add!($a,$1); 9.177 ns (0 allocations: 0 bytes) julia&gt; versioninfo() Julia Version 0.6.3 julia&gt; @btime atomic_add!($a,$1); 129.263 ns (1 allocation: 16 bytes) julia&gt; versioninfo() Julia Version 0.7.0-alpha.136"><pre class="notranslate"><code class="notranslate">julia&gt; using Base.Threads julia&gt; using BenchmarkTools julia&gt; a = Atomic{Int64}(0); julia&gt; @btime atomic_add!($a,$1); 9.177 ns (0 allocations: 0 bytes) julia&gt; versioninfo() Julia Version 0.6.3 julia&gt; @btime atomic_add!($a,$1); 129.263 ns (1 allocation: 16 bytes) julia&gt; versioninfo() Julia Version 0.7.0-alpha.136 </code></pre></div> <p dir="auto">This is very visible when inspecting <code class="notranslate">@code_llvm</code>: Instead of the hand-written llvmcall, we get some weird giant blob of compiler output.</p>
1
<h2 dir="auto">Steps to Reproduce</h2> <ol dir="auto"> <li>run: <code class="notranslate">flutter create --with-driver-test my_project</code></li> <li>Notice that <code class="notranslate">enableFlutterDriverExtension();</code> inside <code class="notranslate">main.dart</code> main method</li> <li>Add TextField to your UI</li> <li>Keyboard won't show when you click TextField</li> <li>remove <code class="notranslate">enableFlutterDriverExtension();</code> Keyboard show as expected.</li> </ol> <h2 dir="auto">Logs</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ +16 ms] [/home/polen/Flutter/flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ +29 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] origin/master [ ] [/home/polen/Flutter/flutter/] git rev-parse --abbrev-ref HEAD [ +5 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ ] master [ ] [/home/polen/Flutter/flutter/] git ls-remote --get-url origin [ +8 ms] Exit code 0 from: git ls-remote --get-url origin [ ] https://github.com/flutter/flutter.git [ ] [/home/polen/Flutter/flutter/] git log -n 1 --pretty=format:%H [ +11 ms] Exit code 0 from: git log -n 1 --pretty=format:%H [ ] 21c2e47f29ec8aaf14f8b137de941bb5aa89d6de [ ] [/home/polen/Flutter/flutter/] git log -n 1 --pretty=format:%ar [ +9 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar [ ] 31 hours ago [ ] [/home/polen/Flutter/flutter/] git describe --match v*.*.* --first-parent --long --tags [ +53 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags [ ] v0.4.2-16-g21c2e47 [ +60 ms] &quot;flutter run&quot; took 10ms. Error: No pubspec.yaml file found. This command should be run from the root of your Flutter project. Do not run this command from the root of your git clone of Flutter. #0 FlutterCommand.validateCommand (package:flutter_tools/src/runner/flutter_command.dart:427) &lt;asynchronous suspension&gt; #1 RunCommand.validateCommand (package:flutter_tools/src/commands/run.dart:251) &lt;asynchronous suspension&gt; #2 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:323) &lt;asynchronous suspension&gt; #3 FlutterCommand.run.&lt;anonymous closure&gt; (package:flutter_tools/src/runner/flutter_command.dart:279) &lt;asynchronous suspension&gt; #4 AppContext.run.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:142) &lt;asynchronous suspension&gt; #5 _rootRun (dart:async/zone.dart:1126) #6 _CustomZone.run (dart:async/zone.dart:1023) #7 runZoned (dart:async/zone.dart:1501) #8 AppContext.run (package:flutter_tools/src/base/context.dart:141) &lt;asynchronous suspension&gt; #9 FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:270) #10 CommandRunner.runCommand (package:args/command_runner.dart:194) &lt;asynchronous suspension&gt; #11 FlutterCommandRunner.runCommand.&lt;anonymous closure&gt; (package:flutter_tools/src/runner/flutter_command_runner.dart:309) &lt;asynchronous suspension&gt; #12 AppContext.run.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:142) &lt;asynchronous suspension&gt; #13 _rootRun (dart:async/zone.dart:1126) #14 _CustomZone.run (dart:async/zone.dart:1023) #15 runZoned (dart:async/zone.dart:1501) #16 AppContext.run (package:flutter_tools/src/base/context.dart:141) &lt;asynchronous suspension&gt; #17 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:265) &lt;asynchronous suspension&gt; #18 CommandRunner.run.&lt;anonymous closure&gt; (package:args/command_runner.dart:109) #19 new Future.sync (dart:async/future.dart:222) #20 CommandRunner.run (package:args/command_runner.dart:109) #21 FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:174) #22 run.&lt;anonymous closure&gt; (package:flutter_tools/runner.dart:54) &lt;asynchronous suspension&gt; #23 AppContext.run.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:142) &lt;asynchronous suspension&gt; #24 _rootRun (dart:async/zone.dart:1126) #25 _CustomZone.run (dart:async/zone.dart:1023) #26 runZoned (dart:async/zone.dart:1501) #27 AppContext.run (package:flutter_tools/src/base/context.dart:141) &lt;asynchronous suspension&gt; #28 runInContext (package:flutter_tools/src/context_runner.dart:42) &lt;asynchronous suspension&gt; #29 run (package:flutter_tools/runner.dart:49) #30 main (package:flutter_tools/executable.dart:48) &lt;asynchronous suspension&gt; #31 main (file:///home/polen/Flutter/flutter/packages/flutter_tools/bin/flutter_tools.dart:8) #32 _startIsolate.&lt;anonymous closure&gt; (dart:isolate-patch/dart:isolate/isolate_patch.dart:277) #33 _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:165) "><pre class="notranslate"><code class="notranslate">[ +16 ms] [/home/polen/Flutter/flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ +29 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] origin/master [ ] [/home/polen/Flutter/flutter/] git rev-parse --abbrev-ref HEAD [ +5 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ ] master [ ] [/home/polen/Flutter/flutter/] git ls-remote --get-url origin [ +8 ms] Exit code 0 from: git ls-remote --get-url origin [ ] https://github.com/flutter/flutter.git [ ] [/home/polen/Flutter/flutter/] git log -n 1 --pretty=format:%H [ +11 ms] Exit code 0 from: git log -n 1 --pretty=format:%H [ ] 21c2e47f29ec8aaf14f8b137de941bb5aa89d6de [ ] [/home/polen/Flutter/flutter/] git log -n 1 --pretty=format:%ar [ +9 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar [ ] 31 hours ago [ ] [/home/polen/Flutter/flutter/] git describe --match v*.*.* --first-parent --long --tags [ +53 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags [ ] v0.4.2-16-g21c2e47 [ +60 ms] "flutter run" took 10ms. Error: No pubspec.yaml file found. This command should be run from the root of your Flutter project. Do not run this command from the root of your git clone of Flutter. #0 FlutterCommand.validateCommand (package:flutter_tools/src/runner/flutter_command.dart:427) &lt;asynchronous suspension&gt; #1 RunCommand.validateCommand (package:flutter_tools/src/commands/run.dart:251) &lt;asynchronous suspension&gt; #2 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:323) &lt;asynchronous suspension&gt; #3 FlutterCommand.run.&lt;anonymous closure&gt; (package:flutter_tools/src/runner/flutter_command.dart:279) &lt;asynchronous suspension&gt; #4 AppContext.run.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:142) &lt;asynchronous suspension&gt; #5 _rootRun (dart:async/zone.dart:1126) #6 _CustomZone.run (dart:async/zone.dart:1023) #7 runZoned (dart:async/zone.dart:1501) #8 AppContext.run (package:flutter_tools/src/base/context.dart:141) &lt;asynchronous suspension&gt; #9 FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:270) #10 CommandRunner.runCommand (package:args/command_runner.dart:194) &lt;asynchronous suspension&gt; #11 FlutterCommandRunner.runCommand.&lt;anonymous closure&gt; (package:flutter_tools/src/runner/flutter_command_runner.dart:309) &lt;asynchronous suspension&gt; #12 AppContext.run.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:142) &lt;asynchronous suspension&gt; #13 _rootRun (dart:async/zone.dart:1126) #14 _CustomZone.run (dart:async/zone.dart:1023) #15 runZoned (dart:async/zone.dart:1501) #16 AppContext.run (package:flutter_tools/src/base/context.dart:141) &lt;asynchronous suspension&gt; #17 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:265) &lt;asynchronous suspension&gt; #18 CommandRunner.run.&lt;anonymous closure&gt; (package:args/command_runner.dart:109) #19 new Future.sync (dart:async/future.dart:222) #20 CommandRunner.run (package:args/command_runner.dart:109) #21 FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:174) #22 run.&lt;anonymous closure&gt; (package:flutter_tools/runner.dart:54) &lt;asynchronous suspension&gt; #23 AppContext.run.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:142) &lt;asynchronous suspension&gt; #24 _rootRun (dart:async/zone.dart:1126) #25 _CustomZone.run (dart:async/zone.dart:1023) #26 runZoned (dart:async/zone.dart:1501) #27 AppContext.run (package:flutter_tools/src/base/context.dart:141) &lt;asynchronous suspension&gt; #28 runInContext (package:flutter_tools/src/context_runner.dart:42) &lt;asynchronous suspension&gt; #29 run (package:flutter_tools/runner.dart:49) #30 main (package:flutter_tools/executable.dart:48) &lt;asynchronous suspension&gt; #31 main (file:///home/polen/Flutter/flutter/packages/flutter_tools/bin/flutter_tools.dart:8) #32 _startIsolate.&lt;anonymous closure&gt; (dart:isolate-patch/dart:isolate/isolate_patch.dart:277) #33 _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:165) </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Analyzing /home/polen/workspaces/flutter/test_project... No issues found! Ran in 6.2s "><pre class="notranslate"><code class="notranslate">Analyzing /home/polen/workspaces/flutter/test_project... No issues found! Ran in 6.2s </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="No issues found! Ran in 6.2s [polen@polen-dmi test_project]$ flutter doctor -v [✓] Flutter (Channel master, v0.4.3-pre.16, on Linux, locale en_GB.UTF-8) • Flutter version 0.4.3-pre.16 at /home/polen/Flutter/flutter • Framework revision 21c2e47f29 (31 hours ago), 2018-05-08 23:23:34 -0700 • Engine revision 11d6da3cd9 • Dart version 2.0.0-dev.53.0.flutter-e6d7d67f4b [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) • Android SDK at /home/polen/Android/Sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-27, build-tools 27.0.3 • ANDROID_HOME = /home/polen/Android/Sdk • Java binary at: /home/polen/Android/android-studio/jre/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) • All Android licenses accepted. [✓] Android Studio (version 3.1) • Android Studio at /home/polen/Android/android-studio • Flutter plugin version 24.2.1 • Dart plugin version 173.4700 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) [✓] VS Code (version 1.23.0) • VS Code at /usr/share/code • Dart Code extension version 2.12.1 [✓] Connected devices (1 available) • Android SDK built for x86 64 • emulator-5554 • android-x64 • Android 8.0.0 (API 26) (emulator) • No issues found! "><pre class="notranslate"><code class="notranslate">No issues found! Ran in 6.2s [polen@polen-dmi test_project]$ flutter doctor -v [✓] Flutter (Channel master, v0.4.3-pre.16, on Linux, locale en_GB.UTF-8) • Flutter version 0.4.3-pre.16 at /home/polen/Flutter/flutter • Framework revision 21c2e47f29 (31 hours ago), 2018-05-08 23:23:34 -0700 • Engine revision 11d6da3cd9 • Dart version 2.0.0-dev.53.0.flutter-e6d7d67f4b [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) • Android SDK at /home/polen/Android/Sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-27, build-tools 27.0.3 • ANDROID_HOME = /home/polen/Android/Sdk • Java binary at: /home/polen/Android/android-studio/jre/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) • All Android licenses accepted. [✓] Android Studio (version 3.1) • Android Studio at /home/polen/Android/android-studio • Flutter plugin version 24.2.1 • Dart plugin version 173.4700 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) [✓] VS Code (version 1.23.0) • VS Code at /usr/share/code • Dart Code extension version 2.12.1 [✓] Connected devices (1 available) • Android SDK built for x86 64 • emulator-5554 • android-x64 • Android 8.0.0 (API 26) (emulator) • No issues found! </code></pre></div>
<h2 dir="auto">Steps to Reproduce</h2> <ol dir="auto"> <li>Open flutter_gallery project</li> <li>Put enableFlutterDriverExtension(); in lib/main.dart</li> <li>Run app, try to use android keyboard in any input field, it is not showing.</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import 'package:flutter/widgets.dart'; import 'package:flutter_driver/driver_extension.dart'; import 'gallery/app.dart'; void main() { enableFlutterDriverExtension(); runApp(const GalleryApp()); }"><pre class="notranslate"><code class="notranslate">import 'package:flutter/widgets.dart'; import 'package:flutter_driver/driver_extension.dart'; import 'gallery/app.dart'; void main() { enableFlutterDriverExtension(); runApp(const GalleryApp()); } </code></pre></div> <h2 dir="auto">Problem research</h2> <p dir="auto">It seems like intended but obsolete behaviour artifacts and lack of documentation.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;flutter drive --help Runs Flutter Driver tests for the current project. ... -t, --target=&lt;path&gt; The main entry-point file of the application, as run on the device. If the --target option is omitted, but a file name is provided on the command line, then that is used instead. (defaults to &quot;lib/main.dart&quot;) ..."><pre class="notranslate"><code class="notranslate">&gt;flutter drive --help Runs Flutter Driver tests for the current project. ... -t, --target=&lt;path&gt; The main entry-point file of the application, as run on the device. If the --target option is omitted, but a file name is provided on the command line, then that is used instead. (defaults to "lib/main.dart") ... </code></pre></div> <p dir="auto"><strong>(defaults to "lib/main.dart")</strong> seems obsolete due to <a href="https://flutter.io/testing/" rel="nofollow">https://flutter.io/testing/</a> specifically says that you should create new entry point for "Creating instrumented Flutter apps", flutter_gallery follow this document correctly at least for last 2 years.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="176117527" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/5800" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/5800/hovercard" href="https://github.com/flutter/flutter/issues/5800">#5800</a> Partly about this confusion, seems related.</p> <p dir="auto">If this is intended behaviour then <a href="https://docs.flutter.io/flutter/flutter_driver_extension/enableFlutterDriverExtension.html" rel="nofollow">https://docs.flutter.io/flutter/flutter_driver_extension/enableFlutterDriverExtension.html</a><br> should say about it.</p> <h2 dir="auto">Flutter Doctor</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[√] Flutter (Channel master, v0.2.1-pre.61, on Microsoft Windows [Version 10.0.16299.251], locale ru-RU) • Flutter version 0.2.1-pre.61 at c:\flutter • Framework revision 7865d319ba (2 hours ago), 2018-03-11 13:01:00 -0700 • Engine revision 1d0da77995 • Dart version 2.0.0-dev.33.0.flutter-b5b8080b2c [√] Android toolchain - develop for Android devices (Android SDK 27.0.3) • Android SDK at C:\Users\Yfer\AppData\Local\Android\sdk • Android NDK at C:\Users\Yfer\AppData\Local\Android\sdk\ndk-bundle • Platform android-27, build-tools 27.0.3 • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01) • All Android licenses accepted. [√] Android Studio (version 3.0) • Android Studio at C:\Program Files\Android\Android Studio • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01) [√] IntelliJ IDEA Ultimate Edition (version 2017.3) • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2017.3.4 • Flutter plugin version 22.2.2 • Dart plugin version 173.4548.30 [!] VS Code, 64-bit edition (version 1.20.1) • VS Code at C:\Program Files\Microsoft VS Code • Dart Code extension not installed; install from https://marketplace.visualstudio.com/items?itemName=Dart-Code.dart-code [√] Connected devices (1 available) • Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.1.0 (API 27) (emulator)"><pre class="notranslate"><code class="notranslate">[√] Flutter (Channel master, v0.2.1-pre.61, on Microsoft Windows [Version 10.0.16299.251], locale ru-RU) • Flutter version 0.2.1-pre.61 at c:\flutter • Framework revision 7865d319ba (2 hours ago), 2018-03-11 13:01:00 -0700 • Engine revision 1d0da77995 • Dart version 2.0.0-dev.33.0.flutter-b5b8080b2c [√] Android toolchain - develop for Android devices (Android SDK 27.0.3) • Android SDK at C:\Users\Yfer\AppData\Local\Android\sdk • Android NDK at C:\Users\Yfer\AppData\Local\Android\sdk\ndk-bundle • Platform android-27, build-tools 27.0.3 • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01) • All Android licenses accepted. [√] Android Studio (version 3.0) • Android Studio at C:\Program Files\Android\Android Studio • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01) [√] IntelliJ IDEA Ultimate Edition (version 2017.3) • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2017.3.4 • Flutter plugin version 22.2.2 • Dart plugin version 173.4548.30 [!] VS Code, 64-bit edition (version 1.20.1) • VS Code at C:\Program Files\Microsoft VS Code • Dart Code extension not installed; install from https://marketplace.visualstudio.com/items?itemName=Dart-Code.dart-code [√] Connected devices (1 available) • Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.1.0 (API 27) (emulator) </code></pre></div>
1
<h4 dir="auto">Describe the workflow you want to enable</h4> <p dir="auto">Can we add a feature in LinearRegression that could remove collinearity (exact collinearity) in the data?.</p> <h4 dir="auto">Describe your proposed solution</h4> <p dir="auto">My proposal is to add an extra argument like remove_collinearity if it is set by the user then we can remove exact collinear variables using the rank of the matrix or collinear variables using VIF. This can save some time instead of going for Ridge regression.</p>
<p dir="auto">I wonder whether we should add unsupervised feature selection using correlation. It's a strategy that's very common in statistics and might just have it for completeness.<br> It's certainly more useful than the variance based one, which I think is useless for any threshold != 0.</p>
1
<p dir="auto">Essentially, store whatever is stored in a sysimage with user packages compiled into it in the standard precompile files.</p> <p dir="auto">I would assume that this, in combination with <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="393627692" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/30487" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/30487/hovercard" href="https://github.com/JuliaLang/julia/issues/30487">#30487</a>, would go a very long way to make the interactive REPL experience of julia competitive.</p> <p dir="auto">I know that the core team has been thinking about this, and I did look for an existing issues that tracks this, but couldn't find any. So, I'm mainly creating the issue so that it can be assigned to a milestone and that I can follow progress :) If this is a duplicate (which I really had expected) and I just didn't find the original, please close.</p>
<p dir="auto">Try running <code class="notranslate">Pkg.available()</code></p>
0
<p dir="auto">Challenge <a href="https://www.freecodecamp.com/challenges/confirm-the-ending#?solution=%0Afunction%20confirmEnding(str%2C%20target)%20%7B%0A%20%20%2F%2F%20%22Never%20give%20up%20and%20good%20luck%20will%20find%20you.%22%0A%20%20%2F%2F%20--%20Falcor%0A%20%20if%20(str.endsWith(target))%7B%0A%20%20%20%20return%20true%3B%0A%20%20%7D%0A%20%20else%20return%20false%3B%0A%20%20return%20str%3B%0A%7D%0A%0AconfirmEnding(%22Bastian%22%2C%20%22n%22)%3B%0A" rel="nofollow">Confirm the Ending</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/53.0.2785.143 Chrome/53.0.2785.143 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-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" function confirmEnding(str, target) { // &quot;Never give up and good luck will find you.&quot; // -- Falcor if (str.endsWith(target)){ return true; } else return false; return str; } confirmEnding(&quot;Bastian&quot;, &quot;n&quot;); "><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">confirmEnding</span><span class="pl-kos">(</span><span class="pl-s1">str</span><span class="pl-kos">,</span> <span class="pl-s1">target</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// "Never give up and good luck will find you."</span> <span class="pl-c">// -- Falcor</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">str</span><span class="pl-kos">.</span><span class="pl-en">endsWith</span><span class="pl-kos">(</span><span class="pl-s1">target</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">true</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">else</span> <span class="pl-k">return</span> <span class="pl-c1">false</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-s1">str</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-en">confirmEnding</span><span class="pl-kos">(</span><span class="pl-s">"Bastian"</span><span class="pl-kos">,</span> <span class="pl-s">"n"</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function confirmEnding(str, target) { // &quot;Never give up and good luck will find you.&quot; // -- Falcor return str.endsWith(target) // if I don't end with semi-colon it will pass. } confirmEnding(&quot;Bastian&quot;, &quot;n&quot;);"><pre class="notranslate"><code class="notranslate">function confirmEnding(str, target) { // "Never give up and good luck will find you." // -- Falcor return str.endsWith(target) // if I don't end with semi-colon it will pass. } confirmEnding("Bastian", "n"); </code></pre></div>
1
<p dir="auto">When trying to compile this code:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="pub fn write_to_log(line: String) { use std::fs::{File, OpenOptions}; let resFile = OpenOptions::new().read(true).write(true) .append(true).open(&quot;log.log&quot;); let mut file = match resFile { Ok(f) =&gt; f, Err(e) =&gt; panic!(&quot;file error: {}&quot;, e), }; let _ = writeln!(&amp;mut file, &quot;{}&quot;, line); } fn main() { write_to_log(&quot;Hello&quot;.to_string()); }"><pre class="notranslate"><span class="pl-k">pub</span> <span class="pl-k">fn</span> <span class="pl-en">write_to_log</span><span class="pl-kos">(</span><span class="pl-s1">line</span><span class="pl-kos">:</span> <span class="pl-smi">String</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">use</span> std<span class="pl-kos">::</span>fs<span class="pl-kos">::</span><span class="pl-kos">{</span><span class="pl-v">File</span><span class="pl-kos">,</span> <span class="pl-v">OpenOptions</span><span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-k">let</span> resFile = <span class="pl-smi">OpenOptions</span><span class="pl-kos">::</span><span class="pl-en">new</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">read</span><span class="pl-kos">(</span><span class="pl-c1">true</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">write</span><span class="pl-kos">(</span><span class="pl-c1">true</span><span class="pl-kos">)</span> <span class="pl-kos">.</span><span class="pl-en">append</span><span class="pl-kos">(</span><span class="pl-c1">true</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">open</span><span class="pl-kos">(</span><span class="pl-s">"log.log"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">let</span> <span class="pl-k">mut</span> file = <span class="pl-k">match</span> resFile <span class="pl-kos">{</span> <span class="pl-v">Ok</span><span class="pl-kos">(</span>f<span class="pl-kos">)</span> =&gt; f<span class="pl-kos">,</span> <span class="pl-v">Err</span><span class="pl-kos">(</span>e<span class="pl-kos">)</span> =&gt; <span class="pl-en">panic</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"file error: {}"</span>, e<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-en">writeln</span><span class="pl-en">!</span><span class="pl-kos">(</span>&amp;<span class="pl-k">mut</span> file, <span class="pl-s">"{}"</span>, line<span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">write_to_log</span><span class="pl-kos">(</span><span class="pl-s">"Hello"</span><span class="pl-kos">.</span><span class="pl-en">to_string</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">compiler prints this message:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;std macros&gt;:2:20: 2:66 error: type `&amp;mut std::fs::File` does not implement any method in scope named `write_fmt` &lt;std macros&gt;:2 ( &amp; mut * $ dst ) . write_fmt ( format_args ! ( $ ( $ arg ) * ) ) ) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ &lt;std macros&gt;:2:66: 2:66 help: methods from traits can only be called if the trait is in scope; the following trait is implemented but not in scope, perhaps add a `use` for it: &lt;std macros&gt;:2:66: 2:66 help: candidate #1: use `std::io::Write` error: aborting due to previous error"><pre class="notranslate"><code class="notranslate">&lt;std macros&gt;:2:20: 2:66 error: type `&amp;mut std::fs::File` does not implement any method in scope named `write_fmt` &lt;std macros&gt;:2 ( &amp; mut * $ dst ) . write_fmt ( format_args ! ( $ ( $ arg ) * ) ) ) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ &lt;std macros&gt;:2:66: 2:66 help: methods from traits can only be called if the trait is in scope; the following trait is implemented but not in scope, perhaps add a `use` for it: &lt;std macros&gt;:2:66: 2:66 help: candidate #1: use `std::io::Write` error: aborting due to previous error </code></pre></div> <p dir="auto">I would expect it to point me to the fine and line where <code class="notranslate">writeln!</code> is used. Right now it very hard to find error location.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;std macros&gt;:4:19: 4:46 error: invalid reference to argument `1` (there is 1 argument) &lt;std macros&gt;:4 write ! ( $ dst , concat ! ( $ fmt , &quot;\n&quot; ) , $ ( $ arg ) * ) ) ; ^~~~~~~~~~~~~~~~~~~~~~~~~~~ &lt;std macros&gt;:3:11: 3:38 error: invalid reference to argument `2` (there are 2 arguments) &lt;std macros&gt;:3 print ! ( concat ! ( $ fmt , &quot;\n&quot; ) , $ ( $ arg ) * ) ) ; ^~~~~~~~~~~~~~~~~~~~~~~~~~~"><pre class="notranslate"><code class="notranslate">&lt;std macros&gt;:4:19: 4:46 error: invalid reference to argument `1` (there is 1 argument) &lt;std macros&gt;:4 write ! ( $ dst , concat ! ( $ fmt , "\n" ) , $ ( $ arg ) * ) ) ; ^~~~~~~~~~~~~~~~~~~~~~~~~~~ &lt;std macros&gt;:3:11: 3:38 error: invalid reference to argument `2` (there are 2 arguments) &lt;std macros&gt;:3 print ! ( concat ! ( $ fmt , "\n" ) , $ ( $ arg ) * ) ) ; ^~~~~~~~~~~~~~~~~~~~~~~~~~~ </code></pre></div> <p dir="auto">I’d expect it to at least emit an <code class="notranslate">in expansion of writeln!</code> and <code class="notranslate">in expansion of println!</code> hints which it doesn’t currently.</p>
1
<p dir="auto">See three examples:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import tensorflow as tf x = tf.constant(1.0) x = tf.Print(x, ['x']) y = tf.constant(2.0) y = tf.Print(y, ['y']) z = tf.constant(3.0) z = tf.Print(z, ['z']) with tf.Session() as sess: print(sess.run([x,y,z]))"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">tensorflow</span> <span class="pl-k">as</span> <span class="pl-s1">tf</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">constant</span>(<span class="pl-c1">1.0</span>) <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-v">Print</span>(<span class="pl-s1">x</span>, [<span class="pl-s">'x'</span>]) <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">constant</span>(<span class="pl-c1">2.0</span>) <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-v">Print</span>(<span class="pl-s1">y</span>, [<span class="pl-s">'y'</span>]) <span class="pl-s1">z</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">constant</span>(<span class="pl-c1">3.0</span>) <span class="pl-s1">z</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-v">Print</span>(<span class="pl-s1">z</span>, [<span class="pl-s">'z'</span>]) <span class="pl-k">with</span> <span class="pl-s1">tf</span>.<span class="pl-v">Session</span>() <span class="pl-k">as</span> <span class="pl-s1">sess</span>: <span class="pl-en">print</span>(<span class="pl-s1">sess</span>.<span class="pl-en">run</span>([<span class="pl-s1">x</span>,<span class="pl-s1">y</span>,<span class="pl-s1">z</span>]))</pre></div> <p dir="auto">The sequence of output of <code class="notranslate">tf.Print</code> is indeterminate, which means <code class="notranslate">sess.run</code> don't executes tensors from left to right.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import tensorflow as tf x = tf.constant(1.0) x = tf.Print(x, ['x']) y = tf.constant(2.0) y = tf.Print(y, ['y']) with tf.control_dependencies([x, y]): z = tf.constant(3.0) z = tf.Print(z, ['z']) with tf.Session() as sess: print(sess.run(z))"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">tensorflow</span> <span class="pl-k">as</span> <span class="pl-s1">tf</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">constant</span>(<span class="pl-c1">1.0</span>) <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-v">Print</span>(<span class="pl-s1">x</span>, [<span class="pl-s">'x'</span>]) <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">constant</span>(<span class="pl-c1">2.0</span>) <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-v">Print</span>(<span class="pl-s1">y</span>, [<span class="pl-s">'y'</span>]) <span class="pl-k">with</span> <span class="pl-s1">tf</span>.<span class="pl-en">control_dependencies</span>([<span class="pl-s1">x</span>, <span class="pl-s1">y</span>]): <span class="pl-s1">z</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">constant</span>(<span class="pl-c1">3.0</span>) <span class="pl-s1">z</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-v">Print</span>(<span class="pl-s1">z</span>, [<span class="pl-s">'z'</span>]) <span class="pl-k">with</span> <span class="pl-s1">tf</span>.<span class="pl-v">Session</span>() <span class="pl-k">as</span> <span class="pl-s1">sess</span>: <span class="pl-en">print</span>(<span class="pl-s1">sess</span>.<span class="pl-en">run</span>(<span class="pl-s1">z</span>))</pre></div> <p dir="auto">The sequence of <code class="notranslate">x</code> and <code class="notranslate">y</code> is indeterminate, which means <code class="notranslate">control_dependencies</code> don't executes tensors from left to right.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import tensorflow as tf x = tf.constant(1.0) x = tf.Print(x, ['x']) y = tf.constant(2.0) y = tf.Print(y, ['y']) d = tf.constant(3.0) d = tf.Print(d, ['d']) with tf.control_dependencies([x, y]): z = tf.add(d, 3.) z = tf.Print(z, ['z']) with tf.Session() as sess: print(sess.run(z))"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">tensorflow</span> <span class="pl-k">as</span> <span class="pl-s1">tf</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">constant</span>(<span class="pl-c1">1.0</span>) <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-v">Print</span>(<span class="pl-s1">x</span>, [<span class="pl-s">'x'</span>]) <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">constant</span>(<span class="pl-c1">2.0</span>) <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-v">Print</span>(<span class="pl-s1">y</span>, [<span class="pl-s">'y'</span>]) <span class="pl-s1">d</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">constant</span>(<span class="pl-c1">3.0</span>) <span class="pl-s1">d</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-v">Print</span>(<span class="pl-s1">d</span>, [<span class="pl-s">'d'</span>]) <span class="pl-k">with</span> <span class="pl-s1">tf</span>.<span class="pl-en">control_dependencies</span>([<span class="pl-s1">x</span>, <span class="pl-s1">y</span>]): <span class="pl-s1">z</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">add</span>(<span class="pl-s1">d</span>, <span class="pl-c1">3.</span>) <span class="pl-s1">z</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-v">Print</span>(<span class="pl-s1">z</span>, [<span class="pl-s">'z'</span>]) <span class="pl-k">with</span> <span class="pl-s1">tf</span>.<span class="pl-v">Session</span>() <span class="pl-k">as</span> <span class="pl-s1">sess</span>: <span class="pl-en">print</span>(<span class="pl-s1">sess</span>.<span class="pl-en">run</span>(<span class="pl-s1">z</span>))</pre></div> <p dir="auto">The sequence of <code class="notranslate">x</code>, <code class="notranslate">y</code> and <code class="notranslate">d</code> is indeterminate.</p> <p dir="auto">Is it intentional behavior or bug? I find that if the sequence is indeterminate, the program may get different result.</p> <p dir="auto">Another example I can't explain:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import tensorflow as tf x = tf.placeholder(tf.float32, []) y = tf.Variable(2.) op = tf.assign(y, x) op = tf.Print(op, ['op']) with tf.control_dependencies([op]): q = tf.Print(y, [y]) with tf.Session() as sess: tf.global_variables_initializer().run() print(sess.run([q], feed_dict={x: -1.0}))"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">tensorflow</span> <span class="pl-k">as</span> <span class="pl-s1">tf</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">placeholder</span>(<span class="pl-s1">tf</span>.<span class="pl-s1">float32</span>, []) <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-v">Variable</span>(<span class="pl-c1">2.</span>) <span class="pl-s1">op</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">assign</span>(<span class="pl-s1">y</span>, <span class="pl-s1">x</span>) <span class="pl-s1">op</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-v">Print</span>(<span class="pl-s1">op</span>, [<span class="pl-s">'op'</span>]) <span class="pl-k">with</span> <span class="pl-s1">tf</span>.<span class="pl-en">control_dependencies</span>([<span class="pl-s1">op</span>]): <span class="pl-s1">q</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-v">Print</span>(<span class="pl-s1">y</span>, [<span class="pl-s1">y</span>]) <span class="pl-k">with</span> <span class="pl-s1">tf</span>.<span class="pl-v">Session</span>() <span class="pl-k">as</span> <span class="pl-s1">sess</span>: <span class="pl-s1">tf</span>.<span class="pl-en">global_variables_initializer</span>().<span class="pl-en">run</span>() <span class="pl-en">print</span>(<span class="pl-s1">sess</span>.<span class="pl-en">run</span>([<span class="pl-s1">q</span>], <span class="pl-s1">feed_dict</span><span class="pl-c1">=</span>{<span class="pl-s1">x</span>: <span class="pl-c1">-</span><span class="pl-c1">1.0</span>}))</pre></div> <p dir="auto">The <code class="notranslate">[op]</code> is printed before <code class="notranslate">[y]</code>, but <code class="notranslate">q=2.0</code>, why? If <code class="notranslate">op</code> is executed before <code class="notranslate">y</code>, y will be assigned by <code class="notranslate">x</code>, which means <code class="notranslate">y=-1.0</code>, and <code class="notranslate">q</code> should be <code class="notranslate">-1.0</code>.</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import tensorflow as tf w = tf.Variable(0) op1 = tf.assign(w, 1) op2 = tf.assign(w, 2) op_1 = tf.constant('op1') op_2 = tf.constant('op2') op1 = tf.Print(op1, [op_1]) op2 = tf.Print(op2, [op_2]) with tf.control_dependencies([op2]): with tf.control_dependencies([op1]): op = tf.no_op() with tf.Session() as sess: tf.global_variables_initializer().run() sess.run(op) print(sess.run(w))"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">tensorflow</span> <span class="pl-k">as</span> <span class="pl-s1">tf</span> <span class="pl-s1">w</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-v">Variable</span>(<span class="pl-c1">0</span>) <span class="pl-s1">op1</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">assign</span>(<span class="pl-s1">w</span>, <span class="pl-c1">1</span>) <span class="pl-s1">op2</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">assign</span>(<span class="pl-s1">w</span>, <span class="pl-c1">2</span>) <span class="pl-s1">op_1</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">constant</span>(<span class="pl-s">'op1'</span>) <span class="pl-s1">op_2</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">constant</span>(<span class="pl-s">'op2'</span>) <span class="pl-s1">op1</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-v">Print</span>(<span class="pl-s1">op1</span>, [<span class="pl-s1">op_1</span>]) <span class="pl-s1">op2</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-v">Print</span>(<span class="pl-s1">op2</span>, [<span class="pl-s1">op_2</span>]) <span class="pl-k">with</span> <span class="pl-s1">tf</span>.<span class="pl-en">control_dependencies</span>([<span class="pl-s1">op2</span>]): <span class="pl-k">with</span> <span class="pl-s1">tf</span>.<span class="pl-en">control_dependencies</span>([<span class="pl-s1">op1</span>]): <span class="pl-s1">op</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">no_op</span>() <span class="pl-k">with</span> <span class="pl-s1">tf</span>.<span class="pl-v">Session</span>() <span class="pl-k">as</span> <span class="pl-s1">sess</span>: <span class="pl-s1">tf</span>.<span class="pl-en">global_variables_initializer</span>().<span class="pl-en">run</span>() <span class="pl-s1">sess</span>.<span class="pl-en">run</span>(<span class="pl-s1">op</span>) <span class="pl-en">print</span>(<span class="pl-s1">sess</span>.<span class="pl-en">run</span>(<span class="pl-s1">w</span>))</pre></div> <p dir="auto">It sometimes prints <code class="notranslate">1</code> and sometimes prints <code class="notranslate">2</code>.</p> <p dir="auto">Another example:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import tensorflow as tf w = tf.Variable(0) op1 = tf.assign(w, 0) op2 = tf.assign(w, 2) op_1 = tf.constant('op1') op_2 = tf.constant('op2') op1 = tf.Print(op1, [op_1]) op2 = tf.Print(op2, [op_2]) with tf.control_dependencies([op1]): op3 = tf.no_op() with tf.control_dependencies([op3, op2]): op4 = tf.no_op() with tf.Session() as sess: tf.global_variables_initializer().run() sess.run(op4) print(sess.run(w))"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">tensorflow</span> <span class="pl-k">as</span> <span class="pl-s1">tf</span> <span class="pl-s1">w</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-v">Variable</span>(<span class="pl-c1">0</span>) <span class="pl-s1">op1</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">assign</span>(<span class="pl-s1">w</span>, <span class="pl-c1">0</span>) <span class="pl-s1">op2</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">assign</span>(<span class="pl-s1">w</span>, <span class="pl-c1">2</span>) <span class="pl-s1">op_1</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">constant</span>(<span class="pl-s">'op1'</span>) <span class="pl-s1">op_2</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">constant</span>(<span class="pl-s">'op2'</span>) <span class="pl-s1">op1</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-v">Print</span>(<span class="pl-s1">op1</span>, [<span class="pl-s1">op_1</span>]) <span class="pl-s1">op2</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-v">Print</span>(<span class="pl-s1">op2</span>, [<span class="pl-s1">op_2</span>]) <span class="pl-k">with</span> <span class="pl-s1">tf</span>.<span class="pl-en">control_dependencies</span>([<span class="pl-s1">op1</span>]): <span class="pl-s1">op3</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">no_op</span>() <span class="pl-k">with</span> <span class="pl-s1">tf</span>.<span class="pl-en">control_dependencies</span>([<span class="pl-s1">op3</span>, <span class="pl-s1">op2</span>]): <span class="pl-s1">op4</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">no_op</span>() <span class="pl-k">with</span> <span class="pl-s1">tf</span>.<span class="pl-v">Session</span>() <span class="pl-k">as</span> <span class="pl-s1">sess</span>: <span class="pl-s1">tf</span>.<span class="pl-en">global_variables_initializer</span>().<span class="pl-en">run</span>() <span class="pl-s1">sess</span>.<span class="pl-en">run</span>(<span class="pl-s1">op4</span>) <span class="pl-en">print</span>(<span class="pl-s1">sess</span>.<span class="pl-en">run</span>(<span class="pl-s1">w</span>))</pre></div> <p dir="auto">Sometimes <code class="notranslate">0</code> and sometimes <code class="notranslate">2</code>.</p>
1
<p dir="auto">Hi guys,</p> <p dir="auto">I met an issue, I want to use Table View to show the table column, I succeed to create slice like this:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/8220811/17132618/1d7d8d6a-5355-11e6-8fc4-3f47fc98d675.png"><img src="https://cloud.githubusercontent.com/assets/8220811/17132618/1d7d8d6a-5355-11e6-8fc4-3f47fc98d675.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">But when I use it into the dashboard, I get this error:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/8220811/17132573/f318af00-5354-11e6-8605-6b744c63b33a.png"><img src="https://cloud.githubusercontent.com/assets/8220811/17132573/f318af00-5354-11e6-8605-6b744c63b33a.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">I found this error will happened no matter what table I use. Is it a bug?</p> <p dir="auto">PS: I just followed the doc to install the caravel : <a href="http://airbnb.io/caravel/installation.html#caravel-installation-and-initialization" rel="nofollow">http://airbnb.io/caravel/installation.html#caravel-installation-and-initialization</a></p>
<p dir="auto">Within the SQL Editor section of SQL Lab, when you select the “+” icon beside the current tab to create a new query, the name of the query gets increased incrementally (see the image below) [except there is consistently a duplicate name for the first two].</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/96579982/155739797-11b0e6cf-fd9f-4b31-ba1f-2b77c87002f9.PNG"><img src="https://user-images.githubusercontent.com/96579982/155739797-11b0e6cf-fd9f-4b31-ba1f-2b77c87002f9.PNG" alt="plus button" style="max-width: 100%;"></a></p> <p dir="auto">However, if you select the “+“ icon on the top right of the web page beside the settings drop down and select “SQL query“, the names of the new queries do not increase incrementally. They are all just named "Untitled Query 2" (see the images below).</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/96579982/155739987-1d8b472d-118f-4d1e-8717-8bfe937cc9d9.PNG"><img src="https://user-images.githubusercontent.com/96579982/155739987-1d8b472d-118f-4d1e-8717-8bfe937cc9d9.PNG" alt="SQL query button" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/96579982/155739999-297b9ccd-3ed4-4842-8fd2-a0ba6a24e825.PNG"><img src="https://user-images.githubusercontent.com/96579982/155739999-297b9ccd-3ed4-4842-8fd2-a0ba6a24e825.PNG" alt="After SQL query button" style="max-width: 100%;"></a></p> <p dir="auto">In the image above, the query tab in the far right was created using the "SQL query" button under the “+“ icon drop down on the top right of the page. As you can see, the query name was not increased incrementally.</p> <h4 dir="auto">How to reproduce the bug</h4> <ol dir="auto"> <li>Go to the SQL Editor page by selecting it from the main menu under the "SQL Lab" drop down.</li> <li>You can immediately notice one of the bugs that occurs, the first untitled query will always be called "Untitled Query 2", never "Untitled Query 1".</li> <li>Click on the "+" button next to the list of query tabs, it should properly increment the query tab names.</li> <li>Select the “+“ icon on the top right of the web page beside the settings drop down, and then click "SQL query"</li> <li>You will notice that the name of the newly created query is "Untitled Query 2". No matter how many times you complete step 4, it will never increment the new query tab names.</li> </ol> <h3 dir="auto">Expected results</h3> <p dir="auto">When either the "+" button next to the query tabs or the "SQL query" button from the drop down is selected, they should both increment the name of the untitled query properly.</p> <h3 dir="auto">Actual results</h3> <p dir="auto">When the "SQL query" button from the drop down is selected, the newly created query tabs are always named "Untitled Query 2". Also, the way the code is currently implemented, there will never be an "Untitled Query 1".</p> <h4 dir="auto">Screenshots</h4> <p dir="auto">Please see the main summary for screenshots</p> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>operating system name and version: Ubuntu 20.04</li> <li>browser type and version: Google Chrome (Version 97.0.4692.71)</li> <li>superset version: Superset 1.4</li> <li>python version: Python 3.8.12</li> <li>node.js version: Node v14.16.1</li> <li>any feature flags active: N/A</li> </ul> <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" checked=""> I have checked the superset logs for python stacktraces and included it here as text if there are any.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have reproduced the issue with at least the latest released version of superset.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the issue tracker for the same issue and I haven't found one similar.</li> </ul> <h3 dir="auto">Additional context</h3> <p dir="auto">Also, since discovering this bug, I have created a fix for it on my local fork. I will create a corresponding PR that fixes this bug (and link it to this issue).</p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1150739428" data-permission-text="Title is private" data-url="https://github.com/apache/superset/issues/18951" data-hovercard-type="pull_request" data-hovercard-url="/apache/superset/pull/18951/hovercard" href="https://github.com/apache/superset/pull/18951">#18951</a></li> </ul>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.0</li> <li>Operating System version: windows or linux</li> <li>Java version: 1.8<br> spring-cloud-starter-openfeign:2.0.2.RELEASE</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>项目 引入openFeign,dubbo</li> <li>Bean里面依赖 openFeign的客户端接口和Dubbo 消费者</li> </ol> <p dir="auto">例如:</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@FeignClient(name = &quot;F6HttpInterFace&quot;,configuration = HttpConfig.class, url = &quot;${f6.api}/open-api&quot;) public interface F6HttpInterface"><pre class="notranslate"><span class="pl-c1">@</span><span class="pl-c1">FeignClient</span>(<span class="pl-s1">name</span> = <span class="pl-s">"F6HttpInterFace"</span>,<span class="pl-s1">configuration</span> = <span class="pl-smi">HttpConfig</span>.<span class="pl-k">class</span>, <span class="pl-s1">url</span> = <span class="pl-s">"${f6.api}/open-api"</span>) <span class="pl-k">public</span> <span class="pl-k">interface</span> <span class="pl-s1">F6HttpInterface</span></pre></div> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@Autowired F6HttpInterface f6HttpInterface @Reference private VehicleTypeFacade vehicleTypeFacade;"><pre class="notranslate"><span class="pl-c1">@</span><span class="pl-c1">Autowired</span> <span class="pl-smi">F6HttpInterface</span> <span class="pl-s1">f6HttpInterface</span> <span class="pl-c1">@</span><span class="pl-c1">Reference</span> <span class="pl-k">private</span> <span class="pl-s1">VehicleTypeFacade</span> <span class="pl-s1">vehicleTypeFacade</span>;</pre></div> <ol start="3" dir="auto"> <li>启动 工程</li> </ol> <p dir="auto">看了下代码,应该是<br> openFeign 会创建 AnnotationConfigApplicationContext 并且调用refresh();<br> 所以会发送一个openFeign spring上下文的ContextRefreshedEvent事件<br> 然后dubbo接收,就报错了<br> org.apache.dubbo.config.spring.ServiceBean#onApplicationEvent</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">Spring正常启动</p> <h3 dir="auto">Actual Result</h3> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Caused by: java.lang.IllegalStateException: &lt;dubbo:service interface=&quot;&quot; /&gt; interface not allow null! at org.apache.dubbo.config.ServiceConfig.checkAndUpdateSubConfigs(ServiceConfig.java:276) at org.apache.dubbo.config.ServiceConfig.export(ServiceConfig.java:328) at org.apache.dubbo.config.spring.ServiceBean.export(ServiceBean.java:318) at org.apache.dubbo.config.spring.ServiceBean.onApplicationEvent(ServiceBean.java:112) at org.apache.dubbo.config.spring.ServiceBean.onApplicationEvent(ServiceBean.java:58) at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:400) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:406) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:354) at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:886) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:551) at org.springframework.cloud.context.named.NamedContextFactory.createContext(NamedContextFactory.java:117) at org.springframework.cloud.context.named.NamedContextFactory.getContext(NamedContextFactory.java:85) at org.springframework.cloud.context.named.NamedContextFactory.getInstance(NamedContextFactory.java:126) at org.springframework.cloud.openfeign.FeignClientFactoryBean.get(FeignClientFactoryBean.java:205) at org.springframework.cloud.openfeign.FeignClientFactoryBean.feign(FeignClientFactoryBean.java:84) at org.springframework.cloud.openfeign.FeignClientFactoryBean.getTarget(FeignClientFactoryBean.java:241) at org.springframework.cloud.openfeign.FeignClientFactoryBean.getObject(FeignClientFactoryBean.java:232) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:171) ... 121 common frames omitted"><pre class="notranslate"><span class="pl-smi">Caused</span> <span class="pl-s1">by</span>: <span class="pl-s1">java</span>.<span class="pl-s1">lang</span>.<span class="pl-s1">IllegalStateException</span>: &lt;<span class="pl-s1">dubbo</span>:<span class="pl-s1">service</span> <span class="pl-s1">interface</span>=<span class="pl-s">""</span> /<span class="pl-s1"></span>&gt; <span class="pl-smi">interface</span> <span class="pl-s1">not</span> <span class="pl-s1">allow</span> <span class="pl-c1">null</span>! <span class="pl-smi">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">apache</span>.<span class="pl-s1">dubbo</span>.<span class="pl-s1">config</span>.<span class="pl-s1">ServiceConfig</span>.<span class="pl-en">checkAndUpdateSubConfigs</span>(<span class="pl-smi">ServiceConfig</span>.<span class="pl-smi">java</span>:<span class="pl-c1">276</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">apache</span>.<span class="pl-s1">dubbo</span>.<span class="pl-s1">config</span>.<span class="pl-s1">ServiceConfig</span>.<span class="pl-en">export</span>(<span class="pl-smi">ServiceConfig</span>.<span class="pl-smi">java</span>:<span class="pl-c1">328</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">apache</span>.<span class="pl-s1">dubbo</span>.<span class="pl-s1">config</span>.<span class="pl-s1">spring</span>.<span class="pl-s1">ServiceBean</span>.<span class="pl-en">export</span>(<span class="pl-smi">ServiceBean</span>.<span class="pl-smi">java</span>:<span class="pl-c1">318</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">apache</span>.<span class="pl-s1">dubbo</span>.<span class="pl-s1">config</span>.<span class="pl-s1">spring</span>.<span class="pl-s1">ServiceBean</span>.<span class="pl-en">onApplicationEvent</span>(<span class="pl-smi">ServiceBean</span>.<span class="pl-smi">java</span>:<span class="pl-c1">112</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">apache</span>.<span class="pl-s1">dubbo</span>.<span class="pl-s1">config</span>.<span class="pl-s1">spring</span>.<span class="pl-s1">ServiceBean</span>.<span class="pl-en">onApplicationEvent</span>(<span class="pl-smi">ServiceBean</span>.<span class="pl-smi">java</span>:<span class="pl-c1">58</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">springframework</span>.<span class="pl-s1">context</span>.<span class="pl-s1">event</span>.<span class="pl-s1">SimpleApplicationEventMulticaster</span>.<span class="pl-en">doInvokeListener</span>(<span class="pl-smi">SimpleApplicationEventMulticaster</span>.<span class="pl-smi">java</span>:<span class="pl-c1">172</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">springframework</span>.<span class="pl-s1">context</span>.<span class="pl-s1">event</span>.<span class="pl-s1">SimpleApplicationEventMulticaster</span>.<span class="pl-en">invokeListener</span>(<span class="pl-smi">SimpleApplicationEventMulticaster</span>.<span class="pl-smi">java</span>:<span class="pl-c1">165</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">springframework</span>.<span class="pl-s1">context</span>.<span class="pl-s1">event</span>.<span class="pl-s1">SimpleApplicationEventMulticaster</span>.<span class="pl-en">multicastEvent</span>(<span class="pl-smi">SimpleApplicationEventMulticaster</span>.<span class="pl-smi">java</span>:<span class="pl-c1">139</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">springframework</span>.<span class="pl-s1">context</span>.<span class="pl-s1">support</span>.<span class="pl-s1">AbstractApplicationContext</span>.<span class="pl-en">publishEvent</span>(<span class="pl-smi">AbstractApplicationContext</span>.<span class="pl-smi">java</span>:<span class="pl-c1">400</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">springframework</span>.<span class="pl-s1">context</span>.<span class="pl-s1">support</span>.<span class="pl-s1">AbstractApplicationContext</span>.<span class="pl-en">publishEvent</span>(<span class="pl-smi">AbstractApplicationContext</span>.<span class="pl-smi">java</span>:<span class="pl-c1">406</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">springframework</span>.<span class="pl-s1">context</span>.<span class="pl-s1">support</span>.<span class="pl-s1">AbstractApplicationContext</span>.<span class="pl-en">publishEvent</span>(<span class="pl-smi">AbstractApplicationContext</span>.<span class="pl-smi">java</span>:<span class="pl-c1">354</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">springframework</span>.<span class="pl-s1">context</span>.<span class="pl-s1">support</span>.<span class="pl-s1">AbstractApplicationContext</span>.<span class="pl-en">finishRefresh</span>(<span class="pl-smi">AbstractApplicationContext</span>.<span class="pl-smi">java</span>:<span class="pl-c1">886</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">springframework</span>.<span class="pl-s1">context</span>.<span class="pl-s1">support</span>.<span class="pl-s1">AbstractApplicationContext</span>.<span class="pl-en">refresh</span>(<span class="pl-smi">AbstractApplicationContext</span>.<span class="pl-smi">java</span>:<span class="pl-c1">551</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">springframework</span>.<span class="pl-s1">cloud</span>.<span class="pl-s1">context</span>.<span class="pl-s1">named</span>.<span class="pl-s1">NamedContextFactory</span>.<span class="pl-en">createContext</span>(<span class="pl-smi">NamedContextFactory</span>.<span class="pl-smi">java</span>:<span class="pl-c1">117</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">springframework</span>.<span class="pl-s1">cloud</span>.<span class="pl-s1">context</span>.<span class="pl-s1">named</span>.<span class="pl-s1">NamedContextFactory</span>.<span class="pl-en">getContext</span>(<span class="pl-smi">NamedContextFactory</span>.<span class="pl-smi">java</span>:<span class="pl-c1">85</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">springframework</span>.<span class="pl-s1">cloud</span>.<span class="pl-s1">context</span>.<span class="pl-s1">named</span>.<span class="pl-s1">NamedContextFactory</span>.<span class="pl-en">getInstance</span>(<span class="pl-smi">NamedContextFactory</span>.<span class="pl-smi">java</span>:<span class="pl-c1">126</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">springframework</span>.<span class="pl-s1">cloud</span>.<span class="pl-s1">openfeign</span>.<span class="pl-s1">FeignClientFactoryBean</span>.<span class="pl-en">get</span>(<span class="pl-smi">FeignClientFactoryBean</span>.<span class="pl-smi">java</span>:<span class="pl-c1">205</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">springframework</span>.<span class="pl-s1">cloud</span>.<span class="pl-s1">openfeign</span>.<span class="pl-s1">FeignClientFactoryBean</span>.<span class="pl-en">feign</span>(<span class="pl-smi">FeignClientFactoryBean</span>.<span class="pl-smi">java</span>:<span class="pl-c1">84</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">springframework</span>.<span class="pl-s1">cloud</span>.<span class="pl-s1">openfeign</span>.<span class="pl-s1">FeignClientFactoryBean</span>.<span class="pl-en">getTarget</span>(<span class="pl-smi">FeignClientFactoryBean</span>.<span class="pl-smi">java</span>:<span class="pl-c1">241</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">springframework</span>.<span class="pl-s1">cloud</span>.<span class="pl-s1">openfeign</span>.<span class="pl-s1">FeignClientFactoryBean</span>.<span class="pl-en">getObject</span>(<span class="pl-smi">FeignClientFactoryBean</span>.<span class="pl-smi">java</span>:<span class="pl-c1">232</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">springframework</span>.<span class="pl-s1">beans</span>.<span class="pl-s1">factory</span>.<span class="pl-s1">support</span>.<span class="pl-s1">FactoryBeanRegistrySupport</span>.<span class="pl-en">doGetObjectFromFactoryBean</span>(<span class="pl-smi">FactoryBeanRegistrySupport</span>.<span class="pl-smi">java</span>:<span class="pl-c1">171</span>) ... <span class="pl-c1">121</span> <span class="pl-s1">common</span> <span class="pl-smi">frames</span> <span class="pl-s1">omitted</span></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here! </code></pre></div>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Target</h3> <p dir="auto">Add a generation rule of <code class="notranslate">@Service</code> Bean name in order to avoid duplication and is easy to look-up injected-dependencies.</p> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.6.4</li> <li>Operating System version: all</li> <li>Java version: 1.6-1.8</li> </ul>
0
<p dir="auto">Coming from Python, I was really surprised to find that Julia has no way to execute code after a <code class="notranslate">try</code> block <em>only</em> if no exception/error was caught. Right now it seems the only way to get around this is something like:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="try maybe_raise_exception() unrelated_stuff() more_unrelated() catch stuff() end "><pre class="notranslate"><span class="pl-k">try</span> <span class="pl-c1">maybe_raise_exception</span>() <span class="pl-c1">unrelated_stuff</span>() <span class="pl-c1">more_unrelated</span>() <span class="pl-k">catch</span> <span class="pl-c1">stuff</span>() <span class="pl-k">end</span> </pre></div> <p dir="auto">Whereas the Python code for this would read:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="try: maybe_raise_exception() except SomeException: stuff() else: unrelated_stuff() more_unrelated() "><pre class="notranslate"><span class="pl-k">try</span>: <span class="pl-en">maybe_raise_exception</span>() <span class="pl-k">except</span> <span class="pl-v">SomeException</span>: <span class="pl-en">stuff</span>() <span class="pl-k">else</span>: <span class="pl-en">unrelated_stuff</span>() <span class="pl-en">more_unrelated</span>() </pre></div> <p dir="auto">It seems like bad practice to put code that we aren't worried about causing exceptions/errors in a <code class="notranslate">try</code> block so I'm interested in hearing what others have to say about this.</p> <p dir="auto">e: Alternatively you could do:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="try maybe_raise_exception() noex = true catch stuff() end if noex unrelated_stuff() more_unrelated() end"><pre class="notranslate"><span class="pl-k">try</span> <span class="pl-c1">maybe_raise_exception</span>() noex <span class="pl-k">=</span> <span class="pl-c1">true</span> <span class="pl-k">catch</span> <span class="pl-c1">stuff</span>() <span class="pl-k">end</span> <span class="pl-k">if</span> noex <span class="pl-c1">unrelated_stuff</span>() <span class="pl-c1">more_unrelated</span>() <span class="pl-k">end</span></pre></div> <p dir="auto">Although I do personally prefer the <code class="notranslate">else</code> syntax.</p>
<blockquote> <p dir="auto">master (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/JuliaLang/julia/commit/70b6afa4328d2c4a0aef4c432c85a30eca83aadb/hovercard" href="https://github.com/JuliaLang/julia/commit/70b6afa4328d2c4a0aef4c432c85a30eca83aadb"><tt>70b6afa</tt></a>):</p> </blockquote> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; isequal(Tuple{Vararg{Int, N}} where N) julia&gt; isequal(Tuple{Vararg{Int, N}} where N) ERROR: TypeError: in new, expected DataType, got Type{Tuple{Vararg{Int64, N}} where N} Stacktrace: [1] Base.Fix2(f::typeof(isequal), x::Type{Tuple{Vararg{Int64}}}) @ Base ./operators.jl:1059 [2] isequal(x::Type) @ Base ./operators.jl:1074 [3] top-level scope @ none:1"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-c1">isequal</span>(Tuple{Vararg{Int, N}} <span class="pl-k">where</span> N) julia<span class="pl-k">&gt;</span> <span class="pl-c1">isequal</span>(Tuple{Vararg{Int, N}} <span class="pl-k">where</span> N) ERROR<span class="pl-k">:</span> TypeError<span class="pl-k">:</span> <span class="pl-k">in</span> new, expected DataType, got Type{Tuple{Vararg{Int64, N}} <span class="pl-k">where</span> N} Stacktrace<span class="pl-k">:</span> [<span class="pl-c1">1</span>] Base<span class="pl-k">.</span><span class="pl-c1">Fix2</span>(f<span class="pl-k">::</span><span class="pl-c1">typeof</span>(isequal), x<span class="pl-k">::</span><span class="pl-c1">Type{Tuple{Vararg{Int64}}}</span>) @ Base <span class="pl-k">./</span>operators<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">1059</span> [<span class="pl-c1">2</span>] <span class="pl-c1">isequal</span>(x<span class="pl-k">::</span><span class="pl-c1">Type</span>) @ Base <span class="pl-k">./</span>operators<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">1074</span> [<span class="pl-c1">3</span>] top<span class="pl-k">-</span>level scope @ none<span class="pl-k">:</span><span class="pl-c1">1</span></pre></div> <blockquote> <p dir="auto">1.6-rc1</p> </blockquote> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; isequal(Tuple{Vararg{Int, N}} where N) (::Base.Fix2{typeof(isequal), UnionAll}) (generic function with 1 method)"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-c1">isequal</span>(Tuple{Vararg{Int, N}} <span class="pl-k">where</span> N) (<span class="pl-k">::</span><span class="pl-c1">Base.Fix2{typeof(isequal), UnionAll}</span>) (generic <span class="pl-k">function</span> with <span class="pl-c1">1</span> method)</pre></div> <p dir="auto">I confirmed this issue disappears after checking out to <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/JuliaLang/julia/commit/3635f0473dea7c7254d611e3eaa939e0f6dd9484/hovercard" href="https://github.com/JuliaLang/julia/commit/3635f0473dea7c7254d611e3eaa939e0f6dd9484"><tt>3635f04</tt></a>, so I guess this is caused by <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/JuliaLang/julia/commit/8fc52931fca94f4247f2b0e8f69447f8417d70ab/hovercard" href="https://github.com/JuliaLang/julia/commit/8fc52931fca94f4247f2b0e8f69447f8417d70ab"><tt>8fc5293</tt></a> .</p> <p dir="auto">/cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vtjnash/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vtjnash">@vtjnash</a></p>
0
<p dir="auto">Describe what you were doing when the bug occurred:</p> <ol dir="auto"> <li>Went to profiler tab</li> <li>Record profiler</li> <li>Stop record and got this error</li> </ol> <hr> <h2 dir="auto">Please do not remove the text below this line</h2> <p dir="auto">DevTools version: 4.10.1-f160547f47</p> <p dir="auto">Call stack: at updateTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:19729:21)<br> at getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:19574:26)<br> at ProfilingCache_ProfilingCache.getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:20115:11)<br> at CommitFlamegraphAutoSizer (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:34161:33)<br> at Hh (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:12807:7)<br> at qi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:13457:7)<br> at mk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:16074:86)<br> at lk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:15459:11)<br> at kk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:15451:23)<br> at ck (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:15435:5)</p> <p dir="auto">Component stack: at CommitFlamegraphAutoSizer (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:34144:50)<br> at div<br> at div<br> at div<br> at SettingsModalContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:28206:3)<br> at Profiler_Profiler (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:35772:50)<br> at ErrorBoundary_ErrorBoundary (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29219:5)<br> at PortaledContent (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29336:32)<br> at div<br> at div<br> at ProfilerContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32934:3)<br> at TreeContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:24322:3)<br> at SettingsContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:24811:3)<br> at ModalDialogContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29404:3)<br> at DevTools_DevTools (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:36207:3)</p>
<p dir="auto">Describe what you were doing when the bug occurred:</p> <ol dir="auto"> <li>Profiling <a href="https://recharts.org/en-US/api/LineChart" rel="nofollow">recharts library</a></li> <li>Filtered on commits greater than 3s</li> <li>Walking through the commits doing a next &gt; next</li> </ol> <hr> <h2 dir="auto">Please do not remove the text below this line</h2> <p dir="auto">DevTools version: 4.10.1-f160547f47</p> <p dir="auto">Call stack: at updateTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:19729:21)<br> at getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:19594:26)<br> at ProfilingCache_ProfilingCache.getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:20115:11)<br> at CommitFlamegraphAutoSizer (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:34161:33)<br> at Hh (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:12807:7)<br> at qi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:13457:7)<br> at mk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:16074:86)<br> at lk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:15459:11)<br> at kk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:15451:23)<br> at ck (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:15435:5)</p> <p dir="auto">Component stack: at CommitFlamegraphAutoSizer (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:34144:50)<br> at div<br> at div<br> at div<br> at SettingsModalContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:28206:3)<br> at Profiler_Profiler (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:35772:50)<br> at ErrorBoundary_ErrorBoundary (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29219:5)<br> at PortaledContent (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29336:32)<br> at div<br> at div<br> at ProfilerContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32934:3)<br> at TreeContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:24322:3)<br> at SettingsContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:24811:3)<br> at ModalDialogContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29404:3)<br> at DevTools_DevTools (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:36207:3)</p>
1
<p dir="auto">It seems likely that 0.4 will see a transition to array views (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="26319160" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/5556" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/5556/hovercard" href="https://github.com/JuliaLang/julia/pull/5556">#5556</a>). This change will surely break some code, e.g., for anyone who was relying on the behavior of <code class="notranslate">setindex!</code> applied to the output of <code class="notranslate">A[3:15, 7]</code>. Perhaps we should take the occasion to simultaneously think about another (much worse) breakage.</p> <p dir="auto">As we've gotten less concerned about breaking Matlab compatibility (and as I've learned more about the wider scientific ecosystem), I've increasingly begun to wonder whether NumPy's slicing rules are the right way to go. It's very simple: if you index along a particular dimension with an <code class="notranslate">AbstractVector</code>, that dimension is retained; if you index with a scalar, that dimension is dropped. So for a 2d array <code class="notranslate">A</code>, <code class="notranslate">A[:,:]</code> produces 2d output, <code class="notranslate">A[3,:]</code> and <code class="notranslate">A[:,3]</code> both produce 1d output, and <code class="notranslate">A[3:3,:]</code>, <code class="notranslate">A[:,3:3]</code> both produce 2d output. Note this scheme is type-stable, so AFAICT there are no performance gotchas.</p> <p dir="auto">But wow would it be a breaking change.</p>
<p dir="auto">I fixed complex dot(), but it still does not work correctly. I can't figure out what might be wrong. The only thing I can think of is that the C interface probably does not know how to return complex numbers.</p>
0
<p dir="auto">Consider:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="using BenchmarkTools struct Foo{T} x::T end const m = [1,2,3] const k = 1:3 @btime Foo(k); @btime Foo(m);"><pre class="notranslate"><code class="notranslate">using BenchmarkTools struct Foo{T} x::T end const m = [1,2,3] const k = 1:3 @btime Foo(k); @btime Foo(m); </code></pre></div> <p dir="auto">Output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; @btime Foo(k); 0.029 ns (0 allocations: 0 bytes) julia&gt; @btime Foo(m); 4.952 ns (1 allocation: 16 bytes)"><pre class="notranslate"><code class="notranslate">julia&gt; @btime Foo(k); 0.029 ns (0 allocations: 0 bytes) julia&gt; @btime Foo(m); 4.952 ns (1 allocation: 16 bytes) </code></pre></div> <p dir="auto">It doesn't seem like <code class="notranslate">Foo(m)</code> should allocate when <code class="notranslate">Foo(k)</code> can avoid it.</p> <hr>
<p dir="auto">Add <code class="notranslate">sum_kbn(itr)</code> and <code class="notranslate">sum_kbn(f, itr)</code> methods.</p> <p dir="auto"><a href="https://discourse.julialang.org/t/why-sum-kbn-cant-sum-generators/1717/2" rel="nofollow">https://discourse.julialang.org/t/why-sum-kbn-cant-sum-generators/1717/2</a></p>
0
<p dir="auto"><del><a href="https://pantheon.corp.google.com/storage/browser/kubernetes-jenkins/pr-logs/pull/24138/kubernetes-pull-test-unit-integration/21794" rel="nofollow">https://pantheon.corp.google.com/storage/browser/kubernetes-jenkins/pr-logs/pull/24138/kubernetes-pull-test-unit-integration/21794</a></del><br> Updated external link: <a href="https://console.cloud.google.com/storage/browser/kubernetes-jenkins/pr-logs/pull/24138/kubernetes-pull-test-unit-integration/21794" rel="nofollow">https://console.cloud.google.com/storage/browser/kubernetes-jenkins/pr-logs/pull/24138/kubernetes-pull-test-unit-integration/21794</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="FAIL k8s.io/kubernetes/pkg/storage/etcd3 2.999s"><pre class="notranslate"><code class="notranslate">FAIL k8s.io/kubernetes/pkg/storage/etcd3 2.999s </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="=== RUN TestWatch --- FAIL: TestWatch (0.34s) watcher_test.go:204: #1: ResultChan should have been closed"><pre class="notranslate"><code class="notranslate">=== RUN TestWatch --- FAIL: TestWatch (0.34s) watcher_test.go:204: #1: ResultChan should have been closed </code></pre></div> <p dir="auto">Hit this in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="147791041" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/24138" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/24138/hovercard" href="https://github.com/kubernetes/kubernetes/pull/24138">#24138</a></p> <p dir="auto">@kubernetes/sig-api-machinery</p>
<p dir="auto">It failed in <a href="https://console.cloud.google.com/storage/browser/kubernetes-jenkins/pr-logs/pull/24291/kubernetes-pull-test-unit-integration/22014/" rel="nofollow">https://console.cloud.google.com/storage/browser/kubernetes-jenkins/pr-logs/pull/24291/kubernetes-pull-test-unit-integration/22014/</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--- FAIL: TestWatch (0.81s) watcher_test.go:204: #1: ResultChan should have been closed"><pre class="notranslate"><code class="notranslate">--- FAIL: TestWatch (0.81s) watcher_test.go:204: #1: ResultChan should have been closed </code></pre></div> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/wojtek-t/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/wojtek-t">@wojtek-t</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/xiang90/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/xiang90">@xiang90</a></p>
1
<h3 dir="auto">System Info</h3> <p dir="auto">Each run of the trainer two tfevent files are being generated, it looks like this:<br> /runs<br> --Feb27_09-46-42_...<br> ----events.out.tfevents....0<br> ----/1677491207.0429652<br> ------events.out.tfevents....1</p> <p dir="auto">When reading these files with TensorBoard I don't get any output from the .1 file, how can I get rid of it (because these clutter my TensorBoard) or get actual data from it?</p> <p dir="auto">Thanks in advance</p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/sgugger/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/sgugger">@sgugger</a></p> <h3 dir="auto">Who can help?</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Information</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> The official example scripts</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> My own modified scripts</li> </ul> <h3 dir="auto">Tasks</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> An officially supported task in the <code class="notranslate">examples</code> folder (such as GLUE/SQuAD, ...)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> My own task or dataset (give details below)</li> </ul> <h3 dir="auto">Reproduction</h3> <p dir="auto">Simply starting any training.</p> <h3 dir="auto">Expected behavior</h3> <p dir="auto">One tfevents file or a valid output from the .1 file.</p>
<p dir="auto">Hello,</p> <p dir="auto">I wanted to use Roberta for Sentence classification on protein sequences which I have converted into sentences. So first I train a tokenizer for my custom vocabulary.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="tokenizer.train(&quot;bert_vocab.txt&quot;,vocab_size=8000,special_tokens=[ &quot;[CLS]&quot;, &quot;[SEP]&quot;, &quot;[UNK]&quot;, &quot;[MASK]&quot;, ]) tokenizer.save_model(&quot;EsperBERTo&quot;) from tokenizers.implementations import CharBPETokenizer from tokenizers.processors import BertProcessing tokenizer._tokenizer.post_processor = BertProcessing((&quot;[SEP]&quot;, tokenizer.token_to_id(&quot;[SEP]&quot;)), (&quot;[CLS]&quot;, tokenizer.token_to_id(&quot;[CLS]&quot;)),) print(tokenizer.encode(&quot;AAA ATA AKA&quot;)) print(tokenizer.encode(&quot;AAA ATA AKA&quot;).tokens) tokenizer.enable_truncation(max_length=512) import torch torch.cuda.is_available() from transformers import RobertaConfig config = RobertaConfig( vocab_size=8000, max_position_embeddings=514, num_attention_heads=12, num_hidden_layers=6, type_vocab_size=1, ) from transformers import RobertaTokenizerFast tokenizer = RobertaTokenizerFast.from_pretrained(&quot;./EsperBERTo&quot;, max_len=512) "><pre lang="tokenizer" class="notranslate"><code class="notranslate">tokenizer.train("bert_vocab.txt",vocab_size=8000,special_tokens=[ "[CLS]", "[SEP]", "[UNK]", "[MASK]", ]) tokenizer.save_model("EsperBERTo") from tokenizers.implementations import CharBPETokenizer from tokenizers.processors import BertProcessing tokenizer._tokenizer.post_processor = BertProcessing(("[SEP]", tokenizer.token_to_id("[SEP]")), ("[CLS]", tokenizer.token_to_id("[CLS]")),) print(tokenizer.encode("AAA ATA AKA")) print(tokenizer.encode("AAA ATA AKA").tokens) tokenizer.enable_truncation(max_length=512) import torch torch.cuda.is_available() from transformers import RobertaConfig config = RobertaConfig( vocab_size=8000, max_position_embeddings=514, num_attention_heads=12, num_hidden_layers=6, type_vocab_size=1, ) from transformers import RobertaTokenizerFast tokenizer = RobertaTokenizerFast.from_pretrained("./EsperBERTo", max_len=512) </code></pre></div> <p dir="auto">When i try to train the model, i get the error <code class="notranslate">ValueError: Expected input batch_size (64) to match target batch_size (8192).</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="model = RobertaForSequenceClassification(config=config) model.num_parameters() from transformers import DataCollatorForLanguageModeling from transformers import LineByLineTextDataset dataset = LineByLineTextDataset( tokenizer=tokenizer, file_path=&quot;bert_data.txt&quot;, block_size=64, ) data_collator = DataCollatorForLanguageModeling( tokenizer=tokenizer) from transformers import Trainer, TrainingArguments training_args = TrainingArguments( output_dir=&quot;./EsperBERTo&quot;, overwrite_output_dir=True, num_train_epochs=100, per_device_train_batch_size=64, save_steps=10_000, save_total_limit=2, ) trainer = Trainer( model=model, args=training_args, data_collator=data_collator, train_dataset=dataset, prediction_loss_only=True, ) trainer.train() trainer.save_model(&quot;./EsperBERTo&quot;)"><pre class="notranslate"><code class="notranslate">model = RobertaForSequenceClassification(config=config) model.num_parameters() from transformers import DataCollatorForLanguageModeling from transformers import LineByLineTextDataset dataset = LineByLineTextDataset( tokenizer=tokenizer, file_path="bert_data.txt", block_size=64, ) data_collator = DataCollatorForLanguageModeling( tokenizer=tokenizer) from transformers import Trainer, TrainingArguments training_args = TrainingArguments( output_dir="./EsperBERTo", overwrite_output_dir=True, num_train_epochs=100, per_device_train_batch_size=64, save_steps=10_000, save_total_limit=2, ) trainer = Trainer( model=model, args=training_args, data_collator=data_collator, train_dataset=dataset, prediction_loss_only=True, ) trainer.train() trainer.save_model("./EsperBERTo") </code></pre></div> <p dir="auto">I understand i do not specify the output labels anywhere in the code but I am yet to find any example which I could follow to figure this.</p>
0
<p dir="auto">Not sure how much room there is to improve this, but the error message for the following user error doesn't provide much information about where the error occurs:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; struct Inner{T} x::T end julia&gt; struct Outer{T} y1::Inner{T} y2::Inner{T} y3:Inner{T} # This single colon is where the user error occurs end ERROR: UndefVarError: T not defined Stacktrace: [1] top-level scope at REPL[2]:1"><pre class="notranslate"><code class="notranslate">julia&gt; struct Inner{T} x::T end julia&gt; struct Outer{T} y1::Inner{T} y2::Inner{T} y3:Inner{T} # This single colon is where the user error occurs end ERROR: UndefVarError: T not defined Stacktrace: [1] top-level scope at REPL[2]:1 </code></pre></div> <p dir="auto">This occurs for me on:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Julia Version 1.4.1 Commit 381693d3df (2020-04-14 17:20 UTC) Platform Info: OS: macOS (x86_64-apple-darwin19.3.0) CPU: Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-8.0.1 (ORCJIT, skylake)"><pre class="notranslate"><code class="notranslate">Julia Version 1.4.1 Commit 381693d3df (2020-04-14 17:20 UTC) Platform Info: OS: macOS (x86_64-apple-darwin19.3.0) CPU: Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-8.0.1 (ORCJIT, skylake) </code></pre></div>
<p dir="auto">As <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/StefanKarpinski/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/StefanKarpinski">@StefanKarpinski</a> noted <a href="https://github.com/kmsquire/Logging.jl/issues/19#issuecomment-97455706" data-hovercard-type="issue" data-hovercard-url="/kmsquire/Logging.jl/issues/19/hovercard">here</a>, it would be nice to have (very basic) logging as part of Base, which logs messages to output (STDOUT or other). This could then be extended by packages to add more complicated logging features (syslog, etc.).</p> <p dir="auto">Some ideas:</p> <ul dir="auto"> <li>Use/add standard log level functions (<code class="notranslate">info</code>, <code class="notranslate">warn</code>, <code class="notranslate">error</code>, <code class="notranslate">debug</code>, <code class="notranslate">critical</code>) to <code class="notranslate">Base</code>, perhaps wrapped in a module (<code class="notranslate">Logging.info</code>, <code class="notranslate">Logging.debug</code>, etc.)</li> <li>Define a new interface with a single <code class="notranslate">log</code> function (<code class="notranslate">Logging.log(DEBUG, "some debug message"); Logging.log(INFO, "Here's some info")</code>, etc.)</li> </ul> <p dir="auto">Thoughts? If we go with the first idea above, I would propose to move <code class="notranslate">Logging.jl</code> to the <code class="notranslate">JuliaLang</code> organization as a start.</p> <p dir="auto">For additional reference and ideas, current logging packages include my <a href="https://github.com/kmsquire/Logging.jl"><code class="notranslate">Logging.jl</code></a> and <a href="https://github.com/forio/Lumberjack.jl"><code class="notranslate">Lumberjack.jl</code></a>.</p>
0
<h3 dir="auto">Apache Airflow version</h3> <p dir="auto">2.1.4</p> <h3 dir="auto">Operating System</h3> <p dir="auto">Amazon Linux 2 AMI</p> <h3 dir="auto">Versions of Apache Airflow Providers</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Deployment</h3> <p dir="auto">Other</p> <h3 dir="auto">Deployment details</h3> <p dir="auto">Cloudformation template based on <a href="https://github.com/villasv/aws-airflow-stack/blob/v2/aws/cloud-formation-template.yml">https://github.com/villasv/aws-airflow-stack/blob/v2/aws/cloud-formation-template.yml</a></p> <h3 dir="auto">What happened</h3> <p dir="auto">DAG can have multiple active runs despite of <code class="notranslate">max_active_runs</code> set to 1 when it is triggered externally from TriggerDagRunOperator</p> <h3 dir="auto">What you expected to happen</h3> <p dir="auto">If DAG has max_active_runs = 1 it should never be started more than once</p> <h3 dir="auto">How to reproduce</h3> <p dir="auto">DAG <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="69689814" data-permission-text="Title is private" data-url="https://github.com/apache/airflow/issues/1" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/1/hovercard" href="https://github.com/apache/airflow/pull/1">#1</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="with DAG('dag_1', default_args=default_args, max_active_runs=1, start_date=datetime(2021, 11, 1), schedule_interval=&quot;* * * * *&quot;, dagrun_timeout=timedelta(minutes=1), catchup=False) as dag: TriggerDagRunOperator(task_id='trigger_dag_2', trigger_dag_id='dag_2')"><pre class="notranslate"><code class="notranslate">with DAG('dag_1', default_args=default_args, max_active_runs=1, start_date=datetime(2021, 11, 1), schedule_interval="* * * * *", dagrun_timeout=timedelta(minutes=1), catchup=False) as dag: TriggerDagRunOperator(task_id='trigger_dag_2', trigger_dag_id='dag_2') </code></pre></div> <p dir="auto">DAG <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="69690133" data-permission-text="Title is private" data-url="https://github.com/apache/airflow/issues/2" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/2/hovercard" href="https://github.com/apache/airflow/pull/2">#2</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from airflow.operators.bash import BashOperator with DAG('dag_2', default_args=default_args, max_active_runs=1, start_date=datetime(2021, 11, 1), schedule_interval=None, dagrun_timeout=timedelta(minutes=10), catchup=False) as dag: BashOperator( task_id=&quot;dag_keeper&quot;, bash_command=&quot;sleep 5m&quot; )"><pre class="notranslate"><code class="notranslate">from airflow.operators.bash import BashOperator with DAG('dag_2', default_args=default_args, max_active_runs=1, start_date=datetime(2021, 11, 1), schedule_interval=None, dagrun_timeout=timedelta(minutes=10), catchup=False) as dag: BashOperator( task_id="dag_keeper", bash_command="sleep 5m" ) </code></pre></div> <h3 dir="auto">Anything else</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Are you willing to submit PR?</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li> </ul> <h3 dir="auto">Code of Conduct</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li> </ul>
<h3 dir="auto">Apache Airflow version</h3> <p dir="auto">2.1.4 (latest released)</p> <h3 dir="auto">Operating System</h3> <p dir="auto">Ubuntu 20.04</p> <h3 dir="auto">Versions of Apache Airflow Providers</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Deployment</h3> <p dir="auto">Virtualenv installation</p> <h3 dir="auto">Deployment details</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">What happened</h3> <p dir="auto"><code class="notranslate">max_active_runs</code> isn't respected when dag is triggered externally by TriggerDagRunOperator</p> <h3 dir="auto">What you expected to happen</h3> <p dir="auto">Limit number of concurrent runs specified by <code class="notranslate">max_active_runs</code> ,subsequent dag runs should be allocated on new queue state</p> <h3 dir="auto">How to reproduce</h3> <p dir="auto">Modify example_dags\example_trigger_target_dag.py to limit <code class="notranslate">max_active_runs = 2 </code> and add time.sleep for test convenience :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" from airflow import DAG from airflow.operators.bash import BashOperator from airflow.operators.python import PythonOperator from airflow.utils.dates import days_ago def run_this_func(**context): &quot;&quot;&quot; Print the payload &quot;message&quot; passed to the DagRun conf attribute. :param context: The execution context :type context: dict &quot;&quot;&quot; import time time.sleep(10) print(f&quot;Remotely received value of {context['dag_run'].conf['message']} for key=message&quot;) with DAG( dag_id=&quot;example_trigger_target_dag&quot;, default_args={&quot;owner&quot;: &quot;airflow&quot;}, start_date=days_ago(2), schedule_interval=None, max_active_runs=2, tags=['example'], ) as dag: run_this = PythonOperator(task_id=&quot;run_this&quot;, python_callable=run_this_func) bash_task = BashOperator( task_id=&quot;bash_task&quot;, bash_command='echo &quot;Here is the message: $message&quot;', env={'message': '{{ dag_run.conf[&quot;message&quot;] if dag_run else &quot;&quot; }}'}, ) "><pre class="notranslate"><code class="notranslate"> from airflow import DAG from airflow.operators.bash import BashOperator from airflow.operators.python import PythonOperator from airflow.utils.dates import days_ago def run_this_func(**context): """ Print the payload "message" passed to the DagRun conf attribute. :param context: The execution context :type context: dict """ import time time.sleep(10) print(f"Remotely received value of {context['dag_run'].conf['message']} for key=message") with DAG( dag_id="example_trigger_target_dag", default_args={"owner": "airflow"}, start_date=days_ago(2), schedule_interval=None, max_active_runs=2, tags=['example'], ) as dag: run_this = PythonOperator(task_id="run_this", python_callable=run_this_func) bash_task = BashOperator( task_id="bash_task", bash_command='echo "Here is the message: $message"', env={'message': '{{ dag_run.conf["message"] if dag_run else "" }}'}, ) </code></pre></div> <p dir="auto">And manually trigger multiple runs of example_trigger_controller_dag :</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/10963531/135154981-304f145b-7e96-43d6-9f06-e7a565922206.PNG"><img src="https://user-images.githubusercontent.com/10963531/135154981-304f145b-7e96-43d6-9f06-e7a565922206.PNG" alt="max_active_run_ignored" style="max-width: 100%;"></a></p> <h3 dir="auto">Anything else</h3> <p dir="auto">Same behavior if triggered with cli:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" for i in {1..10}; do airflow dags trigger example_trigger_target_dag -c '{&quot;message&quot;: &quot;Hello World&quot;}'; done"><pre class="notranslate"><code class="notranslate"> for i in {1..10}; do airflow dags trigger example_trigger_target_dag -c '{"message": "Hello World"}'; done </code></pre></div> <h3 dir="auto">Are you willing to submit PR?</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li> </ul> <h3 dir="auto">Code of Conduct</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li> </ul>
1
<p dir="auto">The recompose dependency doesn't have the createHelper.js file.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228130428" data-permission-text="Title is private" data-url="https://github.com/acdlite/recompose/issues/380" data-hovercard-type="issue" data-hovercard-url="/acdlite/recompose/issues/380/hovercard" href="https://github.com/acdlite/recompose/issues/380">acdlite/recompose#380</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">I would like to be able to set some custom alignment for the data within my tables and I'm wondering if it is possible. Currently, all my data aligns to the left, which is not the ideal experience when dealing with numbers.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25948209/33173920-e6d380ca-d090-11e7-859e-c355aff90078.png"><img src="https://user-images.githubusercontent.com/25948209/33173920-e6d380ca-d090-11e7-859e-c355aff90078.png" alt="screen shot 2017-11-23 at 8 54 55 pm" style="max-width: 100%;"></a></p> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>v.0.19.4</td> </tr> <tr> <td>React</td> <td></td> </tr> <tr> <td>browser</td> <td></td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table>
0
<p dir="auto">I've just installed scrapy and I'm trying to just run "scrapy shell" command, yet am somehow met with a weird error, see output below:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PC:~ user$ scrapy shell 2018-09-24 06:12:34 [scrapy.utils.log] INFO: Scrapy 1.5.1 started (bot: scrapybot) 2018-09-24 06:12:34 [scrapy.utils.log] INFO: Versions: lxml 4.2.5.0, libxml2 2.9.8, cssselect 1.0.3, parsel 1.5.0, w3lib 1.19.0, Twisted 18.7.0, Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 26 2018, 23:26:24) - [Clang 6.0 (clang-600.0.57)], pyOpenSSL 18.0.0 (OpenSSL 1.1.0i 14 Aug 2018), cryptography 2.3.1, Platform Darwin-17.4.0-x86_64-i386-64bit 2018-09-24 06:12:34 [scrapy.crawler] INFO: Overridden settings: {'DUPEFILTER_CLASS': 'scrapy.dupefilters.BaseDupeFilter', 'LOGSTATS_INTERVAL': 0} Traceback (most recent call last): File &quot;/Library/Frameworks/Python.framework/Versions/3.7/bin/scrapy&quot;, line 11, in &lt;module&gt; sys.exit(execute()) File &quot;/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/scrapy/cmdline.py&quot;, line 150, in execute _run_print_help(parser, _run_command, cmd, args, opts) File &quot;/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/scrapy/cmdline.py&quot;, line 90, in _run_print_help func(*a, **kw) File &quot;/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/scrapy/cmdline.py&quot;, line 157, in _run_command cmd.run(args, opts) File &quot;/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/scrapy/commands/shell.py&quot;, line 65, in run crawler = self.crawler_process._create_crawler(spidercls) File &quot;/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/scrapy/crawler.py&quot;, line 203, in _create_crawler return Crawler(spidercls, self.settings) File &quot;/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/scrapy/crawler.py&quot;, line 55, in __init__ self.extensions = ExtensionManager.from_crawler(self) File &quot;/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/scrapy/middleware.py&quot;, line 58, in from_crawler return cls.from_settings(crawler.settings, crawler) File &quot;/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/scrapy/middleware.py&quot;, line 34, in from_settings mwcls = load_object(clspath) File &quot;/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/scrapy/utils/misc.py&quot;, line 44, in load_object mod = import_module(module) File &quot;/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/__init__.py&quot;, line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 1006, in _gcd_import File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 983, in _find_and_load File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 967, in _find_and_load_unlocked File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 677, in _load_unlocked File &quot;&lt;frozen importlib._bootstrap_external&gt;&quot;, line 728, in exec_module File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 219, in _call_with_frames_removed File &quot;/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/scrapy/extensions/telnet.py&quot;, line 12, in &lt;module&gt; from twisted.conch import manhole, telnet File &quot;/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/twisted/conch/manhole.py&quot;, line 154 def write(self, data, async=False): ^ SyntaxError: invalid syntax PC:~ user$ "><pre class="notranslate"><code class="notranslate">PC:~ user$ scrapy shell 2018-09-24 06:12:34 [scrapy.utils.log] INFO: Scrapy 1.5.1 started (bot: scrapybot) 2018-09-24 06:12:34 [scrapy.utils.log] INFO: Versions: lxml 4.2.5.0, libxml2 2.9.8, cssselect 1.0.3, parsel 1.5.0, w3lib 1.19.0, Twisted 18.7.0, Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 26 2018, 23:26:24) - [Clang 6.0 (clang-600.0.57)], pyOpenSSL 18.0.0 (OpenSSL 1.1.0i 14 Aug 2018), cryptography 2.3.1, Platform Darwin-17.4.0-x86_64-i386-64bit 2018-09-24 06:12:34 [scrapy.crawler] INFO: Overridden settings: {'DUPEFILTER_CLASS': 'scrapy.dupefilters.BaseDupeFilter', 'LOGSTATS_INTERVAL': 0} Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/bin/scrapy", line 11, in &lt;module&gt; sys.exit(execute()) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/scrapy/cmdline.py", line 150, in execute _run_print_help(parser, _run_command, cmd, args, opts) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/scrapy/cmdline.py", line 90, in _run_print_help func(*a, **kw) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/scrapy/cmdline.py", line 157, in _run_command cmd.run(args, opts) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/scrapy/commands/shell.py", line 65, in run crawler = self.crawler_process._create_crawler(spidercls) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/scrapy/crawler.py", line 203, in _create_crawler return Crawler(spidercls, self.settings) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/scrapy/crawler.py", line 55, in __init__ self.extensions = ExtensionManager.from_crawler(self) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/scrapy/middleware.py", line 58, in from_crawler return cls.from_settings(crawler.settings, crawler) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/scrapy/middleware.py", line 34, in from_settings mwcls = load_object(clspath) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/scrapy/utils/misc.py", line 44, in load_object mod = import_module(module) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "&lt;frozen importlib._bootstrap&gt;", line 1006, in _gcd_import File "&lt;frozen importlib._bootstrap&gt;", line 983, in _find_and_load File "&lt;frozen importlib._bootstrap&gt;", line 967, in _find_and_load_unlocked File "&lt;frozen importlib._bootstrap&gt;", line 677, in _load_unlocked File "&lt;frozen importlib._bootstrap_external&gt;", line 728, in exec_module File "&lt;frozen importlib._bootstrap&gt;", line 219, in _call_with_frames_removed File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/scrapy/extensions/telnet.py", line 12, in &lt;module&gt; from twisted.conch import manhole, telnet File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/twisted/conch/manhole.py", line 154 def write(self, data, async=False): ^ SyntaxError: invalid syntax PC:~ user$ </code></pre></div> <p dir="auto">I'm having a lot of trouble finding any hits on google for similar errors, might anyone have some insight here?</p>
<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>
1
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=npadgett" rel="nofollow">Nick Padgett</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-5660?redirect=false" rel="nofollow">SPR-5660</a></strong> and commented</p> <p dir="auto">I am currently ingesting JSON through the servlet request body. In order to take advantage of Spring's data binding, I extend ServletRequestDataBinder and override bind(ServletRequest). The problem with ServletRequestDataBinder is that I cannot call super.bind(ServletRequest) and still do something useful. Instead, I am forced to duplicate the code from super.bind(ServletRequest). See JacksonJsonServletRequestDataBinder.java.</p> <p dir="auto">Please add a method similar to extensibleBind(ServletRequest) to ServletRequestDataBinder.</p> <p dir="auto">Or, allow me to register a custom class that can resolve MutablePropertyValues. This second approach would alleviate the need for me to additionally extend AnnotationMethodHandlerAdapter to register a custom ServletRequestDataBinder. See JacksonJsonAnnotationMethodHandlerAdapter.java.<br> \<br> \</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="public class JacksonJsonServletRequestDataBinder extends ServletRequestDataBinder { public JacksonJsonServletRequestDataBinder(Object target, String objectName) { super(target, objectName); } @Override public void bind(ServletRequest request) { MutablePropertyValues mpvs = new ServletRequestParameterPropertyValues(request); if (request instanceof MultipartHttpServletRequest) { MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request; bindMultipartFiles(multipartRequest.getFileMap(), mpvs); } extensibleBind(request); doBind(mpvs); } protected void extensibleBind(ServletRequest request) { // parseJsonObject(request, mpvs); } }"><pre class="notranslate"><code class="notranslate">public class JacksonJsonServletRequestDataBinder extends ServletRequestDataBinder { public JacksonJsonServletRequestDataBinder(Object target, String objectName) { super(target, objectName); } @Override public void bind(ServletRequest request) { MutablePropertyValues mpvs = new ServletRequestParameterPropertyValues(request); if (request instanceof MultipartHttpServletRequest) { MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request; bindMultipartFiles(multipartRequest.getFileMap(), mpvs); } extensibleBind(request); doBind(mpvs); } protected void extensibleBind(ServletRequest request) { // parseJsonObject(request, mpvs); } } </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Component public class JacksonJsonAnnotationMethodHandlerAdapter extends AnnotationMethodHandlerAdapter { @Override protected ServletRequestDataBinder createBinder(HttpServletRequest request, Object target, String objectName) { return new JacksonJsonServletRequestDataBinder(target, objectName); } }"><pre class="notranslate"><code class="notranslate">@Component public class JacksonJsonAnnotationMethodHandlerAdapter extends AnnotationMethodHandlerAdapter { @Override protected ServletRequestDataBinder createBinder(HttpServletRequest request, Object target, String objectName) { return new JacksonJsonServletRequestDataBinder(target, objectName); } } </code></pre></div> <hr> <p dir="auto">No further details from <a href="https://jira.spring.io/browse/SPR-5660?redirect=false" rel="nofollow">SPR-5660</a></p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=sivabbl" rel="nofollow">Sivakumar</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-4869?redirect=false" rel="nofollow">SPR-4869</a></strong> and commented</p> <p dir="auto">I am getting below error while I am deploy in to the weblogic Can any one suggest the solution for this error:</p> <hr> <p dir="auto">org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unexpected failure during bean definition parsing<br> Offending resource: ServletContext resource [/WEB-INF/test-servlet.xml]<br> Bean 'yyyy'; nested exception is org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Multiple 'property' definitions for property 'zzzz'<br> Offending resource: ServletContext resource [/WEB-INF/test-servlet.xml]<br> Bean 'yyyy'<br> -&gt; Property 'zzzz'<br> at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)<br> at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)<br> at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.error(BeanDefinitionParserDelegate.java:288)<br> at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement(BeanDefinitionParserDelegate.java:573)<br> at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement(BeanDefinitionParserDelegate.java:389)<br> at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement(BeanDefinitionParserDelegate.java:358)<br> at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.processBeanDefinition(DefaultBeanDefinitionDocumentReader.java:239)<br> at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseDefaultElement(DefaultBeanDefinitionDocumentReader.java:153)<br> at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:132)<br> at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92)<br> at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:507)<br> at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:398)<br> at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)<br> at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)<br> at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)<br> at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)<br> at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)<br> at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124)<br> at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:92)<br> at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)<br> at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:423)<br> at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:353)<br> at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:402)<br> at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:316)<br> at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:282)<br> at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:126)<br> at javax.servlet.GenericServlet.init(GenericServlet.java:258)<br> at weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(ServletStubImpl.java:1028)<br> at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)<br> at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)<br> at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:904)<br> at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:883)<br> at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:822)<br> at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:535)<br> at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:373)<br> at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)<br> at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718)<br> at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)<br> at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)<br> at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)<br> at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)<br> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)<br> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)<br> Caused by: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Multiple 'property' definitions for property 'zzzz'<br> Offending resource: ServletContext resource [/WEB-INF/test-servlet.xml]<br> Bean 'editFolder'<br> -&gt; Property 'zzzz'<br> at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)<br> at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)<br> at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:80)<br> at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.error(BeanDefinitionParserDelegate.java:281)<br> at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parsePropertyElement(BeanDefinitionParserDelegate.java:780)<br> at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parsePropertyElements(BeanDefinitionParserDelegate.java:659)<br> at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement(BeanDefinitionParserDelegate.java:558)<br> ... 39 more</p> <p dir="auto">class name org.springframework.web.context.support.XmlWebApplicationContext<br> is an instance of wac<br> sc ServletContext(id=29757300,name=webapp,context-path=/webapp)</p> <hr> <p dir="auto"><strong>Affects:</strong> 2.5.4</p>
0
<p dir="auto">Hello,<br> while running the program at <a href="https://github.com/raintank/raintank-metric/tree/master/metric_tank">https://github.com/raintank/raintank-metric/tree/master/metric_tank</a><br> I'm seeing mark-and-scan times of <del>15s cpu time, 2000</del>2500 ms clock time. (8 core system) for a heap of about 6.5GB<br> (STW pauses are fine and ~1ms)<br> I used <a href="https://circleci.com/gh/raintank/raintank-metric/507" rel="nofollow">https://circleci.com/gh/raintank/raintank-metric/507</a> to obtain the data below.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ metric_tank --version metrics_tank (built with go1.6, git hash 8897ef4f8f8f1a2585ee88ecadee501bfc1a4139) $ go version go version go1.6 linux/amd64 $ uname -a #on the host where the app runs Linux metric-tank-3-qa 3.19.0-43-generic #49~14.04.1-Ubuntu SMP Thu Dec 31 15:44:49 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux"><pre class="notranslate"><code class="notranslate">$ metric_tank --version metrics_tank (built with go1.6, git hash 8897ef4f8f8f1a2585ee88ecadee501bfc1a4139) $ go version go version go1.6 linux/amd64 $ uname -a #on the host where the app runs Linux metric-tank-3-qa 3.19.0-43-generic #49~14.04.1-Ubuntu SMP Thu Dec 31 15:44:49 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux </code></pre></div> <p dir="auto">I know the app is currently not optimized for GC workload: while i've gotten allocations down in various parts of the program there are currently probably about a million or more live pointers referencing pieces of data. I was going to work on optimizing this when Dave Cheney suggested there's a problem with the runtime and I should file a bug (<a href="https://groups.google.com/forum/#!topic/golang-nuts/Q0rXKYjy1cg" rel="nofollow">https://groups.google.com/forum/#!topic/golang-nuts/Q0rXKYjy1cg</a>)<br> Here's the log with gctrace and schedtrace enabled: <a href="https://gist.githubusercontent.com/Dieterbe/18453451c5af0cdececa/raw/9c4f2abd85bb7a815c6cda5c1828334d3d29817d/log.txt" rel="nofollow">https://gist.githubusercontent.com/Dieterbe/18453451c5af0cdececa/raw/9c4f2abd85bb7a815c6cda5c1828334d3d29817d/log.txt</a></p> <p dir="auto">at <a href="http://dieter.plaetinck.be/files/go/mt3-qa-gc-vs-no-gc.zip" rel="nofollow">http://dieter.plaetinck.be/files/go/mt3-qa-gc-vs-no-gc.zip</a> you'll find a zip containing this log, the binary, a cpu profile taken during gc run 1482, and a cpu and heap profile in between run 1482 and 1483</p> <p dir="auto">I also have these two dashboards that seem useful. (they both end just after the spike induced by GC run 1482)<br> <a href="https://snapshot.raintank.io/dashboard/snapshot/MtLqvc4F6015zbs4iMQSPzfizvG7OQjC" rel="nofollow">https://snapshot.raintank.io/dashboard/snapshot/MtLqvc4F6015zbs4iMQSPzfizvG7OQjC</a><br> shows memory usage, GC runs and STW pause times. it also shows that incoming load (requests) of the app is constant so this conveys to me that any extra load is caused by GC, not by changing workload<br> <a href="https://snapshot.raintank.io/dashboard/snapshot/c2zwTZCF7BmfyzEuGF6cHN9GX9aM1V99" rel="nofollow">https://snapshot.raintank.io/dashboard/snapshot/c2zwTZCF7BmfyzEuGF6cHN9GX9aM1V99</a><br> this shows the system stats. note the cpu spikes corresponding to the GC workload.</p> <p dir="auto">let me know if there's anything else I can provide,<br> thanks,<br> Dieter.</p>
<p dir="auto">by <strong><a href="mailto:[email protected]">[email protected]</a></strong>:</p> <pre class="notranslate">Anchor link history for Golang API web pages is broken when browsing with Firefox. For example: 1. browse to <a href="http://golang.org/pkg/net/" rel="nofollow">http://golang.org/pkg/net/</a> 2. click on any of the items in the index. You will be auto-scrolled down to the item heading 4. Click back button...nothing happens Back button should take you back to the index. By trial and error, I've discovered that removing the stylesheet from the following line fixes the issue: &lt;div id="mainframe" style="position: fixed; bottom: 0; top:0; overflow: auto; width: 100%;"&gt; I'm not sure why this stylesheet is a problem for Firefox. Posting here so that others can provide some insight. Tested using Firefox 30.0 on Fedora 20 x86_64. Also confirmed this issue with others on #go-nuts irc channel.</pre>
0
<p dir="auto"><a href="https://bitbucket.org/tiran/storeroom/" rel="nofollow">https://bitbucket.org/tiran/storeroom/</a></p>
<p dir="auto">We really need to automate this and have an official workflow and policy for security releases.</p> <p dir="auto">Fixes <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="20603230" data-permission-text="Title is private" data-url="https://github.com/psf/requests/issues/1655" data-hovercard-type="issue" data-hovercard-url="/psf/requests/issues/1655/hovercard" href="https://github.com/psf/requests/issues/1655">#1655</a></p> <h3 dir="auto">TODO:</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Automate CA Bundle generation</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Establish documented security policy</li> </ul> <h3 dir="auto">See Also:</h3> <ul dir="auto"> <li><a href="http://www.python.org/dev/peps/pep-0453/#security-considerations" rel="nofollow">PEP 453 Security Considerations</a></li> <li><a href="https://github.com/kennethreitz/cert-playground">kennethreitz/cert-playground</a></li> </ul>
1
<p dir="auto">Summary: there is some non-deterministic crash while doing <code class="notranslate">make check</code> that is easier for me to reproduce when I set environment variable <code class="notranslate">RUST_THREADS=2</code> during the <code class="notranslate">make check</code>. This is on a build with both <code class="notranslate">--enable-debug</code> and <code class="notranslate">--enable-optimize</code>; I am not sure if removing those options actually makes the bug go away, or merely makes it harder to reproduce. (Update: <code class="notranslate">--enable-optimize</code> is not relevant; it can be toggled on/off and the bug persists.)</p> <p dir="auto">It appears to have been injected by commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rust-lang/rust/commit/41dcec2fe16e272016ae77d10a6a5ff3a737f192/hovercard" href="https://github.com/rust-lang/rust/commit/41dcec2fe16e272016ae77d10a6a5ff3a737f192"><tt>41dcec2</tt></a></p> <p dir="auto">This is a merge commit by bors; its parent supplied by bors is: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rust-lang/rust/commit/137d1fb210a844a76f89d7355a1aaf9f7a88af33/hovercard" href="https://github.com/rust-lang/rust/commit/137d1fb210a844a76f89d7355a1aaf9f7a88af33"><tt>137d1fb</tt></a></p> <p dir="auto">Things seem to work fine on the parent.</p> <p dir="auto"><br> I found during my attempts to bisect the history that I could not trust our build infrastructure to reliably update LLVM source and/or rebuild the object code (perhaps for LLVM or perhaps elsewhere), so I got in the habit of deleting the both the LLVM source tree and the entire build tree (and re-running configure) during the bisection. This of course makes the build take a bit longer. (But maybe now that I have narrowed it to this particular merge, perhaps one can be less conservative with how much cleanup one does before testing.)</p> <p dir="auto">So, to reproduce, here is the command I was running in the build tree:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export RUST_THREADS=2 ; git log -1 ; echo ; echo ; rm -rf ../src/llvm/ ; rm -rf * ; echo ; echo ; /Users/pnkfelix/Dev/Mozilla/rust.git/configure --enable-debug --enable-optimize --enable-clang --prefix=~/opt/rust-dbg ; remake clean clean-llvm ; time make check "><pre class="notranslate"><code class="notranslate">export RUST_THREADS=2 ; git log -1 ; echo ; echo ; rm -rf ../src/llvm/ ; rm -rf * ; echo ; echo ; /Users/pnkfelix/Dev/Mozilla/rust.git/configure --enable-debug --enable-optimize --enable-clang --prefix=~/opt/rust-dbg ; remake clean clean-llvm ; time make check </code></pre></div> <p dir="auto">(There is certainly steps that can be omitted from the above, like the <code class="notranslate">git log -1</code>, which was for my own logging purposes while I bisected. <code class="notranslate">remake</code> is the fork of GNU make I often use: <a href="http://bashdb.sourceforge.net/remake/" rel="nofollow">remake</a>, but that is almost certainly orthogonal.)</p> <p dir="auto">I wish I had better information (either a more specific commit from the originating branch, or a narrow test test), but as of yet I have not been able to gather such. I'm mostly filing this so that I keep a log of the crashes and any other detail I manage to gather.</p> <p dir="auto">A few of the crashes I saw occurred while testing <code class="notranslate">rustpkg</code>, and included this as the output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" rustc: for the -arm-enable-ehabi option: may only occur zero or one times! rustc: for the -arm-enable-ehabi-descriptors option: may only occur zero or one times!"><pre class="notranslate"><code class="notranslate"> rustc: for the -arm-enable-ehabi option: may only occur zero or one times! rustc: for the -arm-enable-ehabi-descriptors option: may only occur zero or one times! </code></pre></div> <p dir="auto">shortly before crashing; from what I can tell from skimming the source code, there is no way we should be seeing that message from tests on an Intel Mac, unless some internal state has been corrupted. But the failure is non-deterministic, so this does not happen reliably.</p> <p dir="auto">A few samples of the sorts of crashes that one sees while running <code class="notranslate">make check</code>, some while using <code class="notranslate">RUST_LOG</code> to get more info (I have more complete logs available on request); I had to post process some of the output, replacing raw bytes unacceptable to this text box e.g. \342\200\224 with character strings representing those byte sequences:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="test rt::io::net::tcp::test::bind_error ... ignored test rt::io::extensions::test::read_bytes ... ok test result::tests::chain_failure ... ok rust: ~&quot;waking up task for 140313321592696&quot; test rt::io::extensions::test::push_bytes_partial ... ok test rt::io::mem::test::test_mem_writer ... okrust: ~&quot;waking up task for 140313322615688&quot; rust: ~&quot;waking up task for 140313318415048&quot; error opening /dev/urandom: Too many open files"><pre class="notranslate"><code class="notranslate">test rt::io::net::tcp::test::bind_error ... ignored test rt::io::extensions::test::read_bytes ... ok test result::tests::chain_failure ... ok rust: ~"waking up task for 140313321592696" test rt::io::extensions::test::push_bytes_partial ... ok test rt::io::mem::test::test_mem_writer ... okrust: ~"waking up task for 140313322615688" rust: ~"waking up task for 140313318415048" error opening /dev/urandom: Too many open files </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="test rt::io::extensions::test::read_to_end ... ok test rt::io::extensions::test::read_byte_0_bytes ... ok rust: ~&quot;blocked = 0 this = 7f9e45c08be0&quot; rust: ~&quot;blocked = 7f9e45c08be0 this = 7f9e45c08be0 old_task = 0&quot; rust: ~&quot;woke up, p.state = Full&quot; rust: ~&quot;no data available on &amp;mut {header: {state: Blocked, blocked_task: (0x7f9e45c08be0 as *()), buffer: (0x7f9e45a038c0 as *())}, payload: None}, going to sleep.&quot; task failed at 'assertion failed: handle.is_not_null()', /Users/pnkfelix/Dev/Mozilla/rust.git/src/libstd/rt/uv/mod.rs:100 e There was a night when winds from unknown spaces whirled us irresistibly into limitless vacum beyond all thought and entity. Perceptions of the most maddeningly untransmissible sort thronged upon us; perceptions of infinity which at the time convulsed us with joy, yet which are now partly lost to my memory and partly incapable of presentation to others. fatal runtime error: assertion failed: void_sched.is_not_null()"><pre class="notranslate"><code class="notranslate">test rt::io::extensions::test::read_to_end ... ok test rt::io::extensions::test::read_byte_0_bytes ... ok rust: ~"blocked = 0 this = 7f9e45c08be0" rust: ~"blocked = 7f9e45c08be0 this = 7f9e45c08be0 old_task = 0" rust: ~"woke up, p.state = Full" rust: ~"no data available on &amp;mut {header: {state: Blocked, blocked_task: (0x7f9e45c08be0 as *()), buffer: (0x7f9e45a038c0 as *())}, payload: None}, going to sleep." task failed at 'assertion failed: handle.is_not_null()', /Users/pnkfelix/Dev/Mozilla/rust.git/src/libstd/rt/uv/mod.rs:100 e There was a night when winds from unknown spaces whirled us irresistibly into limitless vacum beyond all thought and entity. Perceptions of the most maddeningly untransmissible sort thronged upon us; perceptions of infinity which at the time convulsed us with joy, yet which are now partly lost to my memory and partly incapable of presentation to others. fatal runtime error: assertion failed: void_sched.is_not_null() </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="test rt::comm::test::oneshot_single_thread_send_then_recv ... ok test rt::io::mem::test::test_mem_reader ... ok rust: ~&quot;blocked = 0 this = 7fea01519590&quot; rust: ~&quot;blocked = 7fea01519590 this = 7fea01519590 old_task = 0&quot; rust: ~&quot;no data available on &amp;mut {header: {state: Blocked, blocked_task: (0x7fea01519590 as *()), buffer: (0x7fea0150ec00 as *())}, payload: None}, going to sleep.&quot; rust: ~&quot;waking up task for 140643020157512&quot; test rt::io::net::tcp::test::connect_error ... ok rust: ~&quot;blocked = 0 this = 7fea02a022a0&quot; test rt::io::extensions::test::push_bytes_partial ... ok rust: ~&quot;blocked = 7fea02a022a0 this = 7fea02a022a0 old_task = 0&quot; rust: ~&quot;blocked = 0 this = 7fea02b15670&quot; test rt::comm::test::oneshot_single_thread_send_port_close ... ok rust: ~&quot;blocked = 0 this = 7fea02a04750&quot; rust: ~&quot;blocked = 7fea02b15670 this = 7fea02b15670 old_task = 0&quot; test rt::io::extensions::test::read_to_end_error ... ok rust: ~&quot;no data available on &amp;mut {header: {state: Blocked, blocked_task: (0x7fea02a022a0 as *()), buffer: (0x7fea01418ce0 as *())}, payload: None}, going to sleep.&quot; rust: ~&quot;blocked = 7fea02a04750 this = 7fea02a04750 old_task = 0&quot; rust: ~&quot;blocked = 0 this = 7fea01519890&quot; rust: ~&quot;no data available on &amp;mut {header: {state: Blocked, blocked_task: (0x7fea02b15670 as *()), buffer: (0x7fea02b154e0 as *())}, payload: None}, going to sleep.&quot; test rt::io::extensions::test::read_bytes ... okrust: ~&quot;blocked = 7fea01519890 this = 7fea01519890 old_task = 0&quot; rust: ~&quot;no data available on &amp;mut {header: {state: Blocked, blocked_task: (0x7fea02a04750 as *()), buffer: (0x7fea02a00800 as *())}, payload: None}, going to sleep.&quot; rust: ~&quot;no data available on &amp;mut {header: {state: Blocked, blocked_task: (0x7fea01519890 as *()), buffer: (0x7fea01609fa0 as *())}, payload: None}, going to sleep.&quot; test rt::comm::test::oneshot_single_thread_close_port_first ... ok rust: ~&quot;blocked = 0 this = 7fea01601c60&quot; rust: ~&quot;blocked = 7fea01601c60 this = 7fea01601c60 old_task = 0&quot; rust: ~&quot;no data available on &amp;mut {header: {state: Blocked, blocked_task: (0x7fea01601c60 as *()), buffer: (0x7fea0280f020 as *())}, payload: None}, going to sleep.&quot; (libuv) Failed to create kqueue (24) Instead of the poems I had hoped for, there came only a shuddering blackness and ineffable loneliness; and I saw at last a fearful truth which no one had ever dared to breathe before \342\200\224 the unwhisperable secret of secrets \342\200\224 The fact that this city of stone and stridor is not a sentient perpetuation of Old New York as London is of Old London and Paris of Old Paris, but that it is in fact quite dead, its sprawling body imperfectly embalmed and infested with queer animate things which have nothing to do with it as it was in life. fatal runtime error: no scheduler"><pre class="notranslate"><code class="notranslate">test rt::comm::test::oneshot_single_thread_send_then_recv ... ok test rt::io::mem::test::test_mem_reader ... ok rust: ~"blocked = 0 this = 7fea01519590" rust: ~"blocked = 7fea01519590 this = 7fea01519590 old_task = 0" rust: ~"no data available on &amp;mut {header: {state: Blocked, blocked_task: (0x7fea01519590 as *()), buffer: (0x7fea0150ec00 as *())}, payload: None}, going to sleep." rust: ~"waking up task for 140643020157512" test rt::io::net::tcp::test::connect_error ... ok rust: ~"blocked = 0 this = 7fea02a022a0" test rt::io::extensions::test::push_bytes_partial ... ok rust: ~"blocked = 7fea02a022a0 this = 7fea02a022a0 old_task = 0" rust: ~"blocked = 0 this = 7fea02b15670" test rt::comm::test::oneshot_single_thread_send_port_close ... ok rust: ~"blocked = 0 this = 7fea02a04750" rust: ~"blocked = 7fea02b15670 this = 7fea02b15670 old_task = 0" test rt::io::extensions::test::read_to_end_error ... ok rust: ~"no data available on &amp;mut {header: {state: Blocked, blocked_task: (0x7fea02a022a0 as *()), buffer: (0x7fea01418ce0 as *())}, payload: None}, going to sleep." rust: ~"blocked = 7fea02a04750 this = 7fea02a04750 old_task = 0" rust: ~"blocked = 0 this = 7fea01519890" rust: ~"no data available on &amp;mut {header: {state: Blocked, blocked_task: (0x7fea02b15670 as *()), buffer: (0x7fea02b154e0 as *())}, payload: None}, going to sleep." test rt::io::extensions::test::read_bytes ... okrust: ~"blocked = 7fea01519890 this = 7fea01519890 old_task = 0" rust: ~"no data available on &amp;mut {header: {state: Blocked, blocked_task: (0x7fea02a04750 as *()), buffer: (0x7fea02a00800 as *())}, payload: None}, going to sleep." rust: ~"no data available on &amp;mut {header: {state: Blocked, blocked_task: (0x7fea01519890 as *()), buffer: (0x7fea01609fa0 as *())}, payload: None}, going to sleep." test rt::comm::test::oneshot_single_thread_close_port_first ... ok rust: ~"blocked = 0 this = 7fea01601c60" rust: ~"blocked = 7fea01601c60 this = 7fea01601c60 old_task = 0" rust: ~"no data available on &amp;mut {header: {state: Blocked, blocked_task: (0x7fea01601c60 as *()), buffer: (0x7fea0280f020 as *())}, payload: None}, going to sleep." (libuv) Failed to create kqueue (24) Instead of the poems I had hoped for, there came only a shuddering blackness and ineffable loneliness; and I saw at last a fearful truth which no one had ever dared to breathe before \342\200\224 the unwhisperable secret of secrets \342\200\224 The fact that this city of stone and stridor is not a sentient perpetuation of Old New York as London is of Old London and Paris of Old Paris, but that it is in fact quite dead, its sprawling body imperfectly embalmed and infested with queer animate things which have nothing to do with it as it was in life. fatal runtime error: no scheduler </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="test rt::io::extensions::test::push_bytes_eof ... ok test rt::comm::test::oneshot_single_thread_try_send_closed ... ok test rt::io::file::super_simple_smoke_test_lets_go_read_some_files_and_have_a_good_time ... ignored rust: ~&quot;no data available on &amp;mut {header: {state: Blocked, blocked_task: (0x7f81dbe030a0 as *()), buffer: (0x7f81ddc011b0 as *())}, payload: None}, going to sleep.&quot; test rt::io::flate::test::smoke_test ... ignored rust: ~&quot;\&quot;Trap: pushing handler to TLS\&quot;&quot; rust: ~&quot;blocked = 0 this = 7f81ddb03a20&quot; rust: ~&quot;blocked = 7f81ddb03a20 this = 7f81ddb03a20 old_task = 0&quot; rust: ~&quot;\&quot;Condition.raise: found handler\&quot;&quot; rust: ~&quot;\&quot;Guard: popping handler from TLS\&quot;&quot; rust: ~&quot;no data available on &amp;mut {header: {state: Blocked, blocked_task: (0x7f81ddb03a20 as *()), buffer: (0x7f81ddb025e0 as *())}, payload: None}, going to sleep.&quot; rust: ~&quot;woke up, p.state = Full&quot; test rt::comm::test::megapipe_stress ... okrust: ~&quot;blocked = 0 this = 7f81dd901580&quot; rust: ~&quot;blocked = 0 this = 7f81dda01dd0&quot; rust: ~&quot;woke up, p.state = Full&quot; rust: ~&quot;\&quot;read 0 bytes. trying again\&quot;&quot; s ... ok test rt::io::extensions::test::read_bytes_eof ... ok rust: ~&quot;blocked = 7f81dd901580 this = 7f81dd901580 old_task = 0&quot; test rt::comm::test::oneshot_single_thread_try_recv_open ... okrust: ~&quot;blocked = 7f81dda01dd0 this = 7f81dda01dd0 old_task = 0&quot; rust: ~&quot;\&quot;Trap: pushing handler to TLS\&quot;&quot; rust: ~&quot;no data available on &amp;mut {header: {state: Blocked, blocked_task: (0x7f81dd901580 as *()), buffer: (0x7f81ddc028a0 as *())}, payload: None}, going to sleep.&quot; rust: ~&quot;\&quot;Condition.raise: found handler\&quot;&quot; rust: ~&quot;no data available on &amp;mut {header: {state: Blocked, blocked_task: (0x7f81dda01dd0 as *()), buffer: (0x7f81dbe06a10 as *())}, payload: None}, going to sleep.&quot; rust: ~&quot;\&quot;Condition.raise: found handler\&quot;&quot; rust: ~&quot;\&quot;Guard: popping handler from TLS\&quot;&quot; rust: ~&quot;\&quot;Trap: pushing handler to TLS\&quot;&quot; rust: ~&quot;\&quot;Condition.raise: found handler\&quot;&quot; rust: ~&quot;\&quot;Condition.raise: found no handler\&quot;&quot; rust: task failed at 'Unhandled condition: read_error: {kind: OtherIoError, desc: &quot;Placeholder error. You shouldn\'t be seeing this&quot;, detail: None}', /Users/pnkfelix/Dev/Mozilla/rust.git/src/libstd/condition.rs:43 test rt::io::net::http::test::smoke_test ... ignored test rt::io::net::tcp::test::bind_error ... ignored test rt::io::extensions::test::read_byte_0_bytes ... ok test rt::comm::test::oneshot_multi_task_recv_then_close ... ok rust: ~&quot;blocked = 0 this = 7f81dbe08970&quot; rust: ~&quot;blocked = 7f81dbe08970 this = 7f81dbe08970 old_task = 0&quot; test rt::io::extensions::test::read_byte ... ok rust: ~&quot;no data available on &amp;mut {header: {state: Blocked, blocked_task: (0x7f81dbe08970 as *()), buffer: (0x7f81ddb07b80 as *())}, payload: None}, going to sleep.&quot; rust: ~&quot;waking up task for 140195716426264&quot; ~&quot;\&quot;Trap: pushing handler to TLS\&quot;&quot;"><pre class="notranslate"><code class="notranslate">test rt::io::extensions::test::push_bytes_eof ... ok test rt::comm::test::oneshot_single_thread_try_send_closed ... ok test rt::io::file::super_simple_smoke_test_lets_go_read_some_files_and_have_a_good_time ... ignored rust: ~"no data available on &amp;mut {header: {state: Blocked, blocked_task: (0x7f81dbe030a0 as *()), buffer: (0x7f81ddc011b0 as *())}, payload: None}, going to sleep." test rt::io::flate::test::smoke_test ... ignored rust: ~"\"Trap: pushing handler to TLS\"" rust: ~"blocked = 0 this = 7f81ddb03a20" rust: ~"blocked = 7f81ddb03a20 this = 7f81ddb03a20 old_task = 0" rust: ~"\"Condition.raise: found handler\"" rust: ~"\"Guard: popping handler from TLS\"" rust: ~"no data available on &amp;mut {header: {state: Blocked, blocked_task: (0x7f81ddb03a20 as *()), buffer: (0x7f81ddb025e0 as *())}, payload: None}, going to sleep." rust: ~"woke up, p.state = Full" test rt::comm::test::megapipe_stress ... okrust: ~"blocked = 0 this = 7f81dd901580" rust: ~"blocked = 0 this = 7f81dda01dd0" rust: ~"woke up, p.state = Full" rust: ~"\"read 0 bytes. trying again\"" s ... ok test rt::io::extensions::test::read_bytes_eof ... ok rust: ~"blocked = 7f81dd901580 this = 7f81dd901580 old_task = 0" test rt::comm::test::oneshot_single_thread_try_recv_open ... okrust: ~"blocked = 7f81dda01dd0 this = 7f81dda01dd0 old_task = 0" rust: ~"\"Trap: pushing handler to TLS\"" rust: ~"no data available on &amp;mut {header: {state: Blocked, blocked_task: (0x7f81dd901580 as *()), buffer: (0x7f81ddc028a0 as *())}, payload: None}, going to sleep." rust: ~"\"Condition.raise: found handler\"" rust: ~"no data available on &amp;mut {header: {state: Blocked, blocked_task: (0x7f81dda01dd0 as *()), buffer: (0x7f81dbe06a10 as *())}, payload: None}, going to sleep." rust: ~"\"Condition.raise: found handler\"" rust: ~"\"Guard: popping handler from TLS\"" rust: ~"\"Trap: pushing handler to TLS\"" rust: ~"\"Condition.raise: found handler\"" rust: ~"\"Condition.raise: found no handler\"" rust: task failed at 'Unhandled condition: read_error: {kind: OtherIoError, desc: "Placeholder error. You shouldn\'t be seeing this", detail: None}', /Users/pnkfelix/Dev/Mozilla/rust.git/src/libstd/condition.rs:43 test rt::io::net::http::test::smoke_test ... ignored test rt::io::net::tcp::test::bind_error ... ignored test rt::io::extensions::test::read_byte_0_bytes ... ok test rt::comm::test::oneshot_multi_task_recv_then_close ... ok rust: ~"blocked = 0 this = 7f81dbe08970" rust: ~"blocked = 7f81dbe08970 this = 7f81dbe08970 old_task = 0" test rt::io::extensions::test::read_byte ... ok rust: ~"no data available on &amp;mut {header: {state: Blocked, blocked_task: (0x7f81dbe08970 as *()), buffer: (0x7f81ddb07b80 as *())}, payload: None}, going to sleep." rust: ~"waking up task for 140195716426264" ~"\"Trap: pushing handler to TLS\"" </code></pre></div>
<p dir="auto">E.g. every <code class="notranslate">Examples</code> heading on <a href="http://doc.rust-lang.org/nightly/std/primitive.str.html" rel="nofollow">http://doc.rust-lang.org/nightly/std/primitive.str.html</a> has the same id (<code class="notranslate">examples</code>) and all link to <a href="http://doc.rust-lang.org/nightly/std/primitive.str.html#examples" rel="nofollow">http://doc.rust-lang.org/nightly/std/primitive.str.html#examples</a> . Rustdoc should adjust those internals to ensure the links are unique (e.g. <code class="notranslate">examples</code>, <code class="notranslate">examples-1</code>, <code class="notranslate">examples-2</code>, ...).</p>
0
<p dir="auto">I am trying to override Grid class names injected by Material-UI, I use the following prop</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;Grid container spacing={24} classes={{ 'spacing-xs-24': classes.myspacing }} &gt;"><pre class="notranslate"><code class="notranslate">&lt;Grid container spacing={24} classes={{ 'spacing-xs-24': classes.myspacing }} &gt; </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const styles = { myspacing: { // The below nest style is NOT WORKING '&amp; &gt; $typeItem': { padding: 0, }, padding: 0, } }"><pre class="notranslate"><code class="notranslate">const styles = { myspacing: { // The below nest style is NOT WORKING '&amp; &gt; $typeItem': { padding: 0, }, padding: 0, } } </code></pre></div> <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">After overriding, I want the grid items have following style</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=".MuiGrid-spacing-xs-24-1120 &gt; .MuiGrid-typeItem-1098 { padding: 0px; }"><pre class="notranslate"><code class="notranslate">.MuiGrid-spacing-xs-24-1120 &gt; .MuiGrid-typeItem-1098 { padding: 0px; } </code></pre></div> <h2 dir="auto">Current Behavior</h2> <p dir="auto">But it seems doesn't work, The devtool still shows the following:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=".MuiGrid-spacing-xs-24-1120 &gt; .MuiGrid-typeItem-1098 { padding: 12px; }"><pre class="notranslate"><code class="notranslate">.MuiGrid-spacing-xs-24-1120 &gt; .MuiGrid-typeItem-1098 { padding: 12px; } </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>beta 30</td> </tr> <tr> <td>React</td> <td>v16.2.0</td> </tr> <tr> <td>browser</td> <td>chrome 61</td> </tr> <tr> <td>etc</td> <td></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">Not relevant</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">Not relevant</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <p dir="auto">Not relevant</p> <h2 dir="auto">Context</h2> <p dir="auto">I am using <code class="notranslate">material-ui@next</code> with Typescript. Unfortunately, the project has sparse information on usage with Typescript especially with <code class="notranslate">withStyles</code>. Though <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="263799945" data-permission-text="Title is private" data-url="https://github.com/mui/material-ui/issues/8598" data-hovercard-type="issue" data-hovercard-url="/mui/material-ui/issues/8598/hovercard" href="https://github.com/mui/material-ui/issues/8598">#8598</a> promises a guide on Typescript, meanwhile I have been using <a href="https://github.com/callemall/material-ui/blob/v1-beta/test/typescript/styles.spec.tsx">styles typescript unit tests</a> to learn <code class="notranslate">withStyles</code> usage.</p> <p dir="auto">Taking cue from the <a href="https://github.com/callemall/material-ui/blob/v1-beta/test/typescript/styles.spec.tsx#L35-L41">example 2 in unit test</a> I coded a component this way,</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const TopBarComponent: React.SFC&lt;Props &amp; WithStyles&lt;ComponentClassNames&gt;&gt; = ({ title, leftButton, uiStore, classes }) =&gt; ( &lt;AppBar position=&quot;static&quot;&gt; &lt;Toolbar&gt; &lt;IconButton color=&quot;contrast&quot;&gt; &lt;HomeIcon /&gt; &lt;/IconButton&gt; &lt;Typography type=&quot;title&quot; color=&quot;inherit&quot; className={classes!.flex}&gt; {title} &lt;/Typography&gt; &lt;Button color=&quot;contrast&quot; onClick={uiStore.topBarLeftButtonClicked}&gt; {getButtonLabel(leftButton)} &lt;/Button&gt; &lt;/Toolbar&gt; &lt;/AppBar&gt; ); const TopBar = withStyles(styles)(TopBarComponent); // (A)"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-v">TopBarComponent</span>: <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-c1">SFC</span><span class="pl-c1">&lt;</span><span class="pl-v">Props</span> <span class="pl-c1">&amp;</span> <span class="pl-v">WithStyles</span><span class="pl-c1">&lt;</span><span class="pl-ent">ComponentClassNames</span><span class="pl-c1">&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> title<span class="pl-kos">,</span> leftButton<span class="pl-kos">,</span> uiStore<span class="pl-kos">,</span> classes <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">(</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">color</span><span class="pl-c1">=</span><span class="pl-s">"contrast"</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">HomeIcon</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-kos">{</span><span class="pl-s1">classes</span><span class="pl-c1">!</span><span class="pl-kos">.</span><span class="pl-c1">flex</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span> <span class="pl-kos">{</span><span class="pl-s1">title</span><span class="pl-kos">}</span> <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">Button</span> <span class="pl-c1">color</span><span class="pl-c1">=</span><span class="pl-s">"contrast"</span> <span class="pl-c1">onClick</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">uiStore</span><span class="pl-kos">.</span><span class="pl-c1">topBarLeftButtonClicked</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span> <span class="pl-kos">{</span><span class="pl-en">getButtonLabel</span><span class="pl-kos">(</span><span class="pl-s1">leftButton</span><span class="pl-kos">)</span><span class="pl-kos">}</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">Button</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-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-v">TopBar</span> <span class="pl-c1">=</span> <span class="pl-en">withStyles</span><span class="pl-kos">(</span><span class="pl-s1">styles</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-v">TopBarComponent</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// (A)</span></pre></div> <p dir="auto">which gave me this error</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="error TS2322: Type '{ title: &quot;Page not found&quot;; leftButton: ButtonAction.SignIn; uiStore: UIStore; }' is not assignable to type 'IntrinsicAttributes &amp; IntrinsicClassAttributes&lt;Component&lt;Props &amp; WithStyles&lt;&quot;flex&quot;&gt; &amp; StyledCompo...'. Type '{ title: &quot;Page not found&quot;; leftButton: ButtonAction.SignIn; uiStore: UIStore; }' is not assignable to type 'Readonly&lt;Props &amp; WithStyles&lt;&quot;flex&quot;&gt; &amp; StyledComponentProps&lt;string&gt;&gt;'. Property 'classes' is missing in type '{ title: &quot;Page not found&quot;; leftButton: ButtonAction.SignIn; uiStore: UIStore; }'."><pre class="notranslate">error TS2322: Type <span class="pl-s"><span class="pl-pds">'</span>{ title: "Page not found"; leftButton: ButtonAction.SignIn; uiStore: UIStore; }<span class="pl-pds">'</span></span> is not assignable to <span class="pl-c1">type</span> <span class="pl-s"><span class="pl-pds">'</span>IntrinsicAttributes &amp; IntrinsicClassAttributes&lt;Component&lt;Props &amp; WithStyles&lt;"flex"&gt; &amp; StyledCompo...<span class="pl-pds">'</span></span>. Type <span class="pl-s"><span class="pl-pds">'</span>{ title: "Page not found"; leftButton: ButtonAction.SignIn; uiStore: UIStore; }<span class="pl-pds">'</span></span> is not assignable to <span class="pl-c1">type</span> <span class="pl-s"><span class="pl-pds">'</span>Readonly&lt;Props &amp; WithStyles&lt;"flex"&gt; &amp; StyledComponentProps&lt;string&gt;&gt;<span class="pl-pds">'</span></span>. Property <span class="pl-s"><span class="pl-pds">'</span>classes<span class="pl-pds">'</span></span> is missing <span class="pl-k">in</span> <span class="pl-c1">type</span> <span class="pl-s"><span class="pl-pds">'</span>{ title: "Page not found"; leftButton: ButtonAction.SignIn; uiStore: UIStore; }<span class="pl-pds">'</span></span>.</pre></div> <p dir="auto">After wasting a lot of time, these posts by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pelotom/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pelotom">@pelotom</a> provided the hint,</p> <ol dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="264215974" data-permission-text="Title is private" data-url="https://github.com/mui/material-ui/issues/8635" data-hovercard-type="issue" data-hovercard-url="/mui/material-ui/issues/8635/hovercard?comment_id=335565529&amp;comment_type=issue_comment" href="https://github.com/mui/material-ui/issues/8635#issuecomment-335565529">#8635 (comment)</a></li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="261435596" data-permission-text="Title is private" data-url="https://github.com/mui/material-ui/issues/8447" data-hovercard-type="issue" data-hovercard-url="/mui/material-ui/issues/8447/hovercard?comment_id=335564192&amp;comment_type=issue_comment" href="https://github.com/mui/material-ui/issues/8447#issuecomment-335564192">#8447 (comment)</a></li> </ol> <p dir="auto">I changed my line (A) to</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const TopBar = withStyles(styles)&lt;Props&gt;(TopBarComponent);"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-v">TopBar</span> <span class="pl-c1">=</span> <span class="pl-en">withStyles</span><span class="pl-kos">(</span><span class="pl-s1">styles</span><span class="pl-kos">)</span><span class="pl-c1">&lt;</span><span class="pl-v">Props</span><span class="pl-c1">&gt;</span><span class="pl-kos">(</span><span class="pl-v">TopBarComponent</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">This fixed the TS error.</p> <p dir="auto">Now, I don't have enough experience in Typescript to understand why unit tests does not need to pass props type. But could you please update the unit tests now and keep it updated in the future such that it shows how to handle all sorts of usage. I mean, if unit tests had the example this way</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// Example 2 const Component: React.SFC&lt; ComponentProps &amp; WithStyles&lt;ComponentClassNames&gt; &gt; = ({ classes, text }) =&gt; &lt;div className={classes.root}&gt;{text}&lt;/div&gt;; const StyledExampleTwo = withStyles(styles)&lt;ComponentProps&gt;(Component); // ---&gt; This line &lt;StyledExampleTwo text=&quot;I am styled!&quot; /&gt;;"><pre class="notranslate"><span class="pl-c">// Example 2</span> <span class="pl-k">const</span> <span class="pl-v">Component</span>: <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-c1">SFC</span><span class="pl-c1">&lt;</span> <span class="pl-v">ComponentProps</span> <span class="pl-c1">&amp;</span> <span class="pl-v">WithStyles</span><span class="pl-kos"></span><span class="pl-c1">&lt;</span><span class="pl-ent">ComponentClassNames</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&gt;</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-s1">classes</span><span class="pl-kos">,</span> <span class="pl-s1">text</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">className</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">classes</span><span class="pl-kos">.</span><span class="pl-c1">root</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span><span class="pl-kos">{</span><span class="pl-s1">text</span><span class="pl-kos">}</span><span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span>; const StyledExampleTwo = withStyles(styles)<span class="pl-c1">&lt;</span><span class="pl-ent">ComponentProps</span><span class="pl-c1">&gt;</span>(Component); // ---<span class="pl-c1">&gt;</span> <span class="pl-v">This</span> <span class="pl-s1">line</span> <span class="pl-c1">&lt;</span><span class="pl-ent">StyledExampleTwo</span> <span class="pl-c1">text</span><span class="pl-c1">=</span><span class="pl-s">"I am styled!"</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span>;</pre></div> <p dir="auto">It would have explained the usage more comprehensively.</p> <p dir="auto">Bottom line is, while the Typescript guide is underway, please use unit tests to provide thorough usage examples</p> <p dir="auto">Also, can anyone explain why does the unit test work without passing prop type <code class="notranslate">ComponentProps</code>, and my component fails to compile unless I pass the prop type <code class="notranslate">Props</code>?</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.16</td> </tr> <tr> <td>React</td> <td>Not relevant</td> </tr> <tr> <td>browser</td> <td>Not relevant</td> </tr> <tr> <td>etc</td> <td>Not relevant</td> </tr> </tbody> </table>
0
<p dir="auto">I wanted to use the features of canvas (group, chord, chain ...) to manage my workflow.</p> <p dir="auto">If we take the graph just behind, I didn't succeed to find a way to execute it without having double nodes for the dependencies.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/7586111/11546638/5c8c7dca-9903-11e5-9c17-199a349622bc.png"><img src="https://cloud.githubusercontent.com/assets/7586111/11546638/5c8c7dca-9903-11e5-9c17-199a349622bc.png" alt="graph" style="max-width: 100%;"></a></p> <p dir="auto">Does someone know how to execute it this graph using canvas? How could I handle that?</p>
<p dir="auto">Consider the following (where A, B, C, D, E are tasks):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="sub_A = A.s() chord_D = chord([sub_A, B.s()], D.s()) chord_E = chord([sub_A, C.s()], E.s()) res = group(chord_D, chord_E)()"><pre class="notranslate"><code class="notranslate">sub_A = A.s() chord_D = chord([sub_A, B.s()], D.s()) chord_E = chord([sub_A, C.s()], E.s()) res = group(chord_D, chord_E)() </code></pre></div> <p dir="auto">This creates two separate invocations for task A. For many cases, we would want the subtask for A to be invoked just once, and the work shared.</p> <p dir="auto">It seems that manually giving the subtask a uuid leads to the desired outcome, but it would be nice to have support for this in the API.</p>
1
<p dir="auto">Helllo, I have a problem with installation angular2 beta 15</p> <blockquote> <p dir="auto">npm install angular2 -d<br> npm info it worked if it ends with ok<br> npm info using [email protected]<br> npm info using [email protected]<br> npm info attempt registry request try <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="43291956" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/1" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/1/hovercard" href="https://github.com/angular/angular/issues/1">#1</a> at 10:22:16 AM<br> npm http request GET <a href="https://registry.npmjs.org/angular2" rel="nofollow">https://registry.npmjs.org/angular2</a><br> npm http 304 <a href="https://registry.npmjs.org/angular2" rel="nofollow">https://registry.npmjs.org/angular2</a><br> npm ERR! cb() never called!</p> </blockquote> <p dir="auto">This problem is only with the beta15, If I try to install previous versions, then all is well</p> <p dir="auto"><strong>node version:</strong> v5.9.1<br> <strong>npm version:</strong> 3.8.7</p>
<p dir="auto">Running <code class="notranslate">npm i --save angular2</code> or <code class="notranslate">npm i --save [email protected]</code> is returning the following error:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="npm ERR! cb() never called!"><pre class="notranslate">npm ERR<span class="pl-k">!</span> <span class="pl-en">cb</span>() never called<span class="pl-k">!</span></pre></div> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ npm -v 3.8.6"><pre class="notranslate">$ npm -v 3.8.6</pre></div> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ node -v v5.9.0"><pre class="notranslate">$ node -v v5.9.0</pre></div> <p dir="auto">I'm on Windows 10, if that helps.</p>
1
<ul dir="auto"> <li>VSCode Version: 0.10.11</li> <li>OS Version: 10.11.3</li> </ul> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>Open a js file in vs code.</li> <li>Type yield keyword.<br> Notice the color of the text is black. Instead of blue.</li> </ol>
<p dir="auto"><em>From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/joaomoreno/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/joaomoreno">@joaomoreno</a> on December 14, 2015 13:52</em></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/22350/11782623/458b351c-a272-11e5-8bf2-ca1dc66c6560.png"><img src="https://cloud.githubusercontent.com/assets/22350/11782623/458b351c-a272-11e5-8bf2-ca1dc66c6560.png" alt="image" style="max-width: 100%;"></a></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="122046874" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/1269" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/1269/hovercard" href="https://github.com/microsoft/vscode/issues/1269">microsoft/vscode#1269</a></em></p>
1
<p dir="auto">The first time I built it successfully (build_windows.bat), but it didn't seem to find CUDA or cuDNN. I deleted the build directory and tried<br> set USE_CUDA=ON<br> It seemed to find the GPU locations successfully. However this error eventually popped up:</p> <p dir="auto">"C:\Users\pazzu\Documents\pytorch\build\ALL_BUILD.vcxproj" (default target) (1) -&gt;<br> "C:\Users\pazzu\Documents\pytorch\build\caffe2\caffe2_gpu.vcxproj" (default target) (26) -&gt;<br> (CustomBuild target) -&gt;<br> Error : Internal Compiler error (codegen): "there was an error in verifying the lgenfe output!" [C:\Users\pazz<br> u\Documents\pytorch\build\caffe2\caffe2_gpu.vcxproj]</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="37821 Warning(s) 1 Error(s)"><pre class="notranslate"><code class="notranslate">37821 Warning(s) 1 Error(s) </code></pre></div> <p dir="auto">Time Elapsed 01:50:03.60<br> "Caffe2 building failed"</p> <p dir="auto">I'm using VS 15 2017 Win64 for the compiler.</p>
<p dir="auto">Can we have <code class="notranslate">unique</code> to return unique rows and cols as well, similar to <code class="notranslate">numpy.unique</code>? Example usage to give an idea:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; a = torch.tensor([[1, 0, 0], [1, 0, 0], [2, 3, 3]]) &gt;&gt;&gt; torch.unique(a) tensor([0, 1, 2, 3]) &gt;&gt;&gt; torch.unique(a, dim=0) tensor([[1, 0, 0], [2, 3, 3]]) &gt;&gt;&gt; torch.unique(a, dim=1) tensor([[1, 0], [1, 0], [2, 3]])"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; a = torch.tensor([[1, 0, 0], [1, 0, 0], [2, 3, 3]]) &gt;&gt;&gt; torch.unique(a) tensor([0, 1, 2, 3]) &gt;&gt;&gt; torch.unique(a, dim=0) tensor([[1, 0, 0], [2, 3, 3]]) &gt;&gt;&gt; torch.unique(a, dim=1) tensor([[1, 0], [1, 0], [2, 3]]) </code></pre></div>
0
<p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gke-test/13272/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gke-test/13272/</a></p> <p dir="auto">Failed: BeforeSuite {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/e2e.go:159 Jul 5 02:20:03.844: Error waiting for all pods to be running and ready: Not all pods in namespace 'kube-system' running and ready within 10m0s"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/e2e.go:159 Jul 5 02:20:03.844: Error waiting for all pods to be running and ready: Not all pods in namespace 'kube-system' running and ready within 10m0s </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="156417256" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/26135" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/26135/hovercard" href="https://github.com/kubernetes/kubernetes/issues/26135">#26135</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="156638964" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/26236" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/26236/hovercard" href="https://github.com/kubernetes/kubernetes/issues/26236">#26236</a></p>
<p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gce-scalability/8770/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gce-scalability/8770/</a></p> <p dir="auto">Failed: BeforeSuite {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/e2e.go:159 Jun 22 19:31:23.362: Error waiting for all pods to be running and ready: Not all pods in namespace &quot;kube-system&quot; are successful within 10m0s"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/e2e.go:159 Jun 22 19:31:23.362: Error waiting for all pods to be running and ready: Not all pods in namespace "kube-system" are successful within 10m0s </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="156417256" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/26135" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/26135/hovercard" href="https://github.com/kubernetes/kubernetes/issues/26135">#26135</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="156638964" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/26236" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/26236/hovercard" href="https://github.com/kubernetes/kubernetes/issues/26236">#26236</a></p>
1
<h1 dir="auto">Checklist</h1> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> This has already been asked to the <a href="https://groups.google.com/forum/#!forum/celery-users" rel="nofollow">discussion group</a> first.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have read the relevant section in the<br> <a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br> on reporting bugs.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br> for similar or identical bug reports.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br> for existing proposed fixes.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br> to find out if the bug was already fixed in the master branch.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues<br> in this issue (If there are none, check this box anyway).</li> </ul> <h2 dir="auto">Mandatory Debugging Information</h2> <ul dir="auto"> <li>Version: Celery 4.4.7, 5.0.2, and <code class="notranslate">master</code></li> </ul> <h1 dir="auto">Problem</h1> <p dir="auto">I was trying to set up testing for a project using Celery using py.test and while wondering why <code class="notranslate">celery_app</code> didn't seem to have an effect (accessing <code class="notranslate">celery.current_app</code> printed out a decidedly non-test app), I think I may have found a bug in the implementation of <code class="notranslate">setup_default_app</code> (which is used by the <code class="notranslate">celery_app</code> fixture).</p> <p dir="auto">If you look at the implementation below (which is the same in 4.4.7, <a href="https://github.com/celery/celery/blob/d50c6cfc448e9e31384190b23f285254cb44e8a2/celery/contrib/testing/app.py">https://github.com/celery/celery/blob/d50c6cfc448e9e31384190b23f285254cb44e8a2/celery/contrib/testing/app.py</a>), the <code class="notranslate">app</code> argument is actually never assigned to the current state globals. I believe this problem has existed for a long while, effectively making <code class="notranslate">setup_default_app</code> a no-op unless the trap is enabled.</p> <p dir="auto"></p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/celery/celery/blob/f50cf7d9944558167b85c14d73e8f790da251730/celery/contrib/testing/app.py#L68-L109">celery/celery/contrib/testing/app.py</a> </p> <p class="mb-0 color-fg-muted"> Lines 68 to 109 in <a data-pjax="true" class="commit-tease-sha" href="/celery/celery/commit/f50cf7d9944558167b85c14d73e8f790da251730">f50cf7d</a> </p> </div> <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data"> <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip=""> <tbody><tr class="border-0"> <td id="L68" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="68"></td> <td id="LC68" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-en">@<span class="pl-s1">contextmanager</span></span> </td> </tr> <tr class="border-0"> <td id="L69" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="69"></td> <td id="LC69" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">def</span> <span class="pl-en">set_trap</span>(<span class="pl-s1">app</span>): </td> </tr> <tr class="border-0"> <td id="L70" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="70"></td> <td id="LC70" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s">"""Contextmanager that installs the trap app.</span> </td> </tr> <tr class="border-0"> <td id="L71" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="71"></td> <td id="LC71" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s"></span> </td> </tr> <tr class="border-0"> <td id="L72" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="72"></td> <td id="LC72" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s"> The trap means that anything trying to use the current or default app</span> </td> </tr> <tr class="border-0"> <td id="L73" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="73"></td> <td id="LC73" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s"> will raise an exception.</span> </td> </tr> <tr class="border-0"> <td id="L74" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="74"></td> <td id="LC74" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s"> """</span> </td> </tr> <tr class="border-0"> <td id="L75" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="75"></td> <td id="LC75" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">trap</span> <span class="pl-c1">=</span> <span class="pl-v">Trap</span>() </td> </tr> <tr class="border-0"> <td id="L76" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="76"></td> <td id="LC76" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">prev_tls</span> <span class="pl-c1">=</span> <span class="pl-s1">_state</span>.<span class="pl-s1">_tls</span> </td> </tr> <tr class="border-0"> <td id="L77" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="77"></td> <td id="LC77" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">_state</span>.<span class="pl-en">set_default_app</span>(<span class="pl-s1">trap</span>) </td> </tr> <tr class="border-0"> <td id="L78" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="78"></td> <td id="LC78" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> </td> </tr> <tr class="border-0"> <td id="L79" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="79"></td> <td id="LC79" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">class</span> <span class="pl-v">NonTLS</span>: </td> </tr> <tr class="border-0"> <td id="L80" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="80"></td> <td id="LC80" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">current_app</span> <span class="pl-c1">=</span> <span class="pl-s1">trap</span> </td> </tr> <tr class="border-0"> <td id="L81" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="81"></td> <td id="LC81" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">_state</span>.<span class="pl-s1">_tls</span> <span class="pl-c1">=</span> <span class="pl-v">NonTLS</span>() </td> </tr> <tr class="border-0"> <td id="L82" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="82"></td> <td id="LC82" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> </td> </tr> <tr class="border-0"> <td id="L83" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="83"></td> <td id="LC83" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">yield</span> </td> </tr> <tr class="border-0"> <td id="L84" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="84"></td> <td id="LC84" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">_state</span>.<span class="pl-s1">_tls</span> <span class="pl-c1">=</span> <span class="pl-s1">prev_tls</span> </td> </tr> <tr class="border-0"> <td id="L85" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="85"></td> <td id="LC85" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> </td> </tr> <tr class="border-0"> <td id="L86" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="86"></td> <td id="LC86" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> </td> </tr> <tr class="border-0"> <td id="L87" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="87"></td> <td id="LC87" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-en">@<span class="pl-s1">contextmanager</span></span> </td> </tr> <tr class="border-0"> <td id="L88" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="88"></td> <td id="LC88" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">def</span> <span class="pl-en">setup_default_app</span>(<span class="pl-s1">app</span>, <span class="pl-s1">use_trap</span><span class="pl-c1">=</span><span class="pl-c1">False</span>): </td> </tr> <tr class="border-0"> <td id="L89" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="89"></td> <td id="LC89" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s">"""Setup default app for testing.</span> </td> </tr> <tr class="border-0"> <td id="L90" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="90"></td> <td id="LC90" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s"></span> </td> </tr> <tr class="border-0"> <td id="L91" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="91"></td> <td id="LC91" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s"> Ensures state is clean after the test returns.</span> </td> </tr> <tr class="border-0"> <td id="L92" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="92"></td> <td id="LC92" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s"> """</span> </td> </tr> <tr class="border-0"> <td id="L93" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="93"></td> <td id="LC93" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">prev_current_app</span> <span class="pl-c1">=</span> <span class="pl-s1">_state</span>.<span class="pl-en">get_current_app</span>() </td> </tr> <tr class="border-0"> <td id="L94" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="94"></td> <td id="LC94" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">prev_default_app</span> <span class="pl-c1">=</span> <span class="pl-s1">_state</span>.<span class="pl-s1">default_app</span> </td> </tr> <tr class="border-0"> <td id="L95" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="95"></td> <td id="LC95" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">prev_finalizers</span> <span class="pl-c1">=</span> <span class="pl-en">set</span>(<span class="pl-s1">_state</span>.<span class="pl-s1">_on_app_finalizers</span>) </td> </tr> <tr class="border-0"> <td id="L96" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="96"></td> <td id="LC96" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">prev_apps</span> <span class="pl-c1">=</span> <span class="pl-s1">weakref</span>.<span class="pl-v">WeakSet</span>(<span class="pl-s1">_state</span>.<span class="pl-s1">_apps</span>) </td> </tr> <tr class="border-0"> <td id="L97" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="97"></td> <td id="LC97" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> </td> </tr> <tr class="border-0"> <td id="L98" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="98"></td> <td id="LC98" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> <span class="pl-s1">use_trap</span>: </td> </tr> <tr class="border-0"> <td id="L99" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="99"></td> <td id="LC99" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">with</span> <span class="pl-en">set_trap</span>(<span class="pl-s1">app</span>): </td> </tr> <tr class="border-0"> <td id="L100" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="100"></td> <td id="LC100" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">yield</span> </td> </tr> <tr class="border-0"> <td id="L101" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="101"></td> <td id="LC101" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">else</span>: </td> </tr> <tr class="border-0"> <td id="L102" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="102"></td> <td id="LC102" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">yield</span> </td> </tr> <tr class="border-0"> <td id="L103" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="103"></td> <td id="LC103" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> </td> </tr> <tr class="border-0"> <td id="L104" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="104"></td> <td id="LC104" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">_state</span>.<span class="pl-en">set_default_app</span>(<span class="pl-s1">prev_default_app</span>) </td> </tr> <tr class="border-0"> <td id="L105" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="105"></td> <td id="LC105" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">_state</span>.<span class="pl-s1">_tls</span>.<span class="pl-s1">current_app</span> <span class="pl-c1">=</span> <span class="pl-s1">prev_current_app</span> </td> </tr> <tr class="border-0"> <td id="L106" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="106"></td> <td id="LC106" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> <span class="pl-s1">app</span> <span class="pl-c1">is</span> <span class="pl-c1">not</span> <span class="pl-s1">prev_current_app</span>: </td> </tr> <tr class="border-0"> <td id="L107" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="107"></td> <td id="LC107" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">app</span>.<span class="pl-en">close</span>() </td> </tr> <tr class="border-0"> <td id="L108" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="108"></td> <td id="LC108" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">_state</span>.<span class="pl-s1">_on_app_finalizers</span> <span class="pl-c1">=</span> <span class="pl-s1">prev_finalizers</span> </td> </tr> <tr class="border-0"> <td id="L109" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="109"></td> <td id="LC109" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">_state</span>.<span class="pl-s1">_apps</span> <span class="pl-c1">=</span> <span class="pl-s1">prev_apps</span> </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto">The <code class="notranslate">celery_app</code> pytest fixture attempts to use <code class="notranslate">setup_default_app()</code>: </p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/celery/celery/blob/c3e041050ae252be79d9b4ae400ec0c5b2831d14/celery/contrib/pytest.py#L40-L41">celery/celery/contrib/pytest.py</a> </p> <p class="mb-0 color-fg-muted"> Lines 40 to 41 in <a data-pjax="true" class="commit-tease-sha" href="/celery/celery/commit/c3e041050ae252be79d9b4ae400ec0c5b2831d14">c3e0410</a> </p> </div> <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data"> <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip=""> <tbody><tr class="border-0"> <td id="L40" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="40"></td> <td id="LC40" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">with</span> <span class="pl-en">setup_default_app</span>(<span class="pl-s1">test_app</span>, <span class="pl-s1">use_trap</span><span class="pl-c1">=</span><span class="pl-s1">use_trap</span>): </td> </tr> <tr class="border-0"> <td id="L41" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="41"></td> <td id="LC41" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">yield</span> <span class="pl-s1">test_app</span> </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto">but when the trap argument is False, no change is done to the ambient current app setting.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="585257825" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/6007" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/6007/hovercard" href="https://github.com/celery/celery/issues/6007">#6007</a> may be vaguely related to this.</p>
<p dir="auto">Replica sets are support by celery now for brokers and result backends, but I seem to have trouble when specifying ports on the individual nodes in the mongodb URL.</p> <p dir="auto">In my settings:</p> <p dir="auto">MONGODB_CONNECTION_URI = 'mongodb://localhost:27037,localhost:27038,localhost:27039'</p> <p dir="auto">The result when I run celeryd (via python manage.py celeryd):</p> <p dir="auto">[2012-04-16 14:16:19,389: WARNING/MainProcess] Traceback (most recent call last):<br> ...<br> [2012-04-16 14:16:19,393: WARNING/MainProcess] File "/my/virtual/env/lib/python2.7/site-packages/celery/apps/worker.py", line 200, in startup_info<br> [2012-04-16 14:16:19,394: WARNING/MainProcess] "conninfo": self.app.broker_connection().as_uri(),<br> [2012-04-16 14:16:19,394: WARNING/MainProcess] File "/my/virtual/env/lib/python2.7/site-packages/celery/app/base.py", line 234, in broker_connection<br> [2012-04-16 14:16:19,394: WARNING/MainProcess] **transport_options or {}))<br> [2012-04-16 14:16:19,394: WARNING/MainProcess] File "/my/virtual/env/lib/python2.7/site-packages/kombu/connection.py", line 101, in <strong>init</strong><br> [2012-04-16 14:16:19,394: WARNING/MainProcess] params.update(parse_url(hostname))<br> [2012-04-16 14:16:19,395: WARNING/MainProcess] File "/my/virtual/env/lib/python2.7/site-packages/kombu/utils/url.py", line 33, in parse_url<br> [2012-04-16 14:16:19,395: WARNING/MainProcess] scheme, host, port, user, password, path, query = _parse_url(url)<br> [2012-04-16 14:16:19,395: WARNING/MainProcess] File "/my/virtual/env/lib/python2.7/site-packages/kombu/utils/url.py", line 25, in _parse_url<br> [2012-04-16 14:16:19,395: WARNING/MainProcess] int(parts.port) if parts.port else None,<br> [2012-04-16 14:16:19,395: WARNING/MainProcess] File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urlparse.py", line 106, in port<br> [2012-04-16 14:16:19,396: WARNING/MainProcess] return int(port, 10)<br> [2012-04-16 14:16:19,396: WARNING/MainProcess] ValueError<br> [2012-04-16 14:16:19,396: WARNING/MainProcess] :<br> [2012-04-16 14:16:19,396: WARNING/MainProcess] invalid literal for int() with base 10: '27037,localhost'</p> <p dir="auto">Here [1] is the full stack. So, it keeps parsing for port after the first ':', when it should break up the nodes on ',' first.</p> <p dir="auto">There seems to be another report of this in this comment [2] on the original celery pull request.</p> <p dir="auto">[1] <a href="http://pastebin.com/DvZcGdVm" rel="nofollow">http://pastebin.com/DvZcGdVm</a><br> [2] <a href="https://github.com/ask/kombu/pull/81#issuecomment-4327785">https://github.com/ask/kombu/pull/81#issuecomment-4327785</a></p>
0
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: [v1.35.0]</li> <li>Operating System: [Windows 10, possibly All]</li> <li>Browser: [Edge, possibly All]</li> <li>Other info: node v20.2.0, npm 9.6.6</li> </ul> <h3 dir="auto">Source code</h3> <p dir="auto">No source is needed. It is clear after using "npm install"</p> <ul dir="auto"> <li>[x ] I provided exact source code that allows reproducing the issue locally.</li> </ul> <p dir="auto"><strong>Steps</strong></p> <p dir="auto">I am new to both versions and have no idea how they differ (except the former won't need me to install any browser, latter download all major ones upon installation)</p> <p dir="auto">I stumbled upon the issue because I was trying to convert some python code to javascript and it imports "playwright", now "@playwright/test".</p> <p dir="auto">But using "npm init playwright" initializes with a base test suite using "@playwright/test", not "playwright".</p> <p dir="auto">With a naive approach, I did "npm install playwright" to continue my conversion. But it seems these two packages, however both the latest, are not playing along fine about which one will use the name.</p> <p dir="auto">Both packages add "playwright-core" scripts into the binary folder, and both insist on using the same "playwright" script name for themselves; one points to <code class="notranslate">$basedir/../@playwright/test/cli.js</code> and the other points to <code class="notranslate">$basedir/../playwright/cli.js"</code></p> <p dir="auto">The main issue here also has many other occurrences associated with this message: <code class="notranslate">Please install @playwright/test package before running</code>. This happens because installing "playwright" overrides the scripts for "@playwright/test".</p> <p dir="auto">They both work fine if they are used only as imports since both packages have their own unique directories. the problem arises when one tries to use scripts from the command line as <code class="notranslate">npx playwright ...</code></p> <p dir="auto"><strong>Expected</strong></p> <p dir="auto">Both packages are at "1.35.00" version. In this case, I would expect "@playwright/test" to use another script name, or both packages to use a unified script to suit them both.</p> <p dir="auto"><strong>Actual</strong></p> <p dir="auto">Installation order determines which one will use the "playwright" name for the scripts to run from terminal.<br> Also causes this problem: <code class="notranslate">Please install @playwright/test package before running</code></p>
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: [v1.XX]</li> <li>Operating System: [All, Windows 11, Ubuntu 20, macOS 13.2, etc.]</li> <li>Browser: [Chromium]</li> <li>Other info:</li> </ul> <h3 dir="auto">Source code</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I provided exact source code that allows reproducing the issue locally.</li> </ul> <p dir="auto"><strong>Link to the GitHub repository with the repro</strong></p> <p dir="auto">[https://github.com/your_profile/playwright_issue_title]</p> <p dir="auto">browser = playwright.chromium().launch<br> (new BrowserType.LaunchOptions().setArgs(Arrays.asList("--disable-notifications")).setHeadless(false));</p> <p dir="auto">Actual: Location notification still displayed in headless(false) mode but in headless(true) mode</p>
0
<h1 dir="auto">Bug report</h1> <p dir="auto"><strong>What is the current behavior?</strong><br> With 5.0.0-beta.14 the generated code for <a href="https://github.com/bvaughn/react-virtualized/blob/1a85f588420378aee32216e1c7f51d61155eb2b6/source/CellMeasurer/index.js">https://github.com/bvaughn/react-virtualized/blob/1a85f588420378aee32216e1c7f51d61155eb2b6/source/CellMeasurer/index.js</a><br> is:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/* harmony import */ var _CellMeasurer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CellMeasurer */ &quot;./node_modules/react-virtualized/dist/es/CellMeasurer/CellMeasurer.js&quot;); /* harmony import */ var _CellMeasurerCache__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CellMeasurerCache */ &quot;./node_modules/react-virtualized/dist/es/CellMeasurer/CellMeasurerCache.js&quot;); /* unused harmony default export */ var _unused_webpack_default_export = (CellMeasurer);"><pre class="notranslate"><code class="notranslate">/* harmony import */ var _CellMeasurer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CellMeasurer */ "./node_modules/react-virtualized/dist/es/CellMeasurer/CellMeasurer.js"); /* harmony import */ var _CellMeasurerCache__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CellMeasurerCache */ "./node_modules/react-virtualized/dist/es/CellMeasurer/CellMeasurerCache.js"); /* unused harmony default export */ var _unused_webpack_default_export = (CellMeasurer); </code></pre></div> <p dir="auto">This crashes with error <code class="notranslate">ReferenceError: CellMeasurer is not defined</code></p> <p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong><br> I have not tried to create a minimal reproduction but we just import <code class="notranslate">react-virtualized</code> with:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { AutoSizer, Column, Table, TableCellProps, TableHeaderProps, } from &quot;react-virtualized&quot;"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">AutoSizer</span><span class="pl-kos">,</span> <span class="pl-smi">Column</span><span class="pl-kos">,</span> <span class="pl-smi">Table</span><span class="pl-kos">,</span> <span class="pl-smi">TableCellProps</span><span class="pl-kos">,</span> <span class="pl-smi">TableHeaderProps</span><span class="pl-kos">,</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"react-virtualized"</span></pre></div> <p dir="auto"><strong>What is the expected behavior?</strong><br> That it would generate a bundle without reference errors :) It worked fine in 5.0.0-beta.13</p> <p dir="auto">I assume the unused default export would either have to be removed completely or rewritten to export <code class="notranslate">_CellMeasurer__WEBPACK_IMPORTED_MODULE_0__</code></p> <p dir="auto"><strong>Other relevant information:</strong><br> webpack version: 5.0.0-beta.14<br> Node.js version: 12.16.1<br> Operating System: Ubuntu 20.04<br> react-virtualized: 9.21.2</p>
<h1 dir="auto">Bug report</h1> <p dir="auto"><strong>What is the current behavior?</strong></p> <p dir="auto">Under some circumstances, the tree shaking process for an unused default export would only remove the variable definition while still preserves the variable reference in an expression like <code class="notranslate">var _unused_webpack_default_export = (style)</code>, causing a <code class="notranslate">ReferenceError</code> in browsers.</p> <p dir="auto">Since webpack 5.0.0-beta.14 turned <code class="notranslate">optimization.usedExports</code> on by default, this bug became quite noticeable.</p> <p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="git clone https://github.com/sodatea/webpack-used-exports-bug.git cd webpack-used-exports-bug yarn &amp;&amp; yarn start"><pre class="notranslate">git clone https://github.com/sodatea/webpack-used-exports-bug.git <span class="pl-c1">cd</span> webpack-used-exports-bug yarn <span class="pl-k">&amp;&amp;</span> yarn start</pre></div> <p dir="auto">Then visit <a href="http://localhost:5000/example/index.html" rel="nofollow">http://localhost:5000/example/index.html</a> to see the error message.</p> <p dir="auto"><strong>What is the expected behavior?</strong></p> <ul dir="auto"> <li>Edit the <code class="notranslate">webpack.config.js</code> to turn off <code class="notranslate">optimization.usedExports</code></li> <li>rerun <code class="notranslate">yarn start</code></li> <li>visit <a href="http://localhost:5000/example/index.html" rel="nofollow">http://localhost:5000/example/index.html</a> and the error disappears</li> </ul> <p dir="auto"><strong>Other relevant information:</strong><br> webpack version: v5.0.0-beta.14<br> Node.js version: v12.16.1<br> Operating System: macOS Catalina 10.15.3<br> Additional tools: None</p>
1
<h2 dir="auto"><g-emoji class="g-emoji" alias="rocket" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f680.png">🚀</g-emoji> Feature</h2> <p dir="auto">Support for Same and valid convolutions in the Conv2d and related operations</p> <h2 dir="auto">Motivation</h2> <p dir="auto">I just started using pytorch (was using tensorflow before) and really like the pythonic API, only problem I encounter is when creating a model , I have recalculate the parameters for all the layers.</p> <h2 dir="auto">Pitch</h2> <p dir="auto">adding padding='same' and padding='valid' in the Conv2d constructor,and to be used in tandem with a <code class="notranslate">torch.compile(model=model,input_shape=(3,224,224))</code>. and throw an error if a forward pass is attempted if the <code class="notranslate">padding=='same'</code> and t<code class="notranslate">orch.compile()</code> is not run.</p> <h2 dir="auto">Alternatives</h2> <p dir="auto">recalculating padding for every forward pass ,but that wouldn't be very efficient</p>
<p dir="auto">The implementation would be easy, but could help many people suffered from the headache of calculating how many padding they need.</p> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ezyang/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ezyang">@ezyang</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gchanan/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gchanan">@gchanan</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zou3519/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zou3519">@zou3519</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bdhirsh/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bdhirsh">@bdhirsh</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jbschlosser/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jbschlosser">@jbschlosser</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/albanD/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/albanD">@albanD</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mruberry/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mruberry">@mruberry</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/walterddr/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/walterddr">@walterddr</a></p>
1
<p dir="auto">In numpy.ma.core calls to <code class="notranslate">property</code> are used instead of the <code class="notranslate">@property</code> and <code class="notranslate">@property.setter</code> decorator. These should be refactored with an eye to rebuilding the documentation to make sure the docstrings do not get lost.</p>
<p dir="auto">Python 2 isinstance(a, basestring) has no analog in python 3.</p>
0
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">Virtual Desktops have been a feature of windows for a long time. However, there is no way to configure how you interact with the feature, and especially, there is no keybinding to send the current window to a virtual desktop. Adding a menu in PowerToys that allows you to change these keybindings (and set a keybinding to send to the next dekstop, i.e. <code class="notranslate">Windows+ Ctrl + Shift + Left or Right</code>) would complement FancyZones for users with limited screen space.</p> <h1 dir="auto">Proposed technical implementation details (optional)</h1> <p dir="auto">Add a menu in the left hand bar that allows you to change and interact with the keybindings for Virtual Desktops.</p>
<p dir="auto">One of the thing I've found lacking ever since I started using the virtual desktops is the ability to move a window with you while moving to another virtual desktop.</p> <p dir="auto">Currently, we can move to another desktop using the shortcut <code class="notranslate">ctrl + win + left/right</code>, I feel like a shortcut along the lines of <code class="notranslate">ctrl + win + alt + left/right</code> could be used to make the current active window move with you to the next desktop</p> <p dir="auto">I have no idea if this fits as a powertoy, please tell me if it doesn't !</p>
1
<p dir="auto"><strong>Context:</strong></p> <ul dir="auto"> <li>Playwright Version: ^1.16.0-next-alpha-oct-7-2021</li> <li>Operating System: Linux</li> <li>Node.js version: v12.20.0</li> <li>Browser: Firefox</li> </ul> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const options = { acceptDownloads: true, headless : false, } async function start(){ const browser = await firefox.launchPersistentContext(&quot;/tmp/firefox&quot;, options); const page = browser.pages()[0] page.on('download', download =&gt; { download.path().then(&quot;DOWNLOAD DONE&quot;, console.log) //never shows up }); } start().catch((e)=&gt;{ console.log(e) })"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">options</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">acceptDownloads</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">headless</span> : <span class="pl-c1">false</span><span class="pl-kos">,</span> <span class="pl-kos">}</span> <span class="pl-k">async</span> <span class="pl-k">function</span> <span class="pl-en">start</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">browser</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">firefox</span><span class="pl-kos">.</span><span class="pl-en">launchPersistentContext</span><span class="pl-kos">(</span><span class="pl-s">"/tmp/firefox"</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">const</span> <span class="pl-s1">page</span> <span class="pl-c1">=</span> <span class="pl-s1">browser</span><span class="pl-kos">.</span><span class="pl-en">pages</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">[</span><span class="pl-c1">0</span><span class="pl-kos">]</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'download'</span><span class="pl-kos">,</span> <span class="pl-s1">download</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-s1">download</span><span class="pl-kos">.</span><span class="pl-en">path</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-s">"DOWNLOAD DONE"</span><span class="pl-kos">,</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-c1">log</span><span class="pl-kos">)</span> <span class="pl-c">//never shows up</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-en">start</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">catch</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">e</span><span class="pl-kos">)</span><span class="pl-c1">=&gt;</span><span class="pl-kos">{</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">e</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div> <p dir="auto">The bug:</p> <p dir="auto">I'm using a simple example with headless:false and trying to download a file in a random website, but the function "download.path()" never resolves the promise, which should return the file path. The code is working with "launch" function.</p>
<p dir="auto"><strong>Context:</strong></p> <ul dir="auto"> <li>Playwright Version: 1.2.1</li> <li>Operating System: Mac</li> <li>Node version: 14.5</li> <li>Browser: Chromium</li> </ul> <p dir="auto"><strong>Code Snippet</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const { chromium } = require(&quot;playwright&quot;); (async () =&gt; { const context = await chromium.launchPersistentContext(&quot;./udd&quot;, { headless: false, acceptDownloads: true, downloadsPath: &quot;./&quot;, }); context.on(&quot;page&quot;, (page) =&gt; { page.on(&quot;download&quot;, (download) =&gt; { console.log(&quot;download&quot;, download); }); }); const newPage = await context.newPage(); await newPage.goto( &quot;https://support.spatialkey.com/spatialkey-sample-csv-data&quot; ); newPage.on(&quot;download&quot;, (download) =&gt; download.path().then(console.log)); })();"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-kos">{</span> chromium <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">"playwright"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">(</span><span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">context</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">chromium</span><span class="pl-kos">.</span><span class="pl-en">launchPersistentContext</span><span class="pl-kos">(</span><span class="pl-s">"./udd"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">headless</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span> <span class="pl-c1">acceptDownloads</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">downloadsPath</span>: <span class="pl-s">"./"</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">context</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">"page"</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">"download"</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-s1">download</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">"download"</span><span class="pl-kos">,</span> <span class="pl-s1">download</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-k">const</span> <span class="pl-s1">newPage</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">context</span><span class="pl-kos">.</span><span class="pl-en">newPage</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">newPage</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span> <span class="pl-s">"https://support.spatialkey.com/spatialkey-sample-csv-data"</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">newPage</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">"download"</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-s1">download</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-s1">download</span><span class="pl-kos">.</span><span class="pl-en">path</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-c1">log</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></pre></div> <p dir="auto"><strong>Describe the bug</strong></p> <ul dir="auto"> <li>When the page loads, click on any of the download links</li> </ul> <p dir="auto">Expectation:</p> <ul dir="auto"> <li>See the path of downloaded file as well as complete download object</li> </ul> <p dir="auto">Current behavior:</p> <ul dir="auto"> <li>Most of the times I don't see any logs</li> <li>At times I would see logs for <code class="notranslate">context</code> based listener</li> <li>I never see the download path's promise being resolved. I think it might be because the download size is too small but I would expect it to keep working properly even for small files.</li> </ul> <p dir="auto">Is there something wrong with my machine? I tried quitting existing chrome installation and reinstalling all packages to no avail. Any suggestion would be helpful, thanks!</p>
1
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows Version 10.0.18362.239 Windows Terminal version (if applicable): 0.3.2171.0 Any other software? None needed to reproduce this."><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows Version 10.0.18362.239 Windows Terminal version (if applicable): 0.3.2171.0 Any other software? None needed to reproduce this. </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <ol dir="auto"> <li>Open a cmd.exe prompt using Windows terminal</li> <li>Change the background color using the color command ("color 1f")</li> <li>Press Enter until you are close to the bottom of the screen</li> <li>Run the "dir" command so that the text will scroll</li> <li>Notice that the background color is reset for the part of the window that scroll.s</li> </ol> <p dir="auto">These images show side by side comparisons between Windows Terminal and the classic console<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/35891420/62603948-8a80b800-b929-11e9-91c6-0ec4af71ce92.png"><img src="https://user-images.githubusercontent.com/35891420/62603948-8a80b800-b929-11e9-91c6-0ec4af71ce92.png" alt="BeforeScroll" style="max-width: 100%;"></a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/35891420/62603965-95d3e380-b929-11e9-9f08-56c2fd5bf9b9.png"><img src="https://user-images.githubusercontent.com/35891420/62603965-95d3e380-b929-11e9-9f08-56c2fd5bf9b9.png" alt="AfterScroll" style="max-width: 100%;"></a><br> :</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">As noted in the screenshots above, when the window scrolls, it should use the current background color instead of reverting to the default.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">The window is reverting the background color.</p>
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">Set up the Windows Terminal to have and return a UIA tree.</p> <h1 dir="auto">Proposed technical implementation details (optional)</h1> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Create UIA tree</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Hook it up properly</li> </ul>
0
<p dir="auto"><code class="notranslate">Vue.extend()</code> works well but i think there is no way to extend the corresponding template without changing scope. Here is an example of what i'd like to achieve. <code class="notranslate">&lt;block&gt;</code> is like <code class="notranslate">&lt;slot&gt;</code> but i renamed it not to be confused with the current slot implementation</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const BaseForm = Vue.extend({ template: ` &lt;form&gt; &lt;block name=&quot;header&quot;&gt; &lt;h1&gt;{{ title }}&lt;/h1&gt; &lt;/block&gt; &lt;block name=&quot;content&quot;&gt;Form inputs go here&lt;/block&gt; &lt;block name=&quot;actions&quot;&gt; &lt;button @click=&quot;saveRecord&quot;&gt;Save&lt;/button&gt; &lt;button @click=&quot;deleteRecord&quot;&gt;Delete&lt;/button&gt; &lt;/block&gt; &lt;/form&gt; `, data () { return { title: 'Base Title', apiUrl: null, record: {} } }, methods: { saveRecord () { // axios.post(this.apiUrl + this.record.id)... }, deleteRecord () { // axios.delete(this.apiUrl + this.record.id)... } } }) const PersonForm = BaseForm.extend({ template: ` &lt;extend&gt; &lt;div block=&quot;header&quot;&gt; {{ title }} From Person Form &lt;button @click=&quot;saveRecord&quot;&gt;Save from header&lt;/button&gt; &lt;/div&gt; &lt;div block=&quot;content&quot;&gt; &lt;input type=&quot;text&quot; v-model=&quot;record.name&quot; /&gt; &lt;input type=&quot;text&quot; v-model=&quot;record.age&quot; /&gt; &lt;button @click=&quot;incAge&quot;&gt;Increase age&lt;/button&gt; &lt;/div&gt; &lt;/extend&gt; `, data () { return { title: 'My Title', apiUrl: '/api/my/', record: { id: 1, name: '', age: 0 } } }, methods: { incAge () { this.record.age++ } } })"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-v">BaseForm</span> <span class="pl-c1">=</span> <span class="pl-v">Vue</span><span class="pl-kos">.</span><span class="pl-en">extend</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">template</span>: <span class="pl-s">`</span> <span class="pl-s"> &lt;form&gt;</span> <span class="pl-s"> &lt;block name="header"&gt;</span> <span class="pl-s"> &lt;h1&gt;{{ title }}&lt;/h1&gt;</span> <span class="pl-s"> &lt;/block&gt;</span> <span class="pl-s"> &lt;block name="content"&gt;Form inputs go here&lt;/block&gt;</span> <span class="pl-s"> &lt;block name="actions"&gt;</span> <span class="pl-s"> &lt;button @click="saveRecord"&gt;Save&lt;/button&gt;</span> <span class="pl-s"> &lt;button @click="deleteRecord"&gt;Delete&lt;/button&gt;</span> <span class="pl-s"> &lt;/block&gt;</span> <span class="pl-s"> &lt;/form&gt;</span> <span class="pl-s"> `</span><span class="pl-kos">,</span> <span class="pl-en">data</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-kos">{</span> <span class="pl-c1">title</span>: <span class="pl-s">'Base Title'</span><span class="pl-kos">,</span> <span class="pl-c1">apiUrl</span>: <span class="pl-c1">null</span><span class="pl-kos">,</span> <span class="pl-c1">record</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-c1">methods</span>: <span class="pl-kos">{</span> <span class="pl-en">saveRecord</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// axios.post(this.apiUrl + this.record.id)...</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-en">deleteRecord</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// axios.delete(this.apiUrl + this.record.id)...</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">const</span> <span class="pl-v">PersonForm</span> <span class="pl-c1">=</span> <span class="pl-v">BaseForm</span><span class="pl-kos">.</span><span class="pl-en">extend</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">template</span>: <span class="pl-s">`</span> <span class="pl-s"> &lt;extend&gt;</span> <span class="pl-s"> &lt;div block="header"&gt;</span> <span class="pl-s"> {{ title }} From Person Form</span> <span class="pl-s"> &lt;button @click="saveRecord"&gt;Save from header&lt;/button&gt;</span> <span class="pl-s"> &lt;/div&gt;</span> <span class="pl-s"> &lt;div block="content"&gt;</span> <span class="pl-s"> &lt;input type="text" v-model="record.name" /&gt;</span> <span class="pl-s"> &lt;input type="text" v-model="record.age" /&gt;</span> <span class="pl-s"> &lt;button @click="incAge"&gt;Increase age&lt;/button&gt;</span> <span class="pl-s"> &lt;/div&gt;</span> <span class="pl-s"> &lt;/extend&gt;</span> <span class="pl-s"> `</span><span class="pl-kos">,</span> <span class="pl-en">data</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-kos">{</span> <span class="pl-c1">title</span>: <span class="pl-s">'My Title'</span><span class="pl-kos">,</span> <span class="pl-c1">apiUrl</span>: <span class="pl-s">'/api/my/'</span><span class="pl-kos">,</span> <span class="pl-c1">record</span>: <span class="pl-kos">{</span> <span class="pl-c1">id</span>: <span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">name</span>: <span class="pl-s">''</span><span class="pl-kos">,</span> <span class="pl-c1">age</span>: <span class="pl-c1">0</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">methods</span>: <span class="pl-kos">{</span> <span class="pl-en">incAge</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">record</span><span class="pl-kos">.</span><span class="pl-c1">age</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></pre></div> <p dir="auto">So js is merged as usual but then the base template blocks are replaced with the new ones when compiling the template. So everything works within the same scope.<br> <code class="notranslate">&lt;block&gt;</code> and <code class="notranslate">&lt;extend&gt;</code> can be changed with different words/options in the api</p> <p dir="auto">Does this make sense? Or is there a better way to do it? Or is it not intact with Vue principles?</p> <p dir="auto">The end results should be:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ template: ` &lt;form&gt; &lt;div&gt; {{ title }} From Person Form &lt;button @click=&quot;saveRecord&quot;&gt;Save from header&lt;/button&gt; &lt;/div&gt; &lt;div&gt; &lt;input type=&quot;text&quot; v-model=&quot;record.name&quot; /&gt; &lt;input type=&quot;text&quot; v-model=&quot;record.age&quot; /&gt; &lt;button @click=&quot;incAge&quot;&gt;Increase age&lt;/button&gt; &lt;/div&gt; &lt;button @click=&quot;saveRecord&quot;&gt;Save&lt;/button&gt; &lt;button @click=&quot;deleteRecord&quot;&gt;Delete&lt;/button&gt; &lt;/form&gt; `, data () { return { title: 'My Title', apiUrl: '/api/my/', record: { id: 1, name: '', age: 0 } } }, methods: { incAge () { this.record.age++ }, saveRecord () { // axios.post(this.apiUrl + this.record.id)... }, deleteRecord () { // axios.delete(this.apiUrl + this.record.id)... } } }"><pre class="notranslate"><span class="pl-kos">{</span> <span class="pl-c1">template</span>: <span class="pl-s">`</span> <span class="pl-s"> &lt;form&gt;</span> <span class="pl-s"> &lt;div&gt;</span> <span class="pl-s"> {{ title }} From Person Form</span> <span class="pl-s"> &lt;button @click="saveRecord"&gt;Save from header&lt;/button&gt;</span> <span class="pl-s"> &lt;/div&gt;</span> <span class="pl-s"> &lt;div&gt;</span> <span class="pl-s"> &lt;input type="text" v-model="record.name" /&gt;</span> <span class="pl-s"> &lt;input type="text" v-model="record.age" /&gt;</span> <span class="pl-s"> &lt;button @click="incAge"&gt;Increase age&lt;/button&gt;</span> <span class="pl-s"> &lt;/div&gt;</span> <span class="pl-s"> &lt;button @click="saveRecord"&gt;Save&lt;/button&gt;</span> <span class="pl-s"> &lt;button @click="deleteRecord"&gt;Delete&lt;/button&gt;</span> <span class="pl-s"> &lt;/form&gt;</span> <span class="pl-s"> `</span><span class="pl-kos">,</span> <span class="pl-en">data</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-kos">{</span> <span class="pl-c1">title</span>: <span class="pl-s">'My Title'</span><span class="pl-kos">,</span> <span class="pl-c1">apiUrl</span>: <span class="pl-s">'/api/my/'</span><span class="pl-kos">,</span> <span class="pl-c1">record</span>: <span class="pl-kos">{</span> <span class="pl-c1">id</span>: <span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">name</span>: <span class="pl-s">''</span><span class="pl-kos">,</span> <span class="pl-c1">age</span>: <span class="pl-c1">0</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">methods</span>: <span class="pl-kos">{</span> <span class="pl-en">incAge</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">record</span><span class="pl-kos">.</span><span class="pl-c1">age</span><span class="pl-c1">++</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-en">saveRecord</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// axios.post(this.apiUrl + this.record.id)...</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-en">deleteRecord</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// axios.delete(this.apiUrl + this.record.id)...</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div>
<h3 dir="auto">What problem does this feature solve?</h3> <p dir="auto"><code class="notranslate">&lt;template&gt; &lt;span&gt;&lt;/span&gt; &lt;span&gt;&lt;/span&gt; &lt;/template&gt;</code></p> <h3 dir="auto">What does the proposed API look like?</h3> <p dir="auto"><code class="notranslate">&lt;template&gt; &lt;&gt; &lt;span&gt;&lt;/span&gt; &lt;span&gt;&lt;/span&gt; &lt;/&gt; &lt;/template&gt;</code></p>
0
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="284912806" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/18968" data-hovercard-type="pull_request" data-hovercard-url="/pandas-dev/pandas/pull/18968/hovercard" href="https://github.com/pandas-dev/pandas/pull/18968">#18968</a></p> <p dir="auto">sets up a really basic structure. ideally split out tests from tests_series and test_frame, in a similar<br> manner to how we do <code class="notranslate">pandas/tests/frame</code> and <code class="notranslate">pandas/tests/series</code>.</p>
<p dir="auto">I have a dataframe that contains a datetime64 column that seems to be losing some digits after a groupby.first(). I know that under the hood these are stored at nanosecond precision, but I need them to remain equal, since I'm merging back onto the original frame later on. Is this expected behavior?</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd from pandas import Timestamp data = [ {'a': 1, 'dateCreated': Timestamp('2011-01-20 12:50:28.593448')}, {'a': 1, 'dateCreated': Timestamp('2011-01-15 12:50:28.502376')}, {'a': 1, 'dateCreated': Timestamp('2011-01-15 12:50:28.472790')}, {'a': 1, 'dateCreated': Timestamp('2011-01-15 12:50:28.445286')}] df = pd.DataFrame(data)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-k">from</span> <span class="pl-s1">pandas</span> <span class="pl-k">import</span> <span class="pl-v">Timestamp</span> <span class="pl-s1">data</span> <span class="pl-c1">=</span> [ {<span class="pl-s">'a'</span>: <span class="pl-c1">1</span>, <span class="pl-s">'dateCreated'</span>: <span class="pl-v">Timestamp</span>(<span class="pl-s">'2011-01-20 12:50:28.593448'</span>)}, {<span class="pl-s">'a'</span>: <span class="pl-c1">1</span>, <span class="pl-s">'dateCreated'</span>: <span class="pl-v">Timestamp</span>(<span class="pl-s">'2011-01-15 12:50:28.502376'</span>)}, {<span class="pl-s">'a'</span>: <span class="pl-c1">1</span>, <span class="pl-s">'dateCreated'</span>: <span class="pl-v">Timestamp</span>(<span class="pl-s">'2011-01-15 12:50:28.472790'</span>)}, {<span class="pl-s">'a'</span>: <span class="pl-c1">1</span>, <span class="pl-s">'dateCreated'</span>: <span class="pl-v">Timestamp</span>(<span class="pl-s">'2011-01-15 12:50:28.445286'</span>)}] <span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>(<span class="pl-s1">data</span>)</pre></div> <p dir="auto">Output is:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [6]: df Out[6]: a dateCreated 0 1 2011-01-20 12:50:28.593448 1 1 2011-01-15 12:50:28.502376 2 1 2011-01-15 12:50:28.472790 3 1 2011-01-15 12:50:28.445286 In [7]: df.groupby('a').first() Out[7]: dateCreated a 1 2011-01-20 12:50:28.593447936"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">6</span>]: <span class="pl-s1">df</span> <span class="pl-v">Out</span>[<span class="pl-c1">6</span>]: <span class="pl-s1">a</span> <span class="pl-s1">dateCreated</span> <span class="pl-c1">0</span> <span class="pl-c1">1</span> <span class="pl-c1">2011</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">20</span> <span class="pl-c1">12</span>:<span class="pl-c1">50</span>:<span class="pl-c1">28.593448</span> <span class="pl-c1">1</span> <span class="pl-c1">1</span> <span class="pl-c1">2011</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">15</span> <span class="pl-c1">12</span>:<span class="pl-c1">50</span>:<span class="pl-c1">28.502376</span> <span class="pl-c1">2</span> <span class="pl-c1">1</span> <span class="pl-c1">2011</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">15</span> <span class="pl-c1">12</span>:<span class="pl-c1">50</span>:<span class="pl-c1">28.472790</span> <span class="pl-c1">3</span> <span class="pl-c1">1</span> <span class="pl-c1">2011</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">15</span> <span class="pl-c1">12</span>:<span class="pl-c1">50</span>:<span class="pl-c1">28.445286</span> <span class="pl-v">In</span> [<span class="pl-c1">7</span>]: <span class="pl-s1">df</span>.<span class="pl-en">groupby</span>(<span class="pl-s">'a'</span>).<span class="pl-en">first</span>() <span class="pl-v">Out</span>[<span class="pl-c1">7</span>]: <span class="pl-s1">dateCreated</span> <span class="pl-s1">a</span> <span class="pl-c1">1</span> <span class="pl-c1">2011</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">20</span> <span class="pl-c1">12</span>:<span class="pl-c1">50</span>:<span class="pl-c1">28.593447936</span></pre></div> <p dir="auto">When I compare the datetime64 in the first row to the datetime64 after the groupby.first(), the two are not equal.</p>
0
<p dir="auto">Starting with this engine roll: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="340795300" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/19322" data-hovercard-type="pull_request" data-hovercard-url="/flutter/flutter/pull/19322/hovercard" href="https://github.com/flutter/flutter/pull/19322">#19322</a></p>
<p dir="auto">Starting with this engine roll: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="340795300" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/19322" data-hovercard-type="pull_request" data-hovercard-url="/flutter/flutter/pull/19322/hovercard" href="https://github.com/flutter/flutter/pull/19322">#19322</a></p>
1
<p dir="auto"><strong>Symfony version(s) affected</strong>: 4.1.0</p> <p dir="auto"><strong>Description</strong><br> Symfony 4.1.0 logs a request.CRITICAL whenever authentication is required.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2018-06-14 20:52:10] security.INFO: Populated the TokenStorage with an anonymous Token. [] [] [2018-06-14 20:52:10] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Security\Core\Exception\AccessDeniedException: &quot;Access Denied.&quot; at /Users/cjm/Sites/website-skeleton/vendor/symfony/security/Http/Firewall/AccessListener.php line 68 {&quot;exception&quot;:&quot;[object] (Symfony\\Component\\Security\\Core\\Exception\\AccessDeniedException(code: 403): Access Denied. at /Users/cjm/Sites/website-skeleton/vendor/symfony/security/Http/Firewall/AccessListener.php:68)&quot;} [] [2018-06-14 20:52:10] security.DEBUG: Access denied, the user is not fully authenticated; redirecting to authentication entry point. {&quot;exception&quot;:&quot;[object] (Symfony\\Component\\Security\\Core\\Exception\\AccessDeniedException(code: 403): Access Denied. at /Users/cjm/Sites/website-skeleton/vendor/symfony/security/Http/Firewall/AccessListener.php:68)&quot;} [] [2018-06-14 20:52:10] security.DEBUG: Calling Authentication entry point. [] []"><pre class="notranslate"><code class="notranslate">[2018-06-14 20:52:10] security.INFO: Populated the TokenStorage with an anonymous Token. [] [] [2018-06-14 20:52:10] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Security\Core\Exception\AccessDeniedException: "Access Denied." at /Users/cjm/Sites/website-skeleton/vendor/symfony/security/Http/Firewall/AccessListener.php line 68 {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\AccessDeniedException(code: 403): Access Denied. at /Users/cjm/Sites/website-skeleton/vendor/symfony/security/Http/Firewall/AccessListener.php:68)"} [] [2018-06-14 20:52:10] security.DEBUG: Access denied, the user is not fully authenticated; redirecting to authentication entry point. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\AccessDeniedException(code: 403): Access Denied. at /Users/cjm/Sites/website-skeleton/vendor/symfony/security/Http/Firewall/AccessListener.php:68)"} [] [2018-06-14 20:52:10] security.DEBUG: Calling Authentication entry point. [] [] </code></pre></div> <p dir="auto">This behavior is different than Symfony 3, which does not log the request.CRITICAL. It should be silenced because the exception is actually caught.</p> <p dir="auto"><strong>How to reproduce</strong></p> <ol dir="auto"> <li>Follow part 1-a on <a href="https://symfony.com/doc/current/security.html" rel="nofollow">https://symfony.com/doc/current/security.html</a> to configure basic authentication. Observe the log file when the /admin route receives a GET request.</li> </ol> <p dir="auto"><strong>Possible Solution</strong></p> <p dir="auto"><strong>Additional context</strong></p>
<p dir="auto"><strong>Symfony version(s) affected</strong>: 4.1.0</p> <p dir="auto"><strong>Description</strong></p> <p dir="auto">Seems like ever since <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="279849633" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/25366" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/25366/hovercard" href="https://github.com/symfony/symfony/pull/25366">#25366</a>, authentication exceptions are first logged, and then handled gracefully (redirecting to a login entrypoint).</p> <p dir="auto">If an unauthenticated user hits a route they cannot access (e.g. a homepage route with this firewall rule <code class="notranslate">- { path: ^/, role: ROLE_ADMIN }</code>), what currently happens is:</p> <ul dir="auto"> <li> <p dir="auto">step 1: <code class="notranslate">Symfony\Component\Security\Http\Firewall\AccessListener</code> rightfully throws an <code class="notranslate">AccessDeniedException</code> exception</p> </li> <li> <p dir="auto">step 2: because of its new and high priority level (of <code class="notranslate">2048</code> since <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="279849633" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/25366" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/25366/hovercard" href="https://github.com/symfony/symfony/pull/25366">#25366</a>), <code class="notranslate">Symfony\Component\HttpKernel\EventListener\ExceptionListener</code> decides to log this exception: <code class="notranslate">Uncaught PHP Exception AccessDeniedException ...</code>. Logging such a CRITICAL error has the bad side-effect of causing Monolog to send me an email.</p> </li> <li> <p dir="auto">step 3: because of its (now-comparatively-low) priority level of <code class="notranslate">1</code>, <code class="notranslate">Symfony\Component\Security\Http\Firewall\ExceptionListener</code> gets triggered. It converts the exception to a (redirect) <code class="notranslate">Response</code> (to the login page), and the website appears to work. However, it's way too late already, as "step 2" (above) already logged the error and sent me an exception email.</p> </li> </ul> <p dir="auto"><strong>Possible Solution</strong></p> <p dir="auto"><code class="notranslate">Symfony\Component\Security\Http\Firewall\ExceptionListener</code> can be executed with a higher priority than <code class="notranslate">Symfony\Component\HttpKernel\EventListener\ExceptionListener</code>, so that graceful handling of authentication exceptions can happen before logging.</p> <p dir="auto">Changing <code class="notranslate">Symfony\Component\Security\Http\Firewall\ExceptionListener</code>, so that the <code class="notranslate">KernelEvents::EXCEPTION</code> priority is higher (from <code class="notranslate">1</code> to <code class="notranslate">2049</code>) works around the problem.</p>
1
<h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.3-SNAPSHOT</li> <li>Operating System version: macOS</li> <li>Java version: java8、java12</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <p dir="auto">引入redis服务:<br> 在dubbo-consumer.xml中定义</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;dubbo:reference id=&quot;store&quot; interface=&quot;java.util.Map&quot; url=&quot;redis://127.0.0.1:6379&quot; /&gt;"><pre class="notranslate"><code class="notranslate">&lt;dubbo:reference id="store" interface="java.util.Map" url="redis://127.0.0.1:6379" /&gt; </code></pre></div> <p dir="auto">使用该服务:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(&quot;spring/dubbo-consumer.xml&quot;); Map map = context.getBean(&quot;store&quot;, Map.class); map.put(&quot;test&quot;, &quot;123&quot;); System.out.println(map.get(&quot;test&quot;));"><pre class="notranslate"><code class="notranslate">ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring/dubbo-consumer.xml"); Map map = context.getBean("store", Map.class); map.put("test", "123"); System.out.println(map.get("test")); </code></pre></div> <p dir="auto">在<strong>java8</strong>环境下启动consumer应用<strong>一切正常</strong>。</p> <p dir="auto">在<strong>java12</strong>环境下启动consumer应用<strong>异常</strong>,异常信息如下:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[20/08/19 14:39:05:065 CST] main WARN config.AbstractConfig: [DUBBO] There's no valid metadata config found, if you are using the simplified mode of registry url, please make sure you have a metadata address configured properly., dubbo version: , current host: 192.168.0.169 [20/08/19 14:39:05:140 CST] main INFO common.Version: [DUBBO] No codeSource for class java.util.Map when getVersion, use default version null, dubbo version: , current host: 192.168.0.169 [20/08/19 14:39:06:183 CST] main INFO config.AbstractConfig: [DUBBO] Refer dubbo service java.util.Map from url redis://127.0.0.1:6379/java.util.Map?application=demo-consumer&amp;dubbo=2.0.2&amp;interface=java.util.Map&amp;lazy=false&amp;methods=getOrDefault,ofEntries,values,computeIfAbsent,replace,replaceAll,remove,put,containsValue,compute,hashCode,get,of,merge,putAll,keySet,entrySet,forEach,containsKey,clear,isEmpty,copyOf,entry,computeIfPresent,size,equals,putIfAbsent&amp;pid=15822&amp;qos-port=33333&amp;register.ip=192.168.0.169&amp;side=consumer&amp;sticky=false&amp;timestamp=1566283145066, dubbo version: , current host: 192.168.0.169 Exception in thread &quot;main&quot; org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'store': FactoryBean threw exception on object creation; nested exception is java.lang.RuntimeException: [source error] not available in a static method: handler at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:177) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:103) at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1640) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:254) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1086) at org.apache.dubbo.demo.consumer.Application.main(Application.java:38) Caused by: java.lang.RuntimeException: [source error] not available in a static method: handler at org.apache.dubbo.common.bytecode.ClassGenerator.toClass(ClassGenerator.java:348) at org.apache.dubbo.common.bytecode.ClassGenerator.toClass(ClassGenerator.java:287) at org.apache.dubbo.common.bytecode.Proxy.getProxy(Proxy.java:192) at org.apache.dubbo.common.bytecode.Proxy.getProxy(Proxy.java:66) at org.apache.dubbo.rpc.proxy.javassist.JavassistProxyFactory.getProxy(JavassistProxyFactory.java:35) at org.apache.dubbo.rpc.proxy.AbstractProxyFactory.getProxy(AbstractProxyFactory.java:68) at org.apache.dubbo.rpc.proxy.AbstractProxyFactory.getProxy(AbstractProxyFactory.java:37) at org.apache.dubbo.rpc.proxy.wrapper.StubProxyFactoryWrapper.getProxy(StubProxyFactoryWrapper.java:72) at org.apache.dubbo.rpc.ProxyFactory$Adaptive.getProxy(ProxyFactory$Adaptive.java) at org.apache.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:433) at org.apache.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:329) at org.apache.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:250) at org.apache.dubbo.config.spring.ReferenceBean.getObject(ReferenceBean.java:73) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:170) ... 6 more Caused by: javassist.CannotCompileException: [source error] not available in a static method: handler at javassist.CtNewMethod.make(CtNewMethod.java:79) at javassist.CtNewMethod.make(CtNewMethod.java:45) at org.apache.dubbo.common.bytecode.ClassGenerator.toClass(ClassGenerator.java:323) ... 19 more Caused by: compile error: not available in a static method: handler at javassist.compiler.MemberCodeGen.fieldAccess(MemberCodeGen.java:1037) at javassist.compiler.MemberCodeGen.atFieldRead(MemberCodeGen.java:867) at javassist.compiler.MemberCodeGen.atMember(MemberCodeGen.java:862) at javassist.compiler.JvstCodeGen.atMember(JvstCodeGen.java:112) at javassist.compiler.ast.Member.accept(Member.java:39) at javassist.compiler.MemberCodeGen.atCallExpr(MemberCodeGen.java:510) at javassist.compiler.JvstCodeGen.atCallExpr(JvstCodeGen.java:244) at javassist.compiler.ast.CallExpr.accept(CallExpr.java:46) at javassist.compiler.CodeGen.atAssignCore(CodeGen.java:877) at javassist.compiler.CodeGen.atVariableAssign(CodeGen.java:810) at javassist.compiler.CodeGen.atDeclarator(CodeGen.java:744) at javassist.compiler.ast.Declarator.accept(Declarator.java:100) at javassist.compiler.CodeGen.atStmnt(CodeGen.java:351) at javassist.compiler.ast.Stmnt.accept(Stmnt.java:50) at javassist.compiler.CodeGen.atStmnt(CodeGen.java:351) at javassist.compiler.ast.Stmnt.accept(Stmnt.java:50) at javassist.compiler.CodeGen.atMethodBody(CodeGen.java:292) at javassist.compiler.CodeGen.atMethodDecl(CodeGen.java:274) at javassist.compiler.ast.MethodDecl.accept(MethodDecl.java:44) at javassist.compiler.Javac.compileMethod(Javac.java:169) at javassist.compiler.Javac.compile(Javac.java:95) at javassist.CtNewMethod.make(CtNewMethod.java:74) ... 21 more [20/08/19 14:39:06:298 CST] Thread-0 INFO support.ClassPathXmlApplicationContext: Closing org.springframework.context.support.ClassPathXmlApplicationContext@1134affc: startup date [Tue Aug 20 14:39:02 CST 2019]; root of context hierarchy [20/08/19 14:39:06:302 CST] Thread-0 INFO support.AbstractRegistryFactory: [DUBBO] Close all registries [], dubbo version: , current host: 192.168.0.169"><pre class="notranslate"><code class="notranslate">[20/08/19 14:39:05:065 CST] main WARN config.AbstractConfig: [DUBBO] There's no valid metadata config found, if you are using the simplified mode of registry url, please make sure you have a metadata address configured properly., dubbo version: , current host: 192.168.0.169 [20/08/19 14:39:05:140 CST] main INFO common.Version: [DUBBO] No codeSource for class java.util.Map when getVersion, use default version null, dubbo version: , current host: 192.168.0.169 [20/08/19 14:39:06:183 CST] main INFO config.AbstractConfig: [DUBBO] Refer dubbo service java.util.Map from url redis://127.0.0.1:6379/java.util.Map?application=demo-consumer&amp;dubbo=2.0.2&amp;interface=java.util.Map&amp;lazy=false&amp;methods=getOrDefault,ofEntries,values,computeIfAbsent,replace,replaceAll,remove,put,containsValue,compute,hashCode,get,of,merge,putAll,keySet,entrySet,forEach,containsKey,clear,isEmpty,copyOf,entry,computeIfPresent,size,equals,putIfAbsent&amp;pid=15822&amp;qos-port=33333&amp;register.ip=192.168.0.169&amp;side=consumer&amp;sticky=false&amp;timestamp=1566283145066, dubbo version: , current host: 192.168.0.169 Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'store': FactoryBean threw exception on object creation; nested exception is java.lang.RuntimeException: [source error] not available in a static method: handler at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:177) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:103) at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1640) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:254) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1086) at org.apache.dubbo.demo.consumer.Application.main(Application.java:38) Caused by: java.lang.RuntimeException: [source error] not available in a static method: handler at org.apache.dubbo.common.bytecode.ClassGenerator.toClass(ClassGenerator.java:348) at org.apache.dubbo.common.bytecode.ClassGenerator.toClass(ClassGenerator.java:287) at org.apache.dubbo.common.bytecode.Proxy.getProxy(Proxy.java:192) at org.apache.dubbo.common.bytecode.Proxy.getProxy(Proxy.java:66) at org.apache.dubbo.rpc.proxy.javassist.JavassistProxyFactory.getProxy(JavassistProxyFactory.java:35) at org.apache.dubbo.rpc.proxy.AbstractProxyFactory.getProxy(AbstractProxyFactory.java:68) at org.apache.dubbo.rpc.proxy.AbstractProxyFactory.getProxy(AbstractProxyFactory.java:37) at org.apache.dubbo.rpc.proxy.wrapper.StubProxyFactoryWrapper.getProxy(StubProxyFactoryWrapper.java:72) at org.apache.dubbo.rpc.ProxyFactory$Adaptive.getProxy(ProxyFactory$Adaptive.java) at org.apache.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:433) at org.apache.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:329) at org.apache.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:250) at org.apache.dubbo.config.spring.ReferenceBean.getObject(ReferenceBean.java:73) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:170) ... 6 more Caused by: javassist.CannotCompileException: [source error] not available in a static method: handler at javassist.CtNewMethod.make(CtNewMethod.java:79) at javassist.CtNewMethod.make(CtNewMethod.java:45) at org.apache.dubbo.common.bytecode.ClassGenerator.toClass(ClassGenerator.java:323) ... 19 more Caused by: compile error: not available in a static method: handler at javassist.compiler.MemberCodeGen.fieldAccess(MemberCodeGen.java:1037) at javassist.compiler.MemberCodeGen.atFieldRead(MemberCodeGen.java:867) at javassist.compiler.MemberCodeGen.atMember(MemberCodeGen.java:862) at javassist.compiler.JvstCodeGen.atMember(JvstCodeGen.java:112) at javassist.compiler.ast.Member.accept(Member.java:39) at javassist.compiler.MemberCodeGen.atCallExpr(MemberCodeGen.java:510) at javassist.compiler.JvstCodeGen.atCallExpr(JvstCodeGen.java:244) at javassist.compiler.ast.CallExpr.accept(CallExpr.java:46) at javassist.compiler.CodeGen.atAssignCore(CodeGen.java:877) at javassist.compiler.CodeGen.atVariableAssign(CodeGen.java:810) at javassist.compiler.CodeGen.atDeclarator(CodeGen.java:744) at javassist.compiler.ast.Declarator.accept(Declarator.java:100) at javassist.compiler.CodeGen.atStmnt(CodeGen.java:351) at javassist.compiler.ast.Stmnt.accept(Stmnt.java:50) at javassist.compiler.CodeGen.atStmnt(CodeGen.java:351) at javassist.compiler.ast.Stmnt.accept(Stmnt.java:50) at javassist.compiler.CodeGen.atMethodBody(CodeGen.java:292) at javassist.compiler.CodeGen.atMethodDecl(CodeGen.java:274) at javassist.compiler.ast.MethodDecl.accept(MethodDecl.java:44) at javassist.compiler.Javac.compileMethod(Javac.java:169) at javassist.compiler.Javac.compile(Javac.java:95) at javassist.CtNewMethod.make(CtNewMethod.java:74) ... 21 more [20/08/19 14:39:06:298 CST] Thread-0 INFO support.ClassPathXmlApplicationContext: Closing org.springframework.context.support.ClassPathXmlApplicationContext@1134affc: startup date [Tue Aug 20 14:39:02 CST 2019]; root of context hierarchy [20/08/19 14:39:06:302 CST] Thread-0 INFO support.AbstractRegistryFactory: [DUBBO] Close all registries [], dubbo version: , current host: 192.168.0.169 </code></pre></div> <h3 dir="auto">Expected Result</h3> <p dir="auto">java12中也能正常使用</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">出现异常,异常信息见上文</p> <h3 dir="auto">分析</h3> <p dir="auto">异常原因是Dubbo在对<code class="notranslate">java.util.Map</code>进行代理时,使用javassit对每个方法进行代理,在java9之前,Map接口中是没有static方法的,而之后新增了一些static方法,现在代理逻辑里没有处理static方法的代理逻辑,导致代理时出现异常。</p>
<p dir="auto">In jdk8 the interface supports static method.<br> The compilation of static methods should be excluded when generating the proxy.<br> If not excluded, the following exception will be thrown:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Caused by: compile error: not available in a static method: handler at javassist.compiler.MemberCodeGen.fieldAccess(MemberCodeGen.java:1037) at javassist.compiler.MemberCodeGen.atFieldRead(MemberCodeGen.java:867) at javassist.compiler.MemberCodeGen.atMember(MemberCodeGen.java:862) at javassist.compiler.JvstCodeGen.atMember(JvstCodeGen.java:112) at javassist.compiler.ast.Member.accept(Member.java:39) at javassist.compiler.MemberCodeGen.atCallExpr(MemberCodeGen.java:510) at javassist.compiler.JvstCodeGen.atCallExpr(JvstCodeGen.java:244) at javassist.compiler.ast.CallExpr.accept(CallExpr.java:46) at javassist.compiler.CodeGen.atAssignCore(CodeGen.java:877) at javassist.compiler.CodeGen.atVariableAssign(CodeGen.java:810) at javassist.compiler.CodeGen.atDeclarator(CodeGen.java:744) at javassist.compiler.ast.Declarator.accept(Declarator.java:100) at javassist.compiler.CodeGen.atStmnt(CodeGen.java:351) at javassist.compiler.ast.Stmnt.accept(Stmnt.java:50) at javassist.compiler.CodeGen.atStmnt(CodeGen.java:351) at javassist.compiler.ast.Stmnt.accept(Stmnt.java:50) at javassist.compiler.CodeGen.atMethodBody(CodeGen.java:292) at javassist.compiler.CodeGen.atMethodDecl(CodeGen.java:274) at javassist.compiler.ast.MethodDecl.accept(MethodDecl.java:44) at javassist.compiler.Javac.compileMethod(Javac.java:169) at javassist.compiler.Javac.compile(Javac.java:95) at javassist.CtNewMethod.make(CtNewMethod.java:74)"><pre class="notranslate"><code class="notranslate">Caused by: compile error: not available in a static method: handler at javassist.compiler.MemberCodeGen.fieldAccess(MemberCodeGen.java:1037) at javassist.compiler.MemberCodeGen.atFieldRead(MemberCodeGen.java:867) at javassist.compiler.MemberCodeGen.atMember(MemberCodeGen.java:862) at javassist.compiler.JvstCodeGen.atMember(JvstCodeGen.java:112) at javassist.compiler.ast.Member.accept(Member.java:39) at javassist.compiler.MemberCodeGen.atCallExpr(MemberCodeGen.java:510) at javassist.compiler.JvstCodeGen.atCallExpr(JvstCodeGen.java:244) at javassist.compiler.ast.CallExpr.accept(CallExpr.java:46) at javassist.compiler.CodeGen.atAssignCore(CodeGen.java:877) at javassist.compiler.CodeGen.atVariableAssign(CodeGen.java:810) at javassist.compiler.CodeGen.atDeclarator(CodeGen.java:744) at javassist.compiler.ast.Declarator.accept(Declarator.java:100) at javassist.compiler.CodeGen.atStmnt(CodeGen.java:351) at javassist.compiler.ast.Stmnt.accept(Stmnt.java:50) at javassist.compiler.CodeGen.atStmnt(CodeGen.java:351) at javassist.compiler.ast.Stmnt.accept(Stmnt.java:50) at javassist.compiler.CodeGen.atMethodBody(CodeGen.java:292) at javassist.compiler.CodeGen.atMethodDecl(CodeGen.java:274) at javassist.compiler.ast.MethodDecl.accept(MethodDecl.java:44) at javassist.compiler.Javac.compileMethod(Javac.java:169) at javassist.compiler.Javac.compile(Javac.java:95) at javassist.CtNewMethod.make(CtNewMethod.java:74) </code></pre></div>
1
<p dir="auto">Just changed a project to Bootstrap 2.3.2 (the only change I made was to change 2.3.1 to 2.3.2 in the .js and .css links to the netdna CDN. Now any dropdowns on mobile don't work when you tap them (they work fine in a desktop browser if I resize the browser window so that the header nav.nav-collapse collapses into the menu. The submenus also work fine on an iPad when the nav-collapse menu is not collapsed.</p>
<p dir="auto">I had a project using more or less the same menu and it worked. Found out it was using Bootstrap version 2.3.1. Compared version 2.3.2 and 2.3.1 and found that in version 2.3.2 there's this snippet of CSS that reads:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=".dropdown-backdrop { position: fixed; left: 0; right: 0; bottom: 0; top: 0; z-index: 990; }"><pre class="notranslate"><code class="notranslate">.dropdown-backdrop { position: fixed; left: 0; right: 0; bottom: 0; top: 0; z-index: 990; } </code></pre></div> <p dir="auto">and the rule: <code class="notranslate">position: fixed;</code> seems to cause all the problems.</p> <p dir="auto">I still don't undertand the point of the markup that is added by the bootstrap dropdown plugin:</p> <p dir="auto"><code class="notranslate">&lt;div class="dropdown-backdrop"&gt;&lt;/div&gt;</code></p> <p dir="auto">So I've temporarily fixed the bug on my end by adding a style to override the style causing the problem:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=".dropdown-backdrop { position: static; }"><pre class="notranslate"><code class="notranslate">.dropdown-backdrop { position: static; } </code></pre></div> <p dir="auto">To me this looks like a bug introduced from version 2.3.1 to 2.3.2. Maybe I'm wrong. If someone could explain the purpose of the empty div, it would be helpful.</p>
1
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [版本 10.0.18362.295] Windows Terminal version (if applicable): 0.4.2382.0 Profile Font: Consolas Any other software? Remote Linux box locale: en_US.UTF-8"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [版本 10.0.18362.295] Windows Terminal version (if applicable): 0.4.2382.0 Profile Font: Consolas Any other software? Remote Linux box locale: en_US.UTF-8 </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">(Some of these steps might not be relevant)</p> <ol dir="auto"> <li>Open the debian WSL profile</li> <li>SSH to a remote Linux box</li> <li>Start a tmux session</li> <li>Edit a file which contains Chinese character and has lines more than the terminal using neovim</li> <li>Scroll through the lines in neovim</li> </ol> <h1 dir="auto">Expected behavior</h1> <p dir="auto">The unicode(Chinese) characters' font size should be consistent and should not be duplicated.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/3133289/64590078-46c21800-d3d9-11e9-8b13-720a5b72492d.png"><img src="https://user-images.githubusercontent.com/3133289/64590078-46c21800-d3d9-11e9-8b13-720a5b72492d.png" alt="snapshot" style="max-width: 100%;"></a></p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">When scrolling, by chances the Chinese characters get duplicated and the font get smaller than other normally rendered Chinese characters.</p>
<p dir="auto">Current tags and unused tags cannot be clearly distinguished</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/20833242/65652866-d1e01680-e045-11e9-87cb-8b79a36e0625.jpg"><img src="https://user-images.githubusercontent.com/20833242/65652866-d1e01680-e045-11e9-87cb-8b79a36e0625.jpg" alt="tmp" style="max-width: 100%;"></a></p> <p dir="auto">Hope to highlight</p>
0
<p dir="auto">flutter_gallery__transition_perf_with_semantics delta_missed_frame_build_budget_count regressed after <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="256792086" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/12039" data-hovercard-type="pull_request" data-hovercard-url="/flutter/flutter/pull/12039/hovercard" href="https://github.com/flutter/flutter/pull/12039">#12039</a>.</p> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/goderbauer/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/goderbauer">@goderbauer</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Performing hot reload... Reloaded 0 of 415 libraries in 866ms. flutter: ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════ flutter: The following assertion was thrown while finalizing the widget tree: flutter: 'package:flutter/src/widgets/scroll_position.dart': Failed assertion: line 657 pos 12: 'pixels != flutter: null': is not true. flutter: flutter: Either the assertion indicates an error in the framework itself, or we should provide substantially flutter: more information in this error message to help you determine and fix the underlying cause. flutter: In either case, please report this assertion by filing a bug on GitHub: flutter: https://github.com/flutter/flutter/issues/new flutter: flutter: When the exception was thrown, this was the stack: flutter: #2 ScrollPosition.dispose (package:flutter/src/widgets/scroll_position.dart) flutter: #3 ScrollPositionWithSingleContext.dispose (package:flutter/src/widgets/scroll_position_with_single_context.dart:255:11) flutter: #4 ScrollableState.dispose (package:flutter/src/widgets/scrollable.dart:324:14) flutter: #5 StatefulElement.unmount (package:flutter/src/widgets/framework.dart:3821:12) flutter: #6 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1697:13) flutter: #7 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #8 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #9 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #10 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #11 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #12 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #13 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #14 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #15 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #16 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #17 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #18 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #19 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #20 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #21 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #22 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #23 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #24 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #25 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #26 MultiChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4742:16) flutter: #27 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #28 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #29 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #30 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #31 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #32 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #33 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #34 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #35 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #36 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #37 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #38 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4642:14) flutter: #39 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #40 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #41 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #42 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #43 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #44 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4642:14) flutter: #45 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #46 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #47 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #48 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #49 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #50 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #51 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #52 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #53 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #54 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #55 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #56 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #57 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #58 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #59 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #60 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #61 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #62 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #63 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #64 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #65 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4642:14) flutter: #66 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #67 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #68 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #69 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #70 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #71 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4642:14) flutter: #72 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #73 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #74 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4642:14) flutter: #75 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #76 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #77 MultiChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4742:16) flutter: #78 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #79 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #80 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #81 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #82 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #83 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4642:14) flutter: #84 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #85 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #86 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #87 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #88 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #89 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4642:14) flutter: #90 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #91 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #92 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #93 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #94 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #95 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4642:14) flutter: #96 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #97 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #98 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #99 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #100 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #101 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #102 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #103 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #104 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #105 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #106 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #107 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4642:14) flutter: #108 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #109 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #110 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #111 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #112 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #113 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4642:14) flutter: #114 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #115 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #116 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #117 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #118 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #119 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #120 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #121 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #122 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4642:14) flutter: #123 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #124 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #125 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #126 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #127 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #128 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #129 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #130 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #131 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #132 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #133 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #134 MultiChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4742:16) flutter: #135 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #136 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #137 _TheatreElement.visitChildren (package:flutter/src/widgets/overlay.dart:465:14) flutter: #138 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #139 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #140 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #141 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #142 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #143 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #144 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #145 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #146 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4642:14) flutter: #147 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #148 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #149 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #150 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #151 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #152 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4642:14) flutter: #153 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #154 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #155 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4642:14) flutter: #156 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #157 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #158 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #159 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #160 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #161 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #162 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #163 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #164 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4642:14) flutter: #165 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #166 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #167 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #168 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #169 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #170 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #171 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #172 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #173 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #174 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #175 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #176 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #177 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #178 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #179 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #180 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #181 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #182 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4642:14) flutter: #183 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #184 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #185 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #186 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #187 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #188 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #189 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #190 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #191 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #192 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #193 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #194 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #195 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #196 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #197 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #198 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #199 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #200 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #201 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #202 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #203 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #204 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #205 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #206 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #207 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #208 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #209 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #210 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #211 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #212 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #213 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #214 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #215 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4642:14) flutter: #216 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #217 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #218 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #219 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #220 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #221 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #222 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #223 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #224 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #225 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #226 ListIterable.forEach (dart:_internal/iterable.dart:39:13) flutter: #227 _InactiveElements._unmountAll (package:flutter/src/widgets/framework.dart:1706:25) flutter: #228 BuildOwner.finalizeTree.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:2328:27) flutter: #229 BuildOwner.lockState (package:flutter/src/widgets/framework.dart:2160:15) flutter: #230 BuildOwner.finalizeTree (package:flutter/src/widgets/framework.dart:2327:7) flutter: #231 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding&amp;PaintingBinding&amp;RendererBinding&amp;WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:628:18) flutter: #232 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding&amp;PaintingBinding&amp;RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:208:5) flutter: #233 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15) flutter: #234 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9) flutter: #235 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:842:5) flutter: #236 _invoke (dart:ui/hooks.dart:120:13) flutter: #237 _drawFrame (dart:ui/hooks.dart:109:3) flutter: (elided 2 frames from class _AssertionError) flutter: ════════════════════════════════════════════════════════════════════════════════════════════════════"><pre class="notranslate"><code class="notranslate">Performing hot reload... Reloaded 0 of 415 libraries in 866ms. flutter: ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════ flutter: The following assertion was thrown while finalizing the widget tree: flutter: 'package:flutter/src/widgets/scroll_position.dart': Failed assertion: line 657 pos 12: 'pixels != flutter: null': is not true. flutter: flutter: Either the assertion indicates an error in the framework itself, or we should provide substantially flutter: more information in this error message to help you determine and fix the underlying cause. flutter: In either case, please report this assertion by filing a bug on GitHub: flutter: https://github.com/flutter/flutter/issues/new flutter: flutter: When the exception was thrown, this was the stack: flutter: #2 ScrollPosition.dispose (package:flutter/src/widgets/scroll_position.dart) flutter: #3 ScrollPositionWithSingleContext.dispose (package:flutter/src/widgets/scroll_position_with_single_context.dart:255:11) flutter: #4 ScrollableState.dispose (package:flutter/src/widgets/scrollable.dart:324:14) flutter: #5 StatefulElement.unmount (package:flutter/src/widgets/framework.dart:3821:12) flutter: #6 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1697:13) flutter: #7 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #8 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #9 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #10 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #11 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #12 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #13 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #14 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #15 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #16 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #17 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #18 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #19 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #20 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #21 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #22 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #23 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #24 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #25 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #26 MultiChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4742:16) flutter: #27 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #28 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #29 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #30 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #31 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #32 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #33 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #34 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #35 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #36 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #37 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #38 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4642:14) flutter: #39 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #40 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #41 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #42 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #43 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #44 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4642:14) flutter: #45 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #46 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #47 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #48 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #49 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #50 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #51 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #52 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #53 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #54 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #55 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #56 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #57 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #58 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #59 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #60 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #61 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #62 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #63 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #64 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #65 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4642:14) flutter: #66 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #67 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #68 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #69 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #70 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #71 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4642:14) flutter: #72 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #73 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #74 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4642:14) flutter: #75 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #76 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #77 MultiChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4742:16) flutter: #78 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #79 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #80 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #81 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #82 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #83 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4642:14) flutter: #84 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #85 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #86 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #87 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #88 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #89 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4642:14) flutter: #90 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #91 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #92 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #93 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #94 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #95 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4642:14) flutter: #96 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #97 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #98 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #99 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #100 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #101 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #102 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #103 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #104 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #105 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #106 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #107 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4642:14) flutter: #108 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #109 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #110 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #111 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #112 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #113 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4642:14) flutter: #114 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #115 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #116 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #117 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #118 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #119 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #120 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #121 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #122 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4642:14) flutter: #123 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #124 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #125 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #126 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #127 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #128 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #129 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #130 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #131 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #132 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #133 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #134 MultiChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4742:16) flutter: #135 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #136 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #137 _TheatreElement.visitChildren (package:flutter/src/widgets/overlay.dart:465:14) flutter: #138 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #139 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #140 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #141 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #142 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #143 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #144 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #145 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #146 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4642:14) flutter: #147 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #148 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #149 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #150 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #151 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #152 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4642:14) flutter: #153 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #154 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #155 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4642:14) flutter: #156 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #157 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #158 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #159 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #160 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #161 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #162 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #163 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #164 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4642:14) flutter: #165 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #166 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #167 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #168 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #169 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #170 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #171 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #172 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #173 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #174 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #175 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #176 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #177 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #178 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #179 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #180 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #181 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #182 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4642:14) flutter: #183 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #184 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #185 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #186 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #187 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #188 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #189 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #190 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #191 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #192 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #193 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #194 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #195 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #196 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #197 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #198 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #199 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #200 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #201 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #202 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #203 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #204 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #205 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #206 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #207 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #208 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #209 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #210 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #211 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #212 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #213 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #214 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #215 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:4642:14) flutter: #216 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #217 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #218 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #219 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #220 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #221 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #222 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #223 _InactiveElements._unmount.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:1695:7) flutter: #224 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3676:14) flutter: #225 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1693:13) flutter: #226 ListIterable.forEach (dart:_internal/iterable.dart:39:13) flutter: #227 _InactiveElements._unmountAll (package:flutter/src/widgets/framework.dart:1706:25) flutter: #228 BuildOwner.finalizeTree.&lt;anonymous closure&gt; (package:flutter/src/widgets/framework.dart:2328:27) flutter: #229 BuildOwner.lockState (package:flutter/src/widgets/framework.dart:2160:15) flutter: #230 BuildOwner.finalizeTree (package:flutter/src/widgets/framework.dart:2327:7) flutter: #231 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding&amp;PaintingBinding&amp;RendererBinding&amp;WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:628:18) flutter: #232 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding&amp;PaintingBinding&amp;RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:208:5) flutter: #233 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15) flutter: #234 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9) flutter: #235 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:842:5) flutter: #236 _invoke (dart:ui/hooks.dart:120:13) flutter: #237 _drawFrame (dart:ui/hooks.dart:109:3) flutter: (elided 2 frames from class _AssertionError) flutter: ════════════════════════════════════════════════════════════════════════════════════════════════════ </code></pre></div>
0
<h3 dir="auto">Vue.js version</h3> <p dir="auto">1.0.21</p> <h3 dir="auto">My code here</h3> <p dir="auto">my svg-icon component:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;template&gt; &lt;svg viewBox=&quot;0 0 24 24&quot; preserveAspectRatio=&quot;xMidYMid meet&quot; fit :style=&quot;style&quot;&gt; &lt;g v-if=&quot;path&quot;&gt;&lt;path :d=&quot;path&quot;/&gt;&lt;/g&gt; &lt;slot v-if=&quot;!path&quot;&gt;&lt;/slot&gt; &lt;/svg&gt; &lt;/template&gt; &lt;script type=&quot;text/babel&quot;&gt; export default { props: { path: { type: String, default: '' }, size: { type: Number, default: 24 } }, computed: { style () { return { fill: 'currentcolor', verticalAlign: 'middle', width: this.size, height: this.size } } } } &lt;/script&gt;"><pre class="notranslate"><code class="notranslate">&lt;template&gt; &lt;svg viewBox="0 0 24 24" preserveAspectRatio="xMidYMid meet" fit :style="style"&gt; &lt;g v-if="path"&gt;&lt;path :d="path"/&gt;&lt;/g&gt; &lt;slot v-if="!path"&gt;&lt;/slot&gt; &lt;/svg&gt; &lt;/template&gt; &lt;script type="text/babel"&gt; export default { props: { path: { type: String, default: '' }, size: { type: Number, default: 24 } }, computed: { style () { return { fill: 'currentcolor', verticalAlign: 'middle', width: this.size, height: this.size } } } } &lt;/script&gt; </code></pre></div> <p dir="auto">and sometimes I want to use it like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;template&gt; &lt;svg-icon :size=&quot;size&quot;&gt; &lt;circle cx=&quot;6.181&quot; cy=&quot;4.063&quot; r=&quot;2.591&quot;&gt;&lt;/circle&gt; &lt;path d=&quot;M.6 12.202a5.614 5.614 0 0 1 11.228 0&quot;&gt;&lt;/path&gt; &lt;g&gt; &lt;circle cx=&quot;11.98&quot; cy=&quot;6.993&quot; r=&quot;1.569&quot;&gt;&lt;/circle&gt; &lt;path d=&quot;M12.24 12.202c.018-1.853-.625-2.927-1.35-3.495-.29-.227.721-.185 1.11-.185 1.877 0 3.4 1.802 3.4 3.68&quot;&gt;&lt;/path&gt; &lt;/g&gt; &lt;/svg-icon&gt; &lt;/template&gt; &lt;script&gt; import svgIcon from '../icon/icon.vue' export default { props: ['size'], components: { svgIcon } } &lt;/script&gt;"><pre class="notranslate"><code class="notranslate">&lt;template&gt; &lt;svg-icon :size="size"&gt; &lt;circle cx="6.181" cy="4.063" r="2.591"&gt;&lt;/circle&gt; &lt;path d="M.6 12.202a5.614 5.614 0 0 1 11.228 0"&gt;&lt;/path&gt; &lt;g&gt; &lt;circle cx="11.98" cy="6.993" r="1.569"&gt;&lt;/circle&gt; &lt;path d="M12.24 12.202c.018-1.853-.625-2.927-1.35-3.495-.29-.227.721-.185 1.11-.185 1.877 0 3.4 1.802 3.4 3.68"&gt;&lt;/path&gt; &lt;/g&gt; &lt;/svg-icon&gt; &lt;/template&gt; &lt;script&gt; import svgIcon from '../icon/icon.vue' export default { props: ['size'], components: { svgIcon } } &lt;/script&gt; </code></pre></div> <h3 dir="auto">What is Expected?</h3> <p dir="auto">I expect both pass a path props and slot is OK</p> <h3 dir="auto">What is actually happening?</h3> <p dir="auto">slot is not OK, and path props seems fine.</p> <p dir="auto">the warn showed when use slot<br> <em>vue.common.js?e881:987[Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.</em></p>
<h3 dir="auto">Vue.js version</h3> <p dir="auto">1.0.16</p> <h3 dir="auto">Reproduction Link</h3> <p dir="auto"><a href="http://jsfiddle.net/5sH6A/320/" rel="nofollow">http://jsfiddle.net/5sH6A/320/</a></p> <h3 dir="auto">Steps to reproduce</h3> <p dir="auto">JSfiddle above... inspect console and errors will show up.</p> <h3 dir="auto">What is Expected?</h3> <p dir="auto">'g' and 'line' to be treated as svg elements after being dropped in between two svg tags via 'slot''</p> <h3 dir="auto">What is actually happening?</h3> <p dir="auto">'g' and 'line' not being recognized as svg elements and being treated as custom components unless warpped in another 'svg' tag on top of an already existing 'svg' tag.</p> <p dir="auto">error: Unknown custom element: 'g'- did you register the component correctly? For recursive components, make sure to provide the "name" option.</p>
1
<p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-kubemark-500-gce/7797/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-kubemark-500-gce/7797/</a></p> <p dir="auto">Failed: [k8s.io] Density [Feature:Performance] should allow starting 30 pods per node {Kubernetes e2e suite}</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:142 Expected &lt;[]string | len:1, cap:1&gt;: [ &quot;Container kube-apiserver/kube-apiserver is using 2.71/2.5 CPU&quot;, ] to be empty /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/resource_usage_gatherer.go:376"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:142 Expected &lt;[]string | len:1, cap:1&gt;: [ "Container kube-apiserver/kube-apiserver is using 2.71/2.5 CPU", ] to be empty /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/resource_usage_gatherer.go:376 </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="156565908" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/26185" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/26185/hovercard" href="https://github.com/kubernetes/kubernetes/issues/26185">#26185</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="159478105" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/27142" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/27142/hovercard" href="https://github.com/kubernetes/kubernetes/issues/27142">#27142</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="170164057" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/30275" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/30275/hovercard" href="https://github.com/kubernetes/kubernetes/issues/30275">#30275</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="172413535" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/31101" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/31101/hovercard" href="https://github.com/kubernetes/kubernetes/issues/31101">#31101</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="172432215" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/31105" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/31105/hovercard" href="https://github.com/kubernetes/kubernetes/issues/31105">#31105</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="175002054" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/32059" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/32059/hovercard" href="https://github.com/kubernetes/kubernetes/issues/32059">#32059</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="175054808" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/32074" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/32074/hovercard" href="https://github.com/kubernetes/kubernetes/issues/32074">#32074</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="175061565" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/32078" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/32078/hovercard" href="https://github.com/kubernetes/kubernetes/issues/32078">#32078</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="175155638" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/32098" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/32098/hovercard" href="https://github.com/kubernetes/kubernetes/issues/32098">#32098</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="176163590" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/32437" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/32437/hovercard" href="https://github.com/kubernetes/kubernetes/issues/32437">#32437</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="176493311" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/32525" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/32525/hovercard" href="https://github.com/kubernetes/kubernetes/issues/32525">#32525</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="178759755" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/33344" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/33344/hovercard" href="https://github.com/kubernetes/kubernetes/issues/33344">#33344</a></p>
<p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-kubemark-500-gce/6840/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-kubemark-500-gce/6840/</a></p> <p dir="auto">Failed: [k8s.io] Density [Feature:Performance] should allow starting 30 pods per node {Kubernetes e2e suite}</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/density.go:387 There should be no high-latency requests Expected &lt;int&gt;: 1 not to be &gt; &lt;int&gt;: 0 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/density.go:381"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/density.go:387 There should be no high-latency requests Expected &lt;int&gt;: 1 not to be &gt; &lt;int&gt;: 0 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/density.go:381 </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="156565908" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/26185" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/26185/hovercard" href="https://github.com/kubernetes/kubernetes/issues/26185">#26185</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="159478105" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/27142" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/27142/hovercard" href="https://github.com/kubernetes/kubernetes/issues/27142">#27142</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="170164057" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/30275" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/30275/hovercard" href="https://github.com/kubernetes/kubernetes/issues/30275">#30275</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="172413535" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/31101" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/31101/hovercard" href="https://github.com/kubernetes/kubernetes/issues/31101">#31101</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="172432215" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/31105" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/31105/hovercard" href="https://github.com/kubernetes/kubernetes/issues/31105">#31105</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="175002054" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/32059" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/32059/hovercard" href="https://github.com/kubernetes/kubernetes/issues/32059">#32059</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="175054808" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/32074" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/32074/hovercard" href="https://github.com/kubernetes/kubernetes/issues/32074">#32074</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="175061565" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/32078" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/32078/hovercard" href="https://github.com/kubernetes/kubernetes/issues/32078">#32078</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="175155638" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/32098" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/32098/hovercard" href="https://github.com/kubernetes/kubernetes/issues/32098">#32098</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="176163590" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/32437" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/32437/hovercard" href="https://github.com/kubernetes/kubernetes/issues/32437">#32437</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="176493311" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/32525" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/32525/hovercard" href="https://github.com/kubernetes/kubernetes/issues/32525">#32525</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="178759755" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/33344" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/33344/hovercard" href="https://github.com/kubernetes/kubernetes/issues/33344">#33344</a></p>
1
<p dir="auto">Ran a cluster with preemptible minions - the load balancer service stopped working after 24 hours.</p> <p dir="auto">Manually simulated the same issue by deleting all minion nodes at once. The health check for the target pool disappeared.</p>
<p dir="auto">Need to add reconciler logic to the service controller sync loop to allow cloud provider packages to reconcile healthcheck and target pools created/needed by the service loadbalancer feature.</p>
1
<h2 dir="auto"><g-emoji class="g-emoji" alias="memo" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4dd.png">📝</g-emoji> Provide a description of the new feature</h2> <p dir="auto">Although Powertoys Run is great for quickly finding applications, it doesn't find system menus. Like Setting, Windows Update, Accounts, that kind of stuff. So I find myself still using the Windows key and then running the search instead, the old/normal way, but I prefer the experience better with the Powertoys Run UI. It would be great if this could be a complete replacement for Windows key/start typing to search.</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>
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Windows 10 Home Single Language 1909 PowerToys version: 0.18.1 PowerToy module for which you are reporting the bug (if applicable): Run"><pre class="notranslate"><code class="notranslate">Windows build number: Windows 10 Home Single Language 1909 PowerToys version: 0.18.1 PowerToy module for which you are reporting the bug (if applicable): Run </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">The v0.18.1 is only able to search for programs but not individual files, even when running in administrator mode.</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">The v0.18.0 could search for all files and programs. The same was expected of the update.<br> For the sake of complete reporting, I went back and installed v0.18.0 and did not experience the issue, which would rule out any problem caused by settings on the device.</p> <h1 dir="auto">Actual behavior</h1> <h1 dir="auto">Screenshots</h1>
0
<p dir="auto">We accidentally applied PureRenderMixin to a page that that rendered the same result given the same props and state, however, it broke the page since the context changed (for a isUserLoggedIn).</p>
<p dir="auto">I know <code class="notranslate">this.context</code> is not officially there but quite a few libraries rely on it, and it seems like it's getting into shape with <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="48577524" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/2509" data-hovercard-type="pull_request" data-hovercard-url="/facebook/react/pull/2509/hovercard" href="https://github.com/facebook/react/pull/2509">#2509</a>.</p> <p dir="auto">I'm trying to understand how exactly <code class="notranslate">shouldComponentUpdate</code> is supposed to be implemented with <code class="notranslate">context</code> in mind. I noticed it accepts a third argument (<code class="notranslate">nextContext</code>) and I can extend <code class="notranslate">PureRenderMixin</code> to also check it:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" shouldComponentUpdate: function(nextProps, nextState, nextContext) { return !shallowEqual(this.props, nextProps) || !shallowEqual(this.state, nextState) || !shallowEqual(this.context, nextContext); // this will throw without context, read on }"><pre class="notranslate"> shouldComponentUpdate: <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">nextProps</span><span class="pl-kos">,</span> <span class="pl-s1">nextState</span><span class="pl-kos">,</span> <span class="pl-s1">nextContext</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-c1">!</span><span class="pl-en">shallowEqual</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">props</span><span class="pl-kos">,</span> <span class="pl-s1">nextProps</span><span class="pl-kos">)</span> <span class="pl-c1">||</span> <span class="pl-c1">!</span><span class="pl-en">shallowEqual</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">state</span><span class="pl-kos">,</span> <span class="pl-s1">nextState</span><span class="pl-kos">)</span> <span class="pl-c1">||</span> <span class="pl-c1">!</span><span class="pl-en">shallowEqual</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">context</span><span class="pl-kos">,</span> <span class="pl-s1">nextContext</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// this will throw without context, read on</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Components that don't opt into <code class="notranslate">this.context</code> by not omitting <code class="notranslate">contextTypes</code> will not get this third argument, which is understandable.</p> <p dir="auto">However this presents a problem when we have a <code class="notranslate">&lt;Middle /&gt;</code> component in between between <code class="notranslate">&lt;Top /&gt;</code> context owner and <code class="notranslate">&lt;Bottom /&gt;</code> context consumer. If <code class="notranslate">&lt;Middle /&gt;</code> implements a restrictive <code class="notranslate">shouldComponentUpdate</code>, there is no way for <code class="notranslate">&lt;Bottom /&gt;</code> to react to <code class="notranslate">&lt;Top /&gt;</code>'s context updates at all:</p> <p dir="auto">(<strong><a href="http://jsbin.com/radakepusi/2/edit?js,output" rel="nofollow">fiddle</a></strong>)</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var Bottom = React.createClass({ contextTypes: { number: React.PropTypes.number.isRequired }, render: function () { return &lt;h1&gt;{this.context.number}&lt;/h1&gt; } }); var Middle = React.createClass({ shouldComponentUpdate: function (nextProps, nextState, nextContext) { return false; }, render: function () { return &lt;Bottom /&gt;; } }); var Top = React.createClass({ childContextTypes: { number: React.PropTypes.number.isRequired }, getInitialState: function () { return { number: 0 }; }, getChildContext: function () { return { number: this.state.number }; }, componentDidMount: function () { setInterval(function () { this.setState({ number: this.state.number + 1 }); }.bind(this), 1000); }, render: function() { return &lt;Middle /&gt;; } }); React.render(&lt;Top /&gt;, document.body);"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-v">Bottom</span> <span class="pl-c1">=</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-en">createClass</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">contextTypes</span>: <span class="pl-kos">{</span> <span class="pl-c1">number</span>: <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-c1">PropTypes</span><span class="pl-kos">.</span><span class="pl-c1">number</span><span class="pl-kos">.</span><span class="pl-c1">isRequired</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-en">render</span>: <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-c1">&lt;</span><span class="pl-ent">h1</span><span class="pl-c1">&gt;</span><span class="pl-kos">{</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">context</span><span class="pl-kos">.</span><span class="pl-c1">number</span><span class="pl-kos">}</span><span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">h1</span><span class="pl-c1">&gt;</span> <span class="pl-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">Middle</span> <span class="pl-c1">=</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-en">createClass</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-en">shouldComponentUpdate</span>: <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">nextProps</span><span class="pl-kos">,</span> <span class="pl-s1">nextState</span><span class="pl-kos">,</span> <span class="pl-s1">nextContext</span><span class="pl-kos">)</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><span class="pl-kos">,</span> <span class="pl-en">render</span>: <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-c1">&lt;</span><span class="pl-v">Bottom</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-v">Top</span> <span class="pl-c1">=</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-en">createClass</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">childContextTypes</span>: <span class="pl-kos">{</span> <span class="pl-c1">number</span>: <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-c1">PropTypes</span><span class="pl-kos">.</span><span class="pl-c1">number</span><span class="pl-kos">.</span><span class="pl-c1">isRequired</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-en">getInitialState</span>: <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-kos">{</span> <span class="pl-c1">number</span>: <span class="pl-c1">0</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-en">getChildContext</span>: <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-kos">{</span> <span class="pl-c1">number</span>: <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">state</span><span class="pl-kos">.</span><span class="pl-c1">number</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-en">componentDidMount</span>: <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">setInterval</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-en">setState</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">number</span>: <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">state</span><span class="pl-kos">.</span><span class="pl-c1">number</span> <span class="pl-c1">+</span> <span class="pl-c1">1</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">.</span><span class="pl-en">bind</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-c1">1000</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-en">render</span>: <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-c1">&lt;</span><span class="pl-v">Middle</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-c1">&lt;</span><span class="pl-v">Top</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span><span class="pl-kos">,</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-c1">body</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">The same problem would occur if I tried to give <code class="notranslate">Middle</code> a generic context-aware <code class="notranslate">shouldComponentUpdate</code> as I wrote above, because <code class="notranslate">Middle</code> has no <code class="notranslate">this.context</code> unless it opts in.</p> <p dir="auto">This is possible to work around by adding <code class="notranslate">contextTypes</code> to <code class="notranslate">Middle</code>, but it doesn't look like a good solution. You'd need to explicitly add necessary <code class="notranslate">contextTypes</code> on every level with smart <code class="notranslate">shouldComponentUpdate</code> so it's too easy to slip up.</p> <p dir="auto">Will this be solved by <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="41512990" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/2112" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/2112/hovercard" href="https://github.com/facebook/react/issues/2112">#2112</a>? Is there another solution in the meantime? What is the recommended way?</p>
1
<h3 dir="auto">Bug report</h3> <p dir="auto"><strong>Bug summary</strong></p> <p dir="auto">When plotting something with imshow using LogNorm with more than 17 orders of magnitude, it reports <code class="notranslate">ValueError: minvalue must be positive</code> when it should be -I believe- a precision related error. In the example below it works for 9.9e-16 but not for 1e-17.<br> Thus, when having data over this kind of range and not specifying limits, it crashes giving the wrong error message.</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 matplotlib.colors import LogNorm import matplotlib.pyplot as plt import numpy as np a = np.linspace(1,100) c,_,_ = np.histogram2d(np.log10(a),np.log10(a)) im = plt.imshow(c,norm=LogNorm(vmin=1e-17, vmax=1))"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">colors</span> <span class="pl-k">import</span> <span class="pl-v">LogNorm</span> <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">linspace</span>(<span class="pl-c1">1</span>,<span class="pl-c1">100</span>) <span class="pl-s1">c</span>,<span class="pl-s1">_</span>,<span class="pl-s1">_</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">histogram2d</span>(<span class="pl-s1">np</span>.<span class="pl-en">log10</span>(<span class="pl-s1">a</span>),<span class="pl-s1">np</span>.<span class="pl-en">log10</span>(<span class="pl-s1">a</span>)) <span class="pl-s1">im</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">imshow</span>(<span class="pl-s1">c</span>,<span class="pl-s1">norm</span><span class="pl-c1">=</span><span class="pl-v">LogNorm</span>(<span class="pl-s1">vmin</span><span class="pl-c1">=</span><span class="pl-c1">1e-17</span>, <span class="pl-s1">vmax</span><span class="pl-c1">=</span><span class="pl-c1">1</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="--------------------------------------------------------------------------- ValueError Traceback (most recent call last) ~/anaconda3/lib/python3.8/site-packages/IPython/core/formatters.py in __call__(self, obj) 339 pass 340 else: --&gt; 341 return printer(obj) 342 # Finally look for special method names 343 method = get_real_method(obj, self.print_method) ~/anaconda3/lib/python3.8/site-packages/IPython/core/pylabtools.py in &lt;lambda&gt;(fig) 252 jpg_formatter.for_type(Figure, lambda fig: print_figure(fig, 'jpg', **kwargs)) 253 if 'svg' in formats: --&gt; 254 svg_formatter.for_type(Figure, lambda fig: print_figure(fig, 'svg', **kwargs)) 255 if 'pdf' in formats: 256 pdf_formatter.for_type(Figure, lambda fig: print_figure(fig, 'pdf', **kwargs)) ~/anaconda3/lib/python3.8/site-packages/IPython/core/pylabtools.py in print_figure(fig, fmt, bbox_inches, **kwargs) 130 FigureCanvasBase(fig) 131 --&gt; 132 fig.canvas.print_figure(bytes_io, **kw) 133 data = bytes_io.getvalue() 134 if fmt == 'svg': ~/anaconda3/lib/python3.8/site-packages/matplotlib/backend_bases.py in print_figure(self, filename, dpi, facecolor, edgecolor, orientation, format, bbox_inches, pad_inches, bbox_extra_artists, backend, **kwargs) 2191 else suppress()) 2192 with ctx: -&gt; 2193 self.figure.draw(renderer) 2194 2195 bbox_inches = self.figure.get_tightbbox( ~/anaconda3/lib/python3.8/site-packages/matplotlib/artist.py in draw_wrapper(artist, renderer, *args, **kwargs) 39 renderer.start_filter() 40 ---&gt; 41 return draw(artist, renderer, *args, **kwargs) 42 finally: 43 if artist.get_agg_filter() is not None: ~/anaconda3/lib/python3.8/site-packages/matplotlib/figure.py in draw(self, renderer) 1861 1862 self.patch.draw(renderer) -&gt; 1863 mimage._draw_list_compositing_images( 1864 renderer, self, artists, self.suppressComposite) 1865 ~/anaconda3/lib/python3.8/site-packages/matplotlib/image.py in _draw_list_compositing_images(renderer, parent, artists, suppress_composite) 129 if not_composite or not has_images: 130 for a in artists: --&gt; 131 a.draw(renderer) 132 else: 133 # Composite any adjacent images together ~/anaconda3/lib/python3.8/site-packages/matplotlib/artist.py in draw_wrapper(artist, renderer, *args, **kwargs) 39 renderer.start_filter() 40 ---&gt; 41 return draw(artist, renderer, *args, **kwargs) 42 finally: 43 if artist.get_agg_filter() is not None: ~/anaconda3/lib/python3.8/site-packages/matplotlib/cbook/deprecation.py in wrapper(*inner_args, **inner_kwargs) 409 else deprecation_addendum, 410 **kwargs) --&gt; 411 return func(*inner_args, **inner_kwargs) 412 413 return wrapper ~/anaconda3/lib/python3.8/site-packages/matplotlib/axes/_base.py in draw(self, renderer, inframe) 2745 renderer.stop_rasterizing() 2746 -&gt; 2747 mimage._draw_list_compositing_images(renderer, self, artists) 2748 2749 renderer.close_group('axes') ~/anaconda3/lib/python3.8/site-packages/matplotlib/image.py in _draw_list_compositing_images(renderer, parent, artists, suppress_composite) 153 image_group.append(a) 154 else: --&gt; 155 flush_images() 156 a.draw(renderer) 157 flush_images() ~/anaconda3/lib/python3.8/site-packages/matplotlib/image.py in flush_images() 137 def flush_images(): 138 if len(image_group) == 1: --&gt; 139 image_group[0].draw(renderer) 140 elif len(image_group) &gt; 1: 141 data, l, b = composite_images(image_group, renderer, mag) ~/anaconda3/lib/python3.8/site-packages/matplotlib/artist.py in draw_wrapper(artist, renderer, *args, **kwargs) 39 renderer.start_filter() 40 ---&gt; 41 return draw(artist, renderer, *args, **kwargs) 42 finally: 43 if artist.get_agg_filter() is not None: ~/anaconda3/lib/python3.8/site-packages/matplotlib/image.py in draw(self, renderer, *args, **kwargs) 639 renderer.draw_image(gc, l, b, im, trans) 640 else: --&gt; 641 im, l, b, trans = self.make_image( 642 renderer, renderer.get_image_magnification()) 643 if im is not None: ~/anaconda3/lib/python3.8/site-packages/matplotlib/image.py in make_image(self, renderer, magnification, unsampled) 924 clip = ((self.get_clip_box() or self.axes.bbox) if self.get_clip_on() 925 else self.figure.bbox) --&gt; 926 return self._make_image(self._A, bbox, transformed_bbox, clip, 927 magnification, unsampled=unsampled) 928 ~/anaconda3/lib/python3.8/site-packages/matplotlib/image.py in _make_image(self, A, in_bbox, out_bbox, clip_bbox, magnification, unsampled, round_to_pixel_border) 543 vmax=s_vmax, 544 ): --&gt; 545 output = self.norm(resampled_masked) 546 else: 547 if A.shape[2] == 3: ~/anaconda3/lib/python3.8/site-packages/matplotlib/colors.py in __call__(self, value, clip) 1190 1191 self.autoscale_None(result) -&gt; 1192 self._check_vmin_vmax() 1193 vmin, vmax = self.vmin, self.vmax 1194 if vmin == vmax: ~/anaconda3/lib/python3.8/site-packages/matplotlib/colors.py in _check_vmin_vmax(self) 1179 raise ValueError(&quot;minvalue must be less than or equal to maxvalue&quot;) 1180 elif self.vmin &lt;= 0: -&gt; 1181 raise ValueError(&quot;minvalue must be positive&quot;) 1182 1183 def __call__(self, value, clip=None): ValueError: minvalue must be positive"><pre class="notranslate"><code class="notranslate">--------------------------------------------------------------------------- ValueError Traceback (most recent call last) ~/anaconda3/lib/python3.8/site-packages/IPython/core/formatters.py in __call__(self, obj) 339 pass 340 else: --&gt; 341 return printer(obj) 342 # Finally look for special method names 343 method = get_real_method(obj, self.print_method) ~/anaconda3/lib/python3.8/site-packages/IPython/core/pylabtools.py in &lt;lambda&gt;(fig) 252 jpg_formatter.for_type(Figure, lambda fig: print_figure(fig, 'jpg', **kwargs)) 253 if 'svg' in formats: --&gt; 254 svg_formatter.for_type(Figure, lambda fig: print_figure(fig, 'svg', **kwargs)) 255 if 'pdf' in formats: 256 pdf_formatter.for_type(Figure, lambda fig: print_figure(fig, 'pdf', **kwargs)) ~/anaconda3/lib/python3.8/site-packages/IPython/core/pylabtools.py in print_figure(fig, fmt, bbox_inches, **kwargs) 130 FigureCanvasBase(fig) 131 --&gt; 132 fig.canvas.print_figure(bytes_io, **kw) 133 data = bytes_io.getvalue() 134 if fmt == 'svg': ~/anaconda3/lib/python3.8/site-packages/matplotlib/backend_bases.py in print_figure(self, filename, dpi, facecolor, edgecolor, orientation, format, bbox_inches, pad_inches, bbox_extra_artists, backend, **kwargs) 2191 else suppress()) 2192 with ctx: -&gt; 2193 self.figure.draw(renderer) 2194 2195 bbox_inches = self.figure.get_tightbbox( ~/anaconda3/lib/python3.8/site-packages/matplotlib/artist.py in draw_wrapper(artist, renderer, *args, **kwargs) 39 renderer.start_filter() 40 ---&gt; 41 return draw(artist, renderer, *args, **kwargs) 42 finally: 43 if artist.get_agg_filter() is not None: ~/anaconda3/lib/python3.8/site-packages/matplotlib/figure.py in draw(self, renderer) 1861 1862 self.patch.draw(renderer) -&gt; 1863 mimage._draw_list_compositing_images( 1864 renderer, self, artists, self.suppressComposite) 1865 ~/anaconda3/lib/python3.8/site-packages/matplotlib/image.py in _draw_list_compositing_images(renderer, parent, artists, suppress_composite) 129 if not_composite or not has_images: 130 for a in artists: --&gt; 131 a.draw(renderer) 132 else: 133 # Composite any adjacent images together ~/anaconda3/lib/python3.8/site-packages/matplotlib/artist.py in draw_wrapper(artist, renderer, *args, **kwargs) 39 renderer.start_filter() 40 ---&gt; 41 return draw(artist, renderer, *args, **kwargs) 42 finally: 43 if artist.get_agg_filter() is not None: ~/anaconda3/lib/python3.8/site-packages/matplotlib/cbook/deprecation.py in wrapper(*inner_args, **inner_kwargs) 409 else deprecation_addendum, 410 **kwargs) --&gt; 411 return func(*inner_args, **inner_kwargs) 412 413 return wrapper ~/anaconda3/lib/python3.8/site-packages/matplotlib/axes/_base.py in draw(self, renderer, inframe) 2745 renderer.stop_rasterizing() 2746 -&gt; 2747 mimage._draw_list_compositing_images(renderer, self, artists) 2748 2749 renderer.close_group('axes') ~/anaconda3/lib/python3.8/site-packages/matplotlib/image.py in _draw_list_compositing_images(renderer, parent, artists, suppress_composite) 153 image_group.append(a) 154 else: --&gt; 155 flush_images() 156 a.draw(renderer) 157 flush_images() ~/anaconda3/lib/python3.8/site-packages/matplotlib/image.py in flush_images() 137 def flush_images(): 138 if len(image_group) == 1: --&gt; 139 image_group[0].draw(renderer) 140 elif len(image_group) &gt; 1: 141 data, l, b = composite_images(image_group, renderer, mag) ~/anaconda3/lib/python3.8/site-packages/matplotlib/artist.py in draw_wrapper(artist, renderer, *args, **kwargs) 39 renderer.start_filter() 40 ---&gt; 41 return draw(artist, renderer, *args, **kwargs) 42 finally: 43 if artist.get_agg_filter() is not None: ~/anaconda3/lib/python3.8/site-packages/matplotlib/image.py in draw(self, renderer, *args, **kwargs) 639 renderer.draw_image(gc, l, b, im, trans) 640 else: --&gt; 641 im, l, b, trans = self.make_image( 642 renderer, renderer.get_image_magnification()) 643 if im is not None: ~/anaconda3/lib/python3.8/site-packages/matplotlib/image.py in make_image(self, renderer, magnification, unsampled) 924 clip = ((self.get_clip_box() or self.axes.bbox) if self.get_clip_on() 925 else self.figure.bbox) --&gt; 926 return self._make_image(self._A, bbox, transformed_bbox, clip, 927 magnification, unsampled=unsampled) 928 ~/anaconda3/lib/python3.8/site-packages/matplotlib/image.py in _make_image(self, A, in_bbox, out_bbox, clip_bbox, magnification, unsampled, round_to_pixel_border) 543 vmax=s_vmax, 544 ): --&gt; 545 output = self.norm(resampled_masked) 546 else: 547 if A.shape[2] == 3: ~/anaconda3/lib/python3.8/site-packages/matplotlib/colors.py in __call__(self, value, clip) 1190 1191 self.autoscale_None(result) -&gt; 1192 self._check_vmin_vmax() 1193 vmin, vmax = self.vmin, self.vmax 1194 if vmin == vmax: ~/anaconda3/lib/python3.8/site-packages/matplotlib/colors.py in _check_vmin_vmax(self) 1179 raise ValueError("minvalue must be less than or equal to maxvalue") 1180 elif self.vmin &lt;= 0: -&gt; 1181 raise ValueError("minvalue must be positive") 1182 1183 def __call__(self, value, clip=None): ValueError: minvalue must be positive </code></pre></div> <p dir="auto"><strong>Expected outcome</strong></p> <p dir="auto">A plot or a correct error message.</p> <ul dir="auto"> <li>Operating system: Ubuntu 20.04</li> <li>Matplotlib version: 3.3.2</li> <li>Matplotlib backend: module://ipykernel.pylab.backend_inline</li> <li>Python version: 3.8.5</li> <li>Other libraries: numpy 1.19.2</li> </ul>
<h3 dir="auto">Bug report</h3> <p dir="auto"><strong>Bug summary</strong></p> <p dir="auto">.imshow() with LogNorm produces incorrect and inconsistent coloring.</p> <p dir="auto"><strong>Code for reproduction</strong></p> <p dir="auto">In this example the same array was plotted twice. The first .imshow() call plots the whole array. The following two plot two halves of the same array separately.</p> <p dir="auto">The <code class="notranslate">mpl_toolkits</code> is used only to fix axes and colorbar positioning; problems with coloring remain even without it.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib as mpl import matplotlib.pyplot as plt from mpl_toolkits.axes_grid1 import make_axes_locatable import numpy as np a = 10. ** np.arange(100) fig, ax = plt.subplots(1) norm = mpl.colors.LogNorm(np.min(a), np.max(a)) img1 = ax.imshow(a[None, : ], extent = (0, 100, 0, 10), cmap = 'gray', norm = norm ) img2 = ax.imshow(a[None, :50], extent = (0, 50, -10, 0), cmap = 'gray', norm = norm ) img3 = ax.imshow(a[None, 50: ], extent = (50, 100, -10, 0), cmap = 'gray', norm = norm ) plt.xlim( 0, 100) plt.ylim(-10, 10) divider = make_axes_locatable(plt.gca()) cax = divider.append_axes(&quot;bottom&quot;, size=0.2, pad=0.4 ) plt.colorbar(img1, cax = cax, orientation='horizontal') plt.tight_layout() plt.show()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span> <span class="pl-k">as</span> <span class="pl-s1">mpl</span> <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-k">from</span> <span class="pl-s1">mpl_toolkits</span>.<span class="pl-s1">axes_grid1</span> <span class="pl-k">import</span> <span class="pl-s1">make_axes_locatable</span> <span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-c1">10.</span> <span class="pl-c1">**</span> <span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">100</span>) <span class="pl-s1">fig</span>, <span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">subplots</span>(<span class="pl-c1">1</span>) <span class="pl-s1">norm</span> <span class="pl-c1">=</span> <span class="pl-s1">mpl</span>.<span class="pl-s1">colors</span>.<span class="pl-v">LogNorm</span>(<span class="pl-s1">np</span>.<span class="pl-en">min</span>(<span class="pl-s1">a</span>), <span class="pl-s1">np</span>.<span class="pl-en">max</span>(<span class="pl-s1">a</span>)) <span class="pl-s1">img1</span> <span class="pl-c1">=</span> <span class="pl-s1">ax</span>.<span class="pl-en">imshow</span>(<span class="pl-s1">a</span>[<span class="pl-c1">None</span>, : ], <span class="pl-s1">extent</span> <span class="pl-c1">=</span> (<span class="pl-c1">0</span>, <span class="pl-c1">100</span>, <span class="pl-c1">0</span>, <span class="pl-c1">10</span>), <span class="pl-s1">cmap</span> <span class="pl-c1">=</span> <span class="pl-s">'gray'</span>, <span class="pl-s1">norm</span> <span class="pl-c1">=</span> <span class="pl-s1">norm</span> ) <span class="pl-s1">img2</span> <span class="pl-c1">=</span> <span class="pl-s1">ax</span>.<span class="pl-en">imshow</span>(<span class="pl-s1">a</span>[<span class="pl-c1">None</span>, :<span class="pl-c1">50</span>], <span class="pl-s1">extent</span> <span class="pl-c1">=</span> (<span class="pl-c1">0</span>, <span class="pl-c1">50</span>, <span class="pl-c1">-</span><span class="pl-c1">10</span>, <span class="pl-c1">0</span>), <span class="pl-s1">cmap</span> <span class="pl-c1">=</span> <span class="pl-s">'gray'</span>, <span class="pl-s1">norm</span> <span class="pl-c1">=</span> <span class="pl-s1">norm</span> ) <span class="pl-s1">img3</span> <span class="pl-c1">=</span> <span class="pl-s1">ax</span>.<span class="pl-en">imshow</span>(<span class="pl-s1">a</span>[<span class="pl-c1">None</span>, <span class="pl-c1">50</span>: ], <span class="pl-s1">extent</span> <span class="pl-c1">=</span> (<span class="pl-c1">50</span>, <span class="pl-c1">100</span>, <span class="pl-c1">-</span><span class="pl-c1">10</span>, <span class="pl-c1">0</span>), <span class="pl-s1">cmap</span> <span class="pl-c1">=</span> <span class="pl-s">'gray'</span>, <span class="pl-s1">norm</span> <span class="pl-c1">=</span> <span class="pl-s1">norm</span> ) <span class="pl-s1">plt</span>.<span class="pl-en">xlim</span>( <span class="pl-c1">0</span>, <span class="pl-c1">100</span>) <span class="pl-s1">plt</span>.<span class="pl-en">ylim</span>(<span class="pl-c1">-</span><span class="pl-c1">10</span>, <span class="pl-c1">10</span>) <span class="pl-s1">divider</span> <span class="pl-c1">=</span> <span class="pl-en">make_axes_locatable</span>(<span class="pl-s1">plt</span>.<span class="pl-en">gca</span>()) <span class="pl-s1">cax</span> <span class="pl-c1">=</span> <span class="pl-s1">divider</span>.<span class="pl-en">append_axes</span>(<span class="pl-s">"bottom"</span>, <span class="pl-s1">size</span><span class="pl-c1">=</span><span class="pl-c1">0.2</span>, <span class="pl-s1">pad</span><span class="pl-c1">=</span><span class="pl-c1">0.4</span> ) <span class="pl-s1">plt</span>.<span class="pl-en">colorbar</span>(<span class="pl-s1">img1</span>, <span class="pl-s1">cax</span> <span class="pl-c1">=</span> <span class="pl-s1">cax</span>, <span class="pl-s1">orientation</span><span class="pl-c1">=</span><span class="pl-s">'horizontal'</span>) <span class="pl-s1">plt</span>.<span class="pl-en">tight_layout</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">As we can see, left parts of each patch produced by .imshow() is completely black. It seems like rounding occurred somewhere. It also can be seen, that different colors are used to represent the same numbers in different arrays.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/81013639/111867666-7908ea00-896d-11eb-9c4f-3e19bec31211.png"><img src="https://user-images.githubusercontent.com/81013639/111867666-7908ea00-896d-11eb-9c4f-3e19bec31211.png" alt="Figure_1" style="max-width: 100%;"></a></p> <p dir="auto"><strong>Expected outcome</strong></p> <p dir="auto">It was expected to see smooth transition from black to white from left to right. It was also expected not to see any difference in colors representing same numbers.</p> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Operating system: Linux</li> <li>Matplotlib version (<code class="notranslate">import matplotlib; print(matplotlib.__version__)</code>): 3.3.3</li> <li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): Qt5Agg</li> <li>Python version: 3.7.3</li> </ul> <p dir="auto">The matplotlib package was installed with pip.</p>
1
<p dir="auto">Hi, when I compile a ts file which contains following imports</p> <p dir="auto"><code class="notranslate">import Navigations from './navigations.tsx';</code></p> <p dir="auto">it outputs exactly the same line</p> <p dir="auto"><code class="notranslate">import Navigations from './navigations.tsx';</code></p> <p dir="auto">This breaks the code in the browser. I would expect that "tsx" import will be renamed to "jsx"</p> <p dir="auto"><code class="notranslate">import Navigations from './navigations.jsx';</code></p> <p dir="auto">Is this somehow achievable?<br> Thanks</p> <p dir="auto">PS: I am using meteor, not webpack, which does not resolve imports like <code class="notranslate">import Navigations from './navigations'</code>;</p>
<p dir="auto">Currently, TS can't find modules when you use a file extension in the import name (<code class="notranslate">import {Foo} from './foo.ts';</code>) - <a href="https://github.com/systemjs/systemjs/releases/tag/0.17.0">SystemJS updated</a> and file extensions are now <a href="https://github.com/whatwg/loader/issues/52" data-hovercard-type="issue" data-hovercard-url="/whatwg/loader/issues/52/hovercard"><em>required</em></a> (though the spec issue is still under discussion) on imports (without setting some legacy settings in <code class="notranslate">System.config</code>). So when compiling with <code class="notranslate">--module</code>, you can either have a functioning typechecker (no extensions on your imports) or a functioning runtime (<code class="notranslate">.js</code> on your imports, since your result files have <code class="notranslate">.js</code> extensions). This is complicated further by systemjs's <a href="https://github.com/systemjs/builder">bundler</a>, which looks for dependent files <em>before</em> TS transpiles them, so you have to use <code class="notranslate">.ts</code> extensions on your imports so the <em>bundler</em> can resolve the paths to real ones.</p> <p dir="auto">This extension madness is all incredibly awkward to work with, and I'm not sure if this needs module resolution logic updating on our part, arguing for old behavior on the loader spec, or talking to <code class="notranslate">systemjs</code> and having them change how they're finding modules ignoring the spec.</p>
1
<h1 dir="auto">Weekly Report of Dubbo</h1> <p dir="auto">This is a weekly report of Dubbo. It summarizes what have changed in the project during the passed week, including pr merged, new contributors, and more things in the future.<br> It is all done by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dubbo-bot/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dubbo-bot">@dubbo-bot</a> which is a collaborate robot.</p> <h2 dir="auto">Repo Overview</h2> <h3 dir="auto">Basic data</h3> <p dir="auto">Baisc data shows how the watch, star, fork and contributors count changed in the passed week.</p> <table role="table"> <thead> <tr> <th align="center">Watch</th> <th align="center">Star</th> <th align="center">Fork</th> <th align="center">Contributors</th> </tr> </thead> <tbody> <tr> <td align="center">3240</td> <td align="center">27450 (↑138)</td> <td align="center">15448 (↑112)</td> <td align="center">207 (↑3)</td> </tr> </tbody> </table> <h3 dir="auto">Issues &amp; PRs</h3> <p dir="auto">Issues &amp; PRs show the new/closed issues/pull requests count in the passed week.</p> <table role="table"> <thead> <tr> <th align="center">New Issues</th> <th align="center">Closed Issues</th> <th align="center">New PR</th> <th align="center">Merged PR</th> </tr> </thead> <tbody> <tr> <td align="center">23</td> <td align="center">18</td> <td align="center">24</td> <td align="center">19</td> </tr> </tbody> </table> <h2 dir="auto">PR Overview</h2> <p dir="auto">Thanks to contributions from community, Dubbo team merged <strong>19</strong> pull requests in the repository last week. They are:</p> <ul dir="auto"> <li>fix <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="461262595" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/4406" data-hovercard-type="issue" data-hovercard-url="/apache/dubbo/issues/4406/hovercard" href="https://github.com/apache/dubbo/issues/4406">#4406</a> (<a href="https://github.com/apache/dubbo/pull/4408" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/4408/hovercard">#4408</a>)</li> <li>Polish /<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="457908171" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/4348" data-hovercard-type="issue" data-hovercard-url="/apache/dubbo/issues/4348/hovercard" href="https://github.com/apache/dubbo/issues/4348">#4348</a> : [ISSUE] Nacos Dubbo Registry can't sense the change (<a href="https://github.com/apache/dubbo/pull/4392" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/4392/hovercard">#4392</a>)</li> <li>Polish /<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="422839111" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/3695" data-hovercard-type="issue" data-hovercard-url="/apache/dubbo/issues/3695/hovercard" href="https://github.com/apache/dubbo/issues/3695">#3695</a> : <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/reference/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/reference">@reference</a> field can't refer its' <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/servic/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/servic">@servic</a>… (<a href="https://github.com/apache/dubbo/pull/4385" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/4385/hovercard">#4385</a>)</li> <li>Observation of performance degradation when running under JDK 8 (<a href="https://github.com/apache/dubbo/pull/4381" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/4381/hovercard">#4381</a>)</li> <li>duplicate decrease for ExecuteLimitFilter onError (<a href="https://github.com/apache/dubbo/pull/4380" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/4380/hovercard">#4380</a>)</li> <li>AsyncRpcResult should handle exception when registering callback. (<a href="https://github.com/apache/dubbo/pull/4379" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/4379/hovercard">#4379</a>)</li> <li>fix qos configuration cannot work. <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="459770312" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/4377" data-hovercard-type="issue" data-hovercard-url="/apache/dubbo/issues/4377/hovercard" href="https://github.com/apache/dubbo/issues/4377">#4377</a> (<a href="https://github.com/apache/dubbo/pull/4378" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/4378/hovercard">#4378</a>)</li> <li>format file: pom.xml of bom module (<a href="https://github.com/apache/dubbo/pull/4376" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/4376/hovercard">#4376</a>)</li> <li>Spring package scan compatibility, support both alibaba Service and apache Service. (<a href="https://github.com/apache/dubbo/pull/4375" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/4375/hovercard">#4375</a>)</li> <li>[Dubbo-4370] Add more data to serviceMetaData (<a href="https://github.com/apache/dubbo/pull/4372" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/4372/hovercard">#4372</a>)</li> <li>fix zipkin compatible. <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="424803743" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/3728" data-hovercard-type="issue" data-hovercard-url="/apache/dubbo/issues/3728/hovercard" href="https://github.com/apache/dubbo/issues/3728">#3728</a> (<a href="https://github.com/apache/dubbo/pull/4368" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/4368/hovercard">#4368</a>)</li> <li>unify metadata and configcenter implementations (<a href="https://github.com/apache/dubbo/pull/4360" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/4360/hovercard">#4360</a>)</li> <li>fix empty protocol in consul registry. <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="455507082" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/4294" data-hovercard-type="issue" data-hovercard-url="/apache/dubbo/issues/4294/hovercard" href="https://github.com/apache/dubbo/issues/4294">#4294</a> (<a href="https://github.com/apache/dubbo/pull/4354" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/4354/hovercard">#4354</a>)</li> <li>fix empty protocol for nacos. <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="455507082" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/4294" data-hovercard-type="issue" data-hovercard-url="/apache/dubbo/issues/4294/hovercard" href="https://github.com/apache/dubbo/issues/4294">#4294</a>. (<a href="https://github.com/apache/dubbo/pull/4349" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/4349/hovercard">#4349</a>)</li> <li>synchronized local variables or parameters should be set to final (<a href="https://github.com/apache/dubbo/pull/4325" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/4325/hovercard">#4325</a>)</li> <li>fix bug about nacos (<a href="https://github.com/apache/dubbo/pull/4308" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/4308/hovercard">#4308</a>)</li> <li>[Dubbo-4299]Fix NPE when PojoUtils realize Null element in collection(<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="455689002" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/4299" data-hovercard-type="issue" data-hovercard-url="/apache/dubbo/issues/4299/hovercard" href="https://github.com/apache/dubbo/issues/4299">#4299</a>) (<a href="https://github.com/apache/dubbo/pull/4300" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/4300/hovercard">#4300</a>)</li> <li>allow <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/service/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/service">@service</a> and <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/reference/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/reference">@reference</a> to merge attributes form annotations in lower levels of the annotation hierachy. (<a href="https://github.com/apache/dubbo/pull/4078" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/4078/hovercard">#4078</a>)</li> <li>[No issue] Fix: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/method/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/method">@method</a> default value will be set to the field of MethodConfig (<a href="https://github.com/apache/dubbo/pull/3642" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/3642/hovercard">#3642</a>)</li> </ul> <h2 dir="auto">Code Review Statistics</h2> <p dir="auto">Dubbo encourages everyone to participant in code review, in order to improve software quality. Every week <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dubbo-bot/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dubbo-bot">@dubbo-bot</a> would automatically help to count pull request reviews of single github user as the following. So, try to help review code in this project.</p> <table role="table"> <thead> <tr> <th align="center">Contributor ID</th> <th align="center">Pull Request Reviews</th> </tr> </thead> <tbody> <tr> <td align="center"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ralf0131/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ralf0131">@ralf0131</a></td> <td align="center">8</td> </tr> <tr> <td align="center"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/cvictory/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/cvictory">@cvictory</a></td> <td align="center">7</td> </tr> <tr> <td align="center"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/danielamorais/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/danielamorais">@danielamorais</a></td> <td align="center">6</td> </tr> <tr> <td align="center"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/chickenlj/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/chickenlj">@chickenlj</a></td> <td align="center">4</td> </tr> <tr> <td align="center"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zonghaishang/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zonghaishang">@zonghaishang</a></td> <td align="center">3</td> </tr> <tr> <td align="center"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Leishunyu/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Leishunyu">@Leishunyu</a></td> <td align="center">2</td> </tr> <tr> <td align="center"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nullcodeexecutor/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nullcodeexecutor">@nullcodeexecutor</a></td> <td align="center">1</td> </tr> <tr> <td align="center"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/moriadry/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/moriadry">@moriadry</a></td> <td align="center">1</td> </tr> <tr> <td align="center">@Braavos96</td> <td align="center">1</td> </tr> <tr> <td align="center"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rolandhe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rolandhe">@rolandhe</a></td> <td align="center">1</td> </tr> <tr> <td align="center"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/owen200008/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/owen200008">@owen200008</a></td> <td align="center">1</td> </tr> <tr> <td align="center"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zhaixiaoxiang/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zhaixiaoxiang">@zhaixiaoxiang</a></td> <td align="center">1</td> </tr> <tr> <td align="center"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/guohao/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/guohao">@guohao</a></td> <td align="center">1</td> </tr> <tr> <td align="center"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/CrazyHZM/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/CrazyHZM">@CrazyHZM</a></td> <td align="center">1</td> </tr> <tr> <td align="center"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dhchao11/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dhchao11">@dhchao11</a></td> <td align="center">1</td> </tr> <tr> <td align="center"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mercyblitz/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mercyblitz">@mercyblitz</a></td> <td align="center">1</td> </tr> </tbody> </table> <h2 dir="auto">Contributors Overview</h2> <p dir="auto">It is Dubbo team's great honor to have new contributors from community. We really appreciate your contributions. Feel free to tell us if you have any opinion and please share this open source project with more people if you could. If you hope to be a contributor as well, please start from <a href="https://github.com/apache/incubator-dubbo/blob/master/CONTRIBUTING.md">https://github.com/apache/incubator-dubbo/blob/master/CONTRIBUTING.md</a> .<br> Here is the list of new contributors:</p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/RojerAlone/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/RojerAlone">@RojerAlone</a></p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dhchao11/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dhchao11">@dhchao11</a></p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/HzjNeverStop/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/HzjNeverStop">@HzjNeverStop</a></p> <p dir="auto">Thanks to you all.</p> <p dir="auto"><em>Note: This robot is supported by <a href="https://github.com/AlibabaDR/Collabobot">Collabobot</a>.</em></p>
<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>Travis</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>Create a PR.</li> <li>See the build of travis.<br> see <a href="https://travis-ci.org/github/apache/dubbo/jobs/674706306" rel="nofollow">https://travis-ci.org/github/apache/dubbo/jobs/674706306</a></li> </ol> <h3 dir="auto">Expected Result</h3> <p dir="auto">Passed.</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">Failed:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ERROR] testContainer Time elapsed: 0.127 s &lt;&lt;&lt; ERROR! java.lang.IllegalStateException: Recursive update at org.apache.dubbo.container.log4j.Log4jContainerTest.testContainer(Log4jContainerTest.java:31)"><pre class="notranslate"><code class="notranslate">[ERROR] testContainer Time elapsed: 0.127 s &lt;&lt;&lt; ERROR! java.lang.IllegalStateException: Recursive update at org.apache.dubbo.container.log4j.Log4jContainerTest.testContainer(Log4jContainerTest.java:31) </code></pre></div> <p dir="auto">Travis always failed.<br> But sometimes it will passed after force-pushed without any change.</p> <p dir="auto">Compare:<br> <a href="https://travis-ci.org/github/apache/dubbo/jobs/674706306" rel="nofollow">https://travis-ci.org/github/apache/dubbo/jobs/674706306</a><br> <a href="https://travis-ci.org/github/apache/dubbo/builds/674993938" rel="nofollow">https://travis-ci.org/github/apache/dubbo/builds/674993938</a></p>
0
<p dir="auto">Version: 1.0.0<br> OS Version: Microsoft Windows NT 10.0.19041.0<br> IntPtr Length: 8<br> x64: True<br> Date: 08/04/2020 05:19:54<br> Exception:<br> System.ObjectDisposedException: Cannot access a disposed object.<br> Object name: 'Timer'.<br> at System.Timers.Timer.set_Enabled(Boolean value)<br> at System.Timers.Timer.Start()<br> at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)<br> at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.UpdateIsVisibleCache()<br> at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)<br> at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)<br> at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)<br> at System.Windows.Window.SetRootVisual()<br> at System.Windows.Window.SetRootVisualAndUpdateSTC()<br> at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)<br> at System.Windows.Window.CreateSourceWindow(Boolean duringShow)<br> at System.Windows.Window.CreateSourceWindowDuringShow()<br> at System.Windows.Window.SafeCreateWindowDuringShow()<br> at System.Windows.Window.ShowHelper(Object booleanBox)<br> at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)<br> at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</p> <p dir="auto"><a href="https://github.com/microsoft/PowerToys/files/5025907/2020-08-04.txt">2020-08-04.txt</a><br> 2020-08-04 02:15:18.1275|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\lschm\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\History.json&gt;&gt;<br> 2020-08-04 02:15:18.8776|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\lschm\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\UserSelectedRecord.json&gt;&gt;<br> 2020-08-04 02:15:18.9186|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\lschm\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\TopMostRecord.json&gt;&gt;<br> 2020-08-04 02:15:19.7223|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\lschm\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Settings.json&gt;&gt;<br> 2020-08-04 02:15:19.8558|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\lschm\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Folder\Settings.json&gt;&gt;<br> 2020-08-04 02:15:19.9221|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\lschm\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Indexer\Settings.json&gt;&gt;<br> 2020-08-04 02:15:20.1069|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\lschm\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Program\Settings.json&gt;&gt;<br> 2020-08-04 02:15:20.8288|FATAL|FaultyLogger|Wrong logger message format &lt;|BinaryStorage.Save|Saving cached data| &lt;C:\Users\lschm\AppData\Local\Microsoft\PowerToys\PowerToys Run\Cache\Win32.cache&gt;&gt;<br> 2020-08-04 02:15:20.8534|FATAL|FaultyLogger|Wrong logger message format &lt;|BinaryStorage.Save|Saving cached data| &lt;C:\Users\lschm\AppData\Local\Microsoft\PowerToys\PowerToys Run\Cache\UWP.cache&gt;&gt;<br> 2020-08-04 02:15:20.8724|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\lschm\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Shell\Settings.json&gt;&gt;<br> 2020-08-04 02:15:20.9136|FATAL|FaultyLogger|Wrong logger message format &lt;|BinaryStorage.Save|Saving cached data| &lt;C:\Users\lschm\AppData\Local\Microsoft\PowerToys\PowerToys Run\Cache\Image.cache&gt;&gt;<br> 2020-08-04 02:23:24.7790|INFO|App.OnStartup|Begin PowerToys Run startup ----------------------------------------------------<br> 2020-08-04 02:23:24.8298|INFO|App.OnStartup|Runtime info:<br> Version: 1.0.0<br> OS Version: Microsoft Windows NT 10.0.19041.0<br> IntPtr Length: 8<br> x64: True<br> 2020-08-04 02:23:25.5226|FATAL|FaultyLogger|Wrong logger message format &lt;|BinaryStorage.TryLoad|Deleting cached data| &lt;C:\Users\lschm\AppData\Local\Microsoft\PowerToys\PowerToys Run\Cache\Image.cache&gt;&gt;<br> 2020-08-04 02:23:25.5226|INFO|BinaryStorage.TryLoad|Cache file not exist, load default data<br> 2020-08-04 02:23:25.5765|FATAL|FaultyLogger|Wrong logger message format &lt;|BinaryStorage.Save|Saving cached data| &lt;C:\Users\lschm\AppData\Local\Microsoft\PowerToys\PowerToys Run\Cache\Image.cache&gt;&gt;<br> 2020-08-04 02:23:25.9303|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.TryLoad|Deleting cached data|&lt;C:\Users\lschm\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Settings.json&gt;&gt;<br> 2020-08-04 02:23:25.9493|INFO|ImageLoader.Initialize|Preload images cost &lt;115ms&gt;<br> 2020-08-04 02:23:25.9597|INFO|ImageLoader.Initialize|Number of preload images is &lt;0&gt;, Images Number: 4, Unique Items 4<br> 2020-08-04 02:23:51.1686|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\lschm\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Settings.json&gt;&gt;<br> 2020-08-04 02:23:51.1795|FATAL|FaultyLogger|Wrong logger message format &lt;|BinaryStorage.TryLoad|Deleting cached data| &lt;C:\Users\lschm\AppData\Local\Microsoft\PowerToys\PowerToys Run\Cache\Pinyin.cache&gt;&gt;<br> 2020-08-04 02:23:51.1795|INFO|BinaryStorage.TryLoad|Cache file not exist, load default data<br> 2020-08-04 02:23:51.2030|FATAL|FaultyLogger|Wrong logger message format &lt;|BinaryStorage.Save|Saving cached data| &lt;C:\Users\lschm\AppData\Local\Microsoft\PowerToys\PowerToys Run\Cache\Pinyin.cache&gt;&gt;<br> 2020-08-04 02:23:51.2776|INFO|Wox.Infrastructure.Alphabet.Initialize|Preload pinyin cache &lt;100ms&gt;<br> 2020-08-04 02:23:51.2862|INFO|Wox.Infrastructure.Alphabet.Initialize|Number of preload pinyin combination&lt;0&gt;<br> 2020-08-04 02:23:51.4468|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\lschm\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Folder\FolderSettings.json&gt;&gt;<br> 2020-08-04 02:23:51.6313|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.TryLoad|Deleting cached data|&lt;C:\Users\lschm\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Program\Settings.json&gt;&gt;<br> 2020-08-04 02:23:51.6694|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\lschm\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Program\Settings.json&gt;&gt;<br> 2020-08-04 02:23:51.7107|FATAL|FaultyLogger|Wrong logger message format &lt;|BinaryStorage.TryLoad|Deleting cached data| &lt;C:\Users\lschm\AppData\Local\Microsoft\PowerToys\PowerToys Run\Cache\Win32.cache&gt;&gt;<br> 2020-08-04 02:23:51.7201|INFO|BinaryStorage.TryLoad|Cache file not exist, load default data<br> 2020-08-04 02:23:51.7735|FATAL|FaultyLogger|Wrong logger message format &lt;|BinaryStorage.Save|Saving cached data| &lt;C:\Users\lschm\AppData\Local\Microsoft\PowerToys\PowerToys Run\Cache\Win32.cache&gt;&gt;<br> 2020-08-04 02:23:51.7873|FATAL|FaultyLogger|Wrong logger message format &lt;|BinaryStorage.TryLoad|Deleting cached data| &lt;C:\Users\lschm\AppData\Local\Microsoft\PowerToys\PowerToys Run\Cache\UWP.cache&gt;&gt;<br> 2020-08-04 02:23:51.7873|INFO|BinaryStorage.TryLoad|Cache file not exist, load default data<br> 2020-08-04 02:23:51.8098|FATAL|FaultyLogger|Wrong logger message format &lt;|BinaryStorage.Save|Saving cached data| &lt;C:\Users\lschm\AppData\Local\Microsoft\PowerToys\PowerToys Run\Cache\UWP.cache&gt;&gt;<br> 2020-08-04 02:23:51.8178|INFO|Microsoft.Plugin.Program.Main|Preload programs cost &lt;109ms&gt;<br> 2020-08-04 02:23:51.8178|INFO|Microsoft.Plugin.Program.Main|Number of preload win32 programs &lt;0&gt;<br> 2020-08-04 02:24:16.2280|ERROR||------------- BEGIN Microsoft.Plugin.Program exception -------------<br> 2020-08-04 02:24:16.2424|ERROR||<br> Exception full name: System.Runtime.InteropServices.COMException<br> Error status: KNOWN<br> Class name: Win32<br> Calling method: LnkProgram<br> Program path: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Accessories\Windows Media Player.lnk<br> InnerException number: 1<br> Exception message: Error HRESULT E_FAIL has been returned from a call to a COM component.<br> Exception error type: HResult -2147467259<br> Exception thrown in called method: Void GetDescription(System.Text.StringBuilder, Int32)<br> Possible interpretation of the error: Error caused likely due to trying to get the description of the program<br> Possible resolution: Can be ignored and Wox should still continue, however the program may not be loaded<br> 2020-08-04 02:24:16.2557|ERROR||------------- END Microsoft.Plugin.Program exception -------------<br> 2020-08-04 02:24:16.3718|ERROR||------------- BEGIN Microsoft.Plugin.Program exception -------------<br> 2020-08-04 02:24:16.3847|ERROR||<br> Exception full name: System.Runtime.InteropServices.COMException<br> Error status: KNOWN<br> Class name: Win32<br> Calling method: LnkProgram<br> Program path: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools\ODBC Data Sources (32-bit).lnk<br> InnerException number: 1<br> Exception message: Error HRESULT E_FAIL has been returned from a call to a COM component.<br> Exception error type: HResult -2147467259<br> Exception thrown in called method: Void GetDescription(System.Text.StringBuilder, Int32)<br> Possible interpretation of the error: Error caused likely due to trying to get the description of the program<br> Possible resolution: Can be ignored and Wox should still continue, however the program may not be loaded<br> 2020-08-04 02:24:16.3974|ERROR||------------- END Microsoft.Plugin.Program exception -------------<br> 2020-08-04 02:24:22.2071|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.TryLoad|Deleting cached data|&lt;C:\Users\lschm\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Shell\Settings.json&gt;&gt;<br> 2020-08-04 02:24:22.2260|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\lschm\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Shell\Settings.json&gt;&gt;<br> 2020-08-04 02:24:22.3928|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\lschm\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\QueryHistory.json&gt;&gt;<br> 2020-08-04 02:24:22.3928|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.TryLoad|Deleting cached data|&lt;C:\Users\lschm\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\UserSelectedRecord.json&gt;&gt;<br> 2020-08-04 02:24:22.4140|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\lschm\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\UserSelectedRecord.json&gt;&gt;<br> 2020-08-04 02:24:22.4238|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.TryLoad|Deleting cached data|&lt;C:\Users\lschm\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\TopMostRecord.json&gt;&gt;<br> 2020-08-04 02:24:22.4238|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\lschm\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\TopMostRecord.json&gt;&gt;<br> 2020-08-04 02:24:22.9184|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.TryLoad|Deleting cached data|&lt;C:\Users\lschm\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Indexer\Settings.json&gt;&gt;<br> 2020-08-04 02:24:22.9423|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\lschm\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Indexer\Settings.json&gt;&gt;<br> 2020-08-04 02:24:23.0218|ERROR||------------- BEGIN Microsoft.Plugin.Program exception -------------<br> 2020-08-04 02:24:23.0218|ERROR||<br> Exception full name: System.IO.FileNotFoundException<br> Error status: KNOWN<br> Class name: UWP<br> Calling method: LogoPathFromUri<br> Program path: C:\Program Files\WindowsApps\king.com.BubbleWitch3Saga_6.10.5.0_x86__kgqvnymyfvs32<br> InnerException number: 1<br> Exception message: Unable to find the specified file.<br> Exception error type: HResult -2147024894<br> Exception thrown in called method: Not available<br> Possible interpretation of the error: king.com.BubbleWitch3Saga_kgqvnymyfvs32!App can't find logo uri for square44x44logo.png in package location: C:\Program Files\WindowsApps\king.com.BubbleWitch3Saga_6.10.5.0_x86__kgqvnymyfvs32<br> Possible resolution: Can be ignored and Wox should still continue, however the program may not be loaded<br> 2020-08-04 02:24:23.0404|ERROR||------------- END Microsoft.Plugin.Program exception -------------<br> 2020-08-04 02:24:23.1095|ERROR||------------- BEGIN Microsoft.Plugin.Program exception -------------<br> 2020-08-04 02:24:23.1182|ERROR||<br> Exception full name: System.IO.FileNotFoundException<br> Error status: KNOWN<br> Class name: UWP<br> Calling method: LogoPathFromUri<br> Program path: C:\Program Files\WindowsApps\king.com.CandyCrushFriends_1.39.4.0_x86__kgqvnymyfvs32<br> InnerException number: 1<br> Exception message: Unable to find the specified file.<br> Exception error type: HResult -2147024894<br> Exception thrown in called method: Not available<br> Possible interpretation of the error: king.com.CandyCrushFriends_kgqvnymyfvs32!App can't find logo uri for square44x44logo.jpg in package location: C:\Program Files\WindowsApps\king.com.CandyCrushFriends_1.39.4.0_x86__kgqvnymyfvs32<br> Possible resolution: Can be ignored and Wox should still continue, however the program may not be loaded<br> 2020-08-04 02:24:23.1262|ERROR||------------- END Microsoft.Plugin.Program exception -------------<br> 2020-08-04 05:14:01.0661|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\lschm\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\QueryHistory.json&gt;&gt;<br> 2020-08-04 05:14:01.0876|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\lschm\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\UserSelectedRecord.json&gt;&gt;<br> 2020-08-04 05:14:01.0997|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\lschm\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\TopMostRecord.json&gt;&gt;<br> 2020-08-04 05:14:01.1446|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\lschm\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Settings.json&gt;&gt;<br> 2020-08-04 05:14:01.1613|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\lschm\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Folder\FolderSettings.json&gt;&gt;<br> 2020-08-04 05:14:01.1809|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\lschm\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Indexer\Settings.json&gt;&gt;<br> 2020-08-04 05:14:01.2033|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\lschm\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Program\Settings.json&gt;&gt;<br> 2020-08-04 05:14:01.2700|FATAL|FaultyLogger|Wrong logger message format &lt;|BinaryStorage.Save|Saving cached data| &lt;C:\Users\lschm\AppData\Local\Microsoft\PowerToys\PowerToys Run\Cache\Win32.cache&gt;&gt;<br> 2020-08-04 05:14:01.2917|FATAL|FaultyLogger|Wrong logger message format &lt;|BinaryStorage.Save|Saving cached data| &lt;C:\Users\lschm\AppData\Local\Microsoft\PowerToys\PowerToys Run\Cache\UWP.cache&gt;&gt;<br> 2020-08-04 05:14:01.3083|FATAL|FaultyLogger|Wrong logger message format &lt;|JsonStorage.Save|Saving cached data| &lt;C:\Users\lschm\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Shell\Settings.json&gt;&gt;<br> 2020-08-04 05:14:01.3362|FATAL|FaultyLogger|Wrong logger message format &lt;|BinaryStorage.Save|Saving cached data| &lt;C:\Users\lschm\AppData\Local\Microsoft\PowerToys\PowerToys Run\Cache\Image.cache&gt;&gt;<br> 2020-08-04 05:19:54.8343|FATAL|UnHandledException|</p> <h2 dir="auto">Exception</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="System.ObjectDisposedException: Cannot access a disposed object. Object name: 'Timer'. Source: System.ComponentModel.TypeConverter TargetAssembly: System.ComponentModel.TypeConverter, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a TargetModule: System.ComponentModel.TypeConverter.dll TargetSite: Void set_Enabled(Boolean) at System.Timers.Timer.set_Enabled(Boolean value) at System.Timers.Timer.Start() at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e) at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args) at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) at System.Windows.UIElement.UpdateIsVisibleCache() at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot) at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value) at System.Windows.Interop.HwndSource.set_RootVisual(Visual value) at System.Windows.Window.SetRootVisual() at System.Windows.Window.SetRootVisualAndUpdateSTC() at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight) at System.Windows.Window.CreateSourceWindow(Boolean duringShow) at System.Windows.Window.CreateSourceWindowDuringShow() at System.Windows.Window.SafeCreateWindowDuringShow() at System.Windows.Window.ShowHelper(Object booleanBox) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) "><pre class="notranslate"><code class="notranslate">System.ObjectDisposedException: Cannot access a disposed object. Object name: 'Timer'. Source: System.ComponentModel.TypeConverter TargetAssembly: System.ComponentModel.TypeConverter, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a TargetModule: System.ComponentModel.TypeConverter.dll TargetSite: Void set_Enabled(Boolean) at System.Timers.Timer.set_Enabled(Boolean value) at System.Timers.Timer.Start() at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e) at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args) at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) at System.Windows.UIElement.UpdateIsVisibleCache() at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot) at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value) at System.Windows.Interop.HwndSource.set_RootVisual(Visual value) at System.Windows.Window.SetRootVisual() at System.Windows.Window.SetRootVisualAndUpdateSTC() at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight) at System.Windows.Window.CreateSourceWindow(Boolean duringShow) at System.Windows.Window.CreateSourceWindowDuringShow() at System.Windows.Window.SafeCreateWindowDuringShow() at System.Windows.Window.ShowHelper(Object booleanBox) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) </code></pre></div> <h2 dir="auto">Environment</h2> <ul dir="auto"> <li>Command Line: "C:\Program Files\PowerToys\modules\launcher\PowerLauncher.dll" 16808</li> <li>Timestamp: 08/04/2020 05:19:54</li> <li>Wox version: 1.0.0</li> <li>OS Version: Microsoft Windows NT 10.0.19041.0</li> <li>IntPtr Length: 8</li> <li>x64: True</li> <li>CLR Version: 3.1.4</li> <li>Installed .NET Framework: <ul dir="auto"> <li>v2.0.50727 2.0.50727.4927 SP2</li> <li>v3.0 3.0.30729.4926 SP2</li> <li>v3.5 3.5.30729.4926 SP1</li> <li>v4 Client 4.8.04084</li> <li>v4 Full 4.8.04084</li> <li>v4.0 Client 4.0.0.0</li> </ul> </li> </ul> <h2 dir="auto">Assemblies - PowerLauncher</h2> <ul dir="auto"> <li>System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Private.CoreLib.dll)</li> <li>PowerLauncher, Version=0.20.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\PowerLauncher.dll)</li> <li>PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.4\PresentationFramework.dll)</li> <li>WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.4\WindowsBase.dll)</li> <li>System.Runtime, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Runtime.dll)</li> <li>System.Xaml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.4\System.Xaml.dll)</li> <li>System.Runtime.Extensions, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Runtime.Extensions.dll)</li> <li>System.Threading, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Threading.dll)</li> <li>System.Threading.Tasks, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Threading.Tasks.dll)</li> <li>System.IO.Pipes, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.IO.Pipes.dll)</li> <li>System.Security.AccessControl, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Security.AccessControl.dll)</li> <li>System.Security.Principal.Windows, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Security.Principal.Windows.dll)</li> <li>Wox.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Wox.Infrastructure.dll)</li> <li>Pinyin4Net, Version=2016.4.24.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Pinyin4Net.dll)</li> <li>mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\mscorlib.dll)</li> <li>System.IO.Packaging, Version=4.0.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.4\System.IO.Packaging.dll)</li> <li>netstandard, Version=2.1.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\netstandard.dll)</li> <li>System.Private.Uri, Version=4.0.6.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Private.Uri.dll)</li> <li>PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.4\PresentationCore.dll)</li> <li>DirectWriteForwarder, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.4\DirectWriteForwarder.dll)</li> <li>System.Runtime.InteropServices, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Runtime.InteropServices.dll)</li> <li>System.Runtime.CompilerServices.VisualC, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Runtime.CompilerServices.VisualC.dll)</li> <li>System.Diagnostics.Debug, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Diagnostics.Debug.dll)</li> <li>System.Resources.ResourceManager, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Resources.ResourceManager.dll)</li> <li>Microsoft.Win32.Primitives, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\Microsoft.Win32.Primitives.dll)</li> <li>System.Collections.NonGeneric, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Collections.NonGeneric.dll)</li> <li>System.Linq, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Linq.dll)</li> <li>System.Collections, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Collections.dll)</li> <li>Microsoft.Win32.Registry, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\Microsoft.Win32.Registry.dll)</li> <li>System.Collections.Specialized, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Collections.Specialized.dll)</li> <li>System.ComponentModel.Primitives, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.ComponentModel.Primitives.dll)</li> <li>System.Diagnostics.Process, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Diagnostics.Process.dll)</li> <li>System.Threading.Thread, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Threading.Thread.dll)</li> <li>System.Configuration.ConfigurationManager, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.4\System.Configuration.ConfigurationManager.dll)</li> <li>System.Xml.ReaderWriter, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Xml.ReaderWriter.dll)</li> <li>System.Private.Xml, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Private.Xml.dll)</li> <li>System.IO.FileSystem, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.IO.FileSystem.dll)</li> <li>System.Net.WebClient, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Net.WebClient.dll)</li> <li>System.Memory, Version=4.2.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Memory.dll)</li> <li>System.Security.Cryptography.Algorithms, Version=4.3.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Security.Cryptography.Algorithms.dll)</li> <li>System.Text.Encoding.Extensions, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Text.Encoding.Extensions.dll)</li> <li>System.Threading.ThreadPool, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Threading.ThreadPool.dll)</li> <li>System.Diagnostics.TraceSource, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Diagnostics.TraceSource.dll)</li> <li>System.ComponentModel.TypeConverter, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.ComponentModel.TypeConverter.dll)</li> <li>System.Windows.Extensions, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.4\System.Windows.Extensions.dll)</li> <li>System.ComponentModel, Version=4.0.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.ComponentModel.dll)</li> <li>System.Collections.Concurrent, Version=4.0.15.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Collections.Concurrent.dll)</li> <li>System.ObjectModel, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.ObjectModel.dll)</li> <li>System.Net.Requests, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Net.Requests.dll)</li> <li>System.Net.Primitives, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Net.Primitives.dll)</li> <li>System.Security.Principal, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Security.Principal.dll)</li> <li>System.Net.WebHeaderCollection, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Net.WebHeaderCollection.dll)</li> <li>ManagedCommon, Version=0.20.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\ManagedCommon.dll)</li> <li>System.Diagnostics.StackTrace, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Diagnostics.StackTrace.dll)</li> <li>Telemetry, Version=0.20.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Telemetry.dll)</li> <li>System.Diagnostics.Tracing, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Diagnostics.Tracing.dll)</li> <li>Wox.Plugin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Wox.Plugin.dll)</li> <li>Wox.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Wox.Core.dll)</li> <li>PowerLauncher.Telemetry, Version=0.20.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\PowerLauncher.Telemetry.dll)</li> <li>NLog, Version=4.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c (C:\Program Files\PowerToys\modules\launcher\NLog.dll)</li> <li>System.Diagnostics.FileVersionInfo, Version=4.0.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Diagnostics.FileVersionInfo.dll)</li> <li>System.Data.Common, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Data.Common.dll)</li> <li>System.Net.Mail, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Net.Mail.dll)</li> <li>System.IO.FileSystem.Watcher, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.IO.FileSystem.Watcher.dll)</li> <li>System.Net.Sockets, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Net.Sockets.dll)</li> <li>System.Linq.Expressions, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Linq.Expressions.dll)</li> <li>System.Diagnostics.Tools, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Diagnostics.Tools.dll)</li> <li>NLog.Extensions.Logging, Version=1.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c (C:\Program Files\PowerToys\modules\launcher\NLog.Extensions.Logging.dll)</li> <li>Microsoft.Extensions.Logging.Abstractions, Version=3.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60 (C:\Program Files\PowerToys\modules\launcher\Microsoft.Extensions.Logging.Abstractions.dll)</li> <li>Microsoft.Extensions.Logging, Version=3.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60 (C:\Program Files\PowerToys\modules\launcher\Microsoft.Extensions.Logging.dll)</li> <li>System.Drawing.Primitives, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Drawing.Primitives.dll)</li> <li>System.Threading.Timer, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Threading.Timer.dll)</li> <li>ControlzEx, Version=4.0.0.0, Culture=neutral, PublicKeyToken=69f1c32f803d307e (C:\Program Files\PowerToys\modules\launcher\ControlzEx.dll)</li> <li>MahApps.Metro, Version=2.0.0.0, Culture=neutral, PublicKeyToken=51482d6f650b2b3f (C:\Program Files\PowerToys\modules\launcher\MahApps.Metro.dll)</li> <li>PresentationFramework-SystemXml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.4\PresentationFramework-SystemXml.dll)</li> <li>System.Windows.Controls.Ribbon, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.4\System.Windows.Controls.Ribbon.dll)</li> <li>PresentationFramework-SystemData, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.4\PresentationFramework-SystemData.dll)</li> <li>System.Runtime.Numerics, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Runtime.Numerics.dll)</li> <li>Microsoft.Win32.SystemEvents, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.4\Microsoft.Win32.SystemEvents.dll)</li> <li>System.ComponentModel.EventBasedAsync, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.ComponentModel.EventBasedAsync.dll)</li> <li>Microsoft.PowerToys.Settings.UI.Lib, Version=0.20.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Microsoft.PowerToys.Settings.UI.Lib.dll)</li> <li>PowerToysInterop, Version=0.20.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\PowerToysInterop.dll)</li> <li>System.Runtime.Serialization.Formatters, Version=4.0.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Runtime.Serialization.Formatters.dll)</li> <li>System.Linq.Parallel, Version=4.0.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Linq.Parallel.dll)</li> <li>Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed (C:\Program Files\PowerToys\modules\launcher\Newtonsoft.Json.dll)</li> <li>System.Runtime.Serialization.Primitives, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Runtime.Serialization.Primitives.dll)</li> <li>System.Reflection.Emit.ILGeneration, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Reflection.Emit.ILGeneration.dll)</li> <li>System.Reflection.Primitives, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Reflection.Primitives.dll)</li> <li>System.Reflection.Emit.Lightweight, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Reflection.Emit.Lightweight.dll)</li> <li>Anonymously Hosted DynamicMethods Assembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null (dynamic assembly doesn't has location)</li> <li>System.Drawing.Common, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.4\System.Drawing.Common.dll)</li> <li>System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Core.dll)</li> <li>System.Runtime.Loader, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Runtime.Loader.dll)</li> <li>Microsoft.Plugin.Calculator, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Plugins\Microsoft.Plugin.Calculator\Microsoft.Plugin.Calculator.dll)</li> <li>Microsoft.Plugin.Folder, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Plugins\Microsoft.Plugin.Folder\Microsoft.Plugin.Folder.dll)</li> <li>Microsoft.Plugin.Indexer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Plugins\Microsoft.Plugin.Indexer\Microsoft.Plugin.Indexer.dll)</li> <li>Microsoft.Plugin.Program, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Plugins\Microsoft.Plugin.Program\Microsoft.Plugin.Program.dll)</li> <li>Windows.Foundation, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime (C:\WINDOWS\system32\WinMetadata\Windows.Foundation.winmd)</li> <li>Windows.ApplicationModel, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime (C:\WINDOWS\system32\WinMetadata\Windows.ApplicationModel.winmd)</li> <li>System.Runtime.InteropServices.WindowsRuntime, Version=4.0.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Runtime.InteropServices.WindowsRuntime.dll)</li> <li>System.Threading.Overlapped, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Threading.Overlapped.dll)</li> <li>Windows.Management, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime (C:\WINDOWS\system32\WinMetadata\Windows.Management.winmd)</li> <li>System.Buffers, Version=4.0.5.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Buffers.dll)</li> <li>System.Runtime.WindowsRuntime, Version=4.0.15.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Runtime.WindowsRuntime.dll)</li> <li>System.Security.Claims, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Security.Claims.dll)</li> <li>Windows.Storage, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime (C:\WINDOWS\system32\WinMetadata\Windows.Storage.winmd)</li> <li>Windows.System, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime (C:\WINDOWS\system32\WinMetadata\Windows.System.winmd)</li> <li>Accessibility, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.4\Accessibility.dll)</li> <li>System.Xml.XDocument, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Xml.XDocument.dll)</li> <li>System.Private.Xml.Linq, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Private.Xml.Linq.dll)</li> <li>System.Text.RegularExpressions, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Text.RegularExpressions.dll)</li> <li>Microsoft.Plugin.Shell, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Plugins\Microsoft.Plugin.Shell\Microsoft.Plugin.Shell.dll)</li> <li>WindowsInput, Version=1.0.4.0, Culture=neutral, PublicKeyToken=9b287f7dc5073cad (C:\Program Files\PowerToys\modules\launcher\WindowsInput.dll)</li> <li>Microsoft.Plugin.WindowWalker, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Plugins\Microsoft.Plugin.WindowWalker\Microsoft.Plugin.WindowWalker.dll)</li> <li>System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.dll)</li> <li>UIAutomationTypes, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.4\UIAutomationTypes.dll)</li> <li>PresentationFramework.Aero2, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.4\PresentationFramework.Aero2.dll)</li> <li>UIAutomationProvider, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.4\UIAutomationProvider.dll)</li> <li>Microsoft.Xaml.Behaviors, Version=1.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\PowerToys\modules\launcher\Microsoft.Xaml.Behaviors.dll)</li> <li>System.Threading.Tasks.Parallel, Version=4.0.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Threading.Tasks.Parallel.dll)</li> <li>System.IO.FileSystem.DriveInfo, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.IO.FileSystem.DriveInfo.dll)</li> <li>System.Net.ServicePoint, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Net.ServicePoint.dll)</li> <li>System.Net.Security, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Net.Security.dll)</li> <li>System.Text.Json, Version=4.0.1.2, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Text.Json.dll)</li> <li>System.Numerics.Vectors, Version=4.1.6.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Numerics.Vectors.dll)</li> <li>System.Runtime.CompilerServices.Unsafe, Version=4.0.6.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Runtime.CompilerServices.Unsafe.dll)</li> <li>Mages.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Mages.Core.dll)</li> <li>Microsoft.Search.Interop, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9f748985a6e9a7cb (C:\Program Files\PowerToys\modules\launcher\Microsoft.Search.Interop.dll)</li> <li>System.Data.OleDb, Version=4.0.1.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (C:\Program Files\PowerToys\modules\launcher\System.Data.OleDb.dll)</li> <li>System.Transactions.Local, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Transactions.Local.dll)</li> <li>System.Diagnostics.PerformanceCounter, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.4\System.Diagnostics.PerformanceCounter.dll)</li> <li>System.Reflection.Metadata, Version=1.4.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Reflection.Metadata.dll)</li> <li>System.Collections.Immutable, Version=1.2.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Collections.Immutable.dll)</li> </ul> <h2 dir="auto">ℹ Computer information</h2> <ul dir="auto"> <li>Windows build number: [run "winver"]</li> <li>PowerToys version:</li> <li>PowerToy module:</li> </ul> <h2 dir="auto">📝 Provide detailed reproduction steps (if any)</h2> <ol dir="auto"> <li>…</li> <li>…</li> <li>…</li> </ol> <h3 dir="auto"><g-emoji class="g-emoji" alias="heavy_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2714.png">✔️</g-emoji> Expected result</h3> <p dir="auto"><em>What is the expected result of the above steps?</em></p> <h3 dir="auto">❌ Actual result</h3> <p dir="auto"><em>What is the actual result of the above steps?</em></p> <h2 dir="auto">📷 Screenshots</h2> <p dir="auto"><em>Are there any useful screenshots? WinKey+Shift+S and then just paste them directly into the form</em></p>
<p dir="auto">Popup tells me to give y'all this.</p> <p dir="auto"><a href="https://github.com/microsoft/PowerToys/files/5009460/2020-07-31.txt">2020-07-31.txt</a></p> <p dir="auto">Version: 1.0.0<br> OS Version: Microsoft Windows NT 10.0.19041.0<br> IntPtr Length: 8<br> x64: True<br> Date: 07/31/2020 17:29:59<br> Exception:<br> System.ObjectDisposedException: Cannot access a disposed object.<br> Object name: 'Timer'.<br> at System.Timers.Timer.set_Enabled(Boolean value)<br> at System.Timers.Timer.Start()<br> at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)<br> at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.UpdateIsVisibleCache()<br> at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)<br> at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)<br> at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)<br> at System.Windows.Window.SetRootVisual()<br> at System.Windows.Window.SetRootVisualAndUpdateSTC()<br> at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)<br> at System.Windows.Window.CreateSourceWindow(Boolean duringShow)<br> at System.Windows.Window.CreateSourceWindowDuringShow()<br> at System.Windows.Window.SafeCreateWindowDuringShow()<br> at System.Windows.Window.ShowHelper(Object booleanBox)<br> at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)<br> at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</p>
1
<h2 dir="auto">Bug Report</h2> <p dir="auto"><strong>For English only</strong>, other languages will not accept.</p> <p dir="auto">Before report a bug, make sure you have:</p> <ul dir="auto"> <li>Searched open and closed <a href="https://github.com/apache/shardingsphere/issues">GitHub issues</a>.</li> <li>Read documentation: <a href="https://shardingsphere.apache.org/document/current/en/overview" rel="nofollow">ShardingSphere Doc</a>.</li> </ul> <p dir="auto">Please pay attention on issues you submitted, because we maybe need more details.<br> If no response anymore and we cannot reproduce it on current information, we will <strong>close it</strong>.</p> <p dir="auto">Please answer these questions before submitting your issue. Thanks!</p> <h3 dir="auto">Which version of ShardingSphere did you use?</h3> <p dir="auto">5.0.0</p> <h3 dir="auto">Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?</h3> <p dir="auto">ShardingSphere-JDBC and ShardingSphere-Proxy</p> <h3 dir="auto">Expected behavior</h3> <p dir="auto">auto sharding algorithm with mod sharding algorithm, 6 databases are used, every database has 99 tables, so the sharding count is 594</p> <p dir="auto">when insert a record of table tb_test_info with id 701450883798396931<br> 701450883798396931 % 6 = 1, the datasource is ds_1<br> 701450883798396931 % 594 = 1, the actual table is tb_test_info_1</p> <p dir="auto">the record be insert into table ds_1.tb_test_info_1</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">more thant one datanodes are found and exception is thrown, the record failed to insert into table ds_1.tb_test_info_1</p> <p dir="auto">Caused by: java.lang.IllegalStateException: Insert statement does not support sharding table routing to multiple data nodes.<br> at com.google.common.base.Preconditions.checkState(Preconditions.java:508)<br> at org.apache.shardingsphere.sharding.route.engine.validator.dml.impl.ShardingInsertStatementValidator.postValidate(ShardingInsertStatementValidator.java:105)<br> at org.apache.shardingsphere.sharding.route.engine.ShardingSQLRouter.lambda$createRouteContext$1(ShardingSQLRouter.java:57)<br> at java.util.Optional.ifPresent(Optional.java:159)<br> at org.apache.shardingsphere.sharding.route.engine.ShardingSQLRouter.createRouteContext(ShardingSQLRouter.java:57)<br> at org.apache.shardingsphere.sharding.route.engine.ShardingSQLRouter.createRouteContext(ShardingSQLRouter.java:44)<br> at org.apache.shardingsphere.infra.route.engine.impl.PartialSQLRouteExecutor.route(PartialSQLRouteExecutor.java:62)<br> at org.apache.shardingsphere.infra.route.engine.SQLRouteEngine.route(SQLRouteEngine.java:53)<br> at org.apache.shardingsphere.infra.context.kernel.KernelProcessor.route(KernelProcessor.java:54)<br> at org.apache.shardingsphere.infra.context.kernel.KernelProcessor.generateExecutionContext(KernelProcessor.java:46)<br> at org.apache.shardingsphere.driver.jdbc.core.statement.ShardingSpherePreparedStatement.createExecutionContext(ShardingSpherePreparedStatement.java:378)<br> at org.apache.shardingsphere.driver.jdbc.core.statement.ShardingSpherePreparedStatement.execute(ShardingSpherePreparedStatement.java:286)</p> <h3 dir="auto">Reason analyze (If you can)</h3> <p dir="auto">postValidate() method found more than one data node in file ShardingInsertStatementValidator.java</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="public void postValidate(final ShardingRule shardingRule, final SQLStatementContext&lt;InsertStatement&gt; sqlStatementContext, final RouteContext routeContext, final ShardingSphereSchema schema) { Optional&lt;SubquerySegment&gt; insertSelect = sqlStatementContext.getSqlStatement().getInsertSelect(); if (insertSelect.isPresent() &amp;&amp; shardingConditions.isNeedMerge()) { boolean singleRoutingOrSameShardingCondition = routeContext.isSingleRouting() || shardingConditions.isSameShardingCondition(); Preconditions.checkState(singleRoutingOrSameShardingCondition, &quot;Subquery sharding conditions must be same with primary query.&quot;); } String tableName = sqlStatementContext.getSqlStatement().getTable().getTableName().getIdentifier().getValue(); if (!routeContext.isSingleRouting() &amp;&amp; !shardingRule.isBroadcastTable(tableName)) { boolean isSingleDataNode = routeContext.getOriginalDataNodes().stream().allMatch(dataNodes -&gt; dataNodes.size() == 1); Preconditions.checkState(isSingleDataNode, &quot;Insert statement does not support sharding table routing to multiple data nodes.&quot;); } }"><pre class="notranslate"><code class="notranslate">public void postValidate(final ShardingRule shardingRule, final SQLStatementContext&lt;InsertStatement&gt; sqlStatementContext, final RouteContext routeContext, final ShardingSphereSchema schema) { Optional&lt;SubquerySegment&gt; insertSelect = sqlStatementContext.getSqlStatement().getInsertSelect(); if (insertSelect.isPresent() &amp;&amp; shardingConditions.isNeedMerge()) { boolean singleRoutingOrSameShardingCondition = routeContext.isSingleRouting() || shardingConditions.isSameShardingCondition(); Preconditions.checkState(singleRoutingOrSameShardingCondition, "Subquery sharding conditions must be same with primary query."); } String tableName = sqlStatementContext.getSqlStatement().getTable().getTableName().getIdentifier().getValue(); if (!routeContext.isSingleRouting() &amp;&amp; !shardingRule.isBroadcastTable(tableName)) { boolean isSingleDataNode = routeContext.getOriginalDataNodes().stream().allMatch(dataNodes -&gt; dataNodes.size() == 1); Preconditions.checkState(isSingleDataNode, "Insert statement does not support sharding table routing to multiple data nodes."); } } </code></pre></div> <p dir="auto">shardingsphere proxy create tables using auto table algorithm and mod algorithm<br> tables will be create in format tb_test_info_{0..593} in different datasource<br> eg.<br> ds1.tb_test_info_1<br> ds3.tb_test_info_21<br> ds5.tb_test_info_11</p> <p dir="auto">table is found by doSharding() method in ModShardingAlgorithm.java</p> <p dir="auto">public String doSharding(final Collection availableTargetNames, final PreciseShardingValue&lt;Comparable&lt;?&gt;&gt; shardingValue) {<br> for (String each : availableTargetNames) {<br> if (each.endsWith(String.valueOf(getLongValue(shardingValue.getValue()) % shardingCount))) {<br> return each;<br> }<br> }<br> return null;<br> }</p> <p dir="auto">it compare and find the first table end with a number in string format<br> the table is in format tb_test_info_{0..593} ,<br> 701450883798396931 % 594 = 1<br> so in a datasource, the firtst table end with 1 will be selected</p> <p dir="auto">in case shardingsphere proxy create table for auto table algorithm and mod algorithm in format tb_test_info_{0..593}<br> "_" should be use in endsWith coompare, as more than one tables can end with the same number</p> <p dir="auto">if (each.endsWith("_".contact(String.valueOf(getLongValue(shardingValue.getValue()) % shardingCount)))) {<br> return each;<br> }</p> <p dir="auto">method route0() in ShardingStandardRoutingEngine.java do sharding with loop of all datasources</p> <p dir="auto">private Collection route0(final TableRule tableRule,<br> final ShardingStrategy databaseShardingStrategy, final List databaseShardingValues,<br> final ShardingStrategy tableShardingStrategy, final List tableShardingValues) {<br> Collection routedDataSources = routeDataSources(tableRule, databaseShardingStrategy, databaseShardingValues);<br> Collection result = new LinkedList&lt;&gt;();<br> for (String each : routedDataSources) {<br> result.addAll(routeTables(tableRule, each, tableShardingStrategy, tableShardingValues));<br> }<br> return result;<br> }</p> <p dir="auto">all datasource will be execute the routeTables method, table will be searched so in this case, 6 datasources</p> <p dir="auto">finally the follwing 3 table are select in different datasources<br> ds_1.tb_test_info_1<br> ds_3.tb_test_info_21<br> ds_5.tb_test_info_11</p> <p dir="auto">also it's not effective for auto table algorithm to query table in all datasource, it's better to find the exactly one datasource and only do sharding in the datasource,</p> <h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.</h3> <p dir="auto">configs in spring boot starter for shardingsphere jdbc like below:</p> <p dir="auto">spring:<br> shardingsphere:<br> rules:<br> sharding:<br> auto-tables:<br> tb_test_info:<br> actual-data-sources: ds_$-&gt;{0..5}<br> sharding-strategy:<br> standard:<br> sharding-column: id<br> sharding-algorithm-name: mod</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" sharding-algorithms: mod: type: MOD props: sharding-count: 594"><pre class="notranslate"><code class="notranslate"> sharding-algorithms: mod: type: MOD props: sharding-count: 594 </code></pre></div> <p dir="auto">dist sql used in shardingsphere proxy</p> <p dir="auto">CREATE SHARDING TABLE RULE tb_test_info (<br> RESOURCES(ds_0,ds_1,ds_2,ds_3,ds_4,ds_5),<br> SHARDING_COLUMN=id,<br> TYPE(NAME=MOD,PROPERTIES("sharding-count"=594))<br> );</p> <p dir="auto">create table sql</p> <p dir="auto">CREATE TABLE <code class="notranslate">tb_test_info</code> (<br> <code class="notranslate">id</code> bigint NOT NULL ,<br> <code class="notranslate">name</code> varchar(32) DEFAULT NULL ,<br> PRIMARY KEY (<code class="notranslate">id</code>) USING BTREE<br> )</p> <p dir="auto">insert a record of table tb_test_info with id 701450883798396931</p> <h3 dir="auto">Example codes for reproduce this issue (such as a github link).</h3>
<p dir="auto">For English only, other languages we will close it directly.</p> <p dir="auto">Please answer these questions before submitting your issue. Thanks!</p> <h3 dir="auto">Which version of Sharding-Sphere do you using?</h3> <h3 dir="auto">Expected behavior</h3> <h3 dir="auto">Actual behavior</h3> <h3 dir="auto">Reason analyze</h3> <h3 dir="auto">Steps to reproduce the behavior</h3> <h3 dir="auto">Please provide the reproduce example codes (such as a github link).</h3>
0
<p dir="auto">In case of lightmaps, the engine assumes a secondary uv set was defined. In many cases, such as online configurators where users change only the color of the material, the lightmaps do share the same primary uv set. The engine should assume that if a lightmap is set, and if no secondary set is provided that it should use the primary buffer instead. Or internally duplicate the primary buffer to the secondary.<br> This would prevent the necessity to provide twice the same data if exported from third party editors or code the above.</p>
<p dir="auto">I've noticed some duplication in renderer source (WebGLRenderer) as well as the fact that the whole thing is sparsely annotated and is several thousands lines long. Maybe pull it apart somewhat? Extract abstract classes or routines out of it perhaps? Extra documentation in code wouldn't go amiss either. I think for many people including myself, that chunk of code is fairly difficult to decipher. I know there is a handful of bugs in cascading shadow maps implementation for instance, but it doesn't look like it would be easy for someone unfamiliar with the whole 6.5k lines to identify the problem. If there was a distinct set of files dedicated to shadows - it would be a lower entry barrier. I think this is necessary for project's overall health.</p>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">I expect that a menu item on a touch device should function approximately the same as on desktop: when a selected item is clicked (touched) the darkened background should turn white (at some point - after finishing the transitions).</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">The background keeps being dark (although slightly darker than a normal selected text). It does not do this on desktop.</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>Browse to the the <a href="https://material-ui-next.com/demos/selects/#multiple-select" rel="nofollow">multiple select demo</a> on a <em>mobile</em> device or using Chrome's emulator</li> <li>Select some names<br> 3.Try deselecting a name</li> <li>Observe it still having a grey background</li> </ol> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/618076/35867409-f0f13256-0b59-11e8-92df-b80fc5157462.gif"><img src="https://user-images.githubusercontent.com/618076/35867409-f0f13256-0b59-11e8-92df-b80fc5157462.gif" alt="peek" data-animated-image="" style="max-width: 100%;"></a></p> <h2 dir="auto">Context</h2> <p dir="auto">When testing out custom rendering we were bit by this when our fonts didn't include the bold font weights. Then the darkness of the boxes was the only thing that discerned whether a item was selected or not. With this bug, even a freshly deselected item would remain visibly selected.</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>beta.32</td> </tr> <tr> <td>React</td> <td>15.6</td> </tr> <tr> <td>browser</td> <td>Chrome on desktop and Android</td> </tr> </tbody> </table>
<p dir="auto"><a href="https://material-ui.com/api/dialog/" rel="nofollow">https://material-ui.com/api/dialog/</a></p> <p dir="auto">Would love to have a flag to make dialog box draggable. It could have a draggable handle or just all dialog would be draggable.</p> <p dir="auto">I use a dialog box for settings and stuff behind the dialog changes when settings in the dialog are changed and sometimes dialog box just covers content behind it and simply drag would solve it and UX would be much better.</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/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.5</li> <li>Operating System version: win10</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>基于xml的方式可以对分组方法进行merger调用<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/33019873/80855389-77f69d80-8c73-11ea-9b46-045fe8819092.png"><img src="https://user-images.githubusercontent.com/33019873/80855389-77f69d80-8c73-11ea-9b46-045fe8819092.png" alt="image" style="max-width: 100%;"></a></li> <li>但是基于注解方式<code class="notranslate">@Reference</code>或<code class="notranslate">@Method</code>都不支持指定merger</li> </ol> <h3 dir="auto">Expected Result</h3> <p dir="auto">可以通过<code class="notranslate">@Reference</code>或<code class="notranslate">@Method</code>指定merger</p>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: xxx</li> <li>Operating System version: xxx</li> <li>Java version: xxx</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>当使用分组聚合时,如果只有一个分组,这时分组下面的所有提供者会被调用一次,然而希望的是,只需要一个提供者被调用。</li> <li>xxx</li> <li>xxx</li> </ol> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">What do you expected from the above steps?</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">What actually happens?</p> <p dir="auto">If there is an exception, please attach the exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here! </code></pre></div>
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> ngc produces not validated (un-typed) context within embedded template directives like *ngIf, *ngFor, etc.</p> <ol dir="auto"> <li>Validated context (produces error when running ngc - expected behavior):</li> </ol> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@Component({ selector: 'my-app', template: '&lt;h1&gt;{{errorProperty}}&lt;/h1&gt;' }) export class AppComponent { }"><pre class="notranslate">@<span class="pl-smi">Component</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">selector</span>: <span class="pl-s">'my-app'</span><span class="pl-kos">,</span> <span class="pl-c1">template</span>: <span class="pl-s">'&lt;h1&gt;{{errorProperty}}&lt;/h1&gt;'</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-smi">AppComponent</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span></pre></div> <ol start="2" dir="auto"> <li>Not validated context (does not produce error when running ngc - unexpected behavior):</li> </ol> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@Component({ selector: 'my-app', template: '&lt;div *ngIf=&quot;false&quot;&gt;{{errorProperty}}&lt;/div&gt;' }) export class AppComponent { }"><pre class="notranslate">@<span class="pl-smi">Component</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">selector</span>: <span class="pl-s">'my-app'</span><span class="pl-kos">,</span> <span class="pl-c1">template</span>: <span class="pl-s">'&lt;div *ngIf="false"&gt;{{errorProperty}}&lt;/div&gt;'</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-smi">AppComponent</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><strong>Expected behavior</strong><br> ngc produces error in the second example above.</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br> Run ngc with above examples 1 and 2.</p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br> Detects errors in complex templates during compile time.</p> <p dir="auto"><strong>Please tell us about your environment:</strong></p> <ul dir="auto"> <li> <p dir="auto"><strong>Angular version:</strong> 2.4.1</p> </li> <li> <p dir="auto"><strong>Browser:</strong> N/A</p> </li> </ul> <ul dir="auto"> <li> <p dir="auto"><strong>Language:</strong> [TypeScript 2.0.10 | ES6]</p> </li> <li> <p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> = 5.3.0</p> </li> </ul>
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[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></p> <p dir="auto">When implementing a directive that listens to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/HostListener/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/HostListener">@HostListener</a>('click', ['$event']) and event.cancelBubble = true and a (click) is set to the same element as the directive the (click) does not respect the event.cancelBubble but still processes even though the event is first fired in the directive.</p> <p dir="auto"><strong>Expected behavior</strong></p> <p dir="auto">Event should be canceled and not fired in the (click) event.</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p> <ol dir="auto"> <li>Create a directive</li> <li>Implement<br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/HostListener/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/HostListener">@HostListener</a>('click', ['$event'])<br> private onClick(event:MouseEvent):void<br> {<br> console.log("here 1");<br> event.cancelBubble = true;<br> }</li> <li>Add directive to component</li> <li>Add (click)="console.log('here 2')"</li> <li>Output:<br> here 1<br> here 2</li> </ol> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p> <p dir="auto">You want to stop the standard behavior on for example a long click.</p> <p dir="auto"><strong>Please tell us about your environment:</strong></p> <p dir="auto">Windows 10, Visual Studio Code, Angular CLI</p> <ul dir="auto"> <li><strong>Angular version:</strong> 2.0.X</li> </ul> <p dir="auto">2.4.0</p> <ul dir="auto"> <li><strong>Browser:</strong> [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]</li> </ul> <p dir="auto">Chrome</p> <ul dir="auto"> <li><strong>Language:</strong> [all | TypeScript X.X | ES6/7 | ES5]<br> TypeScript 2.X</li> <li><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> =</li> </ul>
0
<p dir="auto">Currently, I developing a component that requires both props and themes object.</p> <p dir="auto">At first, it works great with theme object</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const styles = theme =&gt; ({ title: { ...theme.typography.headline, textAlign: 'center', padding: '8px 16px', margin: 0, color: theme.palette.common.white, backgroundColor: theme.palette.primary[500], }, withStyles(styles, { withTheme: true })(Component); ...."><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">styles</span> <span class="pl-c1">=</span> <span class="pl-s1">theme</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">title</span>: <span class="pl-kos">{</span> ...<span class="pl-s1">theme</span><span class="pl-kos">.</span><span class="pl-c1">typography</span><span class="pl-kos">.</span><span class="pl-c1">headline</span><span class="pl-kos">,</span> <span class="pl-c1">textAlign</span>: <span class="pl-s">'center'</span><span class="pl-kos">,</span> <span class="pl-c1">padding</span>: <span class="pl-s">'8px 16px'</span><span class="pl-kos">,</span> <span class="pl-c1">margin</span>: <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-c1">color</span>: <span class="pl-s1">theme</span><span class="pl-kos">.</span><span class="pl-c1">palette</span><span class="pl-kos">.</span><span class="pl-c1">common</span><span class="pl-kos">.</span><span class="pl-c1">white</span><span class="pl-kos">,</span> <span class="pl-c1">backgroundColor</span>: <span class="pl-s1">theme</span><span class="pl-kos">.</span><span class="pl-c1">palette</span><span class="pl-kos">.</span><span class="pl-c1">primary</span><span class="pl-kos">[</span><span class="pl-c1">500</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">withStyles</span><span class="pl-kos">(</span><span class="pl-s1">styles</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">withTheme</span>: <span class="pl-s1">true</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-v">Component</span><span class="pl-kos">)</span><span class="pl-kos">;</span> ...<span class="pl-kos">.</span></pre></div> <p dir="auto">But I also need access to props in styles object.</p> <p dir="auto">I tried example but it not working.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ .... display: (props) =&gt; props.display }"><pre class="notranslate"><span class="pl-kos">{</span> ...<span class="pl-kos">.</span> <span class="pl-en">display</span>: <span class="pl-kos">(</span><span class="pl-s1">props</span><span class="pl-kos">)</span> <span class="pl-c1">=</span><span class="pl-c1">&gt;</span> <span class="pl-s1">props</span><span class="pl-kos">.</span><span class="pl-c1">display</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">I end up combine <code class="notranslate">react-jss</code> and <code class="notranslate">withTheme</code> to do that</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" import { withTheme } from 'material-ui/styles'; import injectSheet from 'react-jss'; function withStyles(styles, Component) { return withTheme()(injectSheet(styles)(Component)); } export default withStyles; .... const styles = { title: { display: (props) =&gt; props.display, textAlign: 'center', padding: '8px 16px', margin: 0, color: ({ theme }) =&gt; theme.palette.common.white, backgroundColor: ({ theme }) =&gt; theme.palette.primary[500], }, "><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">withTheme</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'material-ui/styles'</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-s1">injectSheet</span> <span class="pl-k">from</span> <span class="pl-s">'react-jss'</span><span class="pl-kos">;</span> <span class="pl-k">function</span> <span class="pl-en">withStyles</span><span class="pl-kos">(</span><span class="pl-s1">styles</span><span class="pl-kos">,</span> <span class="pl-v">Component</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-en">withTheme</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-en">injectSheet</span><span class="pl-kos">(</span><span class="pl-s1">styles</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-v">Component</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-s1">withStyles</span><span class="pl-kos">;</span> ...<span class="pl-kos">.</span> <span class="pl-k">const</span> <span class="pl-s1">styles</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">title</span>: <span class="pl-kos">{</span> <span class="pl-en">display</span>: <span class="pl-kos">(</span><span class="pl-s1">props</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-s1">props</span><span class="pl-kos">.</span><span class="pl-c1">display</span><span class="pl-kos">,</span> <span class="pl-c1">textAlign</span>: <span class="pl-s">'center'</span><span class="pl-kos">,</span> <span class="pl-c1">padding</span>: <span class="pl-s">'8px 16px'</span><span class="pl-kos">,</span> <span class="pl-c1">margin</span>: <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-en">color</span>: <span class="pl-kos">(</span><span class="pl-kos">{</span> theme <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-s1">theme</span><span class="pl-kos">.</span><span class="pl-c1">palette</span><span class="pl-kos">.</span><span class="pl-c1">common</span><span class="pl-kos">.</span><span class="pl-c1">white</span><span class="pl-kos">,</span> <span class="pl-en">backgroundColor</span>: <span class="pl-kos">(</span><span class="pl-kos">{</span> theme <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-s1">theme</span><span class="pl-kos">.</span><span class="pl-c1">palette</span><span class="pl-kos">.</span><span class="pl-c1">primary</span><span class="pl-kos">[</span><span class="pl-c1">500</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">It works but I really miss</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" title: { ...theme.typography.headline,"><pre class="notranslate"><code class="notranslate"> title: { ...theme.typography.headline, </code></pre></div>
<h3 dir="auto">Description</h3> <p dir="auto">When using <code class="notranslate">createStyleSheet</code>, there is no way (at least that i know of) to access the component's props. I think this is important, as sometimes it is wanted to pass sizes, url images, and other stylings as props to the component.</p> <p dir="auto">Today the only solution to this is to separate these stuff into inline-styles, but as far as i know, material-ui v1 uses <code class="notranslate">jss</code> and <code class="notranslate">react-jss</code>, and those two already gives you the possibility of access the props via functions that receive the props and then return the desired style, like that:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const styles = { button: { background: props =&gt; props.color }, root: { backgroundImage: props =&gt; `url(${props.backgroundImage})` } } // Reference: https://github.com/cssinjs/react-jss#example"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">styles</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">button</span>: <span class="pl-kos">{</span> <span class="pl-en">background</span>: <span class="pl-s1">props</span> <span class="pl-c1">=&gt;</span> <span class="pl-s1">props</span><span class="pl-kos">.</span><span class="pl-c1">color</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">root</span>: <span class="pl-kos">{</span> <span class="pl-en">backgroundImage</span>: <span class="pl-s1">props</span> <span class="pl-c1">=&gt;</span> <span class="pl-s">`url(<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">props</span><span class="pl-kos">.</span><span class="pl-c1">backgroundImage</span><span class="pl-kos">}</span></span>)`</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-c">// Reference: https://github.com/cssinjs/react-jss#example</span></pre></div> <p dir="auto">What do you think of implementing something like that on material-ui too?</p>
1
<h5 dir="auto">Description of the problem</h5> <p dir="auto">Works only in Chrome</p> <p dir="auto">If I use Raycaster to IntersectObject I can experience some unpredictable problem in extream slowdown of the raycasting.</p> <p dir="auto">To reproduce that problem you should somewhere in the code declare Vector3 with strings in it's properties. Just create such Vector3 not use it:<br> <strong>var test = new THREE.Vector3("foo", "bar", "baz")</strong></p> <ul dir="auto"> <li><a href="https://jsfiddle.net/dnkorbut/8guscodm/1/" rel="nofollow">jsfiddle</a> (reproduced problem)</li> </ul> <ol dir="auto"> <li>Try to move your mouse around to see your FPS while moving the mouse</li> <li>Click "slowdown" button at the top right corner</li> <li>Move your mouse again to see huge performance drop</li> </ol> <p dir="auto">In real life we do not put strings to Vector3 properties but sometime people can get some poor JSON output or some other issues where the problem will be revealed only when you trying to use Raycaster and those not easily fixed. Vector3 works well with strings like "1.234" but Raycaster will be slowed down in such cases. So the problem can be seamless. You should always parseFloat before you put values to Vector3</p> <h5 dir="auto">Three.js version</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Dev</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r100</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> ...</li> </ul> <h5 dir="auto">Browser</h5> <ul class="contains-task-list"> <li>[] All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Chrome</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Firefox</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Internet Explorer</li> </ul> <h5 dir="auto">OS</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Windows</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> macOS</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Linux</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Android</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> iOS</li> </ul>
<h5 dir="auto">Description of the problem</h5> <p dir="auto">So I'm not sure what to even call this... I guess an oddity more than anything. I noticed this on a site i have when my raycasting was way slower than i had expected in certain scenarios. Here is the easiest way to reproduce:</p> <ul dir="auto"> <li>Use this example: <a href="https://threejs.org/examples/webgl_geometry_terrain_raycast" rel="nofollow">https://threejs.org/examples/webgl_geometry_terrain_raycast</a></li> <li>Move your mouse around and notice the fps (whatever it may be)</li> <li>Open up the console and enter: var testVector = new THREE.Vector3("1",2,3);</li> <li>Move your mouse around again... there should be a huge drop in fps (45 --&gt; 15 for me on my computer)</li> <li>Set testVector.x back to some float/integer after making it a string.. it wont fix anything.</li> </ul> <p dir="auto">I just don't understand what the heck is going on. Was it my fault for creating a vector 3 with a string? Probably. But i just don't get how doing something like this grenades the performance of the entire scene. Maybe you could force a parseFloat on vector data?</p> <p dir="auto">Im not sure if this bug makes all threejs actions slower or just raycasting, but that is where i noticed it the most.</p> <p dir="auto">Extra notes: Doing the same thing with vector2/vector4 does nothing.</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=""> r89 (example above)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r79 (my app)</li> </ul> <h5 dir="auto">Browser</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Chrome</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Firefox</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Internet Explorer</li> </ul> <h5 dir="auto">OS</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Windows</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> macOS</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Linux</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Android</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> iOS</li> </ul>
1
<p dir="auto">I'm experiencing an error with Symfony 2.2.3 (I had to move back to 2.2.2) when clearing cache</p> <p dir="auto">php app/console -v cache:clear<br> Clearing the cache for the dev environment with debug true</p> <p dir="auto">[Symfony\Component\DependencyInjection\Exception\InactiveScopeException]</p> <p dir="auto">You cannot create a service ("request") of an inactive scope ("request").</p> <p dir="auto">Exception trace:<br> () at /Users/patricklock/Sites/cplus-security/app/cache/de_/ap_DevDebugProjectContainer.php:2051<br> ap_DevDebugProjectContainer-&gt;getRequestService() at /Users/patricklock/Sites/cplus-security/app/bootstrap.php.cache:129<br> Symfony\Component\DependencyInjection\Container-&gt;get() at /Users/patricklock/Sites/cplus-security/app/cache/de_/ap_DevDebugProjectContainer.php:1544<br> ap_DevDebugProjectContainer-&gt;getFragment_HandlerService() at /Users/patricklock/Sites/cplus-security/app/bootstrap.php.cache:129<br> Symfony\Component\DependencyInjection\Container-&gt;get() at /Users/patricklock/Sites/cplus-security/app/cache/de_/ap_DevDebugProjectContainer.php:3324<br> ap_DevDebugProjectContainer-&gt;getTwigService() at /Users/patricklock/Sites/cplus-security/app/bootstrap.php.cache:129<br> Symfony\Component\DependencyInjection\Container-&gt;get() at /Users/patricklock/Sites/cplus-security/app/cache/de_/ap_DevDebugProjectContainer.php:307<br> ap_DevDebugProjectContainer-&gt;getAssetic_AssetManagerService() at /Users/patricklock/Sites/cplus-security/app/bootstrap.php.cache:129<br> Symfony\Component\DependencyInjection\Container-&gt;get() at /Users/patricklock/Sites/cplus-security/vendor/symfony/assetic-bundle/Symfony/Bundle/AsseticBundle/CacheWarmer/AssetManagerCacheWarmer.php:33<br> Symfony\Bundle\AsseticBundle\CacheWarmer\AssetManagerCacheWarmer-&gt;warmUp() at /Users/patricklock/Sites/cplus-security/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/CacheWarmer/CacheWarmerAggregate.php:47<br> Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate-&gt;warmUp() at /Users/patricklock/Sites/cplus-security/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php:117<br> Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand-&gt;warmup() at /Users/patricklock/Sites/cplus-security/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php:83<br> Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand-&gt;execute() at /Users/patricklock/Sites/cplus-security/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:244<br> Symfony\Component\Console\Command\Command-&gt;run() at /Users/patricklock/Sites/cplus-security/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:899<br> Symfony\Component\Console\Application-&gt;doRunCommand() at /Users/patricklock/Sites/cplus-security/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:184<br> Symfony\Component\Console\Application-&gt;doRun() at /Users/patricklock/Sites/cplus-security/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:80<br> Symfony\Bundle\FrameworkBundle\Console\Application-&gt;doRun() at /Users/patricklock/Sites/cplus-security/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:121<br> Symfony\Component\Console\Application-&gt;run() at /Users/patricklock/Sites/cplus-security/app/console:22</p>
<p dir="auto">Hi developpers, and many thanks for your great job on symfony.</p> <p dir="auto">Here is a bug I've notice on Symfony version 2.3.30</p> <p dir="auto">I have:</p> <ul dir="auto"> <li>In my form class:</li> </ul> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class FicheReperageMotifType extends AbstractType { public function buildForm(FormBuilderInterface $builder, array $options) { ... $options = array('label' =&gt; 'The label:'); $options['attr'] = array('rows' =&gt; '10', 'style' =&gt; &quot;width:100%; display:block&quot;); $builder-&gt;add(&quot;precisez&quot;, 'textarea', $options); } }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">FicheReperageMotifType</span> <span class="pl-k">extends</span> <span class="pl-v">AbstractType</span> { <span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">buildForm</span>(<span class="pl-smi"><span class="pl-smi">FormBuilderInterface</span></span> <span class="pl-s1"><span class="pl-c1">$</span>builder</span>, <span class="pl-smi">array</span> <span class="pl-s1"><span class="pl-c1">$</span>options</span>) { <span class="pl-c1">.</span>.<span class="pl-c1">.</span> <span class="pl-s1"><span class="pl-c1">$</span>options</span> = <span class="pl-en">array</span>(<span class="pl-s">'label'</span> =&gt; <span class="pl-s">'The label:'</span>); <span class="pl-s1"><span class="pl-c1">$</span>options</span>[<span class="pl-s">'attr'</span>] = <span class="pl-en">array</span>(<span class="pl-s">'rows'</span> =&gt; <span class="pl-s">'10'</span>, <span class="pl-s">'style'</span> =&gt; "<span class="pl-s">width:100%; display:block</span>"); <span class="pl-s1"><span class="pl-c1">$</span>builder</span>-&gt;<span class="pl-en">add</span>("<span class="pl-s">precisez</span>", <span class="pl-s">'textarea'</span>, <span class="pl-s1"><span class="pl-c1">$</span>options</span>); } }</pre></div> <ul dir="auto"> <li>In my entity class:</li> </ul> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" /** * * @ORM\Column(name=&quot;precisez&quot;, type=&quot;string&quot;, length=5000, nullable=true) */ private $precisez;"><pre class="notranslate"> <span class="pl-c">/**</span> <span class="pl-c"> *</span> <span class="pl-c"> * @ORM\Column(name="precisez", type="string", length=5000, nullable=true)</span> <span class="pl-c"> */</span> <span class="pl-k">private</span> <span class="pl-s1"><span class="pl-c1">$</span>precisez</span>;</pre></div> <ul dir="auto"> <li> <p dir="auto">In my twig template:</p> <pre class="notranslate">{{ form(form) }} </pre> </li> <li> <p dir="auto">The final HTML render is:</p> </li> </ul> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;textarea id=&quot;FicheReperage_motif_precisez&quot; name=&quot;FicheReperage[motif][precisez]&quot; required=&quot;required&quot; rows=&quot;10&quot; style=&quot;width:100%; display:block&quot;&gt;precisez&lt;/textarea&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">textarea</span> <span class="pl-c1">id</span>="<span class="pl-s">FicheReperage_motif_precisez</span>" <span class="pl-c1">name</span>="<span class="pl-s">FicheReperage[motif][precisez]</span>" <span class="pl-c1">required</span>="<span class="pl-s">required</span>" <span class="pl-c1">rows</span>="<span class="pl-s">10</span>" <span class="pl-c1">style</span>="<span class="pl-s">width:100%; display:block</span>"<span class="pl-kos">&gt;</span>precisez<span class="pl-kos">&lt;/</span><span class="pl-ent">textarea</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">As you can see the field is required, but nullable=true. Therefore this field should not be required.</p> <ul dir="auto"> <li>If I leave symfony decide itself the field type by setting:</li> </ul> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" $options = array('label' =&gt; 'The label:'); $options['attr'] = array('rows' =&gt; '10', 'style' =&gt; &quot;width:100%; display:block&quot;); $builder-&gt;add(&quot;precisez&quot;, null, $options);"><pre class="notranslate"> <span class="pl-s1"><span class="pl-c1">$</span>options</span> = <span class="pl-en">array</span>(<span class="pl-s">'label'</span> =&gt; <span class="pl-s">'The label:'</span>); <span class="pl-s1"><span class="pl-c1">$</span>options</span>[<span class="pl-s">'attr'</span>] = <span class="pl-en">array</span>(<span class="pl-s">'rows'</span> =&gt; <span class="pl-s">'10'</span>, <span class="pl-s">'style'</span> =&gt; "<span class="pl-s">width:100%; display:block</span>"); <span class="pl-s1"><span class="pl-c1">$</span>builder</span>-&gt;<span class="pl-en">add</span>("<span class="pl-s">precisez</span>", <span class="pl-c1">null</span>, <span class="pl-s1"><span class="pl-c1">$</span>options</span>);</pre></div> <p dir="auto">I have the following HTML render:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;input type=&quot;text&quot; id=&quot;FicheReperage_motif_precisez&quot; name=&quot;FicheReperage[motif][precisez]&quot; maxlength=&quot;5000&quot; rows=&quot;10&quot; style=&quot;width:100%; display:block&quot; value=&quot;precisez&quot;&gt;"><pre class="notranslate"><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">id</span>="<span class="pl-s">FicheReperage_motif_precisez</span>" <span class="pl-c1">name</span>="<span class="pl-s">FicheReperage[motif][precisez]</span>" <span class="pl-c1">maxlength</span>="<span class="pl-s">5000</span>" <span class="pl-c1">rows</span>="<span class="pl-s">10</span>" <span class="pl-c1">style</span>="<span class="pl-s">width:100%; display:block</span>" <span class="pl-c1">value</span>="<span class="pl-s">precisez</span>"<span class="pl-kos">&gt;</span></pre></div> <p dir="auto">And this time it is correct.</p> <p dir="auto">Please let me know if you need more information.</p> <p dir="auto">Best regards,</p>
0
<h1 dir="auto">Weekly Report of Dubbo</h1> <p dir="auto">This is a weekly report of Dubbo. It summarizes what have changed in the project during the passed week, including pr merged, new contributors, and more things in the future.<br> It is all done by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dubbo-bot/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dubbo-bot">@dubbo-bot</a> which is a collaborate robot.</p> <h2 dir="auto">Repo Overview</h2> <h3 dir="auto">Basic data</h3> <p dir="auto">Baisc data shows how the watch, star, fork and contributors count changed in the passed week.</p> <table role="table"> <thead> <tr> <th align="center">Watch</th> <th align="center">Star</th> <th align="center">Fork</th> <th align="center">Contributors</th> </tr> </thead> <tbody> <tr> <td align="center">3217</td> <td align="center">27013 (↑191)</td> <td align="center">15166 (↑97)</td> <td align="center">201 (↑1)</td> </tr> </tbody> </table> <h3 dir="auto">Issues &amp; PRs</h3> <p dir="auto">Issues &amp; PRs show the new/closed issues/pull requests count in the passed week.</p> <table role="table"> <thead> <tr> <th align="center">New Issues</th> <th align="center">Closed Issues</th> <th align="center">New PR</th> <th align="center">Merged PR</th> </tr> </thead> <tbody> <tr> <td align="center">20</td> <td align="center">16</td> <td align="center">25</td> <td align="center">24</td> </tr> </tbody> </table> <h2 dir="auto">PR Overview</h2> <p dir="auto">Thanks to contributions from community, Dubbo team merged <strong>24</strong> pull requests in the repository last week. They are:</p> <ul dir="auto"> <li>2.7.2 release (<a href="https://github.com/apache/dubbo/pull/4259" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/4259/hovercard">#4259</a>)</li> <li>Default future from jeff-lv (<a href="https://github.com/apache/dubbo/pull/4257" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/4257/hovercard">#4257</a>)</li> <li>performance tuning: cache service key (<a href="https://github.com/apache/dubbo/pull/4255" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/4255/hovercard">#4255</a>)</li> <li>performance tuning: channel connect status (<a href="https://github.com/apache/dubbo/pull/4254" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/4254/hovercard">#4254</a>)</li> <li>Performance tuning: keep heartbeat updated in io thread to avoid race condition. (<a href="https://github.com/apache/dubbo/pull/4246" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/4246/hovercard">#4246</a>)</li> <li>Applicationmodel revert (<a href="https://github.com/apache/dubbo/pull/4245" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/4245/hovercard">#4245</a>)</li> <li>getMethodparameter refactor (<a href="https://github.com/apache/dubbo/pull/4244" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/4244/hovercard">#4244</a>)</li> <li>delete useless code (<a href="https://github.com/apache/dubbo/pull/4242" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/4242/hovercard">#4242</a>)</li> <li>Perf reduce string allocation (<a href="https://github.com/apache/dubbo/pull/4240" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/4240/hovercard">#4240</a>)</li> <li>[Dubbo-4218] Fix NPE when the TagRouterRule addresses config is null (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="450633979" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/4218" data-hovercard-type="issue" data-hovercard-url="/apache/dubbo/issues/4218/hovercard" href="https://github.com/apache/dubbo/issues/4218">#4218</a>) (<a href="https://github.com/apache/dubbo/pull/4236" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/4236/hovercard">#4236</a>)</li> <li>[Dubbo-4219] Remove DISCLAIMER (<a href="https://github.com/apache/dubbo/pull/4234" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/4234/hovercard">#4234</a>)</li> <li>[Dubbo-4219] Remove DISCLAIMER (<a href="https://github.com/apache/dubbo/pull/4233" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/4233/hovercard">#4233</a>)</li> <li>[Dubbo-4219] Remove DISCLAIMER (<a href="https://github.com/apache/dubbo/pull/4231" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/4231/hovercard">#4231</a>)</li> <li>fix <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="450700349" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/4227" data-hovercard-type="issue" data-hovercard-url="/apache/dubbo/issues/4227/hovercard" href="https://github.com/apache/dubbo/issues/4227">#4227</a> : remove duplicate <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/OverRide/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/OverRide">@OverRide</a> (<a href="https://github.com/apache/dubbo/pull/4228" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/4228/hovercard">#4228</a>)</li> <li>[Dubbo-4183] Fix unstable tests in ConditionRouterTest (<a href="https://github.com/apache/dubbo/pull/4226" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/4226/hovercard">#4226</a>)</li> <li>performance tuning: completely remove 'default.' prefix check. (<a href="https://github.com/apache/dubbo/pull/4222" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/4222/hovercard">#4222</a>)</li> <li>performance tuning: avoid repeated address resolving. (<a href="https://github.com/apache/dubbo/pull/4220" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/4220/hovercard">#4220</a>)</li> <li>performance tuning: save rpcinvocation allocation (<a href="https://github.com/apache/dubbo/pull/4215" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/4215/hovercard">#4215</a>)</li> <li>optimize junit Assert usage (<a href="https://github.com/apache/dubbo/pull/4214" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/4214/hovercard">#4214</a>)</li> <li>[Test] add test for common-config (<a href="https://github.com/apache/dubbo/pull/4208" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/4208/hovercard">#4208</a>)</li> <li>[CI] Add jenkinsfile for dubbo snapshot deployment (<a href="https://github.com/apache/dubbo/pull/4205" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/4205/hovercard">#4205</a>)</li> <li>Java doc for remote netty4 (<a href="https://github.com/apache/dubbo/pull/4180" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/4180/hovercard">#4180</a>)</li> <li>reverse url of python (<a href="https://github.com/apache/dubbo/pull/4162" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/4162/hovercard">#4162</a>)</li> <li>Reduce context switching cost by optimizing thread model on consumer side. (<a href="https://github.com/apache/dubbo/pull/4131" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/4131/hovercard">#4131</a>)</li> </ul> <h2 dir="auto">Code Review Statistics</h2> <p dir="auto">Dubbo encourages everyone to participant in code review, in order to improve software quality. Every week <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dubbo-bot/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dubbo-bot">@dubbo-bot</a> would automatically help to count pull request reviews of single github user as the following. So, try to help review code in this project.</p> <table role="table"> <thead> <tr> <th align="center">Contributor ID</th> <th align="center">Pull Request Reviews</th> </tr> </thead> <tbody> <tr> <td align="center"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/slievrly/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/slievrly">@slievrly</a></td> <td align="center">7</td> </tr> <tr> <td align="center"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lovepoem/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lovepoem">@lovepoem</a></td> <td align="center">6</td> </tr> <tr> <td align="center"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ralf0131/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ralf0131">@ralf0131</a></td> <td align="center">4</td> </tr> <tr> <td align="center"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/htynkn/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/htynkn">@htynkn</a></td> <td align="center">3</td> </tr> <tr> <td align="center"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/moriadry/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/moriadry">@moriadry</a></td> <td align="center">2</td> </tr> <tr> <td align="center"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/chickenlj/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/chickenlj">@chickenlj</a></td> <td align="center">2</td> </tr> <tr> <td align="center"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/web1992/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/web1992">@web1992</a></td> <td align="center">2</td> </tr> <tr> <td align="center"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/CrazyHZM/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/CrazyHZM">@CrazyHZM</a></td> <td align="center">1</td> </tr> <tr> <td align="center"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Leishunyu/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Leishunyu">@Leishunyu</a></td> <td align="center">1</td> </tr> </tbody> </table> <h2 dir="auto">Contributors Overview</h2> <p dir="auto">It is Dubbo team's great honor to have new contributors from community. We really appreciate your contributions. Feel free to tell us if you have any opinion and please share this open source project with more people if you could. If you hope to be a contributor as well, please start from <a href="https://github.com/apache/incubator-dubbo/blob/master/CONTRIBUTING.md">https://github.com/apache/incubator-dubbo/blob/master/CONTRIBUTING.md</a> .<br> Here is the list of new contributors:</p> <p dir="auto">@P3trur0</p> <p dir="auto">Thanks to you all.</p> <p dir="auto"><em>Note: This robot is supported by <a href="https://github.com/AlibabaDR/Collabobot">Collabobot</a>.</em></p>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.6</li> <li>Operating System version: 10.14.6</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <p dir="auto">参数验证异常无法转换<br> java.lang.ClassCastException: javax.validation.ValidationException cannot be cast to javax.validation.ConstraintViolationException<br> 想要获取参数的异常信息但是无法转换</p> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <p dir="auto">dubbo-filter/dubbo-filter-validation/src/main/java/org/apache/dubbo/validation/filter/ValidationFilter.java</p> <h3 dir="auto">Expected Result</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="public Result invoke(Invoker&lt;?&gt; invoker, Invocation invocation) throws RpcException { if (validation != null &amp;&amp; !invocation.getMethodName().startsWith(&quot;$&quot;) &amp;&amp; ConfigUtils.isNotEmpty(invoker.getUrl().getMethodParameter(invocation.getMethodName(), VALIDATION_KEY))) { try { Validator validator = validation.getValidator(invoker.getUrl()); if (validator != null) { validator.validate(invocation.getMethodName(), invocation.getParameterTypes(), invocation.getArguments()); } } catch (RpcException e) { throw e; }catch (ConstraintViolationException e) { // only use exception's message to avoid potential serialization issue return AsyncRpcResult.newDefaultAsyncResult(e, invocation); } catch (Throwable t) { return AsyncRpcResult.newDefaultAsyncResult(t, invocation); } } return invoker.invoke(invocation); }"><pre class="notranslate"><code class="notranslate">public Result invoke(Invoker&lt;?&gt; invoker, Invocation invocation) throws RpcException { if (validation != null &amp;&amp; !invocation.getMethodName().startsWith("$") &amp;&amp; ConfigUtils.isNotEmpty(invoker.getUrl().getMethodParameter(invocation.getMethodName(), VALIDATION_KEY))) { try { Validator validator = validation.getValidator(invoker.getUrl()); if (validator != null) { validator.validate(invocation.getMethodName(), invocation.getParameterTypes(), invocation.getArguments()); } } catch (RpcException e) { throw e; }catch (ConstraintViolationException e) { // only use exception's message to avoid potential serialization issue return AsyncRpcResult.newDefaultAsyncResult(e, invocation); } catch (Throwable t) { return AsyncRpcResult.newDefaultAsyncResult(t, invocation); } } return invoker.invoke(invocation); } </code></pre></div> <p dir="auto">or</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="public Result invoke(Invoker&lt;?&gt; invoker, Invocation invocation) throws RpcException { if (validation != null &amp;&amp; !invocation.getMethodName().startsWith(&quot;$&quot;) &amp;&amp; ConfigUtils.isNotEmpty(invoker.getUrl().getMethodParameter(invocation.getMethodName(), VALIDATION_KEY))) { try { Validator validator = validation.getValidator(invoker.getUrl()); if (validator != null) { validator.validate(invocation.getMethodName(), invocation.getParameterTypes(), invocation.getArguments()); } } catch (RpcException e) { throw e; } catch (ValidationException e) { // only use exception's message to avoid potential serialization issue return AsyncRpcResult.newDefaultAsyncResult(e, invocation); } catch (Throwable t) { return AsyncRpcResult.newDefaultAsyncResult(t, invocation); } } return invoker.invoke(invocation); }"><pre class="notranslate"><code class="notranslate">public Result invoke(Invoker&lt;?&gt; invoker, Invocation invocation) throws RpcException { if (validation != null &amp;&amp; !invocation.getMethodName().startsWith("$") &amp;&amp; ConfigUtils.isNotEmpty(invoker.getUrl().getMethodParameter(invocation.getMethodName(), VALIDATION_KEY))) { try { Validator validator = validation.getValidator(invoker.getUrl()); if (validator != null) { validator.validate(invocation.getMethodName(), invocation.getParameterTypes(), invocation.getArguments()); } } catch (RpcException e) { throw e; } catch (ValidationException e) { // only use exception's message to avoid potential serialization issue return AsyncRpcResult.newDefaultAsyncResult(e, invocation); } catch (Throwable t) { return AsyncRpcResult.newDefaultAsyncResult(t, invocation); } } return invoker.invoke(invocation); } </code></pre></div> <p dir="auto">What do you expected from the above steps?</p> <h3 dir="auto">Actual Result</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" public void ConstraintViolationExceptionTest() { try{ ....... } catch (ConstraintViolationException e){ System.out.println(e.getConstraintViolations().iterator().next()); } }"><pre class="notranslate"><code class="notranslate"> public void ConstraintViolationExceptionTest() { try{ ....... } catch (ConstraintViolationException e){ System.out.println(e.getConstraintViolations().iterator().next()); } } </code></pre></div> <p dir="auto">or</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" public void ConstraintViolationExceptionTest() { try{ ....... } catch (ValidationException e){ ConstraintViolationException constraint = (ConstraintViolationException) e; constraint.getConstraintViolations().iterator().next().getMessage(); } }"><pre class="notranslate"><code class="notranslate"> public void ConstraintViolationExceptionTest() { try{ ....... } catch (ValidationException e){ ConstraintViolationException constraint = (ConstraintViolationException) e; constraint.getConstraintViolations().iterator().next().getMessage(); } } </code></pre></div> <p dir="auto">What actually happens?</p> <p dir="auto">If there is an exception, please attach the exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here! </code></pre></div>
0
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Win32NT 10.0.18362.0 Windows Terminal version (if applicable): 0.5.2762.0"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Win32NT 10.0.18362.0 Windows Terminal version (if applicable): 0.5.2762.0 </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Sibling issue of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="502974222" data-permission-text="Title is private" data-url="https://github.com/microsoft/terminal/issues/3080" data-hovercard-type="issue" data-hovercard-url="/microsoft/terminal/issues/3080/hovercard" href="https://github.com/microsoft/terminal/issues/3080">#3080</a>. Execute this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="echo -ne '\e[?12'; sleep 1; echo -ne '34h'"><pre class="notranslate"><code class="notranslate">echo -ne '\e[?12'; sleep 1; echo -ne '34h' </code></pre></div> <h1 dir="auto">Expected behavior</h1> <p dir="auto">As if the delay wasn't there, this should attempt to enable DEC private mode 1234, which is unsupported by WT (actually undefined), so no action should be taken.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto"><code class="notranslate">34h</code> is printed, suggesting that parsing the sequence got interrupted.</p> <p dir="auto">Note that if the given number is supported (e.g. 1049 to switch to the alternate screen) then the sequence is parsed and executed correctly even when a delay is injected.</p> <hr> <p dir="auto">Update:</p> <p dir="auto">The same goes for unsupported CSI modes too, e.g. <code class="notranslate">\e[22;0;0t</code> (save title on stack) or <code class="notranslate">\e[4l</code> (replace mode).</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.0 Windows Terminal version (if applicable): 0.6.2951.0_x64 Any other software? * Powershell 7 Preview (x64) * WSL - Ubuntu"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 10.0.18362.0 Windows Terminal version (if applicable): 0.6.2951.0_x64 Any other software? * Powershell 7 Preview (x64) * WSL - Ubuntu </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <ol start="0" dir="auto"> <li>Open microsoft store</li> <li>Search for terminal</li> <li>Install terminal</li> <li>Launch terminal</li> </ol> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Terminal launches</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">An error message is displayed:</p> <blockquote> <p dir="auto">[Window Title]<br> C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_0.6.2951.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe</p> <p dir="auto">[Content]<br> C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_0.6.2951.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe</p> <p dir="auto">No applicable app licenses found.</p> <p dir="auto">[OK]</p> </blockquote>
0
<p dir="auto">Hi All,</p> <p dir="auto">I've got lambda function which I access via API Gateway.<br> This function works ok when I test it via Postman or via this test which uses <code class="notranslate">request</code> library:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="it('shoudl work via request', async () =&gt; { var options = { method: 'POST', url: 'https://-----------.execute-api.eu-central-1.amazonaws.com/dev/generate', headers: { 'Cache-Control': 'no-cache', 'Content-Type': 'application/json' }, body: { html: 'PGgxPkhlbGxvIHt7bmFtZX19PC9oMT48aDI+SGVsbG8gd29ybGQhISE8L2gyPg==', variables: 'eyJuYW1lIjoiV29ybGQiLCJwYXRoIjoiL2hvbWUvcGF3ZWwvLm52bS92ZXJzaW9ucy9ub2RlL3Y4LjExLjMvYmluOi91c3IvbG9jYWwvc2JpbjovdXNyL2xvY2FsL2JpbjovdXNyL3NiaW46L3Vzci9iaW46L3NiaW46L2JpbjovdXNyL2dhbWVzOi91c3IvbG9jYWwvZ2FtZXM6L3NuYXAvYmluOi91c3IvbGliL2p2bS9qYXZhLTgtb3JhY2xlL2JpbjovdXNyL2xpYi9qdm0vamF2YS04LW9yYWNsZS9kYi9iaW46L3Vzci9saWIvanZtL2phdmEtOC1vcmFjbGUvanJlL2JpbjovdmFyL3Rhc2sifQ==', css: 'aDEge2NvbG9yOiByZWR9' }, json: true }; request(options, function (error, response, body) { if (error) throw new Error(error); expect(body.generated).toBeTruthy() expect(body.pdf).toBeTruthy() }); })"><pre class="notranslate"><code class="notranslate">it('shoudl work via request', async () =&gt; { var options = { method: 'POST', url: 'https://-----------.execute-api.eu-central-1.amazonaws.com/dev/generate', headers: { 'Cache-Control': 'no-cache', 'Content-Type': 'application/json' }, body: { html: 'PGgxPkhlbGxvIHt7bmFtZX19PC9oMT48aDI+SGVsbG8gd29ybGQhISE8L2gyPg==', variables: 'eyJuYW1lIjoiV29ybGQiLCJwYXRoIjoiL2hvbWUvcGF3ZWwvLm52bS92ZXJzaW9ucy9ub2RlL3Y4LjExLjMvYmluOi91c3IvbG9jYWwvc2JpbjovdXNyL2xvY2FsL2JpbjovdXNyL3NiaW46L3Vzci9iaW46L3NiaW46L2JpbjovdXNyL2dhbWVzOi91c3IvbG9jYWwvZ2FtZXM6L3NuYXAvYmluOi91c3IvbGliL2p2bS9qYXZhLTgtb3JhY2xlL2JpbjovdXNyL2xpYi9qdm0vamF2YS04LW9yYWNsZS9kYi9iaW46L3Vzci9saWIvanZtL2phdmEtOC1vcmFjbGUvanJlL2JpbjovdmFyL3Rhc2sifQ==', css: 'aDEge2NvbG9yOiByZWR9' }, json: true }; request(options, function (error, response, body) { if (error) throw new Error(error); expect(body.generated).toBeTruthy() expect(body.pdf).toBeTruthy() }); }) </code></pre></div> <h3 dir="auto">Problem</h3> <p dir="auto">Unfortunately, when I'm using Axis I get following message <strong>Error: Cross origin <a href="http://localhost" rel="nofollow">http://localhost</a> forbidden</strong>.</p> <p dir="auto">Could you please tell me what am I doing wrong?</p> <p dir="auto">My code looks like that:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" it('should work via axios', async () =&gt; { const event = { html: &quot;PGgxPkhlbGxvIHt7bmFtZX19PC9oMT48aDI+SGVsbG8gd29ybGQhISE8L2gyPg==&quot;, variables: &quot;eyJuYW1lIjoiV29ybGQiLCJwYXRoIjoiL2hvbWUvcGF3ZWwvLm52bS92ZXJzaW9ucy9ub2RlL3Y4LjExLjMvYmluOi91c3IvbG9jYWwvc2JpbjovdXNyL2xvY2FsL2JpbjovdXNyL3NiaW46L3Vzci9iaW46L3NiaW46L2JpbjovdXNyL2dhbWVzOi91c3IvbG9jYWwvZ2FtZXM6L3NuYXAvYmluOi91c3IvbGliL2p2bS9qYXZhLTgtb3JhY2xlL2JpbjovdXNyL2xpYi9qdm0vamF2YS04LW9yYWNsZS9kYi9iaW46L3Vzci9saWIvanZtL2phdmEtOC1vcmFjbGUvanJlL2JpbjovdmFyL3Rhc2sifQ==&quot;, css: &quot;aDEge2NvbG9yOiByZWR9&quot; } await axios.post(url, event, { headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }, responseType: 'json', withCredentials: true, }) .then(function (response) { console.log(response); // console.log('ok') expect(response.generated).toBeTruthy() expect(response.pdf).toBeTruthy() }) .catch(function (error) { console.log(error); }); })"><pre class="notranslate"><code class="notranslate"> it('should work via axios', async () =&gt; { const event = { html: "PGgxPkhlbGxvIHt7bmFtZX19PC9oMT48aDI+SGVsbG8gd29ybGQhISE8L2gyPg==", variables: "eyJuYW1lIjoiV29ybGQiLCJwYXRoIjoiL2hvbWUvcGF3ZWwvLm52bS92ZXJzaW9ucy9ub2RlL3Y4LjExLjMvYmluOi91c3IvbG9jYWwvc2JpbjovdXNyL2xvY2FsL2JpbjovdXNyL3NiaW46L3Vzci9iaW46L3NiaW46L2JpbjovdXNyL2dhbWVzOi91c3IvbG9jYWwvZ2FtZXM6L3NuYXAvYmluOi91c3IvbGliL2p2bS9qYXZhLTgtb3JhY2xlL2JpbjovdXNyL2xpYi9qdm0vamF2YS04LW9yYWNsZS9kYi9iaW46L3Vzci9saWIvanZtL2phdmEtOC1vcmFjbGUvanJlL2JpbjovdmFyL3Rhc2sifQ==", css: "aDEge2NvbG9yOiByZWR9" } await axios.post(url, event, { headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }, responseType: 'json', withCredentials: true, }) .then(function (response) { console.log(response); // console.log('ok') expect(response.generated).toBeTruthy() expect(response.pdf).toBeTruthy() }) .catch(function (error) { console.log(error); }); }) </code></pre></div> <h3 dir="auto">Context</h3> <ul dir="auto"> <li>axios version: v0.18.0</li> <li>Environment: node v8.11.3</li> </ul>
<h4 dir="auto">Summary</h4> <p dir="auto">I have noticed that npm package includes the <code class="notranslate">dist</code> folder which contains both minified and full versions of axios. At the same time, the npm package itself is only using the <code class="notranslate">lib</code> folder. Is there a reason to ship pre-built versions via npm in addition to the library itself? The duplication adds around 200KB and requires a workaround when packaging axios for the AWS Lambda.</p> <h4 dir="auto">Context</h4> <ul dir="auto"> <li>axios version: latest</li> </ul>
0
<p dir="auto">See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="139191093" data-permission-text="Title is private" data-url="https://github.com/xdebug/vscode-php-debug/issues/21" data-hovercard-type="issue" data-hovercard-url="/xdebug/vscode-php-debug/issues/21/hovercard" href="https://github.com/xdebug/vscode-php-debug/issues/21">xdebug/vscode-php-debug#21</a><br> I am not currently sending <code class="notranslate">supportsFunctionBreakpoints: true</code>, but users are still able to set function breakpoints, resulting in errors.</p> <p dir="auto">I just worked on implementing <code class="notranslate">setFunctionBreakpoints</code> and it works without having to send the flag in <code class="notranslate">InitializeResponse</code>.</p>
1
<p dir="auto">The Keyboard Manager can map keys onto keys, and shortcuts onto shortcuts, but it would be good if it could also map shortcuts onto keys, and vice-versa. For example, I'd like to map ctrl-E onto Up Arrow, but that isn't possible in the current beta version.</p>
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">Ability to remap a single key (² for example, sleeping in the top left corner of my KB), and assign it for example to alt+space, in order to open powertoys run, or to "open a new terminal", or whatever</p>
1
<p dir="auto">Forked from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="40954231" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/1007" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/1007/hovercard" href="https://github.com/kubernetes/kubernetes/pull/1007">#1007</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="42834370" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/1325" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/1325/hovercard" href="https://github.com/kubernetes/kubernetes/pull/1325">#1325</a> .</p> <p dir="auto">We want to support management of services via declarative configuration.</p> <p dir="auto">The configuration files written by the user may need to undergo multiple transformations before submitting them to the API, as discussed in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="45421110" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/1694" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/1694/hovercard" href="https://github.com/kubernetes/kubernetes/issues/1694">#1694</a>, but the result of these steps should be concrete objects. These objects may need to be created, updated, and/or deleted.</p> <p dir="auto">On an object-by-object basis, it should be possible via kubectl (via a client library) to do the following:</p> <ol dir="auto"> <li>Determine whether or not the specified object already exists</li> <li>Get the specified object</li> <li>Create the specified object</li> <li>Diff the specified object with an existing object in apiserver</li> <li>Update an existing object in apiserver with the data from the specified object</li> <li>Delete the specified object</li> <li>Delete all objects with deployment-specific labels (see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="45426103" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/1698" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/1698/hovercard" href="https://github.com/kubernetes/kubernetes/issues/1698">#1698</a>)</li> </ol> <p dir="auto">The configured fields should be recorded in the object via annotations, as discussed in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="41961267" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/1178" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/1178/hovercard" href="https://github.com/kubernetes/kubernetes/issues/1178">#1178</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="42103746" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/1201" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/1201/hovercard" href="https://github.com/kubernetes/kubernetes/issues/1201">#1201</a>. Only the previously and newly configured fields, labels, and annotations should be diff'ed and/or updated. Other fields from the existing object should be ignored/merged, and the set of configured fields should be updated with each update.</p> <p dir="auto">We ultimately do want to automate most of the orchestration/workflow involved in deployment. However, this is fairly complex, and we can't necessarily automate all of it in a domain-independent, use-case-independent manner. In general, a full deployment would likely be comprised of multiple files, each containing multiple objects. These objects may have inter-dependencies (e.g., right now services must be created before their clients are created), rolling updates require special treatment (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="43089437" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/1353" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/1353/hovercard" href="https://github.com/kubernetes/kubernetes/issues/1353">#1353</a>), and application-specific rollout logic may be required. Therefore, I recommend we keep the more general deployment workflow separate from the basic primitive mechanism that reconciles a single object, and ensure that the two are composable. I'll file another issue for the workflow part.</p> <p dir="auto">Among other things, composition means that the invoker of the tool and/or library needs to be able to distinguish noop (e.g., object already exists and matches config), success, retryable failure, and permanent failure, so the overall workflow can decide what to do after each step.</p> <p dir="auto">/cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ghodss/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ghodss">@ghodss</a></p>
<p dir="auto"><strong>Is this a request for help?</strong> (If yes, you should use our troubleshooting guide and community support channels, see <a href="http://kubernetes.io/docs/troubleshooting/" rel="nofollow">http://kubernetes.io/docs/troubleshooting/</a>.): no</p> <p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.): testing.md README.md</p> <hr> <p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one): BUG REPORT</p> <p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>): NA</p> <p dir="auto"><strong>Environment</strong>: NA</p> <ul dir="auto"> <li><strong>Cloud provider or hardware configuration</strong>:</li> <li><strong>OS</strong> (e.g. from /etc/os-release):</li> <li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>):</li> <li><strong>Install tools</strong>:</li> <li><strong>Others</strong>:</li> </ul> <p dir="auto"><strong>What happened</strong>: I visited <a href="https://github.com/kubernetes/kubernetes/blob/master/docs/devel/README.md">https://github.com/kubernetes/kubernetes/blob/master/docs/devel/README.md</a> and did not find much about testing.</p> <p dir="auto"><strong>What you expected to happen</strong>: I expected more information. A link to <a href="https://github.com/kubernetes/kubernetes/blob/master/docs/devel/testing.md">https://github.com/kubernetes/kubernetes/blob/master/docs/devel/testing.md</a> would have been great.</p> <p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible): Visit <a href="https://github.com/kubernetes/kubernetes/blob/master/docs/devel/README.md">https://github.com/kubernetes/kubernetes/blob/master/docs/devel/README.md</a> and try to learn all about testing Kubernetes.</p> <p dir="auto"><strong>Anything else do we need to know</strong>:</p>
0
<p dir="auto">Broadcasting a unitary operation like <code class="notranslate">exp</code> against a <code class="notranslate">Symmetric</code> matrix should be almost 2x faster since it only needs to process 1/2 the elements.<br> But instead is is almost 2x slower.<br> (So like 4x slower than expected)</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; using LinearAlgebra julia&gt; using BenchmarkTools julia&gt; const data = Matrix(Symmetric(randn(2_000, 2_000))); julia&gt; @benchmark exp.($data) BenchmarkTools.Trial: memory estimate: 30.52 MiB allocs estimate: 2 -------------- minimum time: 23.570 ms (0.00% GC) median time: 24.860 ms (0.00% GC) mean time: 27.109 ms (9.95% GC) maximum time: 98.043 ms (70.41% GC) -------------- samples: 185 evals/sample: 1 julia&gt; @benchmark exp.($(Symmetric(data))) BenchmarkTools.Trial: memory estimate: 30.52 MiB allocs estimate: 2 -------------- minimum time: 37.712 ms (0.00% GC) median time: 38.774 ms (0.00% GC) mean time: 41.895 ms (7.72% GC) maximum time: 115.427 ms (59.57% GC) -------------- samples: 120 evals/sample: 1"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-k">using</span> LinearAlgebra julia<span class="pl-k">&gt;</span> <span class="pl-k">using</span> BenchmarkTools julia<span class="pl-k">&gt;</span> <span class="pl-k">const</span> data <span class="pl-k">=</span> <span class="pl-c1">Matrix</span>(<span class="pl-c1">Symmetric</span>(<span class="pl-c1">randn</span>(<span class="pl-c1">2_000</span>, <span class="pl-c1">2_000</span>))); julia<span class="pl-k">&gt;</span> <span class="pl-c1">@benchmark</span> <span class="pl-c1">exp</span>.(<span class="pl-k">$</span>data) BenchmarkTools<span class="pl-k">.</span>Trial<span class="pl-k">:</span> memory estimate<span class="pl-k">:</span> <span class="pl-c1">30.52</span> MiB allocs estimate<span class="pl-k">:</span> <span class="pl-c1">2</span> <span class="pl-k">--------------</span> minimum time<span class="pl-k">:</span> <span class="pl-c1">23.570</span> ms (<span class="pl-c1">0.00</span><span class="pl-k">%</span> GC) median time<span class="pl-k">:</span> <span class="pl-c1">24.860</span> ms (<span class="pl-c1">0.00</span><span class="pl-k">%</span> GC) mean time<span class="pl-k">:</span> <span class="pl-c1">27.109</span> ms (<span class="pl-c1">9.95</span><span class="pl-k">%</span> GC) maximum time<span class="pl-k">:</span> <span class="pl-c1">98.043</span> ms (<span class="pl-c1">70.41</span><span class="pl-k">%</span> GC) <span class="pl-k">--------------</span> samples<span class="pl-k">:</span> <span class="pl-c1">185</span> evals<span class="pl-k">/</span>sample<span class="pl-k">:</span> <span class="pl-c1">1</span> julia<span class="pl-k">&gt;</span> <span class="pl-c1">@benchmark</span> <span class="pl-c1">exp</span>.(<span class="pl-k">$</span>(<span class="pl-c1">Symmetric</span>(data))) BenchmarkTools<span class="pl-k">.</span>Trial<span class="pl-k">:</span> memory estimate<span class="pl-k">:</span> <span class="pl-c1">30.52</span> MiB allocs estimate<span class="pl-k">:</span> <span class="pl-c1">2</span> <span class="pl-k">--------------</span> minimum time<span class="pl-k">:</span> <span class="pl-c1">37.712</span> ms (<span class="pl-c1">0.00</span><span class="pl-k">%</span> GC) median time<span class="pl-k">:</span> <span class="pl-c1">38.774</span> ms (<span class="pl-c1">0.00</span><span class="pl-k">%</span> GC) mean time<span class="pl-k">:</span> <span class="pl-c1">41.895</span> ms (<span class="pl-c1">7.72</span><span class="pl-k">%</span> GC) maximum time<span class="pl-k">:</span> <span class="pl-c1">115.427</span> ms (<span class="pl-c1">59.57</span><span class="pl-k">%</span> GC) <span class="pl-k">--------------</span> samples<span class="pl-k">:</span> <span class="pl-c1">120</span> evals<span class="pl-k">/</span>sample<span class="pl-k">:</span> <span class="pl-c1">1</span></pre></div>
<p dir="auto">Currently, <code class="notranslate">map</code> and <code class="notranslate">broadcast</code> on <code class="notranslate">Symmetric</code> arguments don’t take advantage of the fact that you only have to compute <code class="notranslate">n*(n+1)/2</code> elements of the output matrix instead of <code class="notranslate">n^2</code>elements. For big matrices, this can leave a lot of performance on the table.</p>
1
<h1 dir="auto">PowerToys Run should allow + shortcuts</h1> <h1 dir="auto">Proposed technical implementation details (optional)</h1>
<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.17763.737 PowerToys version: 0.12.0.0 PowerToy module for which you are reporting the bug (if applicable): N/A"><pre class="notranslate"><code class="notranslate">Windows build number: 10.0.17763.737 PowerToys version: 0.12.0.0 PowerToy module for which you are reporting the bug (if applicable): N/A </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Difficult to reproduce as it seems to not happen instantly. On both my home PC and my work PC, while PowerToys is running, my number row stops working. I can't use the shift key to enter the symbols on the number keys or use the numbers at all. Nothing happens when hitting one of these keys.<br> As soon as I close PowerToys, the number row is once again available to use. I can then open PowerToys again and use the number row fine for a while until it randomly decides to stop the number keys from working again.</p> <h1 dir="auto">Expected behaviour</h1> <p dir="auto">To be able to use my number keys :P</p> <h1 dir="auto">Actual behaviour</h1> <p dir="auto">???</p> <h1 dir="auto">Screenshots</h1> <p dir="auto">N/A</p>
0
<p dir="auto">This code causes an ICE:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fn main() { println!(&quot;x&quot;); return; let test = if x() { 1 } else { 2 }; } fn x() -&gt; bool { unreachable!() }"><pre class="notranslate"><span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">println</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"x"</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-k">let</span> test = <span class="pl-k">if</span> <span class="pl-en">x</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c1">1</span> <span class="pl-kos">}</span> <span class="pl-k">else</span> <span class="pl-kos">{</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-k">fn</span> <span class="pl-en">x</span><span class="pl-kos">(</span><span class="pl-kos">)</span> -&gt; <span class="pl-smi">bool</span> <span class="pl-kos">{</span> <span class="pl-en">unreachable</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">complaining that the the <code class="notranslate">test</code> variable isn't an alloca. This is true, since we don't output any LLVM IR for unreachable code, which is everything after the <code class="notranslate">return</code>. For some reason, this only happens with <code class="notranslate">if</code> expressions (or at least, it doesn't happen with plain expressions or ordinary blocks) on the RHS.</p>
<p dir="auto">error: internal compiler error: debuginfo::create_local_var_metadata() - Referenced variable location is not an alloca!<br> Test.rs:131 let take = if num_items &lt;= split_by {<br> ^~~~<br> note: the compiler unexpectedly panicked. this is a bug.<br> note: we would appreciate a bug report: <a href="http://doc.rust-lang.org/complement-bugreport.html" rel="nofollow">http://doc.rust-lang.org/complement-bugreport.html</a><br> note: run with <code class="notranslate">RUST_BACKTRACE=1</code> for a backtrace<br> thread 'rustc' panicked at 'Box', C:\bot\slave\nightly-dist-rustc-win-64\build\src\libsyntax\diagnostic.rs:130</p>
1
<p dir="auto">When a key binding on Windows matches a menu shortcut, such as the file menu's "Alt-f", the menu drops down and the bound command runs after the menu is dismissed.</p> <p dir="auto">This makes it impossible to map keys like Alt-f, Alt-n, etc. which are common readline, bash, emacs, keys.</p> <p dir="auto">This is critical for people that use more than one platform and want to use a single set of key bindings <em>by key location</em>. For example a Mac Cmd key is in the same physical location as a Windows Alt key. To make a set of Windows bindings that mimic Mac Cmd bindings one would use Alt. I would dearly like to switch to Atom on my Windows laptop and VMs but I really want to use the same set of key bindings.</p>
<p dir="auto">I'm on Windows 7, Atom version 0.113.0.</p> <p dir="auto">When I use Alt+Shift+S, I get two menu - both the Alt+S menu and the Alt+Shift+S menu. Alt seems to underline the menu options that can be selected next (F for File, E for Edit, etc.) but that underlining, and the ability to select a menu option, should go away if the next pressed key is not one of the menu options. Other windows apps like MS Word work this way. Below is the screen shot of the result of press Alt+Shift+S - I get both the menu dropdown for Selection and the Snippet window.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1690018/3541310/eb9e9cd2-084a-11e4-91fe-f85e544377ca.png"><img src="https://cloud.githubusercontent.com/assets/1690018/3541310/eb9e9cd2-084a-11e4-91fe-f85e544377ca.png" alt="2014-07-10 10_48_18-untitled" style="max-width: 100%;"></a></p>
1
<p dir="auto">Declaring a <code class="notranslate">const</code> a second time in a switch should be possible if the second statement is unreachable.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="testytest = () =&gt; { switch (foo) { case a: const bar = 'foo'; return bar; case b: const bar = 'baz'; return bar; } }"><pre class="notranslate"><span class="pl-en">testytest</span> <span class="pl-c1">=</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">switch</span> <span class="pl-kos">(</span><span class="pl-s1">foo</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">case</span> <span class="pl-s1">a</span>: <span class="pl-k">const</span> <span class="pl-s1">bar</span> <span class="pl-c1">=</span> <span class="pl-s">'foo'</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-k">case</span> <span class="pl-s1">b</span>: <span class="pl-k">const</span> <span class="pl-s1">bar</span> <span class="pl-c1">=</span> <span class="pl-s">'baz'</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></pre></div> <p dir="auto">Throws error <code class="notranslate">Duplicate declaration "bar"</code></p>
<blockquote> <p dir="auto">Issue originally reported by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ssilve1989/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ssilve1989">@ssilve1989</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="256048561" data-permission-text="Title is private" data-url="https://github.com/babel/babel-preset-env/issues/411" data-hovercard-type="issue" data-hovercard-url="/babel/babel-preset-env/issues/411/hovercard" href="https://github.com/babel/babel-preset-env/issues/411">babel/babel-preset-env#411</a></p> </blockquote> <p dir="auto">Specifying a target of <code class="notranslate">"safari &gt;= 10"</code> doesn't use the <code class="notranslate">transform-es2015-block-scoping</code> plugin. Yet Safari 10 does need this because of <a href="https://bugs.webkit.org/show_bug.cgi?id=159270" rel="nofollow">this</a> bug.</p> <p dir="auto">Ex:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ let a = 3 } let a = 3"><pre class="notranslate"><span class="pl-kos">{</span> <span class="pl-k">let</span> <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-c1">3</span> <span class="pl-kos">}</span> <span class="pl-k">let</span> <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-c1">3</span></pre></div> <p dir="auto">is an error in Safari 10.1.2 resulting in <code class="notranslate">SyntaxError: Can't create duplicate variable that shadows a global property: 'a'</code>.</p> <p dir="auto">I've had to manually include this plugin in the <code class="notranslate">include</code> option to get Safari working.</p>
0
<h2 dir="auto"><g-emoji class="g-emoji" alias="information_source" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2139.png">ℹ</g-emoji> Computer information</h2> <ul dir="auto"> <li>PowerToys version: 0.23</li> <li>PowerToy Utility: Remap</li> <li>Running PowerToys as Admin: Yes</li> <li>Windows build number: [run "winver"] 1903.18362.592</li> </ul> <h2 dir="auto"><g-emoji class="g-emoji" alias="memo" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4dd.png">📝</g-emoji> Provide detailed reproduction steps (if any)</h2> <p dir="auto">I miss my mac and so I remap the left Ctrl &lt;--&gt; Win keys.</p> <p dir="auto">With Firefox, Win+L doesn't activate the address bar anymore.</p> <p dir="auto">The remapping causes Windows some headaches as often, typing letter keys, triggers Windows shortcuts instead of the intended letters.</p> <h3 dir="auto">✔️ Expected result</h3> <p dir="auto">It should work as expected, but maybe it's not possible due to Windows internals.</p> <h3 dir="auto"><g-emoji class="g-emoji" alias="x" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/274c.png">❌</g-emoji> Actual result</h3> <p dir="auto">Sometimes you get some messy results with a lot of windows open because typing letters triggered some Windows shortcuts.</p> <h2 dir="auto"><g-emoji class="g-emoji" alias="camera" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4f7.png">📷</g-emoji> Screenshots</h2> <p dir="auto"><em>Are there any useful screenshots? WinKey+Shift+S and then just paste them directly into the form</em></p>
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [Version 10.0.18363.836] PowerToys version: 0.18.0 PowerToy module for which you are reporting the bug (if applicable): Power Launcher"><pre class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18363.836] PowerToys version: 0.18.0 PowerToy module for which you are reporting the bug (if applicable): Power Launcher </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Start PowerToys</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Using a lot less memory</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">Consuming over 400mb memory even not actually using Power Launcher seems excessive. Is this normal?</p> <h1 dir="auto">Screenshots</h1>
0
<p dir="auto">As we continue to make progress on supporting Windows Containers for Kubernetes, the next logical thing to tackle is supporting volumes and mounts. This issue is to track the work required to make volumes and mount work on Windows containers</p>
<p dir="auto">Once the Kubelet is able to run on Windows, look into supporting volumes and persistent volumes on Windows pods.</p>
1