text1
stringlengths
0
536k
text2
stringlengths
0
536k
label
int64
0
1
<p dir="auto">There's a race condition I encountered and fixed when adding the integration spec, but I need to add a unit test around this behavior. See: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="78184535" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/1991" data-hovercard-type="pull_request" data-hovercard-url="/angular/angular/pull/1991/hovercard?comment_id=30637801&amp;comment_type=review_comment" href="https://github.com/angular/angular/pull/1991#discussion_r30637801">#1991 (comment)</a></p> <p dir="auto">In this condition, "activate" is called multiple times with the same <code class="notranslate">Instruction</code> instance, which ended up bypassing the <code class="notranslate">reuse</code> check. I might need to refactor to generalize the added behavior.</p>
<p dir="auto">Behavior of rerouting during a navigation:</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> before any components are committed, cancel and start over (recognition, canActivate, or loadResources/resolve) phases</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> if any components are committed (any phases after load/resolve), then finish current nav before beginning the next</li> </ul>
1
<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>: Yes</li> <li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: Ubuntu 16.04</li> <li><strong>TensorFlow installed from (source or binary)</strong>: both</li> <li><strong>TensorFlow version (use command below)</strong>: 1.4</li> <li><strong>Python version</strong>: 3.6</li> <li><strong>Bazel version (if compiling from source)</strong>: 0.5.4</li> <li><strong>GCC/Compiler version (if compiling from source)</strong>: 5.4.0</li> <li><strong>CUDA/cuDNN version</strong>: 8</li> <li><strong>GPU model and memory</strong>: Tesla P100-PCIE-16GB</li> <li><strong>Exact command to reproduce</strong>:</li> </ul> <h3 dir="auto">Describe the problem</h3> <p dir="auto">Building tensorflow with mkl (--config=mkl) prevents the system from using all its cores.<br> CPU load remains always below 20% in my testcase. Using the same build flags but without mkl achieve 100% CPU load and a nearly 10 times faster execution.</p> <p dir="auto">While playing with the MKL flags described here <a href="https://www.tensorflow.org/performance/performance_guide#optimizing_for_cpu" rel="nofollow">https://www.tensorflow.org/performance/performance_guide#optimizing_for_cpu</a><br> i noticed some strange behavior:</p> <p dir="auto">Running the MKL-build with<br> <code class="notranslate">OMP_NUM_THREADS=27 KMP_SETTINGS=1 KMP_AFFINITY=verbose </code><br> results in the following print:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="User settings: KMP_AFFINITY=verbose KMP_SETTINGS=1 OMP_NUM_THREADS=27 Effective settings: KMP_ABORT_DELAY=0 KMP_ADAPTIVE_LOCK_PROPS='1,1024' KMP_ALIGN_ALLOC=64 KMP_ALL_THREADPRIVATE=224 KMP_ATOMIC_MODE=2 KMP_BLOCKTIME=200 KMP_CPUINFO_FILE: value is not defined KMP_DETERMINISTIC_REDUCTION=false KMP_DEVICE_THREAD_LIMIT=2147483647 KMP_DISP_NUM_BUFFERS=7 KMP_DUPLICATE_LIB_OK=false KMP_FORCE_REDUCTION: value is not defined KMP_FOREIGN_THREADS_THREADPRIVATE=true KMP_FORKJOIN_BARRIER='2,2' KMP_FORKJOIN_BARRIER_PATTERN='hyper,hyper' KMP_FORKJOIN_FRAMES=true KMP_FORKJOIN_FRAMES_MODE=3 KMP_GTID_MODE=3 KMP_HANDLE_SIGNALS=false KMP_HOT_TEAMS_MAX_LEVEL=1 KMP_HOT_TEAMS_MODE=0 KMP_INIT_AT_FORK=true KMP_INIT_WAIT=2048 KMP_ITT_PREPARE_DELAY=0 KMP_LIBRARY=throughput KMP_LOCK_KIND=queuing KMP_MALLOC_POOL_INCR=1M KMP_NEXT_WAIT=1024 KMP_NUM_LOCKS_IN_BLOCK=1 KMP_PLAIN_BARRIER='2,2' KMP_PLAIN_BARRIER_PATTERN='hyper,hyper' KMP_REDUCTION_BARRIER='1,1' KMP_REDUCTION_BARRIER_PATTERN='hyper,hyper' KMP_SCHEDULE='static,balanced;guided,iterative' KMP_SETTINGS=true KMP_SPIN_BACKOFF_PARAMS='4096,100' KMP_STACKOFFSET=64 KMP_STACKPAD=0 KMP_STACKSIZE=4M KMP_STORAGE_MAP=false KMP_TASKING=2 KMP_TASKLOOP_MIN_TASKS=0 KMP_TASK_STEALING_CONSTRAINT=1 KMP_TEAMS_THREAD_LIMIT=56 KMP_TOPOLOGY_METHOD=all KMP_USER_LEVEL_MWAIT=false KMP_VERSION=false KMP_WARNINGS=true OMP_CANCELLATION=false OMP_DEFAULT_DEVICE=0 OMP_DISPLAY_ENV=false OMP_DYNAMIC=false OMP_MAX_ACTIVE_LEVELS=2147483647 OMP_MAX_TASK_PRIORITY=0 OMP_NESTED=false OMP_NUM_THREADS='27' OMP_PLACES: value is not defined OMP_PROC_BIND='false' OMP_SCHEDULE='static' OMP_STACKSIZE=4M OMP_THREAD_LIMIT=2147483647 OMP_WAIT_POLICY=PASSIVE KMP_AFFINITY='verbose,warnings,respect,granularity=core,none' OMP: Info #209: KMP_AFFINITY: decoding x2APIC ids. OMP: Info #207: KMP_AFFINITY: Affinity capable, using global cpuid leaf 11 info OMP: Info #154: KMP_AFFINITY: Initial OS proc set respected: {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55} OMP: Info #156: KMP_AFFINITY: 56 available OS procs OMP: Info #157: KMP_AFFINITY: Uniform topology OMP: Info #179: KMP_AFFINITY: 2 packages x 14 cores/pkg x 2 threads/core (28 total cores) OMP: Info #247: KMP_AFFINITY: pid 35537 tid 35708 thread 0 bound to OS proc set {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55} OMP: Info #247: KMP_AFFINITY: pid 35537 tid 35706 thread 1 bound to OS proc set {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55} OMP: Info #247: KMP_AFFINITY: pid 35537 tid 35707 thread 2 bound to OS proc set {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55} OMP: Info #247: KMP_AFFINITY: pid 35537 tid 35704 thread 3 bound to OS proc set {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55} OMP: Info #247: KMP_AFFINITY: pid 35537 tid 35701 thread 4 bound to OS proc set {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55} OMP: Info #247: KMP_AFFINITY: pid 35537 tid 35711 thread 5 bound to OS proc set {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55} OMP: Info #247: KMP_AFFINITY: pid 35537 tid 35712 thread 6 bound to OS proc set {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55} OMP: Info #247: KMP_AFFINITY: pid 35537 tid 35713 thread 7 bound to OS proc set {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55} OMP: Info #247: KMP_AFFINITY: pid 35537 tid 35705 thread 8 bound to OS proc set {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55} OMP: Info #247: KMP_AFFINITY: pid 35537 tid 35710 thread 9 bound to OS proc set {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55} OMP: Info #247: KMP_AFFINITY: pid 35537 tid 35702 thread 10 bound to OS proc set {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55} OMP: Info #247: KMP_AFFINITY: pid 35537 tid 35717 thread 11 bound to OS proc set {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55} ... OMP: Info #247: KMP_AFFINITY: pid 35537 tid 35678 thread 78 bound to OS proc set {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55} OMP: Info #247: KMP_AFFINITY: pid 35537 tid 35672 thread 79 bound to OS proc set {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55} OMP: Info #247: KMP_AFFINITY: pid 35537 tid 35674 thread 80 bound to OS proc set {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55} .... (continues with a higher thread number each time)"><pre class="notranslate"><code class="notranslate">User settings: KMP_AFFINITY=verbose KMP_SETTINGS=1 OMP_NUM_THREADS=27 Effective settings: KMP_ABORT_DELAY=0 KMP_ADAPTIVE_LOCK_PROPS='1,1024' KMP_ALIGN_ALLOC=64 KMP_ALL_THREADPRIVATE=224 KMP_ATOMIC_MODE=2 KMP_BLOCKTIME=200 KMP_CPUINFO_FILE: value is not defined KMP_DETERMINISTIC_REDUCTION=false KMP_DEVICE_THREAD_LIMIT=2147483647 KMP_DISP_NUM_BUFFERS=7 KMP_DUPLICATE_LIB_OK=false KMP_FORCE_REDUCTION: value is not defined KMP_FOREIGN_THREADS_THREADPRIVATE=true KMP_FORKJOIN_BARRIER='2,2' KMP_FORKJOIN_BARRIER_PATTERN='hyper,hyper' KMP_FORKJOIN_FRAMES=true KMP_FORKJOIN_FRAMES_MODE=3 KMP_GTID_MODE=3 KMP_HANDLE_SIGNALS=false KMP_HOT_TEAMS_MAX_LEVEL=1 KMP_HOT_TEAMS_MODE=0 KMP_INIT_AT_FORK=true KMP_INIT_WAIT=2048 KMP_ITT_PREPARE_DELAY=0 KMP_LIBRARY=throughput KMP_LOCK_KIND=queuing KMP_MALLOC_POOL_INCR=1M KMP_NEXT_WAIT=1024 KMP_NUM_LOCKS_IN_BLOCK=1 KMP_PLAIN_BARRIER='2,2' KMP_PLAIN_BARRIER_PATTERN='hyper,hyper' KMP_REDUCTION_BARRIER='1,1' KMP_REDUCTION_BARRIER_PATTERN='hyper,hyper' KMP_SCHEDULE='static,balanced;guided,iterative' KMP_SETTINGS=true KMP_SPIN_BACKOFF_PARAMS='4096,100' KMP_STACKOFFSET=64 KMP_STACKPAD=0 KMP_STACKSIZE=4M KMP_STORAGE_MAP=false KMP_TASKING=2 KMP_TASKLOOP_MIN_TASKS=0 KMP_TASK_STEALING_CONSTRAINT=1 KMP_TEAMS_THREAD_LIMIT=56 KMP_TOPOLOGY_METHOD=all KMP_USER_LEVEL_MWAIT=false KMP_VERSION=false KMP_WARNINGS=true OMP_CANCELLATION=false OMP_DEFAULT_DEVICE=0 OMP_DISPLAY_ENV=false OMP_DYNAMIC=false OMP_MAX_ACTIVE_LEVELS=2147483647 OMP_MAX_TASK_PRIORITY=0 OMP_NESTED=false OMP_NUM_THREADS='27' OMP_PLACES: value is not defined OMP_PROC_BIND='false' OMP_SCHEDULE='static' OMP_STACKSIZE=4M OMP_THREAD_LIMIT=2147483647 OMP_WAIT_POLICY=PASSIVE KMP_AFFINITY='verbose,warnings,respect,granularity=core,none' OMP: Info #209: KMP_AFFINITY: decoding x2APIC ids. OMP: Info #207: KMP_AFFINITY: Affinity capable, using global cpuid leaf 11 info OMP: Info #154: KMP_AFFINITY: Initial OS proc set respected: {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55} OMP: Info #156: KMP_AFFINITY: 56 available OS procs OMP: Info #157: KMP_AFFINITY: Uniform topology OMP: Info #179: KMP_AFFINITY: 2 packages x 14 cores/pkg x 2 threads/core (28 total cores) OMP: Info #247: KMP_AFFINITY: pid 35537 tid 35708 thread 0 bound to OS proc set {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55} OMP: Info #247: KMP_AFFINITY: pid 35537 tid 35706 thread 1 bound to OS proc set {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55} OMP: Info #247: KMP_AFFINITY: pid 35537 tid 35707 thread 2 bound to OS proc set {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55} OMP: Info #247: KMP_AFFINITY: pid 35537 tid 35704 thread 3 bound to OS proc set {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55} OMP: Info #247: KMP_AFFINITY: pid 35537 tid 35701 thread 4 bound to OS proc set {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55} OMP: Info #247: KMP_AFFINITY: pid 35537 tid 35711 thread 5 bound to OS proc set {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55} OMP: Info #247: KMP_AFFINITY: pid 35537 tid 35712 thread 6 bound to OS proc set {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55} OMP: Info #247: KMP_AFFINITY: pid 35537 tid 35713 thread 7 bound to OS proc set {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55} OMP: Info #247: KMP_AFFINITY: pid 35537 tid 35705 thread 8 bound to OS proc set {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55} OMP: Info #247: KMP_AFFINITY: pid 35537 tid 35710 thread 9 bound to OS proc set {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55} OMP: Info #247: KMP_AFFINITY: pid 35537 tid 35702 thread 10 bound to OS proc set {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55} OMP: Info #247: KMP_AFFINITY: pid 35537 tid 35717 thread 11 bound to OS proc set {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55} ... OMP: Info #247: KMP_AFFINITY: pid 35537 tid 35678 thread 78 bound to OS proc set {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55} OMP: Info #247: KMP_AFFINITY: pid 35537 tid 35672 thread 79 bound to OS proc set {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55} OMP: Info #247: KMP_AFFINITY: pid 35537 tid 35674 thread 80 bound to OS proc set {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55} .... (continues with a higher thread number each time) </code></pre></div> <p dir="auto">If I use the same execution flags with a build without MKL or with the pip version I get the same ouput up to<br> <code class="notranslate">... OMP: Info #247: KMP_AFFINITY: pid 36958 tid 37191 thread 27 bound to OS proc set {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55}</code><br> Afterwards no OMP prints are created. It seems like, if I build with mkl, tensorflow continues to create more and more threads but cant utilize them.</p> <p dir="auto">Is this a configuration issue or a bug?<br> If its a known issue, please expand the performance guide :)</p> <p dir="auto">pinging <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/skye/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/skye">@skye</a> because of its help with the performance issue with while_loop</p>
<p dir="auto">As recently discussed on the TensorFlow mailing list (<a href="https://groups.google.com/a/tensorflow.org/d/msg/discuss/GUW0KOmN7MM/2lRMD4JVAQAJ" rel="nofollow">https://groups.google.com/a/tensorflow.org/d/msg/discuss/GUW0KOmN7MM/2lRMD4JVAQAJ</a>), it would be nice if TensorBoard would have an option to export a graph as graphviz DOT file. This would allow users and developers to create e.g., Python packages based on pygraphviz that can further modify the graph structure, such as simplifying or summarizing the graph ops into a publication-ready figure, etc.</p> <p dir="auto">For example, scikit-learn has such a function to export decision trees to DOT files; maybe the source code is useful as an example: <a href="https://github.com/scikit-learn/scikit-learn/blob/f3320a6f/sklearn/tree/export.py#L74">https://github.com/scikit-learn/scikit-learn/blob/f3320a6f/sklearn/tree/export.py#L74</a></p>
0
<p dir="auto">Using the editor:move-line-up command while editing a markdown document caused the line highlighted to disappear and the following error to be thrown.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TypeError: Cannot read property 'isComment' of undefined at TokenizedBuffer.module.exports.TokenizedBuffer.isFoldableCodeAtRow (/usr/share/atom/resources/app.asar/src/tokenized-buffer.js:429:71) at TokenizedBuffer.module.exports.TokenizedBuffer.isFoldableAtRow (/usr/share/atom/resources/app.asar/src/tokenized-buffer.js:424:19) at TokenizedBuffer.module.exports.TokenizedBuffer.updateFoldableStatus (/usr/share/atom/resources/app.asar/src/tokenized-buffer.js:412:25) at TokenizedBuffer.module.exports.TokenizedBuffer.handleBufferChange (/usr/share/atom/resources/app.asar/src/tokenized-buffer.js:377:20) at /usr/share/atom/resources/app.asar/src/tokenized-buffer.js:62:24 at Emitter.module.exports.Emitter.emit (/usr/share/atom/resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11) at TextBuffer.module.exports.TextBuffer.applyChange (/usr/share/atom/resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:624:20) at TextBuffer.module.exports.TextBuffer.revertToCheckpoint (/usr/share/atom/resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:789:16) at TextBuffer.module.exports.TextBuffer.transact (/usr/share/atom/resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:753:14) at TextEditor.module.exports.TextEditor.transact (/usr/share/atom/resources/app.asar/src/text-editor.js:1136:26)"><pre class="notranslate"><code class="notranslate">TypeError: Cannot read property 'isComment' of undefined at TokenizedBuffer.module.exports.TokenizedBuffer.isFoldableCodeAtRow (/usr/share/atom/resources/app.asar/src/tokenized-buffer.js:429:71) at TokenizedBuffer.module.exports.TokenizedBuffer.isFoldableAtRow (/usr/share/atom/resources/app.asar/src/tokenized-buffer.js:424:19) at TokenizedBuffer.module.exports.TokenizedBuffer.updateFoldableStatus (/usr/share/atom/resources/app.asar/src/tokenized-buffer.js:412:25) at TokenizedBuffer.module.exports.TokenizedBuffer.handleBufferChange (/usr/share/atom/resources/app.asar/src/tokenized-buffer.js:377:20) at /usr/share/atom/resources/app.asar/src/tokenized-buffer.js:62:24 at Emitter.module.exports.Emitter.emit (/usr/share/atom/resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11) at TextBuffer.module.exports.TextBuffer.applyChange (/usr/share/atom/resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:624:20) at TextBuffer.module.exports.TextBuffer.revertToCheckpoint (/usr/share/atom/resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:789:16) at TextBuffer.module.exports.TextBuffer.transact (/usr/share/atom/resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:753:14) at TextEditor.module.exports.TextEditor.transact (/usr/share/atom/resources/app.asar/src/text-editor.js:1136:26) </code></pre></div>
<ol dir="auto"> <li>Editing an unsaved .xml file</li> </ol> <p dir="auto"><strong>Atom Version</strong>: 0.182.0<br> <strong>System</strong>: linux 3.18.6-1-ARCH<br> <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Stack Trace</h3> <p dir="auto">Uncaught TypeError: Cannot read property 'isComment' of undefined</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At /usr/share/atom/resources/app/src/tokenized-buffer.js:401 TypeError: Cannot read property 'isComment' of undefined at TokenizedBuffer.module.exports.TokenizedBuffer.isFoldableCodeAtRow (/usr/share/atom/resources/app/src/tokenized-buffer.js:401:71) at TokenizedBuffer.module.exports.TokenizedBuffer.isFoldableAtRow (/usr/share/atom/resources/app/src/tokenized-buffer.js:396:19) at TokenizedBuffer.module.exports.TokenizedBuffer.updateFoldableStatus (/usr/share/atom/resources/app/src/tokenized-buffer.js:384:25) at TokenizedBuffer.module.exports.TokenizedBuffer.handleBufferChange (/usr/share/atom/resources/app/src/tokenized-buffer.js:351:20) at /usr/share/atom/resources/app/src/tokenized-buffer.js:56:24 at Emitter.module.exports.Emitter.emit (/usr/share/atom/resources/app/node_modules/event-kit/lib/emitter.js:82:11) at TextBuffer.module.exports.TextBuffer.applyPatch (/usr/share/atom/resources/app/node_modules/text-buffer/lib/text-buffer.js:594:20) at BufferPatch.module.exports.BufferPatch.applyTo (/usr/share/atom/resources/app/node_modules/text-buffer/lib/buffer-patch.js:74:21) at Transaction.module.exports.Transaction.applyTo (/usr/share/atom/resources/app/node_modules/text-buffer/lib/transaction.js:60:29) at History.module.exports.History.abortTransaction (/usr/share/atom/resources/app/node_modules/text-buffer/lib/history.js:165:24) at History.module.exports.History.transact (/usr/share/atom/resources/app/node_modules/text-buffer/lib/history.js:122:16) at TextBuffer.module.exports.TextBuffer.transact (/usr/share/atom/resources/app/node_modules/text-buffer/lib/text-buffer.js:687:27) at TextEditor.module.exports.TextEditor.transact (/usr/share/atom/resources/app/src/text-editor.js:1195:26) at atom-text-editor.newCommandListeners.(anonymous function) (/usr/share/atom/resources/app/src/text-editor-element.js:304:22) at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app/src/command-registry.js:243:29) at /usr/share/atom/resources/app/src/command-registry.js:3:61 at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/usr/share/atom/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:558:16) at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/usr/share/atom/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:396:22) at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/usr/share/atom/resources/app/src/window-event-handler.js:176:20) "><pre class="notranslate"><code class="notranslate">At /usr/share/atom/resources/app/src/tokenized-buffer.js:401 TypeError: Cannot read property 'isComment' of undefined at TokenizedBuffer.module.exports.TokenizedBuffer.isFoldableCodeAtRow (/usr/share/atom/resources/app/src/tokenized-buffer.js:401:71) at TokenizedBuffer.module.exports.TokenizedBuffer.isFoldableAtRow (/usr/share/atom/resources/app/src/tokenized-buffer.js:396:19) at TokenizedBuffer.module.exports.TokenizedBuffer.updateFoldableStatus (/usr/share/atom/resources/app/src/tokenized-buffer.js:384:25) at TokenizedBuffer.module.exports.TokenizedBuffer.handleBufferChange (/usr/share/atom/resources/app/src/tokenized-buffer.js:351:20) at /usr/share/atom/resources/app/src/tokenized-buffer.js:56:24 at Emitter.module.exports.Emitter.emit (/usr/share/atom/resources/app/node_modules/event-kit/lib/emitter.js:82:11) at TextBuffer.module.exports.TextBuffer.applyPatch (/usr/share/atom/resources/app/node_modules/text-buffer/lib/text-buffer.js:594:20) at BufferPatch.module.exports.BufferPatch.applyTo (/usr/share/atom/resources/app/node_modules/text-buffer/lib/buffer-patch.js:74:21) at Transaction.module.exports.Transaction.applyTo (/usr/share/atom/resources/app/node_modules/text-buffer/lib/transaction.js:60:29) at History.module.exports.History.abortTransaction (/usr/share/atom/resources/app/node_modules/text-buffer/lib/history.js:165:24) at History.module.exports.History.transact (/usr/share/atom/resources/app/node_modules/text-buffer/lib/history.js:122:16) at TextBuffer.module.exports.TextBuffer.transact (/usr/share/atom/resources/app/node_modules/text-buffer/lib/text-buffer.js:687:27) at TextEditor.module.exports.TextEditor.transact (/usr/share/atom/resources/app/src/text-editor.js:1195:26) at atom-text-editor.newCommandListeners.(anonymous function) (/usr/share/atom/resources/app/src/text-editor-element.js:304:22) at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app/src/command-registry.js:243:29) at /usr/share/atom/resources/app/src/command-registry.js:3:61 at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/usr/share/atom/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:558:16) at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/usr/share/atom/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:396:22) at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/usr/share/atom/resources/app/src/window-event-handler.js:176:20) </code></pre></div> <h3 dir="auto">Commands</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 3x -1:41.5 editor:newline (atom-text-editor.editor.is-focused) -1:33.4 core:backspace (atom-text-editor.editor.is-focused) -1:31.2 autocomplete:toggle (atom-text-editor.editor.is-focused) -1:29.8 core:move-up (atom-text-editor.editor.is-focused) -1:20.2 core:backspace (atom-text-editor.editor.is-focused) -0:00.6 editor:newline (atom-text-editor.editor.is-focused)"><pre class="notranslate"><code class="notranslate"> 3x -1:41.5 editor:newline (atom-text-editor.editor.is-focused) -1:33.4 core:backspace (atom-text-editor.editor.is-focused) -1:31.2 autocomplete:toggle (atom-text-editor.editor.is-focused) -1:29.8 core:move-up (atom-text-editor.editor.is-focused) -1:20.2 core:backspace (atom-text-editor.editor.is-focused) -0:00.6 editor:newline (atom-text-editor.editor.is-focused) </code></pre></div> <h3 dir="auto">Config</h3> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;core&quot;: { &quot;destroyEmptyPanes&quot;: false }, &quot;editor&quot;: { &quot;invisibles&quot;: {} } }"><pre class="notranslate">{ <span class="pl-ent">"core"</span>: { <span class="pl-ent">"destroyEmptyPanes"</span>: <span class="pl-c1">false</span> }, <span class="pl-ent">"editor"</span>: { <span class="pl-ent">"invisibles"</span>: {} } }</pre></div> <h3 dir="auto">Installed Packages</h3> <div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# User atom-beautify, v0.21.3 file-icons, v1.5.1 linter, v0.12.0 linter-xmllint, v0.0.5 xml-formatter, v0.8.1 # Dev No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span> atom<span class="pl-k">-</span>beautify, v0.<span class="pl-ii">21</span>.<span class="pl-ii">3</span> file<span class="pl-k">-</span>icons, v1.<span class="pl-ii">5</span>.<span class="pl-ii">1</span> linter, v0.<span class="pl-ii">12</span>.<span class="pl-ii">0</span> linter<span class="pl-k">-</span>xmllint, v0.<span class="pl-ii">0</span>.<span class="pl-ii">5</span> xml<span class="pl-k">-</span>formatter, v0.<span class="pl-ii">8</span>.<span class="pl-ii">1</span> <span class="pl-c"><span class="pl-c">#</span> Dev</span> <span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div>
1
<p dir="auto">The output on <code class="notranslate">tsc</code> is not so accessible. I find it hard to read because everything is white and no newlines between lines.</p> <p dir="auto">Also when running <code class="notranslate">tsc -w</code> it is very hard to distinguish latest build from the second latest.</p> <p dir="auto">These problem can be solved if the output where a little bit more colorized.</p>
1
<p dir="auto">Hi there! I am writing a suite of Playwright tests. So far it has mostly been a joy to use.</p> <p dir="auto">However, I have run into some issues when parallelizing tests. I am pretty sure that this functionality does not exist, but if it does, happy to learn more about it.</p> <p dir="auto">The vast majority of my tests are independent and can be run in parallel without any issues. Test objects are created at the start of the test and cleaned up at the end. No problem. However, I have a few tests that necessarily affect global state in the application. These can still clean themselves up at the end so the state at the end of the test is the same as the start. However, they can't be run in parallel with any other test because their effects while running will mess with other tests.</p> <p dir="auto">So far I have solved this by only using one worker and running no tests in parallel. This is not ideal, as it slows tests down a bit. <strong>Is there (or can there be) some way to run all tests with the specified number of workers but run x tests (demarcated somehow in the test) only by themselves?</strong></p> <p dir="auto">I looked into <a href="https://playwright.dev/docs/api/class-test#test-describe-serial" rel="nofollow">https://playwright.dev/docs/api/class-test#test-describe-serial</a> and thought I had found a way to do this, but this appears to only run tests in a given <code class="notranslate">describe</code> block in serial and not be what I'm actually looking for.</p> <p dir="auto">My next attempt is probably going to be to try to use some sort of semaphore to get certain tests only to run on their own, but this will be kinda hacky and it would be nice if the framework natively supported this feature.</p> <p dir="auto">Thank you!</p>
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: 8.19.1</li> <li>Operating System: All</li> <li>Browser: All</li> <li>Other info:</li> </ul> <h3 dir="auto">Source code</h3> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="test.describe('Test', () =&gt; { // should be WorkerInfo but is typed as TestInfo test.beforeAll(async ({ browser }, workerInfo) =&gt; {}); // correctly typed as TestInfo test.afterEach(async ({}, testInfo) =&gt; {});"><pre class="notranslate"><span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-c1">describe</span><span class="pl-kos">(</span><span class="pl-s">'Test'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-c">// should be WorkerInfo but is typed as TestInfo</span> <span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-en">beforeAll</span><span class="pl-kos">(</span><span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> browser <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-s1">workerInfo</span><span class="pl-kos">)</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-c">// correctly typed as TestInfo</span> <span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-en">afterEach</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-kos">}</span><span class="pl-kos">,</span> <span class="pl-s1">testInfo</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Steps</strong><br> No special config or steps are needed - you can also simply check the <code class="notranslate">test.d.ts</code> type definitions file to confirm this:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" /** * Declares a `beforeAll` hook that is executed once per worker process before all tests. * * **Details** * * When called in the scope of a test file, runs before all tests in the file. When called inside a * [test.describe(title, callback)](https://playwright.dev/docs/api/class-test#test-describe-1) group, runs before all * tests in the group. If multiple `beforeAll` hooks are added, they will run in the order of their registration. * * Note that worker process is restarted on test failures, and `beforeAll` hook runs again in the new worker. Learn * more about [workers and failures](https://playwright.dev/docs/test-retries). * * You can use [test.afterAll(hookFunction)](https://playwright.dev/docs/api/class-test#test-after-all) to teardown * any resources set up in `beforeAll`. * * **Usage** * * ```js * // example.spec.ts * import { test, expect } from '@playwright/test'; * * test.beforeAll(async () =&gt; { * console.log('Before tests'); * }); * * test.afterAll(async () =&gt; { * console.log('After tests'); * }); * * test('my test', async ({ page }) =&gt; { * // ... * }); * ``` * * @param hookFunction Hook function that takes one or two arguments: an object with worker fixtures and optional [TestInfo]. */ beforeAll(inner: (args: TestArgs &amp; WorkerArgs, testInfo: TestInfo) =&gt; Promise&lt;any&gt; | any): void; /** * Declares an `afterAll` hook that is executed once per worker after all tests. * * **Details** * * When called in the scope of a test file, runs after all tests in the file. When called inside a * [test.describe(title, callback)](https://playwright.dev/docs/api/class-test#test-describe-1) group, runs after all * tests in the group. If multiple `afterAll` hooks are added, they will run in the order of their registration. * * Note that worker process is restarted on test failures, and `afterAll` hook runs again in the new worker. Learn * more about [workers and failures](https://playwright.dev/docs/test-retries). * * **Usage** * * ```js * test.afterAll(async () =&gt; { * console.log('Done with tests'); * // ... * }); * ``` * * @param hookFunction Hook function that takes one or two arguments: an object with worker fixtures and optional [TestInfo]. */ afterAll(inner: (args: TestArgs &amp; WorkerArgs, testInfo: TestInfo) =&gt; Promise&lt;any&gt; | any): void;"><pre class="notranslate"> <span class="pl-c">/**</span> <span class="pl-c"> * Declares a `beforeAll` hook that is executed once per worker process before all tests.</span> <span class="pl-c"> *</span> <span class="pl-c"> * **Details**</span> <span class="pl-c"> *</span> <span class="pl-c"> * When called in the scope of a test file, runs before all tests in the file. When called inside a</span> <span class="pl-c"> * [test.describe(title, callback)](https://playwright.dev/docs/api/class-test#test-describe-1) group, runs before all</span> <span class="pl-c"> * tests in the group. If multiple `beforeAll` hooks are added, they will run in the order of their registration.</span> <span class="pl-c"> *</span> <span class="pl-c"> * Note that worker process is restarted on test failures, and `beforeAll` hook runs again in the new worker. Learn</span> <span class="pl-c"> * more about [workers and failures](https://playwright.dev/docs/test-retries).</span> <span class="pl-c"> *</span> <span class="pl-c"> * You can use [test.afterAll(hookFunction)](https://playwright.dev/docs/api/class-test#test-after-all) to teardown</span> <span class="pl-c"> * any resources set up in `beforeAll`.</span> <span class="pl-c"> *</span> <span class="pl-c"> * **Usage**</span> <span class="pl-c"> *</span> <span class="pl-c"> * ```js</span> <span class="pl-c"> * // example.spec.ts</span> <span class="pl-c"> * import { test, expect } from '@playwright/test';</span> <span class="pl-c"> *</span> <span class="pl-c"> * test.beforeAll(async () =&gt; {</span> <span class="pl-c"> * console.log('Before tests');</span> <span class="pl-c"> * });</span> <span class="pl-c"> *</span> <span class="pl-c"> * test.afterAll(async () =&gt; {</span> <span class="pl-c"> * console.log('After tests');</span> <span class="pl-c"> * });</span> <span class="pl-c"> *</span> <span class="pl-c"> * test('my test', async ({ page }) =&gt; {</span> <span class="pl-c"> * // ...</span> <span class="pl-c"> * });</span> <span class="pl-c"> * ```</span> <span class="pl-c"> *</span> <span class="pl-c"> * <span class="pl-k">@param</span> hookFunction Hook function that takes one or two arguments: an object with worker fixtures and optional [TestInfo].</span> <span class="pl-c"> */</span> <span class="pl-en">beforeAll</span><span class="pl-kos">(</span><span class="pl-en">inner</span>: <span class="pl-kos">(</span><span class="pl-s1">args</span>: <span class="pl-smi">TestArgs</span> <span class="pl-c1">&amp;</span> <span class="pl-smi">WorkerArgs</span><span class="pl-kos">,</span> <span class="pl-s1">testInfo</span>: <span class="pl-smi">TestInfo</span><span class="pl-kos">)</span> <span class="pl-c1">=</span><span class="pl-c1">&gt;</span> <span class="pl-smi">Promise</span><span class="pl-kos">&lt;</span><span class="pl-smi">any</span><span class="pl-kos">&gt;</span> <span class="pl-c1">|</span> <span class="pl-s1">any</span><span class="pl-kos">)</span>: <span class="pl-k">void</span><span class="pl-kos">;</span> <span class="pl-c">/**</span> <span class="pl-c"> * Declares an `afterAll` hook that is executed once per worker after all tests.</span> <span class="pl-c"> *</span> <span class="pl-c"> * **Details**</span> <span class="pl-c"> *</span> <span class="pl-c"> * When called in the scope of a test file, runs after all tests in the file. When called inside a</span> <span class="pl-c"> * [test.describe(title, callback)](https://playwright.dev/docs/api/class-test#test-describe-1) group, runs after all</span> <span class="pl-c"> * tests in the group. If multiple `afterAll` hooks are added, they will run in the order of their registration.</span> <span class="pl-c"> *</span> <span class="pl-c"> * Note that worker process is restarted on test failures, and `afterAll` hook runs again in the new worker. Learn</span> <span class="pl-c"> * more about [workers and failures](https://playwright.dev/docs/test-retries).</span> <span class="pl-c"> *</span> <span class="pl-c"> * **Usage**</span> <span class="pl-c"> *</span> <span class="pl-c"> * ```js</span> <span class="pl-c"> * test.afterAll(async () =&gt; {</span> <span class="pl-c"> * console.log('Done with tests');</span> <span class="pl-c"> * // ...</span> <span class="pl-c"> * });</span> <span class="pl-c"> * ```</span> <span class="pl-c"> *</span> <span class="pl-c"> * <span class="pl-k">@param</span> hookFunction Hook function that takes one or two arguments: an object with worker fixtures and optional [TestInfo].</span> <span class="pl-c"> */</span> <span class="pl-en">afterAll</span><span class="pl-kos">(</span><span class="pl-en">inner</span>: <span class="pl-kos">(</span><span class="pl-s1">args</span>: <span class="pl-smi">TestArgs</span> <span class="pl-c1">&amp;</span> <span class="pl-smi">WorkerArgs</span><span class="pl-kos">,</span> <span class="pl-s1">testInfo</span>: <span class="pl-smi">TestInfo</span><span class="pl-kos">)</span> <span class="pl-c1">=</span><span class="pl-c1">&gt;</span> <span class="pl-smi">Promise</span><span class="pl-kos">&lt;</span><span class="pl-smi">any</span><span class="pl-kos">&gt;</span> <span class="pl-c1">|</span> <span class="pl-s1">any</span><span class="pl-kos">)</span>: <span class="pl-k">void</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Expected</strong></p> <p dir="auto">According <a href="https://playwright.dev/docs/api/class-workerinfo" rel="nofollow">to the documentation</a> the WorkerInfo class is available to beforeAll and afterAll hooks as well as worker scoped fixtures.</p> <p dir="auto">The docs describing the <a href="https://playwright.dev/docs/api/class-test#test-before-all" rel="nofollow">beforeAll and afterAll hooks</a> contradict the WorkerInfo docs. They probably need updating too.</p> <p dir="auto"><strong>Actual</strong></p> <p dir="auto">A TestInfo type is returned instead of the correct WorkerInfo type.</p>
0
<ul dir="auto"> <li>create new .php file</li> <li>type <code class="notranslate">&lt;?php</code> quickly followed by <code class="notranslate">Enter</code></li> <li>observe, I get: <code class="notranslate">&lt;?php_ini_loaded_file</code></li> </ul>
<p dir="auto">When I want to type "&lt;?php", auto completion dosen't suggest 'php', so I had to press Esc key to keep going.</p>
1
<p dir="auto">For regular C# functions, intellisense works as expected:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/594564/11918988/59a01e0a-a745-11e5-8d09-fb4790af69d8.png"><img src="https://cloud.githubusercontent.com/assets/594564/11918988/59a01e0a-a745-11e5-8d09-fb4790af69d8.png" alt="screen shot 2015-12-20 at 18 13 01" style="max-width: 100%;"></a></p> <p dir="auto">However, no intellisense shows up for constructors:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/594564/11918989/6dd4fb48-a745-11e5-8736-55dd50bb501a.png"><img src="https://cloud.githubusercontent.com/assets/594564/11918989/6dd4fb48-a745-11e5-8736-55dd50bb501a.png" alt="screen shot 2015-12-20 at 18 12 21" style="max-width: 100%;"></a></p>
<p dir="auto"><em>From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mjkkirschner/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mjkkirschner">@mjkkirschner</a> on November 27, 2015 17:33</em></p> <p dir="auto">using Version 0.10.2 (0.10.2) on mac os x 10.11- I'm using one of the unity3d integration plugins (on the unity side) and getting autocomplete/intellisense, but not on the unity engine .dll or other referenced dlls in my projects, when using constructors. I expect to see parameter info for the constructor.</p> <p dir="auto">If I hold control over the type I get the first overload with no way to switch to others.</p> <p dir="auto">if I press control+ space I get autocomplete window but nothing to do with the constructor</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="119228976" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/757" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/757/hovercard" href="https://github.com/microsoft/vscode/issues/757">microsoft/vscode#757</a></em></p>
1
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="D:\code\msys64\home\Tony\julia\test&gt;..\usr\bin\julia -e &quot;versioninfo()&quot; Julia Version 0.3.0-prerelease+2898 Commit f2b3192* (2014-05-05 18:19 UTC) Platform Info: System: Windows (x86_64-w64-mingw32) CPU: Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz WORD_SIZE: 64 BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY) LAPACK: libopenblas LIBM: libopenlibm blas_num_threads=8 D:\code\msys64\home\Tony\julia\test&gt;..\usr\bin\julia runtests.jl linalg2 * linalg2 LLVM ERROR: Program used external function 'ldexpf' which could not be resolved! Stack dump: 0. Running pass 'X86 Machine Code Emitter' on function '@julia_givensAlgori thm19933' blas_num_threads=8"><pre class="notranslate"><code class="notranslate">D:\code\msys64\home\Tony\julia\test&gt;..\usr\bin\julia -e "versioninfo()" Julia Version 0.3.0-prerelease+2898 Commit f2b3192* (2014-05-05 18:19 UTC) Platform Info: System: Windows (x86_64-w64-mingw32) CPU: Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz WORD_SIZE: 64 BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY) LAPACK: libopenblas LIBM: libopenlibm blas_num_threads=8 D:\code\msys64\home\Tony\julia\test&gt;..\usr\bin\julia runtests.jl linalg2 * linalg2 LLVM ERROR: Program used external function 'ldexpf' which could not be resolved! Stack dump: 0. Running pass 'X86 Machine Code Emitter' on function '@julia_givensAlgori thm19933' blas_num_threads=8 </code></pre></div> <p dir="auto">According to bisect,</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="f2b3192eb2e59dd34e1e2838036a13167410814f is the first bad commit commit f2b3192eb2e59dd34e1e2838036a13167410814f Author: Jeff Bezanson &lt;[email protected]&gt; Date: Mon May 5 14:19:23 2014 -0400 use pow, powf instead of powi. fixes #6506 LLVM seems to be able to optimize small constant powers here too. the pow intrinsic had the same bug as powi."><pre class="notranslate"><code class="notranslate">f2b3192eb2e59dd34e1e2838036a13167410814f is the first bad commit commit f2b3192eb2e59dd34e1e2838036a13167410814f Author: Jeff Bezanson &lt;[email protected]&gt; Date: Mon May 5 14:19:23 2014 -0400 use pow, powf instead of powi. fixes #6506 LLVM seems to be able to optimize small constant powers here too. the pow intrinsic had the same bug as powi. </code></pre></div> <p dir="auto">Did working around one LLVM bug here expose another?</p>
<p dir="auto">It'd be great to have shorter syntax for broadcasted setfield! and getfield on arrays of types.</p> <p dir="auto">Something like this perhaps</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="struct Foo x::Int end foos = map(v-&gt;Foo(v), 1:3) foos..x # [1,2,3] foos..x .= 1 foos..x # [1,1,1] foos..x = 4:6 foos..x # [4,5,6]"><pre class="notranslate"><span class="pl-k">struct</span> Foo x<span class="pl-k">::</span><span class="pl-c1">Int</span> <span class="pl-k">end</span> foos <span class="pl-k">=</span> <span class="pl-c1">map</span>(v<span class="pl-k">-&gt;</span><span class="pl-c1">Foo</span>(v), <span class="pl-c1">1</span><span class="pl-k">:</span><span class="pl-c1">3</span>) foos<span class="pl-k">..</span>x <span class="pl-c"><span class="pl-c">#</span> [1,2,3]</span> foos<span class="pl-k">..</span>x <span class="pl-k">.=</span> <span class="pl-c1">1</span> foos<span class="pl-k">..</span>x <span class="pl-c"><span class="pl-c">#</span> [1,1,1]</span> foos<span class="pl-k">..</span>x <span class="pl-k">=</span> <span class="pl-c1">4</span><span class="pl-k">:</span><span class="pl-c1">6</span> foos<span class="pl-k">..</span>x <span class="pl-c"><span class="pl-c">#</span> [4,5,6]</span></pre></div> <p dir="auto">The clash with intervals has been pointed out, but perhaps a special case could be made where the first argument is an array?</p> <p dir="auto">Currently the above functionality requires this (there may be better options than these):</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="map(foo-&gt; foo.x, foos) # [1,2,3] foreach(foo -&gt; foo.x = 1, foos) map(foo-&gt; foo.x, foos) # [1,1,1] foreach((foo, x) -&gt; foo.x = x, foos, 4:6) map(foo-&gt; foo.x, foos) # [4,5,6]"><pre class="notranslate"><span class="pl-c1">map</span>(foo<span class="pl-k">-&gt;</span> foo<span class="pl-k">.</span>x, foos) <span class="pl-c"><span class="pl-c">#</span> [1,2,3]</span> <span class="pl-c1">foreach</span>(foo <span class="pl-k">-&gt;</span> foo<span class="pl-k">.</span>x <span class="pl-k">=</span> <span class="pl-c1">1</span>, foos) <span class="pl-c1">map</span>(foo<span class="pl-k">-&gt;</span> foo<span class="pl-k">.</span>x, foos) <span class="pl-c"><span class="pl-c">#</span> [1,1,1]</span> <span class="pl-c1">foreach</span>((foo, x) <span class="pl-k">-&gt;</span> foo<span class="pl-k">.</span>x <span class="pl-k">=</span> x, foos, <span class="pl-c1">4</span><span class="pl-k">:</span><span class="pl-c1">6</span>) <span class="pl-c1">map</span>(foo<span class="pl-k">-&gt;</span> foo<span class="pl-k">.</span>x, foos) <span class="pl-c"><span class="pl-c">#</span> [4,5,6]</span></pre></div> <p dir="auto">cc. <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Octogonapus/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Octogonapus">@Octogonapus</a></p>
0
<p dir="auto">Very much like OneHotEncoder, but will have a parameter for setting threshold. If a feature value occurs more than the specified threshold, then it will get encoded like OneHotEncoder. Otherwise, feature values occurring fewer than the threshold, they will get encoded into the last bit of the encoded array.</p>
<p dir="auto">The OneHotEncoder should have an option to summarize categories that are not frequent - or we should have another transformer to do that beforehand.<br> Generally having a maximum number of categories or having a minimum frequency per category would make sense as thresholds. This is similar to what we're doing in CountVectorizer but I think common enough for categorical variables that we should explicitly make it easy to do.</p>
1
<p dir="auto">I am getting the following error when running the XLA service unit tests:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="duplicate symbol __ZN3xla7PrintToEPKNS_14HloInstructionEPNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEE in: bazel-out/local-opt/bin/tensorflow/compiler/xla/service/_objs/user_computation_test/tensorflow/compiler/xla/service/user_computation_test.o bazel-out/local-opt/bin/tensorflow/compiler/xla/service/libhlo_matchers.a(hlo_matchers.o)"><pre class="notranslate"><code class="notranslate">duplicate symbol __ZN3xla7PrintToEPKNS_14HloInstructionEPNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEE in: bazel-out/local-opt/bin/tensorflow/compiler/xla/service/_objs/user_computation_test/tensorflow/compiler/xla/service/user_computation_test.o bazel-out/local-opt/bin/tensorflow/compiler/xla/service/libhlo_matchers.a(hlo_matchers.o) </code></pre></div> <p dir="auto">Command line for running the tests is:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="bazel test --test_env TF_CPP_MIN_VLOG_LEVEL=2 --test_size_filters=small,medium,large --config opt --verbose_failures --test_output=all --nocache_test_results tensorflow/compiler/xla/service/..."><pre class="notranslate"><code class="notranslate">bazel test --test_env TF_CPP_MIN_VLOG_LEVEL=2 --test_size_filters=small,medium,large --config opt --verbose_failures --test_output=all --nocache_test_results tensorflow/compiler/xla/service/... </code></pre></div> <p dir="auto">This is OS/X, head of the master branch, using bazel <code class="notranslate">0.5.4-homebrew</code>.</p> <p dir="auto">Is this a known issue at the moment?</p>
<h3 dir="auto">System information</h3> <ul dir="auto"> <li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>:<br> Only edited <code class="notranslate">ClassifierActivity.java</code> to suit a custom model</li> <li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>:<br> Android smartphone / host machine: Ubuntu 16.04 LTS</li> <li><strong>TensorFlow installed from (source or binary)</strong>: Source</li> <li><strong>TensorFlow version (use command below)</strong>: 1.1</li> <li><strong>Bazel version (if compiling from source)</strong>: 0.4.5</li> <li><strong>CUDA/cuDNN version</strong>: 8.0/5.1</li> <li><strong>GPU model and memory</strong>: GTX 860M</li> </ul> <h3 dir="auto">Describe the problem</h3> <p dir="auto">I am currently following the guide in: <a href="http://nilhcem.com/android/custom-tensorflow-classifier" rel="nofollow">http://nilhcem.com/android/custom-tensorflow-classifier</a></p> <p dir="auto">to train a custom classifier. However, I am using my own frozen graph that I obtained from my own training. What I noticed was when I used the quantized graph obtained through the <code class="notranslate">graph_transform</code> method, the app simply crashes without even running. In the guide, it is recommended to run this command on the inference graph:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="bazel-bin/tensorflow/python/tools/optimize_for_inference \ --input=/tf_files/retrained_graph.pb \ --output=/tf_files/retrained_graph_optimized.pb \ --input_names=Mul \ --output_names=final_result"><pre class="notranslate"><code class="notranslate">bazel-bin/tensorflow/python/tools/optimize_for_inference \ --input=/tf_files/retrained_graph.pb \ --output=/tf_files/retrained_graph_optimized.pb \ --input_names=Mul \ --output_names=final_result </code></pre></div> <p dir="auto">While I think it may be in conflict with the quantized graph transformations, I ran this command to test, and the app did crash. Here are the observations for all 4 permutations I tested:</p> <ol dir="auto"> <li>quantization + optimize_for_inference = <strong>app crash</strong></li> <li>quantization only = <strong>app crash</strong></li> <li>optimize_for_inference on frozen graph = <strong>app works</strong></li> <li>frozen_graph only = <strong>app works</strong></li> </ol> <p dir="auto">So my conclusion is the quantization operations within the quantized graph caused the app to fail.</p> <p dir="auto">Here is the quantization command I ran:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/home/kwotsin/tensorflow-android/tensorflow/bazel-bin/tensorflow/tools/graph_transforms/transform_graph \ --in_graph=./frozen_model_mobilenet.pb \ --out_graph=./quantized_model_mobilenet.pb \ --inputs='Placeholder_only' \ --outputs='MobileNet/Predictions/Softmax' \ --transforms=' add_default_attributes strip_unused_nodes(type=float, shape=&quot;1,299,299,3&quot;) remove_nodes(op=Identity, op=CheckNumerics) fold_constants(ignore_errors=true) fold_batch_norms fold_old_batch_norms quantize_weights quantize_nodes strip_unused_nodes sort_by_execution_order'"><pre class="notranslate"><code class="notranslate">/home/kwotsin/tensorflow-android/tensorflow/bazel-bin/tensorflow/tools/graph_transforms/transform_graph \ --in_graph=./frozen_model_mobilenet.pb \ --out_graph=./quantized_model_mobilenet.pb \ --inputs='Placeholder_only' \ --outputs='MobileNet/Predictions/Softmax' \ --transforms=' add_default_attributes strip_unused_nodes(type=float, shape="1,299,299,3") remove_nodes(op=Identity, op=CheckNumerics) fold_constants(ignore_errors=true) fold_batch_norms fold_old_batch_norms quantize_weights quantize_nodes strip_unused_nodes sort_by_execution_order' </code></pre></div> <p dir="auto">And the java file I edited to build my APK:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" private static final int INPUT_SIZE = 224; private static final int IMAGE_MEAN = 128; private static final float IMAGE_STD = 128; private static final String INPUT_NAME = &quot;Placeholder_only&quot;; private static final String OUTPUT_NAME = &quot;MobileNet/Predictions/Softmax&quot;; private static final String MODEL_FILE = &quot;file:///android_asset/quantized_model_mobilenet.pb&quot;; private static final String LABEL_FILE = &quot;file:///android_asset/mobilenet_labels.txt&quot;;"><pre class="notranslate"><code class="notranslate"> private static final int INPUT_SIZE = 224; private static final int IMAGE_MEAN = 128; private static final float IMAGE_STD = 128; private static final String INPUT_NAME = "Placeholder_only"; private static final String OUTPUT_NAME = "MobileNet/Predictions/Softmax"; private static final String MODEL_FILE = "file:///android_asset/quantized_model_mobilenet.pb"; private static final String LABEL_FILE = "file:///android_asset/mobilenet_labels.txt"; </code></pre></div> <p dir="auto">Other than these edit, every other file is the same. I then imported this project in Android Studio, and ran the <code class="notranslate">build apk</code> option located on the top toolbar of Android Studio.</p> <p dir="auto">So far, existing tutorials I've seen (e.g. those from Pete Warden) use the <code class="notranslate">quantize_graph</code> method to run on mobile devices. Is <code class="notranslate">graph_transform</code> compatible for quantizing models for mobile devices yet?</p>
0
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [Version 10.0.19008.1] Windows Terminal version (if applicable): 0.6.2951.0 Any other software?"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.19008.1] Windows Terminal version (if applicable): 0.6.2951.0 Any other software? </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <ol dir="auto"> <li>Copy a set of lines by marking using mouse and then Ctrl+C. You can also use <code class="notranslate">"copyOnSelect" : true,</code> in the settings.</li> <li>Open vim and paste using Shift + Insert.</li> <li>You would be able to see extra newlines after each line of copied text</li> </ol> <h1 dir="auto">Expected behavior</h1> <p dir="auto">You should not be seeing extra newlines when you copy text</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">Extra newlines after each line of copied text.</p>
<h1 dir="auto">I've tried WSL2 + docker + Windows Terminal. It's very good for developing.</h1> <p dir="auto">It will be better if some features in SecureCRT &amp; ConEmu can be introduced,</p> <h2 dir="auto">Save or redirect the output text in the terminal to some file with this feature</h2> <ol dir="auto"> <li> <p dir="auto">The format of the filename can be generated like yyyy-mm-dd_HH_MM_SS.log<br> (like SecureCRT).<br> This is very useful while using something like adb logcat etc.</p> </li> <li> <p dir="auto">Can change a new file while day changing.</p> </li> <li> <p dir="auto">File name has session name (just like SecureCRT &amp; ConEmu</p> </li> </ol>
0
<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>: N/A</li> <li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: macOS 'High Sierra' Version 10.13.4 (17E202)</li> <li><strong>TensorFlow installed from (source or binary)</strong>: source</li> <li><strong>TensorFlow version (use command below)</strong>: N/A, attempting to compile at <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/e365deab1333005c8aa186632f160c1bfd4485f8/hovercard" href="https://github.com/tensorflow/tensorflow/commit/e365deab1333005c8aa186632f160c1bfd4485f8"><tt>e365dea</tt></a> with minimal local changes (see below)</li> <li><strong>Python version</strong>: 2.7.15</li> <li><strong>Bazel version (if compiling from source)</strong>: 0.13.1-homebrew</li> <li><strong>GCC/Compiler version (if compiling from source)</strong>: Apple LLVM version 8.1.0 (clang-802.0.42)</li> <li><strong>CUDA/cuDNN version</strong>: cuda_9.2.64_mac with cuda_9.2.64.1_mac, cudnn-9.2-osx-x64-v7.1</li> <li><strong>GPU model and memory</strong>: NVIDIA GeForce GT 750M with 2 GB device memory, CUDA Compute Capability 3.0</li> <li><strong>Exact command to reproduce</strong>:</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="./configure bazel build --config=opt --config=cuda --save_temps --explain=explain.txt --verbose_explanations --verbose_failures --linkopt=-Wl,-rpath,/usr/local/cuda/lib //tensorflow/tools/pip_package:build_pip_package"><pre class="notranslate"><code class="notranslate">./configure bazel build --config=opt --config=cuda --save_temps --explain=explain.txt --verbose_explanations --verbose_failures --linkopt=-Wl,-rpath,/usr/local/cuda/lib //tensorflow/tools/pip_package:build_pip_package </code></pre></div> <h3 dir="auto">Describe the problem</h3> <p dir="auto">This is a re-occurrence of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="220429375" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/9072" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/9072/hovercard" href="https://github.com/tensorflow/tensorflow/issues/9072">#9072</a>, except that the solutions mentioned there (not using clang as the CUDA compiler, using CommandLineTools) do not resolve the problem.</p> <p dir="auto">To configure, I selected the following:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="You have bazel 0.13.1-homebrew installed. Please specify the location of python. [Default is /usr/local/opt/python@2/bin/python2.7]: Found possible Python library paths: /usr/local/Cellar/python@2/2.7.15/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages Please input the desired Python library path to use. Default is [/usr/local/Cellar/python@2/2.7.15/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages] Do you wish to build TensorFlow with Google Cloud Platform support? [Y/n]: Google Cloud Platform support will be enabled for TensorFlow. Do you wish to build TensorFlow with Hadoop File System support? [Y/n]: Hadoop File System support will be enabled for TensorFlow. Do you wish to build TensorFlow with Amazon S3 File System support? [Y/n]: Amazon S3 File System support will be enabled for TensorFlow. Do you wish to build TensorFlow with Apache Kafka Platform support? [Y/n]: Apache Kafka Platform support will be enabled for TensorFlow. Do you wish to build TensorFlow with XLA JIT support? [y/N]: No XLA JIT support will be enabled for TensorFlow. Do you wish to build TensorFlow with GDR support? [y/N]: No GDR support will be enabled for TensorFlow. Do you wish to build TensorFlow with VERBS support? [y/N]: No VERBS support will be enabled for TensorFlow. Do you wish to build TensorFlow with OpenCL SYCL support? [y/N]: No OpenCL SYCL support will be enabled for TensorFlow. Do you wish to build TensorFlow with CUDA support? [y/N]: y CUDA support will be enabled for TensorFlow. Please specify the CUDA SDK version you want to use. [Leave empty to default to CUDA 9.0]: 9.2 Please specify the location where CUDA 9.2 toolkit is installed. Refer to README.md for more details. [Default is /usr/local/cuda]: Please specify the cuDNN version you want to use. [Leave empty to default to cuDNN 7.0]: 7.1.4 Please specify the location where cuDNN 7 library is installed. Refer to README.md for more details. [Default is /usr/local/cuda]: Please specify a list of comma-separated Cuda compute capabilities you want to build with. You can find the compute capability of your device at: https://developer.nvidia.com/cuda-gpus. Please note that each additional compute capability significantly increases your build time and binary size. [Default is: 3.5,5.2]3.0 Do you want to use clang as CUDA compiler? [y/N]: nvcc will be used as CUDA compiler. Please specify which gcc should be used by nvcc as the host compiler. [Default is /usr/bin/gcc]: Do you wish to build TensorFlow with MPI support? [y/N]: No MPI support will be enabled for TensorFlow. Please specify optimization flags to use during compilation when bazel option &quot;--config=opt&quot; is specified [Default is -march=native]: Would you like to interactively configure ./WORKSPACE for Android builds? [y/N]: Not configuring the WORKSPACE for Android builds. Preconfigured Bazel build configs. You can use any of the below by adding &quot;--config=&lt;&gt;&quot; to your build command. See tools/bazel.rc for more details. --config=mkl # Build with MKL support. --config=monolithic # Config for mostly static monolithic build. Configuration finished"><pre class="notranslate"><code class="notranslate">You have bazel 0.13.1-homebrew installed. Please specify the location of python. [Default is /usr/local/opt/python@2/bin/python2.7]: Found possible Python library paths: /usr/local/Cellar/python@2/2.7.15/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages Please input the desired Python library path to use. Default is [/usr/local/Cellar/python@2/2.7.15/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages] Do you wish to build TensorFlow with Google Cloud Platform support? [Y/n]: Google Cloud Platform support will be enabled for TensorFlow. Do you wish to build TensorFlow with Hadoop File System support? [Y/n]: Hadoop File System support will be enabled for TensorFlow. Do you wish to build TensorFlow with Amazon S3 File System support? [Y/n]: Amazon S3 File System support will be enabled for TensorFlow. Do you wish to build TensorFlow with Apache Kafka Platform support? [Y/n]: Apache Kafka Platform support will be enabled for TensorFlow. Do you wish to build TensorFlow with XLA JIT support? [y/N]: No XLA JIT support will be enabled for TensorFlow. Do you wish to build TensorFlow with GDR support? [y/N]: No GDR support will be enabled for TensorFlow. Do you wish to build TensorFlow with VERBS support? [y/N]: No VERBS support will be enabled for TensorFlow. Do you wish to build TensorFlow with OpenCL SYCL support? [y/N]: No OpenCL SYCL support will be enabled for TensorFlow. Do you wish to build TensorFlow with CUDA support? [y/N]: y CUDA support will be enabled for TensorFlow. Please specify the CUDA SDK version you want to use. [Leave empty to default to CUDA 9.0]: 9.2 Please specify the location where CUDA 9.2 toolkit is installed. Refer to README.md for more details. [Default is /usr/local/cuda]: Please specify the cuDNN version you want to use. [Leave empty to default to cuDNN 7.0]: 7.1.4 Please specify the location where cuDNN 7 library is installed. Refer to README.md for more details. [Default is /usr/local/cuda]: Please specify a list of comma-separated Cuda compute capabilities you want to build with. You can find the compute capability of your device at: https://developer.nvidia.com/cuda-gpus. Please note that each additional compute capability significantly increases your build time and binary size. [Default is: 3.5,5.2]3.0 Do you want to use clang as CUDA compiler? [y/N]: nvcc will be used as CUDA compiler. Please specify which gcc should be used by nvcc as the host compiler. [Default is /usr/bin/gcc]: Do you wish to build TensorFlow with MPI support? [y/N]: No MPI support will be enabled for TensorFlow. Please specify optimization flags to use during compilation when bazel option "--config=opt" is specified [Default is -march=native]: Would you like to interactively configure ./WORKSPACE for Android builds? [y/N]: Not configuring the WORKSPACE for Android builds. Preconfigured Bazel build configs. You can use any of the below by adding "--config=&lt;&gt;" to your build command. See tools/bazel.rc for more details. --config=mkl # Build with MKL support. --config=monolithic # Config for mostly static monolithic build. Configuration finished </code></pre></div> <p dir="auto">To build, I try:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="bazel build --config=opt --config=cuda --save_temps --explain=explain.txt --verbose_explanations --verbose_failures --linkopt=-Wl,-rpath,/usr/local/cuda/lib //tensorflow/tools/pip_package:build_pip_package"><pre class="notranslate"><code class="notranslate">bazel build --config=opt --config=cuda --save_temps --explain=explain.txt --verbose_explanations --verbose_failures --linkopt=-Wl,-rpath,/usr/local/cuda/lib //tensorflow/tools/pip_package:build_pip_package </code></pre></div> <p dir="auto">However, this results in the error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Starting local Bazel server and connecting to it... ............ WARNING: The following configs were expanded more than once: [cuda]. For repeatable flags, repeats are counted twice and may lead to unexpected behavior. ERROR: Inconsistent crosstool configuration; no toolchain corresponding to 'local_darwin' found for cpu 'darwin' INFO: Elapsed time: 0.903s INFO: 0 processes. FAILED: Build did NOT complete successfully (2 packages loaded)"><pre class="notranslate"><code class="notranslate">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. ERROR: Inconsistent crosstool configuration; no toolchain corresponding to 'local_darwin' found for cpu 'darwin' INFO: Elapsed time: 0.903s INFO: 0 processes. FAILED: Build did NOT complete successfully (2 packages loaded) </code></pre></div> <p dir="auto">The output of <code class="notranslate">xcode-select -p</code> is:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/Library/Developer/CommandLineTools"><pre class="notranslate"><code class="notranslate">/Library/Developer/CommandLineTools </code></pre></div> <p dir="auto">The output of <code class="notranslate">/usr/bin/gcc --version</code> is:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 8.1.0 (clang-802.0.42) Target: x86_64-apple-darwin17.5.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin"><pre class="notranslate"><code class="notranslate">Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 8.1.0 (clang-802.0.42) Target: x86_64-apple-darwin17.5.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin </code></pre></div> <p dir="auto">I am able to build &amp; run the 'deviceQuery' CUDA SDK sample without issue.</p> <h3 dir="auto">Source code / logs</h3> <p dir="auto">The only local changes from <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/e365deab1333005c8aa186632f160c1bfd4485f8/hovercard" href="https://github.com/tensorflow/tensorflow/commit/e365deab1333005c8aa186632f160c1bfd4485f8"><tt>e365dea</tt></a> I have are:</p> <div class="highlight highlight-source-diff notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="diff --git a/tensorflow/core/kernels/concat_lib_gpu_impl.cu.cc b/tensorflow/core/kernels/concat_lib_gpu_impl.cu.cc index a561d918bd..46c91b4511 100644 --- a/tensorflow/core/kernels/concat_lib_gpu_impl.cu.cc +++ b/tensorflow/core/kernels/concat_lib_gpu_impl.cu.cc @@ -69,7 +69,7 @@ __global__ void concat_variable_kernel( IntType num_inputs = input_ptr_data.size; // verbose declaration needed due to template - extern __shared__ __align__(sizeof(T)) unsigned char smem[]; + extern __shared__ __align__(sizeof(T) &gt; 16 ? sizeof(T) : 16) unsigned char smem[]; IntType* smem_col_scan = reinterpret_cast&lt;IntType*&gt;(smem); if (useSmem) { diff --git a/tensorflow/core/kernels/depthwise_conv_op_gpu.cu.cc b/tensorflow/core/kernels/depthwise_conv_op_gpu.cu.cc index 5390222b3a..fcbd733614 100644 --- a/tensorflow/core/kernels/depthwise_conv_op_gpu.cu.cc +++ b/tensorflow/core/kernels/depthwise_conv_op_gpu.cu.cc @@ -172,7 +172,7 @@ __global__ __launch_bounds__(1024, 2) void DepthwiseConv2dGPUKernelNHWCSmall( const DepthwiseArgs args, const T* input, const T* filter, T* output) { assert(CanLaunchDepthwiseConv2dGPUSmall(args)); // Holds block plus halo and filter data for blockDim.x depths. - extern __shared__ __align__(sizeof(T)) unsigned char shared_memory[]; + extern __shared__ __align__(sizeof(T) &gt; 16 ? sizeof(T) : 16) unsigned char shared_memory[]; T* const shared_data = reinterpret_cast&lt;T*&gt;(shared_memory); const int num_batches = args.batch; @@ -452,7 +452,7 @@ __global__ __launch_bounds__(1024, 2) void DepthwiseConv2dGPUKernelNCHWSmall( const DepthwiseArgs args, const T* input, const T* filter, T* output) { assert(CanLaunchDepthwiseConv2dGPUSmall(args)); // Holds block plus halo and filter data for blockDim.z depths. - extern __shared__ __align__(sizeof(T)) unsigned char shared_memory[]; + extern __shared__ __align__(sizeof(T) &gt; 16 ? sizeof(T) : 16) unsigned char shared_memory[]; T* const shared_data = reinterpret_cast&lt;T*&gt;(shared_memory); const int num_batches = args.batch; @@ -1118,7 +1118,7 @@ __launch_bounds__(1024, 2) void DepthwiseConv2dBackpropFilterGPUKernelNHWCSmall( const DepthwiseArgs args, const T* output, const T* input, T* filter) { assert(CanLaunchDepthwiseConv2dBackpropFilterGPUSmall(args, blockDim.z)); // Holds block plus halo and filter data for blockDim.x depths. - extern __shared__ __align__(sizeof(T)) unsigned char shared_memory[]; + extern __shared__ __align__(sizeof(T) &gt; 16 ? sizeof(T) : 16) unsigned char shared_memory[]; T* const shared_data = reinterpret_cast&lt;T*&gt;(shared_memory); const int num_batches = args.batch; @@ -1388,7 +1388,7 @@ __launch_bounds__(1024, 2) void DepthwiseConv2dBackpropFilterGPUKernelNCHWSmall( const DepthwiseArgs args, const T* output, const T* input, T* filter) { assert(CanLaunchDepthwiseConv2dBackpropFilterGPUSmall(args, blockDim.x)); // Holds block plus halo and filter data for blockDim.z depths. - extern __shared__ __align__(sizeof(T)) unsigned char shared_memory[]; + extern __shared__ __align__(sizeof(T) &gt; 16 ? sizeof(T) : 16) unsigned char shared_memory[]; T* const shared_data = reinterpret_cast&lt;T*&gt;(shared_memory); const int num_batches = args.batch; diff --git a/tensorflow/core/kernels/split_lib_gpu.cu.cc b/tensorflow/core/kernels/split_lib_gpu.cu.cc index 393818730b..58a1294005 100644 --- a/tensorflow/core/kernels/split_lib_gpu.cu.cc +++ b/tensorflow/core/kernels/split_lib_gpu.cu.cc @@ -121,7 +121,7 @@ __global__ void split_v_kernel(const T* input_ptr, int num_outputs = output_ptr_data.size; // verbose declaration needed due to template - extern __shared__ __align__(sizeof(T)) unsigned char smem[]; + extern __shared__ __align__(sizeof(T) &gt; 16 ? sizeof(T) : 16) unsigned char smem[]; IntType* smem_col_scan = reinterpret_cast&lt;IntType*&gt;(smem); if (useSmem) { diff --git a/third_party/gpus/cuda/BUILD.tpl b/third_party/gpus/cuda/BUILD.tpl index 2a37c65bc7..43446dd99b 100644 --- a/third_party/gpus/cuda/BUILD.tpl +++ b/third_party/gpus/cuda/BUILD.tpl @@ -110,7 +110,7 @@ cc_library( &quot;.&quot;, &quot;cuda/include&quot;, ], - linkopts = [&quot;-lgomp&quot;], + #linkopts = [&quot;-lgomp&quot;], linkstatic = 1, visibility = [&quot;//visibility:public&quot;], ) diff --git a/third_party/toolchains/gpus/cuda/BUILD b/third_party/toolchains/gpus/cuda/BUILD index 4cb8380938..d025c4f3aa 100644 --- a/third_party/toolchains/gpus/cuda/BUILD +++ b/third_party/toolchains/gpus/cuda/BUILD @@ -115,7 +115,7 @@ cc_library( &quot;.&quot;, &quot;cuda/include&quot;, ], - linkopts = [&quot;-lgomp&quot;], + #linkopts = [&quot;-lgomp&quot;], linkstatic = 1, visibility = [&quot;//visibility:public&quot;], )"><pre class="notranslate"><span class="pl-c1">diff --git a/tensorflow/core/kernels/concat_lib_gpu_impl.cu.cc b/tensorflow/core/kernels/concat_lib_gpu_impl.cu.cc</span> index a561d918bd..46c91b4511 100644 <span class="pl-md">--- a/tensorflow/core/kernels/concat_lib_gpu_impl.cu.cc</span> <span class="pl-mi1">+++ b/tensorflow/core/kernels/concat_lib_gpu_impl.cu.cc</span> <span class="pl-mdr">@@ -69,7 +69,7 @@</span> __global__ void concat_variable_kernel( IntType num_inputs = input_ptr_data.size; // verbose declaration needed due to template <span class="pl-md"><span class="pl-md">-</span> extern __shared__ __align__(sizeof(T)) unsigned char smem[];</span> <span class="pl-mi1"><span class="pl-mi1">+</span> extern __shared__ __align__(sizeof(T) &gt; 16 ? sizeof(T) : 16) unsigned char smem[];</span> IntType* smem_col_scan = reinterpret_cast&lt;IntType*&gt;(smem); if (useSmem) { <span class="pl-c1">diff --git a/tensorflow/core/kernels/depthwise_conv_op_gpu.cu.cc b/tensorflow/core/kernels/depthwise_conv_op_gpu.cu.cc</span> index 5390222b3a..fcbd733614 100644 <span class="pl-md">--- a/tensorflow/core/kernels/depthwise_conv_op_gpu.cu.cc</span> <span class="pl-mi1">+++ b/tensorflow/core/kernels/depthwise_conv_op_gpu.cu.cc</span> <span class="pl-mdr">@@ -172,7 +172,7 @@</span> __global__ __launch_bounds__(1024, 2) void DepthwiseConv2dGPUKernelNHWCSmall( const DepthwiseArgs args, const T* input, const T* filter, T* output) { assert(CanLaunchDepthwiseConv2dGPUSmall(args)); // Holds block plus halo and filter data for blockDim.x depths. <span class="pl-md"><span class="pl-md">-</span> extern __shared__ __align__(sizeof(T)) unsigned char shared_memory[];</span> <span class="pl-mi1"><span class="pl-mi1">+</span> extern __shared__ __align__(sizeof(T) &gt; 16 ? sizeof(T) : 16) unsigned char shared_memory[];</span> T* const shared_data = reinterpret_cast&lt;T*&gt;(shared_memory); const int num_batches = args.batch; <span class="pl-mdr">@@ -452,7 +452,7 @@</span> __global__ __launch_bounds__(1024, 2) void DepthwiseConv2dGPUKernelNCHWSmall( const DepthwiseArgs args, const T* input, const T* filter, T* output) { assert(CanLaunchDepthwiseConv2dGPUSmall(args)); // Holds block plus halo and filter data for blockDim.z depths. <span class="pl-md"><span class="pl-md">-</span> extern __shared__ __align__(sizeof(T)) unsigned char shared_memory[];</span> <span class="pl-mi1"><span class="pl-mi1">+</span> extern __shared__ __align__(sizeof(T) &gt; 16 ? sizeof(T) : 16) unsigned char shared_memory[];</span> T* const shared_data = reinterpret_cast&lt;T*&gt;(shared_memory); const int num_batches = args.batch; <span class="pl-mdr">@@ -1118,7 +1118,7 @@</span> __launch_bounds__(1024, 2) void DepthwiseConv2dBackpropFilterGPUKernelNHWCSmall( const DepthwiseArgs args, const T* output, const T* input, T* filter) { assert(CanLaunchDepthwiseConv2dBackpropFilterGPUSmall(args, blockDim.z)); // Holds block plus halo and filter data for blockDim.x depths. <span class="pl-md"><span class="pl-md">-</span> extern __shared__ __align__(sizeof(T)) unsigned char shared_memory[];</span> <span class="pl-mi1"><span class="pl-mi1">+</span> extern __shared__ __align__(sizeof(T) &gt; 16 ? sizeof(T) : 16) unsigned char shared_memory[];</span> T* const shared_data = reinterpret_cast&lt;T*&gt;(shared_memory); const int num_batches = args.batch; <span class="pl-mdr">@@ -1388,7 +1388,7 @@</span> __launch_bounds__(1024, 2) void DepthwiseConv2dBackpropFilterGPUKernelNCHWSmall( const DepthwiseArgs args, const T* output, const T* input, T* filter) { assert(CanLaunchDepthwiseConv2dBackpropFilterGPUSmall(args, blockDim.x)); // Holds block plus halo and filter data for blockDim.z depths. <span class="pl-md"><span class="pl-md">-</span> extern __shared__ __align__(sizeof(T)) unsigned char shared_memory[];</span> <span class="pl-mi1"><span class="pl-mi1">+</span> extern __shared__ __align__(sizeof(T) &gt; 16 ? sizeof(T) : 16) unsigned char shared_memory[];</span> T* const shared_data = reinterpret_cast&lt;T*&gt;(shared_memory); const int num_batches = args.batch; <span class="pl-c1">diff --git a/tensorflow/core/kernels/split_lib_gpu.cu.cc b/tensorflow/core/kernels/split_lib_gpu.cu.cc</span> index 393818730b..58a1294005 100644 <span class="pl-md">--- a/tensorflow/core/kernels/split_lib_gpu.cu.cc</span> <span class="pl-mi1">+++ b/tensorflow/core/kernels/split_lib_gpu.cu.cc</span> <span class="pl-mdr">@@ -121,7 +121,7 @@</span> __global__ void split_v_kernel(const T* input_ptr, int num_outputs = output_ptr_data.size; // verbose declaration needed due to template <span class="pl-md"><span class="pl-md">-</span> extern __shared__ __align__(sizeof(T)) unsigned char smem[];</span> <span class="pl-mi1"><span class="pl-mi1">+</span> extern __shared__ __align__(sizeof(T) &gt; 16 ? sizeof(T) : 16) unsigned char smem[];</span> IntType* smem_col_scan = reinterpret_cast&lt;IntType*&gt;(smem); if (useSmem) { <span class="pl-c1">diff --git a/third_party/gpus/cuda/BUILD.tpl b/third_party/gpus/cuda/BUILD.tpl</span> index 2a37c65bc7..43446dd99b 100644 <span class="pl-md">--- a/third_party/gpus/cuda/BUILD.tpl</span> <span class="pl-mi1">+++ b/third_party/gpus/cuda/BUILD.tpl</span> <span class="pl-mdr">@@ -110,7 +110,7 @@</span> cc_library( ".", "cuda/include", ], <span class="pl-md"><span class="pl-md">-</span> linkopts = ["-lgomp"],</span> <span class="pl-mi1"><span class="pl-mi1">+</span> #linkopts = ["-lgomp"],</span> linkstatic = 1, visibility = ["//visibility:public"], ) <span class="pl-c1">diff --git a/third_party/toolchains/gpus/cuda/BUILD b/third_party/toolchains/gpus/cuda/BUILD</span> index 4cb8380938..d025c4f3aa 100644 <span class="pl-md">--- a/third_party/toolchains/gpus/cuda/BUILD</span> <span class="pl-mi1">+++ b/third_party/toolchains/gpus/cuda/BUILD</span> <span class="pl-mdr">@@ -115,7 +115,7 @@</span> cc_library( ".", "cuda/include", ], <span class="pl-md"><span class="pl-md">-</span> linkopts = ["-lgomp"],</span> <span class="pl-mi1"><span class="pl-mi1">+</span> #linkopts = ["-lgomp"],</span> linkstatic = 1, visibility = ["//visibility:public"], )</pre></div>
<p dir="auto">I encountered a problem when using a self-trained face-recognition model to make inference on android platform (using c++ api, just like the android demo). The error says something like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="06-05 16:25:11.322 28605-28605/jp.narr.tensorflowmnist I/native: tensorflow_jni.cc:196 End computing. 06-05 16:25:11.322 28605-28605/jp.narr.tensorflowmnist E/native: tensorflow_jni.cc:199 Error during inference: Invalid argument: No OpKernel was registered to support Op 'Inv' with these attrs [[Node: incept5b/in4_conv1x1_55/batch_norm/moments/moments_1/divisor = Inv[T=DT_FLOAT](incept5b/in4_conv1x1_55/batch_norm/moments/moments/Const)]] 06-05 16:25:11.322 28605-28605/jp.narr.tensorflowmnist A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x10 in tid 28605 (tensorflowmnist) 06-05 16:25:11.423 186-186/? I/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** "><pre class="notranslate"><code class="notranslate">06-05 16:25:11.322 28605-28605/jp.narr.tensorflowmnist I/native: tensorflow_jni.cc:196 End computing. 06-05 16:25:11.322 28605-28605/jp.narr.tensorflowmnist E/native: tensorflow_jni.cc:199 Error during inference: Invalid argument: No OpKernel was registered to support Op 'Inv' with these attrs [[Node: incept5b/in4_conv1x1_55/batch_norm/moments/moments_1/divisor = Inv[T=DT_FLOAT](incept5b/in4_conv1x1_55/batch_norm/moments/moments/Const)]] 06-05 16:25:11.322 28605-28605/jp.narr.tensorflowmnist A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x10 in tid 28605 (tensorflowmnist) 06-05 16:25:11.423 186-186/? I/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** </code></pre></div> <p dir="auto">It is similar to the issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="135957980" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/1269" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/1269/hovercard" href="https://github.com/tensorflow/tensorflow/issues/1269">#1269</a></p> <p dir="auto">I don't understand why it causes an error?<br> All the other layers ( from incept3a to incept5a) have almost the same structures, but there's no error....</p> <p dir="auto">Could anyone give me some advice?<br> Thanks a lot!</p> <p dir="auto">The structure of the model I use is like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" def inference_nn4_max_pool_96(images, pool_type, use_lrn, keep_probability, phase_train=True): conv1 = _conv(images, 3, 64, 7, 7, 2, 2, 'SAME', 'conv1_7x7', phase_train=phase_train, use_batch_norm=True) pool1 = _mpool(conv1, 3, 3, 2, 2, 'SAME') if use_lrn: lrn1 = tf.nn.local_response_normalization(pool1, depth_radius=5, bias=1.0, alpha=1e-4, beta=0.75) else: lrn1 = pool1 conv2 = _conv(lrn1, 64, 64, 1, 1, 1, 1, 'SAME', 'conv2_1x1', phase_train=phase_train, use_batch_norm=True) conv3 = _conv(conv2, 64, 192, 3, 3, 1, 1, 'SAME', 'conv3_3x3', phase_train=phase_train, use_batch_norm=True) if use_lrn: lrn2 = tf.nn.local_response_normalization(conv3, depth_radius=5, bias=1.0, alpha=1e-4, beta=0.75) else: lrn2 = conv3 pool3 = _mpool(lrn2, 3, 3, 2, 2, 'SAME') incept3a = _inception(pool3, 192, 1, 64, 96, 128, 16, 32, 3, 32, 1, 'MAX', 'incept3a', phase_train=phase_train, use_batch_norm=True) incept3b = _inception(incept3a, 256, 1, 64, 96, 128, 32, 64, 3, 64, 1, pool_type, 'incept3b', phase_train=phase_train, use_batch_norm=True) incept3c = _inception(incept3b, 320, 2, 0, 128, 256, 32, 64, 3, 0, 2, 'MAX', 'incept3c', phase_train=phase_train, use_batch_norm=True) incept4a = _inception(incept3c, 640, 1, 256, 96, 192, 32, 64, 3, 128, 1, pool_type, 'incept4a', phase_train=phase_train, use_batch_norm=True) incept4b = _inception(incept4a, 640, 1, 224, 112, 224, 32, 64, 3, 128, 1, pool_type, 'incept4b', phase_train=phase_train, use_batch_norm=True) incept4c = _inception(incept4b, 640, 1, 192, 128, 256, 32, 64, 3, 128, 1, pool_type, 'incept4c', phase_train=phase_train, use_batch_norm=True) incept4d = _inception(incept4c, 640, 1, 160, 144, 288, 32, 64, 3, 128, 1, pool_type, 'incept4d', phase_train=phase_train, use_batch_norm=True) incept4e = _inception(incept4d, 640, 2, 0, 160, 256, 64, 128, 3, 0, 2, 'MAX', 'incept4e', phase_train=phase_train, use_batch_norm=True) incept5a = _inception(incept4e, 1024, 1, 384, 192, 384, 0, 0, 3, 128, 1, pool_type, 'incept5a', phase_train=phase_train, use_batch_norm=True) incept5b = _inception(incept5a, 896, 1, 384, 192, 384, 0, 0, 3, 128, 1, 'MAX', 'incept5b', phase_train=phase_train, use_batch_norm=True) pool6 = _apool(incept5b, 3, 3, 1, 1, 'VALID') resh1 = tf.reshape(pool6, [-1, 896]) affn1 = _affine(resh1, 896, 128) if keep_probability&lt;1.0: affn1 = control_flow_ops.cond(phase_train, lambda: tf.nn.dropout(affn1, keep_probability), lambda: affn1) norm = tf.nn.l2_normalize(affn1, 1, 1e-10, name='embeddings') return norm"><pre class="notranslate"><code class="notranslate"> def inference_nn4_max_pool_96(images, pool_type, use_lrn, keep_probability, phase_train=True): conv1 = _conv(images, 3, 64, 7, 7, 2, 2, 'SAME', 'conv1_7x7', phase_train=phase_train, use_batch_norm=True) pool1 = _mpool(conv1, 3, 3, 2, 2, 'SAME') if use_lrn: lrn1 = tf.nn.local_response_normalization(pool1, depth_radius=5, bias=1.0, alpha=1e-4, beta=0.75) else: lrn1 = pool1 conv2 = _conv(lrn1, 64, 64, 1, 1, 1, 1, 'SAME', 'conv2_1x1', phase_train=phase_train, use_batch_norm=True) conv3 = _conv(conv2, 64, 192, 3, 3, 1, 1, 'SAME', 'conv3_3x3', phase_train=phase_train, use_batch_norm=True) if use_lrn: lrn2 = tf.nn.local_response_normalization(conv3, depth_radius=5, bias=1.0, alpha=1e-4, beta=0.75) else: lrn2 = conv3 pool3 = _mpool(lrn2, 3, 3, 2, 2, 'SAME') incept3a = _inception(pool3, 192, 1, 64, 96, 128, 16, 32, 3, 32, 1, 'MAX', 'incept3a', phase_train=phase_train, use_batch_norm=True) incept3b = _inception(incept3a, 256, 1, 64, 96, 128, 32, 64, 3, 64, 1, pool_type, 'incept3b', phase_train=phase_train, use_batch_norm=True) incept3c = _inception(incept3b, 320, 2, 0, 128, 256, 32, 64, 3, 0, 2, 'MAX', 'incept3c', phase_train=phase_train, use_batch_norm=True) incept4a = _inception(incept3c, 640, 1, 256, 96, 192, 32, 64, 3, 128, 1, pool_type, 'incept4a', phase_train=phase_train, use_batch_norm=True) incept4b = _inception(incept4a, 640, 1, 224, 112, 224, 32, 64, 3, 128, 1, pool_type, 'incept4b', phase_train=phase_train, use_batch_norm=True) incept4c = _inception(incept4b, 640, 1, 192, 128, 256, 32, 64, 3, 128, 1, pool_type, 'incept4c', phase_train=phase_train, use_batch_norm=True) incept4d = _inception(incept4c, 640, 1, 160, 144, 288, 32, 64, 3, 128, 1, pool_type, 'incept4d', phase_train=phase_train, use_batch_norm=True) incept4e = _inception(incept4d, 640, 2, 0, 160, 256, 64, 128, 3, 0, 2, 'MAX', 'incept4e', phase_train=phase_train, use_batch_norm=True) incept5a = _inception(incept4e, 1024, 1, 384, 192, 384, 0, 0, 3, 128, 1, pool_type, 'incept5a', phase_train=phase_train, use_batch_norm=True) incept5b = _inception(incept5a, 896, 1, 384, 192, 384, 0, 0, 3, 128, 1, 'MAX', 'incept5b', phase_train=phase_train, use_batch_norm=True) pool6 = _apool(incept5b, 3, 3, 1, 1, 'VALID') resh1 = tf.reshape(pool6, [-1, 896]) affn1 = _affine(resh1, 896, 128) if keep_probability&lt;1.0: affn1 = control_flow_ops.cond(phase_train, lambda: tf.nn.dropout(affn1, keep_probability), lambda: affn1) norm = tf.nn.l2_normalize(affn1, 1, 1e-10, name='embeddings') return norm </code></pre></div>
0
<p dir="auto">Please add support for the <a href="https://github.com/onnx/onnx">ONNX</a> open model standard or a conversion tool would be great.</p>
<p dir="auto">Support exporting and loading models in ONNX format.<br> See: <a href="https://research.fb.com/facebook-and-microsoft-introduce-new-open-ecosystem-for-interchangeable-ai-frameworks/" rel="nofollow">https://research.fb.com/facebook-and-microsoft-introduce-new-open-ecosystem-for-interchangeable-ai-frameworks/</a></p>
1
<p dir="auto">Hi,</p> <p dir="auto">My OS: Ubuntu 16.04.4<br> GCC/G++: <strong>Ubuntu 5.4.0-6ubuntu1~16.04.9</strong><br> OpenCV: manually installed 3.4.1<br> I'm actually building VLC with OpenCV.<br> And, I came across the following <strong>ERROR</strong> message:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/usr/local/include/opencv2/core/cvdef.h:485:1: error: unknown type name โ€˜namespaceโ€™ namespace cv { ^ /usr/local/include/opencv2/core/cvdef.h:485:14: error: expected โ€˜=โ€™, โ€˜,โ€™, โ€˜;โ€™, โ€˜asmโ€™ or โ€˜__attribute__โ€™ before โ€˜{โ€™ token namespace cv { ^"><pre class="notranslate"><code class="notranslate">/usr/local/include/opencv2/core/cvdef.h:485:1: error: unknown type name โ€˜namespaceโ€™ namespace cv { ^ /usr/local/include/opencv2/core/cvdef.h:485:14: error: expected โ€˜=โ€™, โ€˜,โ€™, โ€˜;โ€™, โ€˜asmโ€™ or โ€˜__attribute__โ€™ before โ€˜{โ€™ token namespace cv { ^ </code></pre></div> <p dir="auto">And in <strong>/usr/local/include/opencv2/core/cvdef.h</strong>, the code snippet is:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// Integer types portatibility #ifdef OPENCV_STDINT_HEADER #include OPENCV_STDINT_HEADER #else #if defined(_MSC_VER) &amp;&amp; _MSC_VER &lt; 1600 /* MSVS 2010 */ namespace cv { typedef signed char int8_t; typedef unsigned char uint8_t; typedef signed short int16_t; typedef unsigned short uint16_t; typedef signed int int32_t; typedef unsigned int uint32_t; typedef signed __int64 int64_t; typedef unsigned __int64 uint64_t; } #elif defined(_MSC_VER) || __cplusplus &gt;= 201103L #include &lt;cstdint&gt; namespace cv { using std::int8_t; using std::uint8_t; using std::int16_t; using std::uint16_t; using std::int32_t; using std::uint32_t; using std::int64_t; using std::uint64_t; } #else #include &lt;stdint.h&gt; namespace cv { typedef ::int8_t int8_t; typedef ::uint8_t uint8_t; typedef ::int16_t int16_t; typedef ::uint16_t uint16_t; typedef ::int32_t int32_t; typedef ::uint32_t uint32_t; typedef ::int64_t int64_t; typedef ::uint64_t uint64_t; } #endif #endif"><pre class="notranslate"><code class="notranslate">// Integer types portatibility #ifdef OPENCV_STDINT_HEADER #include OPENCV_STDINT_HEADER #else #if defined(_MSC_VER) &amp;&amp; _MSC_VER &lt; 1600 /* MSVS 2010 */ namespace cv { typedef signed char int8_t; typedef unsigned char uint8_t; typedef signed short int16_t; typedef unsigned short uint16_t; typedef signed int int32_t; typedef unsigned int uint32_t; typedef signed __int64 int64_t; typedef unsigned __int64 uint64_t; } #elif defined(_MSC_VER) || __cplusplus &gt;= 201103L #include &lt;cstdint&gt; namespace cv { using std::int8_t; using std::uint8_t; using std::int16_t; using std::uint16_t; using std::int32_t; using std::uint32_t; using std::int64_t; using std::uint64_t; } #else #include &lt;stdint.h&gt; namespace cv { typedef ::int8_t int8_t; typedef ::uint8_t uint8_t; typedef ::int16_t int16_t; typedef ::uint16_t uint16_t; typedef ::int32_t int32_t; typedef ::uint32_t uint32_t; typedef ::int64_t int64_t; typedef ::uint64_t uint64_t; } #endif #endif </code></pre></div> <p dir="auto">It looks if the build goes to <strong>#include &lt;stdint.h&gt;</strong>,<br> VLC's compiler is using <strong>gcc</strong> instead of <strong>g++</strong>?<br> And I wonder why <strong>__cplusplus &gt;= 201103L</strong> ?<br> Here is my case:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ gcc --version gcc (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609 Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."><pre class="notranslate"><code class="notranslate">$ gcc --version gcc (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609 Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. </code></pre></div> <p dir="auto">In such a case, how do you comapre <strong>201103L</strong> and ** (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609**?</p> <p dir="auto">Cheers<br> Pei</p>
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 4.4.0-pre</li> <li>Operating System / Platform =&gt; Ubuntu 18.04</li> <li>Compiler =&gt; qmake (Qt5)</li> </ul> <h5 dir="auto">Detailed description</h5> <ol dir="auto"> <li> <p dir="auto">The current version of OpenCV does not support ONNX models with dynamic input/output shape</p> </li> <li> <p dir="auto">Bug Report:<br> Suppose that an ONNX model has a fixed input shape ( H: 736, W: 1280 )<br> Then, I input an image with a wrong shape ( H: 1280, W: 736 )<br> However, OpenCV would not throw an exception, and the output is not right.</p> </li> </ol> <h5 dir="auto">Steps to reproduce</h5> <ol dir="auto"> <li>I provide an ONNX model with a dynamic input shape:<br> <a href="https://drive.google.com/file/d/1ihzycC2R_HzUAH941P_ghxA1eDjezy6c/view?usp=sharing" rel="nofollow">https://drive.google.com/file/d/1ihzycC2R_HzUAH941P_ghxA1eDjezy6c/view?usp=sharing</a><br> It is generated by the following codes:</li> </ol> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" output_onnx = 'DB_dynamic_input.onnx' print(&quot;==&gt; Exporting model to ONNX format at '{}'&quot;.format(output_onnx)) input_names = [&quot;input&quot;] output_names = [&quot;out&quot;] inputs = torch.randn((1, 3, 576, 800), dtype=torch.float32) dynamic_axes = {'input': {0: 'batch_size', 2: 'height', 3: 'width'}, 'out': {0: 'batch', 1: 'height', 2: 'width'}} torch_out = torch.onnx.export(model, inputs, output_onnx, export_params=True, verbose=True, input_names=input_names, output_names=output_names, opset_version=11, dynamic_axes=dynamic_axes)"><pre class="notranslate"> <span class="pl-s1">output_onnx</span> <span class="pl-c1">=</span> <span class="pl-s">'DB_dynamic_input.onnx'</span> <span class="pl-en">print</span>(<span class="pl-s">"==&gt; Exporting model to ONNX format at '{}'"</span>.<span class="pl-en">format</span>(<span class="pl-s1">output_onnx</span>)) <span class="pl-s1">input_names</span> <span class="pl-c1">=</span> [<span class="pl-s">"input"</span>] <span class="pl-s1">output_names</span> <span class="pl-c1">=</span> [<span class="pl-s">"out"</span>] <span class="pl-s1">inputs</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">randn</span>((<span class="pl-c1">1</span>, <span class="pl-c1">3</span>, <span class="pl-c1">576</span>, <span class="pl-c1">800</span>), <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">torch</span>.<span class="pl-s1">float32</span>) <span class="pl-s1">dynamic_axes</span> <span class="pl-c1">=</span> {<span class="pl-s">'input'</span>: {<span class="pl-c1">0</span>: <span class="pl-s">'batch_size'</span>, <span class="pl-c1">2</span>: <span class="pl-s">'height'</span>, <span class="pl-c1">3</span>: <span class="pl-s">'width'</span>}, <span class="pl-s">'out'</span>: {<span class="pl-c1">0</span>: <span class="pl-s">'batch'</span>, <span class="pl-c1">1</span>: <span class="pl-s">'height'</span>, <span class="pl-c1">2</span>: <span class="pl-s">'width'</span>}} <span class="pl-s1">torch_out</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-s1">onnx</span>.<span class="pl-en">export</span>(<span class="pl-s1">model</span>, <span class="pl-s1">inputs</span>, <span class="pl-s1">output_onnx</span>, <span class="pl-s1">export_params</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">verbose</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">input_names</span><span class="pl-c1">=</span><span class="pl-s1">input_names</span>, <span class="pl-s1">output_names</span><span class="pl-c1">=</span><span class="pl-s1">output_names</span>, <span class="pl-s1">opset_version</span><span class="pl-c1">=</span><span class="pl-c1">11</span>, <span class="pl-s1">dynamic_axes</span><span class="pl-c1">=</span><span class="pl-s1">dynamic_axes</span>)</pre></div> <p dir="auto">Then, I test it with onnxruntime</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" onnx_path = 'DB_dynamic_input.onnx' session = onnxruntime.InferenceSession(onnx_path) session.get_modelmeta() input_name = session.get_inputs()[0].name output_name = session.get_outputs()[0].name inputs = torch.randn((4, 3, 736, 1280), dtype=torch.float32).numpy() preds = session.run([output_name], {input_name: inputs}) print(preds[0].shape)"><pre class="notranslate"> <span class="pl-s1">onnx_path</span> <span class="pl-c1">=</span> <span class="pl-s">'DB_dynamic_input.onnx'</span> <span class="pl-s1">session</span> <span class="pl-c1">=</span> <span class="pl-s1">onnxruntime</span>.<span class="pl-v">InferenceSession</span>(<span class="pl-s1">onnx_path</span>) <span class="pl-s1">session</span>.<span class="pl-en">get_modelmeta</span>() <span class="pl-s1">input_name</span> <span class="pl-c1">=</span> <span class="pl-s1">session</span>.<span class="pl-en">get_inputs</span>()[<span class="pl-c1">0</span>].<span class="pl-s1">name</span> <span class="pl-s1">output_name</span> <span class="pl-c1">=</span> <span class="pl-s1">session</span>.<span class="pl-en">get_outputs</span>()[<span class="pl-c1">0</span>].<span class="pl-s1">name</span> <span class="pl-s1">inputs</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">randn</span>((<span class="pl-c1">4</span>, <span class="pl-c1">3</span>, <span class="pl-c1">736</span>, <span class="pl-c1">1280</span>), <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">torch</span>.<span class="pl-s1">float32</span>).<span class="pl-en">numpy</span>() <span class="pl-s1">preds</span> <span class="pl-c1">=</span> <span class="pl-s1">session</span>.<span class="pl-en">run</span>([<span class="pl-s1">output_name</span>], {<span class="pl-s1">input_name</span>: <span class="pl-s1">inputs</span>}) <span class="pl-en">print</span>(<span class="pl-s1">preds</span>[<span class="pl-c1">0</span>].<span class="pl-s1">shape</span>)</pre></div> <p dir="auto">and get an output with a right shape</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(4, 736, 1280)"><pre class="notranslate"><code class="notranslate">(4, 736, 1280) </code></pre></div> <p dir="auto">When I try to import it in OpenCV, I will get the following Exception:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="terminate called after throwing an instance of 'cv::Exception' what(): OpenCV(4.4.0-pre) /home/hannibal/Files/Tools/opencv/modules/dnn/src/layers/pooling_layer.cpp:1186: error: (-215:Assertion failed) (outShape[2 + i] - 1) * strides[i] &lt; inpShape[i] + pads_end[i] in function 'getMemoryShapes'"><pre class="notranslate"><code class="notranslate">terminate called after throwing an instance of 'cv::Exception' what(): OpenCV(4.4.0-pre) /home/hannibal/Files/Tools/opencv/modules/dnn/src/layers/pooling_layer.cpp:1186: error: (-215:Assertion failed) (outShape[2 + i] - 1) * strides[i] &lt; inpShape[i] + pads_end[i] in function 'getMemoryShapes' </code></pre></div> <ol start="2" dir="auto"> <li>This bug can be reproduced by using the <strong>DB_IC15_resnet50.onnx</strong> provided in my tutorial:<br> <a href="https://github.com/HannibalAPE/opencv/blob/text_det_recog_demo/doc/tutorials/dnn/dnn_text_spotting/dnn_text_spotting.markdown">https://github.com/HannibalAPE/opencv/blob/text_det_recog_demo/doc/tutorials/dnn/dnn_text_spotting/dnn_text_spotting.markdown</a><br> The input shape of it is fixed, when it is converted to ONNX format.<br> The right input shape should be (1, 3, 736, 1280), but you can input a blob with a wrong shape (1, 3, 1280, 736).</li> </ol> <h5 dir="auto">Issue submission checklist</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I report the issue, it's not a question </li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I checked the problem with documentation, FAQ, open issues,<br> answers.opencv.org, Stack Overflow, etc and have not found solution </li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I updated to latest OpenCV version and the issue is still there </li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> There is reproducer code and related data files: videos, images, onnx, etc </li> </ul>
0
<ul dir="auto"> <li>VSCode Version: 0.10.11</li> <li>OS Version: win10 x64</li> </ul> <p dir="auto">I am a python programmer, and I wan't to add indentation guide lines like this:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/3c9b185c97290a051f547a3cb37dccef883a83d8f31f5b224dafc2e521213d57/687474703a2f2f776573626f732e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031332f30372f73732d323031332d30372d32342d61742d342e30322e35322d504d2e706e67"><img src="https://camo.githubusercontent.com/3c9b185c97290a051f547a3cb37dccef883a83d8f31f5b224dafc2e521213d57/687474703a2f2f776573626f732e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031332f30372f73732d323031332d30372d32342d61742d342e30322e35322d504d2e706e67" alt=" indentation guide lines" data-canonical-src="http://wesbos.com/wp-content/uploads/2013/07/ss-2013-07-24-at-4.02.52-PM.png" style="max-width: 100%;"></a></p> <p dir="auto">What should I do? or what plug-ins can achieve this effect?</p> <p dir="auto">Thanks a lot</p>
<p dir="auto">Hi, is there any chance we can get indent guides (the vertical lines that run down to matching indents). Could not find reference to them anywhere in VS code or the gallery. Thanks - Adolfo</p>
1
<p dir="auto">I'm running Telegram bot and noticed the free memory degradation when running bot for a long time. Firstly, I suspect my code; then I suspect bot and finally I came to requests. :)<br> I used <strong>len(gc.get_objects())</strong> to identify that problem exists. I located the communication routines, then cleared all bot code and comes to the example that raises the count of gc objects on every iteration.</p> <h2 dir="auto">Expected Result</h2> <p dir="auto"><strong>len(gc.get_objects())</strong> should give the <strong>same</strong> result on every loop iteration</p> <h2 dir="auto">Actual Result</h2> <p dir="auto">The value of <strong>len(gc.get_objects())</strong> increases on every loop iteration.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Test N2 GetObjects len: 27959 Test N3 GetObjects len: 27960 Test N4 GetObjects len: 27961 Test N5 GetObjects len: 27962 Test N6 GetObjects len: 27963 Test N7 GetObjects len: 27964"><pre class="notranslate"><code class="notranslate">Test N2 GetObjects len: 27959 Test N3 GetObjects len: 27960 Test N4 GetObjects len: 27961 Test N5 GetObjects len: 27962 Test N6 GetObjects len: 27963 Test N7 GetObjects len: 27964 </code></pre></div> <h2 dir="auto">Reproduction Steps</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="token = &quot;XXX:XXX&quot; chat_id = '111' proxy = {'https':'socks5h://ZZZ'} #You may need proxy to run this in Russia from time import sleep import gc, requests def garbage_info(): res = &quot;&quot; res += &quot;\nGetObjects len: &quot; + str(len(gc.get_objects())) return res def tester(): count = 0 while(True): sleep(1) count += 1 msg = &quot;\nTest N{0}&quot;.format(count) + garbage_info() print(msg) method_url = r'sendMessage' payload = {'chat_id': str(chat_id), 'text': msg} request_url = &quot;https://api.telegram.org/bot{0}/{1}&quot;.format(token, method_url) method_name = 'get' session = requests.session() req = requests.Request( method=method_name.upper(), url=request_url, params=payload ) prep = session.prepare_request(req) settings = session.merge_environment_settings( prep.url, None, None, None, None) # prep.url, proxy, None, None, None) #Change the line to enable proxy send_kwargs = { 'timeout': None, 'allow_redirects': None, } send_kwargs.update(settings) resp = session.send(prep, **send_kwargs) # For more clean output gc.collect() tester()"><pre class="notranslate"><code class="notranslate">token = "XXX:XXX" chat_id = '111' proxy = {'https':'socks5h://ZZZ'} #You may need proxy to run this in Russia from time import sleep import gc, requests def garbage_info(): res = "" res += "\nGetObjects len: " + str(len(gc.get_objects())) return res def tester(): count = 0 while(True): sleep(1) count += 1 msg = "\nTest N{0}".format(count) + garbage_info() print(msg) method_url = r'sendMessage' payload = {'chat_id': str(chat_id), 'text': msg} request_url = "https://api.telegram.org/bot{0}/{1}".format(token, method_url) method_name = 'get' session = requests.session() req = requests.Request( method=method_name.upper(), url=request_url, params=payload ) prep = session.prepare_request(req) settings = session.merge_environment_settings( prep.url, None, None, None, None) # prep.url, proxy, None, None, None) #Change the line to enable proxy send_kwargs = { 'timeout': None, 'allow_redirects': None, } send_kwargs.update(settings) resp = session.send(prep, **send_kwargs) # For more clean output gc.collect() tester() </code></pre></div> <h2 dir="auto">System Information</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;chardet&quot;: { &quot;version&quot;: &quot;3.0.4&quot; }, &quot;cryptography&quot;: { &quot;version&quot;: &quot;2.3.1&quot; }, &quot;idna&quot;: { &quot;version&quot;: &quot;2.7&quot; }, &quot;implementation&quot;: { &quot;name&quot;: &quot;CPython&quot;, &quot;version&quot;: &quot;3.6.6&quot; }, &quot;platform&quot;: { &quot;release&quot;: &quot;4.15.0-36-generic&quot;, &quot;system&quot;: &quot;Linux&quot; }, &quot;pyOpenSSL&quot;: { &quot;openssl_version&quot;: &quot;1010009f&quot;, &quot;version&quot;: &quot;17.5.0&quot; }, &quot;requests&quot;: { &quot;version&quot;: &quot;2.19.1&quot; }, &quot;system_ssl&quot;: { &quot;version&quot;: &quot;1010007f&quot; }, &quot;urllib3&quot;: { &quot;version&quot;: &quot;1.23&quot; }, &quot;using_pyopenssl&quot;: true }"><pre class="notranslate"><code class="notranslate">{ "chardet": { "version": "3.0.4" }, "cryptography": { "version": "2.3.1" }, "idna": { "version": "2.7" }, "implementation": { "name": "CPython", "version": "3.6.6" }, "platform": { "release": "4.15.0-36-generic", "system": "Linux" }, "pyOpenSSL": { "openssl_version": "1010009f", "version": "17.5.0" }, "requests": { "version": "2.19.1" }, "system_ssl": { "version": "1010007f" }, "urllib3": { "version": "1.23" }, "using_pyopenssl": true } </code></pre></div>
<p dir="auto">Summary.</p> <h2 dir="auto">Expected Result</h2> <p dir="auto">Program running normally</p> <h2 dir="auto">Actual Result</h2> <p dir="auto">Program consuming all ram till stops working</p> <h2 dir="auto">Reproduction Steps</h2> <p dir="auto">Pseudocode:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="def function(): proxies = { 'https': proxy } session = requests.Session() session.headers.update({'User-Agent': 'user - agent'}) try: # login = session.get(url, proxies=proxies) # HERE IS WHERE MEMORY LEAKS except: # return -1 # return 0 "><pre class="notranslate"><span class="pl-k">def</span> <span class="pl-en">function</span>(): <span class="pl-s1">proxies</span> <span class="pl-c1">=</span> { <span class="pl-s">'https'</span>: <span class="pl-s1">proxy</span> } <span class="pl-s1">session</span> <span class="pl-c1">=</span> <span class="pl-s1">requests</span>.<span class="pl-v">Session</span>() <span class="pl-s1">session</span>.<span class="pl-s1">headers</span>.<span class="pl-en">update</span>({<span class="pl-s">'User-Agent'</span>: <span class="pl-s">'user - agent'</span>}) <span class="pl-k">try</span>: <span class="pl-c">#</span> <span class="pl-s1">login</span> <span class="pl-c1">=</span> <span class="pl-s1">session</span>.<span class="pl-en">get</span>(<span class="pl-s1">url</span>, <span class="pl-s1">proxies</span><span class="pl-c1">=</span><span class="pl-s1">proxies</span>) <span class="pl-c"># HERE IS WHERE MEMORY LEAKS</span> <span class="pl-k">except</span>: <span class="pl-c">#</span> <span class="pl-k">return</span> <span class="pl-c1">-</span><span class="pl-c1">1</span> <span class="pl-c">#</span> <span class="pl-k">return</span> <span class="pl-c1">0</span></pre></div> <h2 dir="auto">System Information</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ python -m requests.help"><pre class="notranslate"><code class="notranslate">$ python -m requests.help </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;chardet&quot;: { &quot;version&quot;: &quot;3.0.4&quot; }, &quot;cryptography&quot;: { &quot;version&quot;: &quot;&quot; }, &quot;idna&quot;: { &quot;version&quot;: &quot;2.6&quot; }, &quot;implementation&quot;: { &quot;name&quot;: &quot;CPython&quot;, &quot;version&quot;: &quot;3.6.3&quot; }, &quot;platform&quot;: { &quot;release&quot;: &quot;10&quot;, &quot;system&quot;: &quot;Windows&quot; }, &quot;pyOpenSSL&quot;: { &quot;openssl_version&quot;: &quot;&quot;, &quot;version&quot;: null }, &quot;requests&quot;: { &quot;version&quot;: &quot;2.18.4&quot; }, &quot;system_ssl&quot;: { &quot;version&quot;: &quot;100020bf&quot; }, &quot;urllib3&quot;: { &quot;version&quot;: &quot;1.22&quot; }, &quot;using_pyopenssl&quot;: false }"><pre class="notranslate"><code class="notranslate">{ "chardet": { "version": "3.0.4" }, "cryptography": { "version": "" }, "idna": { "version": "2.6" }, "implementation": { "name": "CPython", "version": "3.6.3" }, "platform": { "release": "10", "system": "Windows" }, "pyOpenSSL": { "openssl_version": "", "version": null }, "requests": { "version": "2.18.4" }, "system_ssl": { "version": "100020bf" }, "urllib3": { "version": "1.22" }, "using_pyopenssl": false } </code></pre></div>
1
<p dir="auto">I am using Colab where OpenCV version is 4.1.2 and while trying to do inference of a YOLOv7 model I got following error:<br> <code class="notranslate">error: OpenCV(4.1.2) /io/opencv/modules/dnn/src/darknet/darknet_io.cpp:554: error: (-212:Parsing error) Unsupported activation: logistic in function 'ReadDarknetFromCfgStream'</code></p> <p dir="auto">And above error came in this line of code <code class="notranslate">net = cv2.dnn.readNet('/content/gdrive/MyDrive/yolov7/yolov7-obj.cfg', '/content/gdrive/MyDrive/yolov7/weights/yolov7-obj_final.weights')</code></p> <p dir="auto">The weight and cfg file can be used from the following official links: <a href="url">https://raw.githubusercontent.com/AlexeyAB/darknet/master/cfg/yolov7-tiny.cfg</a> and <a href="url">https://github.com/AlexeyAB/darknet/releases/download/yolov4/yolov7-tiny.weights</a></p>
<ul dir="auto"> <li> <p dir="auto">OpenCV =&gt; 4.6.0</p> </li> <li> <p dir="auto">Operating System / Platform =&gt; Windows 64 Bit</p> </li> <li> <p dir="auto">Compiler =&gt; Visual Studio 2017<br> --&gt;</p> </li> <li> <p dir="auto">Compiler =&gt; <g-emoji class="g-emoji" alias="grey_question" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2754.png">โ”</g-emoji></p> </li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">How support to YOLOv7 by onnx format?</p> <p dir="auto"><a href="https://github.com/WongKinYiu/yolov7">https://github.com/WongKinYiu/yolov7</a></p>
1
<p dir="auto">What is the general sentiment on having the <code class="notranslate">deno-cli</code> crate producing a <code class="notranslate">lib</code> that can be imported by other projects? I think that taking this path would also help making this module lighter - for instance, subproject like the LSP could become a separate crate consuming the <code class="notranslate">deno-cli</code> module, etc.</p>
<p dir="auto">I'm working on a project where I'd like to instantiate multiple instances of the full Deno runtime from within Rust code. Because the <code class="notranslate">cli</code> package only provides a binary, that isn't currently possible. I'd like to avoid the inefficiencies of shelling out to multiple separate Deno processes, and instead spin them up in Rust threads.</p> <p dir="auto">Adding a <code class="notranslate">[lib]</code> target to <code class="notranslate">Cargo.toml</code> in the <code class="notranslate">cli</code> package would fix this, but it would probably require changes to the package to expose a Rust API with all of the CLI options.</p>
1
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: [1.33]</li> <li>Operating System: [Ubuntu 20]</li> <li>Browser: [All, Chromium, Firefox, WebKit]</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" checked=""> I provided exact source code that allows reproducing the issue locally.</li> </ul> <p dir="auto"><strong>Link to the GitHub repository with the repro</strong></p> <p dir="auto">[https://github.com/your_profile/playwright_issue_title]</p> <p dir="auto">or</p> <p dir="auto"><strong>Config file</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Not Applicable"><pre class="notranslate"><code class="notranslate">Not Applicable </code></pre></div> <p dir="auto"><strong>Test file (self-contained)</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Not Applicable"><pre class="notranslate"><code class="notranslate">Not Applicable </code></pre></div> <p dir="auto"><strong>Steps</strong></p> <ol dir="auto"> <li>[Install Playwright]</li> </ol> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="cd ./h2oai/ui &amp;&amp; $(NPM) install -D @playwright/test allure-playwright &amp;&amp; $(NPX) playwright install"><pre class="notranslate"><span class="pl-c1">cd</span> ./h2oai/ui <span class="pl-k">&amp;&amp;</span> <span class="pl-s"><span class="pl-pds">$(</span>NPM<span class="pl-pds">)</span></span> install -D @playwright/test allure-playwright <span class="pl-k">&amp;&amp;</span> <span class="pl-s"><span class="pl-pds">$(</span>NPX<span class="pl-pds">)</span></span> playwright install</pre></div> <p dir="auto"><strong>Expected</strong></p> <p dir="auto">Playwright should install successfully.</p> <p dir="auto"><strong>Actual</strong></p> <p dir="auto">Getting installation error:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[2023-04-17T00:08:27.494Z] ----- Preparing Playwright ENV for GUI E2E Tests ----- [2023-04-17T00:08:27.494Z] cd ./h2oai/ui &amp;&amp; /h2oai/node-v16.0.0-linux-x64/bin/npm install -D @playwright/test allure-playwright &amp;&amp; /h2oai/node-v16.0.0-linux-x64/bin/npx playwright install [2023-04-17T00:08:34.052Z] npm WARN deprecated [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142 [2023-04-17T00:08:34.052Z] npm WARN deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead. [2023-04-17T00:08:34.987Z] npm WARN deprecated [email protected]: this library is no longer supported [2023-04-17T00:08:35.954Z] npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 [2023-04-17T00:08:41.221Z] [2023-04-17T00:08:41.221Z] added 651 packages, and audited 652 packages in 13s [2023-04-17T00:08:41.221Z] [2023-04-17T00:08:41.221Z] 45 packages are looking for funding [2023-04-17T00:08:41.221Z] run `npm fund` for details [2023-04-17T00:08:41.221Z] [2023-04-17T00:08:41.221Z] 29 vulnerabilities (4 moderate, 22 high, 3 critical) [2023-04-17T00:08:41.221Z] [2023-04-17T00:08:41.221Z] To address issues that do not require attention, run: [2023-04-17T00:08:41.221Z] npm audit fix [2023-04-17T00:08:41.221Z] [2023-04-17T00:08:41.221Z] To address all issues (including breaking changes), run: [2023-04-17T00:08:41.221Z] npm audit fix --force [2023-04-17T00:08:41.221Z] [2023-04-17T00:08:41.221Z] Run `npm audit` for details. [2023-04-17T00:08:41.221Z] Downloading Chromium 104.0.5112.48 (playwright build v1015)... [2023-04-17T00:08:41.221Z] | | 0% of 132.8 Mb [2023-04-17T00:08:41.221Z] Downloading Chromium 104.0.5112.48 (playwright build v1015)... [2023-04-17T00:08:41.221Z] |โ– โ– โ– โ– โ– โ– โ– โ–  | 10% of 132.8 Mb [2023-04-17T00:08:41.479Z] |โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ–  | 20% of 132.8 Mb [2023-04-17T00:08:41.737Z] |โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ–  | 30% of 132.8 Mb [2023-04-17T00:08:41.996Z] | | 0% of 132.8 Mb [2023-04-17T00:08:41.996Z] Downloading Chromium 104.0.5112.48 (playwright build v1015)... [2023-04-17T00:08:41.996Z] |โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ–  | 40% of 132.8 Mb [2023-04-17T00:08:42.254Z] |โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ–  | 50% of 132.8 Mb [2023-04-17T00:08:42.254Z] | | 0% of 132.8 Mb [2023-04-17T00:08:42.254Z] Failed to install browsers [2023-04-17T00:08:42.254Z] Error: Failed to download Chromium 104.0.5112.48 (playwright build v1015), caused by [2023-04-17T00:08:42.254Z] Error: ENOENT: no such file or directory, open '&quot;./tmp&quot;/playwright-download-chromium-ubuntu20.04-1015.zip' [2023-04-17T00:08:42.254Z] make: *** [test_gui_e2e_setup] Error 1 [2023-04-17T00:08:42.254Z] make: Target `test_gui_e2e' not remade because of errors. [2023-04-17T00:08:42.820Z] Makefile:1550: recipe for target 'centos7_make_test_impl' failed [2023-04-17T00:08:42.820Z] make[1]: *** [centos7_make_test_impl] Error 2 [2023-04-17T00:08:42.820Z] make[1]: Leaving directory '/home/****/slave_dir_from_mr-0xc1/workspace/sAI_dai-native-pipeline_PR-31152/test_gui_e2e-x86_64-11.2.2' [2023-04-17T00:08:42.820Z] make/build_nonsmoke.mk:330: recipe for target 'centos7_cuda11.2.2_test_gui_e2e_in_docker' failed [2023-04-17T00:08:42.820Z] make: *** [centos7_cuda11.2.2_test_gui_e2e_in_docker] Error 2 script returned exit code 2"><pre class="notranslate">[2023-04-17T00:08:27.494Z] ----- Preparing Playwright ENV <span class="pl-k">for</span> GUI E2E Tests ----- [2023-04-17T00:08:27.494Z] <span class="pl-c1">cd</span> ./h2oai/ui <span class="pl-k">&amp;&amp;</span> /h2oai/node-v16.0.0-linux-x64/bin/npm install -D @playwright/test allure-playwright <span class="pl-k">&amp;&amp;</span> /h2oai/node-v16.0.0-linux-x64/bin/npx playwright install [2023-04-17T00:08:34.052Z] npm WARN deprecated [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142 [2023-04-17T00:08:34.052Z] npm WARN deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead. [2023-04-17T00:08:34.987Z] npm WARN deprecated [email protected]: this library is no longer supported [2023-04-17T00:08:35.954Z] npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 [2023-04-17T00:08:41.221Z] [2023-04-17T00:08:41.221Z] added 651 packages, and audited 652 packages <span class="pl-k">in</span> 13s [2023-04-17T00:08:41.221Z] [2023-04-17T00:08:41.221Z] 45 packages are looking <span class="pl-k">for</span> funding [2023-04-17T00:08:41.221Z] run <span class="pl-s"><span class="pl-pds">`</span>npm fund<span class="pl-pds">`</span></span> <span class="pl-k">for</span> details [2023-04-17T00:08:41.221Z] [2023-04-17T00:08:41.221Z] 29 vulnerabilities (4 moderate, 22 high, 3 critical) [2023-04-17T00:08:41.221Z] [2023-04-17T00:08:41.221Z] To address issues that <span class="pl-k">do</span> not require attention, run: [2023-04-17T00:08:41.221Z] npm audit fix [2023-04-17T00:08:41.221Z] [2023-04-17T00:08:41.221Z] To address all issues (including breaking changes), run: [2023-04-17T00:08:41.221Z] npm audit fix --force [2023-04-17T00:08:41.221Z] [2023-04-17T00:08:41.221Z] Run <span class="pl-s"><span class="pl-pds">`</span>npm audit<span class="pl-pds">`</span></span> <span class="pl-k">for</span> details. [2023-04-17T00:08:41.221Z] Downloading Chromium 104.0.5112.48 (playwright build v1015)... [2023-04-17T00:08:41.221Z] <span class="pl-k">|</span> <span class="pl-k">|</span> 0% of 132.8 Mb [2023-04-17T00:08:41.221Z] Downloading Chromium 104.0.5112.48 (playwright build v1015)... [2023-04-17T00:08:41.221Z] <span class="pl-k">|</span>โ– โ– โ– โ– โ– โ– โ– โ–  <span class="pl-k">|</span> 10% of 132.8 Mb [2023-04-17T00:08:41.479Z] <span class="pl-k">|</span>โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ–  <span class="pl-k">|</span> 20% of 132.8 Mb [2023-04-17T00:08:41.737Z] <span class="pl-k">|</span>โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ–  <span class="pl-k">|</span> 30% of 132.8 Mb [2023-04-17T00:08:41.996Z] <span class="pl-k">|</span> <span class="pl-k">|</span> 0% of 132.8 Mb [2023-04-17T00:08:41.996Z] Downloading Chromium 104.0.5112.48 (playwright build v1015)... [2023-04-17T00:08:41.996Z] <span class="pl-k">|</span>โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ–  <span class="pl-k">|</span> 40% of 132.8 Mb [2023-04-17T00:08:42.254Z] <span class="pl-k">|</span>โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ–  <span class="pl-k">|</span> 50% of 132.8 Mb [2023-04-17T00:08:42.254Z] <span class="pl-k">|</span> <span class="pl-k">|</span> 0% of 132.8 Mb [2023-04-17T00:08:42.254Z] Failed to install browsers [2023-04-17T00:08:42.254Z] Error: Failed to download Chromium 104.0.5112.48 (playwright build v1015), caused by [2023-04-17T00:08:42.254Z] Error: ENOENT: no such file or directory, open <span class="pl-s"><span class="pl-pds">'</span>"./tmp"/playwright-download-chromium-ubuntu20.04-1015.zip<span class="pl-pds">'</span></span> [2023-04-17T00:08:42.254Z] make: <span class="pl-k">***</span> [test_gui_e2e_setup] Error 1 [2023-04-17T00:08:42.254Z] make: Target <span class="pl-s"><span class="pl-pds">`</span>test_gui_e2e<span class="pl-s"><span class="pl-pds">'</span> not remade because of errors.</span></span> <span class="pl-s"><span class="pl-s">[2023-04-17T00:08:42.820Z] Makefile:1550: recipe for target <span class="pl-pds">'</span></span>centos7_make_test_impl<span class="pl-s"><span class="pl-pds">'</span> failed</span></span> <span class="pl-s"><span class="pl-s">[2023-04-17T00:08:42.820Z] make[1]: *** [centos7_make_test_impl] Error 2</span></span> <span class="pl-s"><span class="pl-s">[2023-04-17T00:08:42.820Z] make[1]: Leaving directory <span class="pl-pds">'</span></span>/home/<span class="pl-k">****</span>/slave_dir_from_mr-0xc1/workspace/sAI_dai-native-pipeline_PR-31152/test_gui_e2e-x86_64-11.2.2<span class="pl-s"><span class="pl-pds">'</span></span></span> <span class="pl-s"><span class="pl-s">[2023-04-17T00:08:42.820Z] make/build_nonsmoke.mk:330: recipe for target <span class="pl-pds">'</span></span>centos7_cuda11.2.2_test_gui_e2e_in_docker<span class="pl-s"><span class="pl-pds">'</span> failed</span></span> <span class="pl-s"><span class="pl-s">[2023-04-17T00:08:42.820Z] make: *** [centos7_cuda11.2.2_test_gui_e2e_in_docker] Error 2</span></span> <span class="pl-s"><span class="pl-s">script returned exit code 2</span></span></pre></div>
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: v1.31.1 (I think)</li> <li>Operating System: Ubuntu 22.04.2</li> <li>Browser: WebKit</li> <li>Other info: The issue is happening while running on GitHub Actions</li> </ul> <h3 dir="auto">Source code</h3> <p dir="auto">The issue isn't with running tests, it's with installing playwright's dependencies. In my GitHub Actions workflow I'm running <code class="notranslate">npx playwright install webkit --with-deps</code> which no longer succeeds as of today. I'm getting the following error. There have been no dependency updates on our end, thought it's possible something changed on the GitHub Actions VM.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Installing dependencies... Switching to root user to install dependencies... Hit:1 http://azure.archive.ubuntu.com/ubuntu jammy InRelease Get:2 http://azure.archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB] Get:3 http://azure.archive.ubuntu.com/ubuntu jammy-backports InRelease [107 kB] Get:4 http://azure.archive.ubuntu.com/ubuntu jammy-security InRelease [110 kB] Ign:5 https://packages.microsoft.com/ubuntu/22.04/prod jammy InRelease Get:6 https://packages.microsoft.com/ubuntu/22.04/prod jammy Release [2,540 B] Ign:7 https://packages.microsoft.com/ubuntu/22.04/prod jammy Release.gpg Get:8 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [900 kB] Get:9 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main Translation-en [198 kB] Get:10 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 c-n-f Metadata [13.5 kB] Get:11 http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [863 kB] Get:12 http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe Translation-en [167 kB] Get:13 http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 c-n-f Metadata [17.3 kB] Get:14 http://azure.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [19.5 kB] Get:15 http://azure.archive.ubuntu.com/ubuntu jammy-backports/universe Translation-en [14.0 kB] Get:16 http://azure.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 c-n-f Metadata [392 B] Hit:17 https://ppa.launchpadcontent.net/ubuntu-toolchain-r/test/ubuntu jammy InRelease Get:18 http://azure.archive.ubuntu.com/ubuntu jammy-security/main amd64 Packages [646 kB] Get:19 http://azure.archive.ubuntu.com/ubuntu jammy-security/main Translation-en [135 kB] Get:20 http://azure.archive.ubuntu.com/ubuntu jammy-security/main amd64 c-n-f Metadata [8,524 B] Get:21 http://azure.archive.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [686 kB] Get:22 http://azure.archive.ubuntu.com/ubuntu jammy-security/universe Translation-en [108 kB] Get:23 http://azure.archive.ubuntu.com/ubuntu jammy-security/universe amd64 c-n-f Metadata [13.3 kB] Reading package lists... E: The repository 'https://packages.microsoft.com/ubuntu/22.04/prod jammy Release' is no longer signed. Failed to install browsers Error: Installation process exited with code: 100 Error: Process completed with exit code 1."><pre lang="text" class="notranslate"><code class="notranslate">Installing dependencies... Switching to root user to install dependencies... Hit:1 http://azure.archive.ubuntu.com/ubuntu jammy InRelease Get:2 http://azure.archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB] Get:3 http://azure.archive.ubuntu.com/ubuntu jammy-backports InRelease [107 kB] Get:4 http://azure.archive.ubuntu.com/ubuntu jammy-security InRelease [110 kB] Ign:5 https://packages.microsoft.com/ubuntu/22.04/prod jammy InRelease Get:6 https://packages.microsoft.com/ubuntu/22.04/prod jammy Release [2,540 B] Ign:7 https://packages.microsoft.com/ubuntu/22.04/prod jammy Release.gpg Get:8 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [900 kB] Get:9 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main Translation-en [198 kB] Get:10 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 c-n-f Metadata [13.5 kB] Get:11 http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [863 kB] Get:12 http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe Translation-en [167 kB] Get:13 http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 c-n-f Metadata [17.3 kB] Get:14 http://azure.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [19.5 kB] Get:15 http://azure.archive.ubuntu.com/ubuntu jammy-backports/universe Translation-en [14.0 kB] Get:16 http://azure.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 c-n-f Metadata [392 B] Hit:17 https://ppa.launchpadcontent.net/ubuntu-toolchain-r/test/ubuntu jammy InRelease Get:18 http://azure.archive.ubuntu.com/ubuntu jammy-security/main amd64 Packages [646 kB] Get:19 http://azure.archive.ubuntu.com/ubuntu jammy-security/main Translation-en [135 kB] Get:20 http://azure.archive.ubuntu.com/ubuntu jammy-security/main amd64 c-n-f Metadata [8,524 B] Get:21 http://azure.archive.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [686 kB] Get:22 http://azure.archive.ubuntu.com/ubuntu jammy-security/universe Translation-en [108 kB] Get:23 http://azure.archive.ubuntu.com/ubuntu jammy-security/universe amd64 c-n-f Metadata [13.3 kB] Reading package lists... E: The repository 'https://packages.microsoft.com/ubuntu/22.04/prod jammy Release' is no longer signed. Failed to install browsers Error: Installation process exited with code: 100 Error: Process completed with exit code 1. </code></pre></div> <p dir="auto">GitHub Actions VM info</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Current runner version: '2.302.1' Operating System Ubuntu 22.04.2 LTS Runner Image Image: ubuntu-22.04 Version: 20230219.1 Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20230219.1/images/linux/Ubuntu2204-Readme.md Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20230219.1 Runner Image Provisioner 2.0.117.1"><pre lang="text" class="notranslate"><code class="notranslate">Current runner version: '2.302.1' Operating System Ubuntu 22.04.2 LTS Runner Image Image: ubuntu-22.04 Version: 20230219.1 Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20230219.1/images/linux/Ubuntu2204-Readme.md Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20230219.1 Runner Image Provisioner 2.0.117.1 </code></pre></div>
0
<p dir="auto">We're using a custom ShaderMaterial that we clone for each mesh so they can have unique uniforms.</p> <p dir="auto">But it turns out that internally UniformsUtils.clone() is called which clones the texture parameter. This means each one counts as unique and gets uploaded to the GPU separately. Not good!</p> <p dir="auto">So unless we're going about this the wrong way, it would seem better if texture parameters were copied by reference rather than cloned as hard to see anyone wanting to duplicate the textures like this.</p>
<p dir="auto">The description of the .normals attribute in the <a href="https://threejs.org/docs/#api/core/BufferGeometry" rel="nofollow">buffergeometry docs</a> says:</p> <blockquote> <p dir="auto">Stores the x, y, and z components of the face or vertex normal vector of each vertex in this geometry.</p> </blockquote> <p dir="auto">But as far as I am aware only vertex normals are supported in WebGL.</p>
0
<p dir="auto">nightly build</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const x = Math.random() &gt; 0.5 ? 'hey' : 1; if (typeof x === 'number') { [].map(() =&gt; x + 2); // expected should typecheck, actual no-no-no }"><pre class="notranslate"><code class="notranslate">const x = Math.random() &gt; 0.5 ? 'hey' : 1; if (typeof x === 'number') { [].map(() =&gt; x + 2); // expected should typecheck, actual no-no-no } </code></pre></div> <p dir="auto">numbers can't mutate, <code class="notranslate">x</code> holds a number, also it is a constant, constant can't change its value, so ...</p>
<p dir="auto">This is a place holder for changes to the type narrowing behavior in TypeScript 2.0:</p> <ul dir="auto"> <li>Generic type parameters are now narrowed</li> </ul> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function g&lt;T&gt;(obj: T) { var t: T; if (obj instanceof RegExp) { t = obj; // RegExp is not assignable to T } }"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">g</span><span class="pl-c1">&lt;</span><span class="pl-smi">T</span><span class="pl-c1">&gt;</span><span class="pl-kos">(</span><span class="pl-s1">obj</span>: <span class="pl-smi">T</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">t</span>: <span class="pl-smi">T</span><span class="pl-kos">;</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">obj</span> <span class="pl-k">instanceof</span> <span class="pl-smi">RegExp</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">t</span> <span class="pl-c1">=</span> <span class="pl-s1">obj</span><span class="pl-kos">;</span> <span class="pl-c">// RegExp is not assignable to T</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">See the explanation by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Arnavion/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Arnavion">@Arnavion</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="144126851" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/7719" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/7719/hovercard?comment_id=202684512&amp;comment_type=issue_comment" href="https://github.com/microsoft/TypeScript/issues/7719#issuecomment-202684512">#7719 (comment)</a></p> <ul dir="auto"> <li>Type narrowing does not work for catprued variables in functions and class expressions</li> </ul> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export class Class { constructor(public p) { } } var c: Class | string; var x: Class; if (c instanceof Class) { function inner() { x = c; // Error, type of c is not narrowed, c is Class | string } x = c; // OK, c is Class }"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-smi">Class</span> <span class="pl-kos">{</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-k">public</span> <span class="pl-s1">p</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-s1">c</span>: <span class="pl-smi">Class</span> <span class="pl-c1">|</span> <span class="pl-smi">string</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">x</span>: <span class="pl-smi">Class</span><span class="pl-kos">;</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">c</span> <span class="pl-k">instanceof</span> <span class="pl-smi">Class</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">function</span> <span class="pl-en">inner</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">c</span><span class="pl-kos">;</span> <span class="pl-c">// Error, type of c is not narrowed, c is Class | string</span> <span class="pl-kos">}</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">c</span><span class="pl-kos">;</span> <span class="pl-c">// OK, c is Class</span> <span class="pl-kos">}</span></pre></div>
1
<p dir="auto"><code class="notranslate">google.golang.org/cloud</code> packages are renamed and are available at <code class="notranslate">cloud.google.com/go</code>. google.golang.org/cloud resource is still available but won't be after September 12. More information is been available on our API clients' announce mailing list at <a href="https://groups.google.com/forum/#!topic/google-api-go-announce/nXY-DYZGqz8" rel="nofollow">https://groups.google.com/forum/#!topic/google-api-go-announce/nXY-DYZGqz8</a></p>
<p dir="auto">The Google Cloud API client libraries for Go are making some breaking changes:</p> <ul dir="auto"> <li>The import paths are changing from <code class="notranslate">google.golang.org/cloud/...</code> to<br> <code class="notranslate">cloud.google.com/go/...</code>. For example, if your code imports the BigQuery client<br> it currently reads<br> <code class="notranslate">import "google.golang.org/cloud/bigquery"</code><br> It should be changed to<br> <code class="notranslate">import "cloud.google.com/go/bigquery"</code></li> <li>Client options are also moving, from <code class="notranslate">google.golang.org/cloud</code> to<br> <code class="notranslate">google.golang.org/api/option</code>. Two have also been renamed: <ul dir="auto"> <li><code class="notranslate">WithBaseGRPC</code> is now <code class="notranslate">WithGRPCConn</code></li> <li><code class="notranslate">WithBaseHTTP</code> is now <code class="notranslate">WithHTTPClient</code></li> </ul> </li> <li>The <code class="notranslate">cloud.WithContext</code> and <code class="notranslate">cloud.NewContext</code> methods are gone, as are the<br> deprecated pubsub and container functions that required them. Use the <code class="notranslate">Client</code><br> methods of these packages instead.</li> </ul> <p dir="auto">You should make these changes before September 12, 2016, when the packages at<br> <code class="notranslate">google.golang.org/cloud</code> will go away.</p>
1
<p dir="auto">I am trying to build go on IPv6 only machine and seeing following error:<br> --- FAIL: TestDialTimeout (0.01s)<br> dial_test.go:108: got error "dial tcp 127.0.0.1:61521: connection reset by peer"; not a timeout<br> --- FAIL: TestIPv4MulticastListener (0.00s)<br> multicast_test.go:55: First ListenMulticastUDP on failed: listen udp 224.0.0.254: setsockopt: no such device<br> FAIL<br> FAIL net 2.086s</p> <p dir="auto">Test should check if IPv4/IPv6 addresses assigned on the machine before starting test.</p>
<pre class="notranslate"><a href="http://www.freebsd.org/ipv6/ipv6only.html" rel="nofollow">http://www.freebsd.org/ipv6/ipv6only.html</a> Sure, it fails, of course.</pre>
1
<h3 dir="auto">Version</h3> <p dir="auto">2.5.16</p> <h3 dir="auto">Reproduction link</h3> <p dir="auto"><a href="https://raw.githubusercontent.com/indus/stuff/master/vue_issue.jpg" rel="nofollow">https://raw.githubusercontent.com/indus/stuff/master/vue_issue.jpg</a><br> (sorry - haven't found an online tool that shows type annotations)</p> <h3 dir="auto">Steps to reproduce</h3> <p dir="auto">type the following in an TS enabled Editor like VS Code:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="new Vue({ el: '#app', props: { object: { type: Array, required: true, default: () =&gt; [] } }, data: function () { return { message: 'Hello Vue.js!' } }, created: function () { this.message; } })"><pre class="notranslate"><span class="pl-k">new</span> <span class="pl-smi">Vue</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">el</span>: <span class="pl-s">'#app'</span><span class="pl-kos">,</span> <span class="pl-c1">props</span>: <span class="pl-kos">{</span> <span class="pl-c1">object</span>: <span class="pl-kos">{</span> <span class="pl-c1">type</span>: <span class="pl-smi">Array</span><span class="pl-kos">,</span> <span class="pl-c1">required</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-en">default</span>: <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">[</span><span class="pl-kos">]</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-en">data</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">message</span>: <span class="pl-s">'Hello Vue.js!'</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-en">created</span>: <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">message</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div> <h3 dir="auto">What is expected?</h3> <p dir="auto">correct type inference (at least) for 'message'</p> <h3 dir="auto">What is actually happening?</h3> <p dir="auto">getting Error: "Property 'message' doesn't exist"</p> <hr> <p dir="auto">This doesn't happen when the type of the prop is Object:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="new Vue({ el: '#app', props: { object: { type: Object, required: true, default: () =&gt; {} } }, data: function () { return { message: 'Hello Vue.js!' } }, created: function () { this.message; } })"><pre class="notranslate"><span class="pl-k">new</span> <span class="pl-v">Vue</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">el</span>: <span class="pl-s">'#app'</span><span class="pl-kos">,</span> <span class="pl-c1">props</span>: <span class="pl-kos">{</span> <span class="pl-c1">object</span>: <span class="pl-kos">{</span> <span class="pl-c1">type</span>: <span class="pl-v">Object</span><span class="pl-kos">,</span> <span class="pl-c1">required</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-en">default</span>: <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-en">data</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">message</span>: <span class="pl-s">'Hello Vue.js!'</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-en">created</span>: <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">message</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">or 'data' is just a simple object and not a function</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="new Vue({ el: '#app', props: { object: { type: Array, required: true, default: () =&gt; [] } }, data: { message: 'Hello Vue.js!' }, created: function () { this.message; } })"><pre class="notranslate"><span class="pl-k">new</span> <span class="pl-v">Vue</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">el</span>: <span class="pl-s">'#app'</span><span class="pl-kos">,</span> <span class="pl-c1">props</span>: <span class="pl-kos">{</span> <span class="pl-c1">object</span>: <span class="pl-kos">{</span> <span class="pl-c1">type</span>: <span class="pl-v">Array</span><span class="pl-kos">,</span> <span class="pl-c1">required</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-en">default</span>: <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">[</span><span class="pl-kos">]</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">data</span>: <span class="pl-kos">{</span> <span class="pl-c1">message</span>: <span class="pl-s">'Hello Vue.js!'</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-en">created</span>: <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">message</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div>
<h3 dir="auto">Version</h3> <p dir="auto">2.5.13</p> <h3 dir="auto">Steps to reproduce</h3> <p dir="auto">Create a simple component using Typescript:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import Vue from &quot;vue&quot; Vue.extend({ props: { myProp: { type: Array, }, }, computed: { myComputed(): string { return &quot;hello&quot; }, otherComputed(): string { return this.myComputed }, }, })"><pre class="notranslate"><code class="notranslate">import Vue from "vue" Vue.extend({ props: { myProp: { type: Array, }, }, computed: { myComputed(): string { return "hello" }, otherComputed(): string { return this.myComputed }, }, }) </code></pre></div> <p dir="auto">We have the following error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" TS2322: Type '(() =&gt; any) | ComputedOptions&lt;any&gt;' is not assignable to type 'string'. Type '() =&gt; any' is not assignable to type 'string'."><pre class="notranslate"><code class="notranslate"> TS2322: Type '(() =&gt; any) | ComputedOptions&lt;any&gt;' is not assignable to type 'string'. Type '() =&gt; any' is not assignable to type 'string'. </code></pre></div> <p dir="auto">If we change the type of the prop to <code class="notranslate">String</code>, <code class="notranslate">Number</code> or smtg else we don't have this problem anymore</p> <h3 dir="auto">What is expected?</h3> <p dir="auto">No error</p> <h3 dir="auto">What is actually happening?</h3> <p dir="auto">Errors</p> <hr> <p dir="auto">This problem was not happening with the previous Typescript versions (at least 2.5.2)</p>
1
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 4.1.0</li> <li>Operating System / Platform =&gt; Android API Level 28 (Patch: June 1st, 2019)</li> <li>Compiler =&gt; clang++ 7.0</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">Using <code class="notranslate">JavaCamera2View</code> will output a faulty camera image as shown below if the aspect ratio of the preview size, calculated by <code class="notranslate">calcPreviewSize</code>, does not match up with the actual screen aspect ratio.</p> <details> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/22560425/60259434-88155200-98d7-11e9-8fef-90d6633544f9.png"><img src="https://user-images.githubusercontent.com/22560425/60259434-88155200-98d7-11e9-8fef-90d6633544f9.png" alt="device-2019-06-27-122401" style="max-width: 100%;"></a></p> </details> <p dir="auto">For reference, the device I tested this on is a Xiaomi Mi A1 with the latest patches installed. It has a device screen size of 1920x1080. The calculated preview size, which is also being used in the image above, is 1440x1080. This results in an aspect ratio of 4:3 as opposed to the screen aspect ratio of 16:9. The highest preview size with the same aspect ratio as provided by the device is 1280x720. Here's a small snippet of the device's reported available preview sizes:</p> <ul dir="auto"> <li>1440x1080 (automatically picked as "best")</li> <li>1280x960</li> <li>1280x720 (should be picked as "best")</li> <li>1280x640</li> <li>864x480</li> <li>...</li> </ul> <p dir="auto">This behavior is due to <code class="notranslate">calcPreviewSize</code> assuming that the first output size provided by <code class="notranslate">getOutputSizes</code> <a href="https://github.com/opencv/opencv/blob/b95e93c20ab3df34c110385539952e5abcff3715/modules/java/generator/android-21/java/org/opencv/android/JavaCamera2View.java#L264">can be assumed as the "best" preview size from the start</a>. Deleting the two lines before looping over all available preview sizes fixes this behavior. Just for reference, the image below is the same scene as above but with the two lines deleted.</p> <details> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/22560425/60260502-0541c680-98da-11e9-9d00-1111b6177a7e.png"><img src="https://user-images.githubusercontent.com/22560425/60260502-0541c680-98da-11e9-9d00-1111b6177a7e.png" alt="device-2019-06-27-122256" style="max-width: 100%;"></a></p> </details> <p dir="auto">I'm willing to submit a PR since this fix is just deleting two lines of code. However I'd like to see if someone is able to confirm this behavior.</p> <h5 dir="auto">Steps to reproduce</h5> <p dir="auto">Haven't found a way to reproduce it yet because it seems to be an issue that heavily depends on the device (and I only have one device to test it on). However overriding the call to <code class="notranslate">calcPreviewSize</code> in <code class="notranslate">connectCamera</code> with dimensions smaller than the device's screen dimensions should evoke this behavior.</p>
<ul dir="auto"> <li>OpenCV version: 2.4</li> <li>Host OS: Android 6.0</li> </ul> <p dir="auto"><a href="https://support.google.com/faqs/answer/7011127" rel="nofollow">https://support.google.com/faqs/answer/7011127</a></p>
0
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=egervari" rel="nofollow">Ken Egervari</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-6989?redirect=false" rel="nofollow">SPR-6989</a></strong> and commented</p> <p dir="auto">I have some code that purposefully puts "[" and "]" in the path, which eventually gets rendered to the id and name attributes on the input tag.</p> <p dir="auto">Code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;@springForm.input type=type attributes=attributes path=path htmlEscape=&quot;true&quot; /&gt;&lt;br/&gt;"><pre class="notranslate"><code class="notranslate">&lt;@springForm.input type=type attributes=attributes path=path htmlEscape="true" /&gt;&lt;br/&gt; </code></pre></div> <p dir="auto">At a high level, it gets used like this:<br> Code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;@form.text path=&quot;studentAnswer.answers[${chunk.text}]&quot; /&gt;"><pre class="notranslate"><code class="notranslate">&lt;@form.text path="studentAnswer.answers[${chunk.text}]" /&gt; </code></pre></div> <p dir="auto">Unfortunately, spring's tag library is removing the "[" and "]", so what is left over is a giant string value. I <strong>must</strong> use this pattern since this page has multiple input fields that are totally random based on the list of text chunks.</p> <p dir="auto">Each form value is supposed to map to this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="private Map&lt;String,String&gt; answers = new HashMap&lt;String, String&gt;();"><pre class="notranslate"><code class="notranslate">private Map&lt;String,String&gt; answers = new HashMap&lt;String, String&gt;(); </code></pre></div> <p dir="auto">Of course, when the server tries to get the values, there are NPE's everywhere due to Spring's stupidity.</p> <p dir="auto">How did this break? I was using plain html before, and I just recently switched over to the tag library because it was the only way to get multipart's working correctly. Otherwise, Spring didn't pass the MultipartFile object to the domain object. I tried everything, and this is what fixed it.</p> <p dir="auto">Now that I have converted about 50 forms to use the tag library, I have finally arrived to the 1 outlier form that does not covert over successfully. Sigh.</p> <p dir="auto">Please tell me how I can get this to work so I can get this production code launched.</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.0.1</p> <p dir="auto"><strong>Reference URL:</strong> <a href="http://forum.springsource.org/showthread.php?t=86199" rel="nofollow">http://forum.springsource.org/showthread.php?t=86199</a></p> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398103974" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11672" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11672/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11672">#11672</a> AbstractDataBoundFormElementTag generates incorrect input name attribute when using indexed properties (<em><strong>"is duplicated by"</strong></em>)</li> </ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=guitarking117" rel="nofollow">Nick Williams</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-6363?redirect=false" rel="nofollow">SPR-6363</a></strong> and commented</p> <p dir="auto">Currently, Spring DAO has an org.springframework.dao.DuplicateKeyException that extends org.springframework.dao.DataIntegrityViolationException. This exception indicates that the specific data integrity violation was due to a unique key violation. It is very helpful in determining specific errors that occurred in an application.</p> <p dir="auto">However, if I want to determine if a data integrity violation was due to a foreign key violation, I have to test e.getMessage().toLowerCase().contains("foreign key").</p> <p dir="auto">I think Spring would be greatly improved if there were a ForeignKeyException that, by whatever way duplicate key violations are detected and thrown as a DuplicateKeyException, would be thrown if foreign key violations are detected.</p> <p dir="auto">Let me know if you have any questions.</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.0 RC2</p>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.6.6</li> <li>Operating System version: *nix</li> <li>Java version: 1.7</li> </ul> <p dir="auto">When we use complex arguments, in telnet mode , we need use jsonArray to parse.<br> But in our code ,someone try to resolve an overwrite problem ,so make an issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="159891353" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/257" data-hovercard-type="issue" data-hovercard-url="/apache/dubbo/issues/257/hovercard" href="https://github.com/apache/dubbo/issues/257">#257</a><br> then <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/beiwei30/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/beiwei30">@beiwei30</a> try to fix this issue use this code below <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/apache/dubbo/commit/27917f2e86bbd97ee047d69817730a57bdf5ad6b/hovercard" href="https://github.com/apache/dubbo/commit/27917f2e86bbd97ee047d69817730a57bdf5ad6b"><tt>27917f2</tt></a></p> <p dir="auto">The code will make the default method not take effect.</p> <p dir="auto">The code before like this</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" private static Method findMethod(Exporter&lt;?&gt; exporter, String method, List&lt;Object&gt; args) { Invoker&lt;?&gt; invoker = exporter.getInvoker(); Method[] methods = invoker.getInterface().getMethods(); Method invokeMethod = null; for (Method m : methods) { if (m.getName().equals(method) &amp;&amp; m.getParameterTypes().length == args.size()) { if (invokeMethod != null) { // ้‡่ฝฝ if (isMatch(invokeMethod.getParameterTypes(), args)) { invokeMethod = m; break; } } else { invokeMethod = m; } invoker = exporter.getInvoker(); } } return invokeMethod;"><pre class="notranslate"> <span class="pl-k">private</span> <span class="pl-k">static</span> <span class="pl-smi">Method</span> <span class="pl-s1">findMethod</span>(<span class="pl-smi">Exporter</span>&lt;?&gt; <span class="pl-s1">exporter</span>, <span class="pl-smi">String</span> <span class="pl-s1">method</span>, <span class="pl-smi">List</span>&lt;<span class="pl-smi">Object</span>&gt; <span class="pl-s1">args</span>) { <span class="pl-smi">Invoker</span>&lt;?&gt; <span class="pl-s1">invoker</span> = <span class="pl-s1">exporter</span>.<span class="pl-en">getInvoker</span>(); <span class="pl-smi">Method</span>[] <span class="pl-s1">methods</span> = <span class="pl-s1">invoker</span>.<span class="pl-en">getInterface</span>().<span class="pl-en">getMethods</span>(); <span class="pl-smi">Method</span> <span class="pl-s1">invokeMethod</span> = <span class="pl-c1">null</span>; <span class="pl-k">for</span> (<span class="pl-smi">Method</span> <span class="pl-s1">m</span> : <span class="pl-s1">methods</span>) { <span class="pl-k">if</span> (<span class="pl-s1">m</span>.<span class="pl-en">getName</span>().<span class="pl-en">equals</span>(<span class="pl-s1">method</span>) &amp;&amp; <span class="pl-s1">m</span>.<span class="pl-en">getParameterTypes</span>().<span class="pl-s1">length</span> == <span class="pl-s1">args</span>.<span class="pl-en">size</span>()) { <span class="pl-k">if</span> (<span class="pl-s1">invokeMethod</span> != <span class="pl-c1">null</span>) { <span class="pl-c">// ้‡่ฝฝ</span> <span class="pl-k">if</span> (<span class="pl-en">isMatch</span>(<span class="pl-s1">invokeMethod</span>.<span class="pl-en">getParameterTypes</span>(), <span class="pl-s1">args</span>)) { <span class="pl-s1">invokeMethod</span> = <span class="pl-s1">m</span>; <span class="pl-k">break</span>; } } <span class="pl-k">else</span> { <span class="pl-s1">invokeMethod</span> = <span class="pl-s1">m</span>; } <span class="pl-s1">invoker</span> = <span class="pl-s1">exporter</span>.<span class="pl-en">getInvoker</span>(); } } <span class="pl-k">return</span> <span class="pl-s1">invokeMethod</span>;</pre></div> <p dir="auto">We can have a default method with the the methodName and the same length arguments.<br> But after the code change , it must provides the correct arguments type. We should know<br> json parse cannot give the corrent type. It maybe JsonObject or even HashMap.<br> So someone points out this problem <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="379014397" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/2766" data-hovercard-type="issue" data-hovercard-url="/apache/dubbo/issues/2766/hovercard" href="https://github.com/apache/dubbo/issues/2766">#2766</a>.<br> In my opinion ,we should not define the same name method. Such as retry or timeout , these configs may just take effect in method or service or provider .In these cases ,methodName can stands for method. That is to say ,a lot of configs just consider the method name .<br> In dubbo 2.7.x, for this issue ,dubbo provides a new telnet command called select.<br> So ,We should consider which is 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/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.3</li> <li>Operating System version: win7</li> <li>Java version: jdk8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>define a service Interface like this.</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="public interface HelloBOMService { PersonResponseType get(PersonRequestType request) throws Exception; }"><pre class="notranslate"><code class="notranslate">public interface HelloBOMService { PersonResponseType get(PersonRequestType request) throws Exception; } </code></pre></div> <ol start="2" dir="auto"> <li>getServiceDefinition and print Method Parameter</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" ServiceDefinition serviceDefinition = ServiceDefinitionBuilder.build(HelloBOMService.class); System.out.println(serviceDefinition.getMethods().get(0).getParameters());"><pre class="notranslate"><code class="notranslate"> ServiceDefinition serviceDefinition = ServiceDefinitionBuilder.build(HelloBOMService.class); System.out.println(serviceDefinition.getMethods().get(0).getParameters()); </code></pre></div> <ol start="3" dir="auto"> <li> <p dir="auto">the methodDefition return an empty list</p> </li> <li> <p dir="auto">Extends TypeBuilder to construct Protobuf typeBuilder and add SPI file.</p> </li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@SPI public interface TypeBuilder {"><pre class="notranslate"><code class="notranslate">@SPI public interface TypeBuilder { </code></pre></div> <ol start="2" dir="auto"> <li>Use serviceDefition.getTypes() to obtains all TypeDefinitions. It is nessary to know which TypeDefinitionBuilder build this TypeDefition.When TypeBuilder generate same ServiceDefinition<br> use different logic.</li> </ol> <h3 dir="auto">Expected Result</h3> <p dir="auto">We could get parameter type list from MethodDefition.<br> We should know which Builder build this TypeDefition.</p>
0
<p dir="auto">how the heck im able to change the font preference to get my zsh terminal work flawlessly with agnoster theme</p>
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 10.0.18363.0 Windows Terminal version (if applicable): v0.5.2661.0 Any other software? PowerShell Core 6.2.2 is also installed."><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 10.0.18363.0 Windows Terminal version (if applicable): v0.5.2661.0 Any other software? PowerShell Core 6.2.2 is also installed. </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <ol dir="auto"> <li>Install windows terminal from either Microsoft Store, or via download from GitHub release.</li> <li>Try to launch the terminal.</li> </ol> <p dir="auto">Have tried un-installing/re-installing/rebooting multiple times to no avail.</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Terminal should launch, and at least show an error message.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">Terminal immediately crashes, you can see the ghost of a window frame before it disappears.</p>
0
<p dir="auto">Failed to resolve: glide-parent:library:unspecified</p> <p dir="auto">using<br> compile 'com.github.bumptech.glide:okhttp3-integration:1.4.0@jar' and<br> compile 'com.github.bumptech.glide:okhttp3-integration:1.4.0'</p>
<p dir="auto">It seems like something has gone wrong while deploying the OkHttp3 integration to the Maven repos</p> <p dir="auto"><a href="http://repo1.maven.org/maven2/com/github/bumptech/glide/okhttp3-integration/1.4.0/okhttp3-integration-1.4.0.pom" rel="nofollow">http://repo1.maven.org/maven2/com/github/bumptech/glide/okhttp3-integration/1.4.0/okhttp3-integration-1.4.0.pom</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;dependencies&gt; &lt;dependency&gt; &lt;groupId&gt;glide-parent&lt;/groupId&gt; &lt;artifactId&gt;library&lt;/artifactId&gt; &lt;version&gt;unspecified&lt;/version&gt; &lt;scope&gt;compile&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;com.squareup.okhttp3&lt;/groupId&gt; &lt;artifactId&gt;okhttp&lt;/artifactId&gt; &lt;version&gt;3.0.1&lt;/version&gt; &lt;scope&gt;compile&lt;/scope&gt; &lt;/dependency&gt; &lt;/dependencies&gt;"><pre class="notranslate"><code class="notranslate">&lt;dependencies&gt; &lt;dependency&gt; &lt;groupId&gt;glide-parent&lt;/groupId&gt; &lt;artifactId&gt;library&lt;/artifactId&gt; &lt;version&gt;unspecified&lt;/version&gt; &lt;scope&gt;compile&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;com.squareup.okhttp3&lt;/groupId&gt; &lt;artifactId&gt;okhttp&lt;/artifactId&gt; &lt;version&gt;3.0.1&lt;/version&gt; &lt;scope&gt;compile&lt;/scope&gt; &lt;/dependency&gt; &lt;/dependencies&gt; </code></pre></div> <p dir="auto">The dependency to Glide itself is wrong and doesn't work.</p> <p dir="auto"><strike>Workaround for now:</strike></p><strike> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" compile 'com.github.bumptech.glide:glide:3.7.0' compile ('com.github.bumptech.glide:okhttp3-integration:1.4.0'){ exclude group: 'glide-parent' }"><pre class="notranslate"><code class="notranslate"> compile 'com.github.bumptech.glide:glide:3.7.0' compile ('com.github.bumptech.glide:okhttp3-integration:1.4.0'){ exclude group: 'glide-parent' } </code></pre></div> </strike> <p dir="auto"><strong>1.5.0 is released, there should be no workaround needed</strong></p>
1
<p dir="auto"><a href="https://www.dropbox.com/s/rgy9iqt9o8pvfdl/wontplot.pandas" rel="nofollow">https://www.dropbox.com/s/rgy9iqt9o8pvfdl/wontplot.pandas</a></p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [3]: s = pd.load('wontplot.pandas') In [5]: s.plot() Traceback (most recent call last): File &quot;&lt;ipython-input-5-d3eb09d34df4&gt;&quot;, line 1, in &lt;module&gt; s.plot() File &quot;C:\dev\bin\Python27\lib\site-packages\pandas\tools\plotting.py&quot;, line 1727, in plot_series plot_obj.generate() File &quot;C:\dev\bin\Python27\lib\site-packages\pandas\tools\plotting.py&quot;, line 853, in generate self._make_plot() File &quot;C:\dev\bin\Python27\lib\site-packages\pandas\tools\plotting.py&quot;, line 1241, in _make_plot x = self._get_xticks(convert_period=True) File &quot;C:\dev\bin\Python27\lib\site-packages\pandas\tools\plotting.py&quot;, line 1031, in _get_xticks self.data = self.data.reindex(index=index.order()) File &quot;C:\dev\bin\Python27\lib\site-packages\pandas\core\series.py&quot;, line 2638, in reindex return Series(new_values, index=new_index, name=self.name) File &quot;C:\dev\bin\Python27\lib\site-packages\pandas\core\series.py&quot;, line 489, in __new__ subarr.index = index File &quot;properties.pyx&quot;, line 74, in pandas.lib.SeriesIndex.__set__ (pandas\lib.c:29092) AssertionError: Index length did not match values In [6]: s.index.shape Out[6]: (480,) In [7]: s.values.shape Out[7]: (480,)"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">3</span>]: <span class="pl-s1">s</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">load</span>(<span class="pl-s">'wontplot.pandas'</span>) <span class="pl-v">In</span> [<span class="pl-c1">5</span>]: <span class="pl-s1">s</span>.<span class="pl-en">plot</span>() <span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>): <span class="pl-v">File</span> <span class="pl-s">"&lt;ipython-input-5-d3eb09d34df4&gt;"</span>, <span class="pl-s1">line</span> <span class="pl-c1">1</span>, <span class="pl-s1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span> <span class="pl-s1">s</span>.<span class="pl-en">plot</span>() <span class="pl-v">File</span> <span class="pl-s">"C:\dev<span class="pl-cce">\b</span>in\Python27\lib\site-packages\pandas<span class="pl-cce">\t</span>ools\plotting.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">1727</span>, <span class="pl-s1">in</span> <span class="pl-s1">plot_series</span> <span class="pl-s1">plot_obj</span>.<span class="pl-en">generate</span>() <span class="pl-v">File</span> <span class="pl-s">"C:\dev<span class="pl-cce">\b</span>in\Python27\lib\site-packages\pandas<span class="pl-cce">\t</span>ools\plotting.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">853</span>, <span class="pl-s1">in</span> <span class="pl-s1">generate</span> <span class="pl-s1">self</span>.<span class="pl-en">_make_plot</span>() <span class="pl-v">File</span> <span class="pl-s">"C:\dev<span class="pl-cce">\b</span>in\Python27\lib\site-packages\pandas<span class="pl-cce">\t</span>ools\plotting.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">1241</span>, <span class="pl-s1">in</span> <span class="pl-s1">_make_plot</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-en">_get_xticks</span>(<span class="pl-s1">convert_period</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-v">File</span> <span class="pl-s">"C:\dev<span class="pl-cce">\b</span>in\Python27\lib\site-packages\pandas<span class="pl-cce">\t</span>ools\plotting.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">1031</span>, <span class="pl-s1">in</span> <span class="pl-s1">_get_xticks</span> <span class="pl-s1">self</span>.<span class="pl-s1">data</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-s1">data</span>.<span class="pl-en">reindex</span>(<span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-s1">index</span>.<span class="pl-en">order</span>()) <span class="pl-v">File</span> <span class="pl-s">"C:\dev<span class="pl-cce">\b</span>in\Python27\lib\site-packages\pandas\core\series.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">2638</span>, <span class="pl-s1">in</span> <span class="pl-s1">reindex</span> <span class="pl-k">return</span> <span class="pl-v">Series</span>(<span class="pl-s1">new_values</span>, <span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-s1">new_index</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s1">self</span>.<span class="pl-s1">name</span>) <span class="pl-v">File</span> <span class="pl-s">"C:\dev<span class="pl-cce">\b</span>in\Python27\lib\site-packages\pandas\core\series.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">489</span>, <span class="pl-s1">in</span> <span class="pl-s1">__new__</span> <span class="pl-s1">subarr</span>.<span class="pl-s1">index</span> <span class="pl-c1">=</span> <span class="pl-s1">index</span> <span class="pl-v">File</span> <span class="pl-s">"properties.pyx"</span>, <span class="pl-s1">line</span> <span class="pl-c1">74</span>, <span class="pl-s1">in</span> <span class="pl-s1">pandas</span>.<span class="pl-s1">lib</span>.<span class="pl-v">SeriesIndex</span>.<span class="pl-en">__set__</span> (<span class="pl-s1">pandas</span>\l<span class="pl-s1">ib</span>.<span class="pl-s1">c</span>:<span class="pl-c1">29092</span>) <span class="pl-v">AssertionError</span>: <span class="pl-v">Index</span> <span class="pl-s1">length</span> <span class="pl-s1">did</span> <span class="pl-c1">not</span> <span class="pl-s1">match</span> <span class="pl-s1">values</span> <span class="pl-v">In</span> [<span class="pl-c1">6</span>]: <span class="pl-s1">s</span>.<span class="pl-s1">index</span>.<span class="pl-s1">shape</span> <span class="pl-v">Out</span>[<span class="pl-c1">6</span>]: (<span class="pl-c1">480</span>,) <span class="pl-v">In</span> [<span class="pl-c1">7</span>]: <span class="pl-s1">s</span>.<span class="pl-s1">values</span>.<span class="pl-s1">shape</span> <span class="pl-v">Out</span>[<span class="pl-c1">7</span>]: (<span class="pl-c1">480</span>,)</pre></div>
<p dir="auto">The following code prints False when run with Pandas 0.15.0, but True with 0.15.2; I'm using Python 2.7.6 on Ubuntu 14.04.1 in both cases. Is this change in behavior expected? (I was using has_duplicates to detect duplicate tuples in the index.)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import pandas as pd t = [(u'x', u'out', u'z', 5, u'y', u'in', u'z', 169), (u'x', u'out', u'z', 7, u'y', u'in', u'z', 119), (u'x', u'out', u'z', 9, u'y', u'in', u'z', 135), (u'x', u'out', u'z', 13, u'y', u'in', u'z', 145), (u'x', u'out', u'z', 14, u'y', u'in', u'z', 158), (u'x', u'out', u'z', 16, u'y', u'in', u'z', 122), (u'x', u'out', u'z', 17, u'y', u'in', u'z', 160), (u'x', u'out', u'z', 18, u'y', u'in', u'z', 180), (u'x', u'out', u'z', 20, u'y', u'in', u'z', 143), (u'x', u'out', u'z', 21, u'y', u'in', u'z', 128), (u'x', u'out', u'z', 22, u'y', u'in', u'z', 129), (u'x', u'out', u'z', 25, u'y', u'in', u'z', 111), (u'x', u'out', u'z', 28, u'y', u'in', u'z', 114), (u'x', u'out', u'z', 29, u'y', u'in', u'z', 121), (u'x', u'out', u'z', 31, u'y', u'in', u'z', 126), (u'x', u'out', u'z', 32, u'y', u'in', u'z', 155), (u'x', u'out', u'z', 33, u'y', u'in', u'z', 123), (u'x', u'out', u'z', 12, u'y', u'in', u'z', 144)] idx = pd.MultiIndex.from_tuples(t) print idx.has_duplicates"><pre class="notranslate"><code class="notranslate">import pandas as pd t = [(u'x', u'out', u'z', 5, u'y', u'in', u'z', 169), (u'x', u'out', u'z', 7, u'y', u'in', u'z', 119), (u'x', u'out', u'z', 9, u'y', u'in', u'z', 135), (u'x', u'out', u'z', 13, u'y', u'in', u'z', 145), (u'x', u'out', u'z', 14, u'y', u'in', u'z', 158), (u'x', u'out', u'z', 16, u'y', u'in', u'z', 122), (u'x', u'out', u'z', 17, u'y', u'in', u'z', 160), (u'x', u'out', u'z', 18, u'y', u'in', u'z', 180), (u'x', u'out', u'z', 20, u'y', u'in', u'z', 143), (u'x', u'out', u'z', 21, u'y', u'in', u'z', 128), (u'x', u'out', u'z', 22, u'y', u'in', u'z', 129), (u'x', u'out', u'z', 25, u'y', u'in', u'z', 111), (u'x', u'out', u'z', 28, u'y', u'in', u'z', 114), (u'x', u'out', u'z', 29, u'y', u'in', u'z', 121), (u'x', u'out', u'z', 31, u'y', u'in', u'z', 126), (u'x', u'out', u'z', 32, u'y', u'in', u'z', 155), (u'x', u'out', u'z', 33, u'y', u'in', u'z', 123), (u'x', u'out', u'z', 12, u'y', u'in', u'z', 144)] idx = pd.MultiIndex.from_tuples(t) print idx.has_duplicates </code></pre></div> <p dir="auto">Reference on StackOverflow <a href="http://stackoverflow.com/questions/27473093/understanding-the-pandas-multiindex-has-duplicates-property" rel="nofollow">here</a>.</p>
0
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong><br> I am not sure,maybe it's just a question.</p> <p dir="auto"><strong>What is the current behavior?</strong><br> I fork the lasted master branch of react,and execute <code class="notranslate">npm run build</code> at the root directory.But get some errors below:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="D:\WebStorm_workspace\react&gt;npm run build &gt; [email protected] build D:\WebStorm_workspace\react &gt; npm run version-check &amp;&amp; node scripts/rollup/build.js &gt; [email protected] build D:\WebStorm_workspace\react &gt; npm run version-check &amp;&amp; node scripts/rollup/build.js &gt; [email protected] version-check D:\WebStorm_workspace\react &gt; node ./scripts/tasks/version-check.js STARTING react.development.js (umd_dev) -- PARSE_ERROR (undefined) -- Unterminated string constant { file: 'D:\\WebStorm_workspace\\react\\src\\isomorphic\\React.js', line: 9, column: 7 } undefined npm ERR! Windows_NT 6.1.7601 npm ERR! argv &quot;D:\\nodejs\\node.exe&quot; &quot;D:\\nodejs\\node_modules\\npm\\bin\\npm-cli.js&quot; &quot;run&quot; &quot;build&quot; npm ERR! node v6.3.0 npm ERR! npm v3.10.3 npm ERR! code ELIFECYCLE npm ERR! [email protected] build: `npm run version-check &amp;&amp; node scripts/rollup/build.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] build script 'npm run version-check &amp;&amp; node scripts/rollup/build.js'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the react-build package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! npm run version-check &amp;&amp; node scripts/rollup/build.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs react-build npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls react-build npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! D:\WebStorm_workspace\react\npm-debug.log "><pre class="notranslate"><code class="notranslate">D:\WebStorm_workspace\react&gt;npm run build &gt; [email protected] build D:\WebStorm_workspace\react &gt; npm run version-check &amp;&amp; node scripts/rollup/build.js &gt; [email protected] build D:\WebStorm_workspace\react &gt; npm run version-check &amp;&amp; node scripts/rollup/build.js &gt; [email protected] version-check D:\WebStorm_workspace\react &gt; node ./scripts/tasks/version-check.js STARTING react.development.js (umd_dev) -- PARSE_ERROR (undefined) -- Unterminated string constant { file: 'D:\\WebStorm_workspace\\react\\src\\isomorphic\\React.js', line: 9, column: 7 } undefined npm ERR! Windows_NT 6.1.7601 npm ERR! argv "D:\\nodejs\\node.exe" "D:\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build" npm ERR! node v6.3.0 npm ERR! npm v3.10.3 npm ERR! code ELIFECYCLE npm ERR! [email protected] build: `npm run version-check &amp;&amp; node scripts/rollup/build.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] build script 'npm run version-check &amp;&amp; node scripts/rollup/build.js'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the react-build package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! npm run version-check &amp;&amp; node scripts/rollup/build.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs react-build npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls react-build npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! D:\WebStorm_workspace\react\npm-debug.log </code></pre></div> <p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via <a href="https://jsfiddle.net" rel="nofollow">https://jsfiddle.net</a> or similar (template: <a href="https://jsfiddle.net/84v837e9/" rel="nofollow">https://jsfiddle.net/84v837e9/</a>).</strong></p> <p dir="auto"><strong>What is the expected behavior?</strong><br> Build successfully.</p> <p dir="auto"><strong>Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?</strong><br> 16.0.0-alpha.11 .Windows.I am not sure whether it is fine in previous versions of React,this is my first build</p>
<p dir="auto">$ npm run build</p> <blockquote> <p dir="auto">[email protected] build D:\github\react<br> npm run version-check &amp;&amp; node scripts/rollup/build.js</p> </blockquote> <blockquote> <p dir="auto">[email protected] version-check D:\github\react<br> node ./scripts/tasks/version-check.js</p> </blockquote> <p dir="auto">STARTING react.development.js (umd_dev)<br> Error: Could not load D:\github\react\node_modules\fbjs\lib\warning (imported by D:\github\react\src\isomorphic\modern\class\ReactNoopUpdateQueue.js): ENOENT: no such file or directory, open 'D:\github\react\node_modules\fbjs\lib\warning'<br> at D:\github\react\node_modules\rollup\dist\rollup.js:9461:10</p> <p dir="auto">But I can found the package in the node_modules.(win10 64)</p>
1
<p dir="auto">It appears there's no way to apply hidden-xs (or other of the hidden classes) to inline elements. In my particular case, I'd like helper text to appear to the right of my horizontal form fields -- but not on smartphones where form fields use 100% width.</p> <p dir="auto">I suggest adding a span.hidden-xs style (simlarly to the existing td.hidden-xs style), so using the span tag will allow for inline hidden elements when necessary. This would be an easy fix, adding only a small bit of CSS, and rather intuitive.</p> <p dir="auto">Note that the span.hidden-xs style cannot be added outside of the bootstrap CSS file, since it will not apply in the proper order. So my workaround was to create a new hidden-xs-inline class for my use.</p>
<p dir="auto">related to issues <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="16856611" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/8500" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/8500/hovercard" href="https://github.com/twbs/bootstrap/pull/8500">#8500</a> , <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="14075731" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/7808" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/7808/hovercard" href="https://github.com/twbs/bootstrap/issues/7808">#7808</a> , <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="6609454" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/4929" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/4929/hovercard" href="https://github.com/twbs/bootstrap/issues/4929">#4929</a> ; using <code class="notranslate">.hidden-sm</code> to hide span within <code class="notranslate">.nav &gt; li &gt; a</code> . Because class is <code class="notranslate">display: block</code> above -sm then text wraps to new line. Would you consider <code class="notranslate">.hidden-*</code> classes to be <code class="notranslate">display: inline-block</code> instead ?</p> <p dir="auto">Here's a jsfiddle of the two cases - but the repercussions could be greater outside of this situation so probably needs more consideration... <a href="http://jsfiddle.net/jholl/P86yf/" rel="nofollow">http://jsfiddle.net/jholl/P86yf/</a></p>
1
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="yes 1234567 | head -1000000 &gt; test.txt julia -e &quot;versioninfo()&quot; julia test.jl juliav7 -e &quot;versioninfo()&quot; juliav7 test.jl"><pre class="notranslate">yes 1234567 <span class="pl-k">|</span> head -1000000 <span class="pl-k">&gt;</span> test.txt julia -e <span class="pl-s"><span class="pl-pds">"</span>versioninfo()<span class="pl-pds">"</span></span> julia test.jl juliav7 -e <span class="pl-s"><span class="pl-pds">"</span>versioninfo()<span class="pl-pds">"</span></span> juliav7 test.jl</pre></div> <p dir="auto">Gives</p> <blockquote> <p dir="auto">julia version 0.6.0<br> 0.823502 seconds (286.43 k allocations: 31.633 MiB)<br> 1.165942 seconds (3.09 M allocations: 104.117 MiB, 48.31% gc time)<br> julia version 0.7.0<br> 6.022019 seconds (34.26 M allocations: 859.682 MiB, 4.85% gc time)<br> 5.411997 seconds (35.93 M allocations: 875.413 MiB, 4.22% gc time)</p> </blockquote> <p dir="auto">where test.jl is</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="if VERSION &gt;= v&quot;0.7.0&quot; using DelimitedFiles end @time readdlm(&quot;test.txt&quot;,' ', Int, '\n',dims=(1000000,1)) @time readdlm(&quot;test.txt&quot;)"><pre class="notranslate"><span class="pl-k">if</span> <span class="pl-c1">VERSION</span> <span class="pl-k">&gt;=</span> <span class="pl-s"><span class="pl-pds"><span class="pl-c1">v</span>"</span>0.7.0<span class="pl-pds">"</span></span> <span class="pl-k">using</span> DelimitedFiles <span class="pl-k">end</span> <span class="pl-c1">@time</span> <span class="pl-c1">readdlm</span>(<span class="pl-s"><span class="pl-pds">"</span>test.txt<span class="pl-pds">"</span></span>,<span class="pl-s"><span class="pl-pds">'</span> <span class="pl-pds">'</span></span>, Int, <span class="pl-s"><span class="pl-pds">'</span><span class="pl-cce">\n</span><span class="pl-pds">'</span></span>,dims<span class="pl-k">=</span>(<span class="pl-c1">1000000</span>,<span class="pl-c1">1</span>)) <span class="pl-c1">@time</span> <span class="pl-c1">readdlm</span>(<span class="pl-s"><span class="pl-pds">"</span>test.txt<span class="pl-pds">"</span></span>)</pre></div> <p dir="auto">Version Information Below:</p> <blockquote> <p dir="auto">Julia Version 0.6.0<br> Commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/JuliaLang/julia/commit/903644385b91ed8d95e5e3a5716c089dd1f1b08a/hovercard" href="https://github.com/JuliaLang/julia/commit/903644385b91ed8d95e5e3a5716c089dd1f1b08a"><tt>9036443</tt></a> (2017-06-19 13:05 UTC)<br> Platform Info:<br> OS: Linux (x86_64-pc-linux-gnu)<br> CPU: Intel(R) Xeon(R) CPU E7-8860 v4 @ 2.20GHz<br> WORD_SIZE: 64<br> BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)<br> LAPACK: libopenblas64_<br> LIBM: libopenlibm<br> LLVM: libLLVM-3.9.1 (ORCJIT, broadwell)</p> <p dir="auto">Julia Version 0.7.0<br> Commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/JuliaLang/julia/commit/a4cb80f3edcf8cea00bd9660e3b65f544f41462f/hovercard" href="https://github.com/JuliaLang/julia/commit/a4cb80f3edcf8cea00bd9660e3b65f544f41462f"><tt>a4cb80f</tt></a> (2018-08-08 06:46 UTC)<br> Platform Info:<br> OS: Linux (x86_64-pc-linux-gnu)<br> CPU: Intel(R) Xeon(R) CPU E7-8860 v4 @ 2.20GHz<br> WORD_SIZE: 64<br> LIBM: libopenlibm<br> LLVM: libLLVM-6.0.0 (ORCJIT, broadwell)</p> </blockquote>
<p dir="auto">The deprecation warning for <code class="notranslate">readcsv</code> reads:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; @time dat = readcsv(&quot;./data/EURUSD-2015-03.csv&quot;) โ”Œ Warning: `readcsv(io; opts...)` is deprecated, use `readdlm(io, ','; opts...)` instead."><pre class="notranslate"><code class="notranslate">julia&gt; @time dat = readcsv("./data/EURUSD-2015-03.csv") โ”Œ Warning: `readcsv(io; opts...)` is deprecated, use `readdlm(io, ','; opts...)` instead. </code></pre></div> <p dir="auto">with additional info given by</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR: WARNING: Base.readdlm is deprecated: it has been moved to the standard library package `DelimitedFiles`. Add `using DelimitedFiles` to your imports."><pre class="notranslate"><code class="notranslate">ERROR: WARNING: Base.readdlm is deprecated: it has been moved to the standard library package `DelimitedFiles`. Add `using DelimitedFiles` to your imports. </code></pre></div> <p dir="auto">Now on 0.6 for a 5177037x4 Matrix{Any}</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; @time dat = readcsv(&quot;./data/EURUSD-2015-03.csv&quot;) 25.890791 seconds (83.21 M allocations: 2.709 GiB, 13.91% gc time) 5177037ร—4 Array{Any,2} &quot;EUR/USD&quot; &quot;20150302 00:00:00.237&quot; 1.11603 1.11614 ..."><pre class="notranslate"><code class="notranslate">julia&gt; @time dat = readcsv("./data/EURUSD-2015-03.csv") 25.890791 seconds (83.21 M allocations: 2.709 GiB, 13.91% gc time) 5177037ร—4 Array{Any,2} "EUR/USD" "20150302 00:00:00.237" 1.11603 1.11614 ... </code></pre></div> <p dir="auto">vs. 1.0</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; using DelimitedFiles julia&gt; @time dat = readdlm(&quot;./data/EURUSD-2015-03.csv&quot;, ',') 318.996088 seconds (1.03 G allocations: 23.877 GiB, 6.93% gc time) 5177037ร—4 Array{Any,2}: &quot;EUR/USD&quot; &quot;20150302 00:00:00.237&quot; 1.11603 1.11614 ..."><pre class="notranslate"><code class="notranslate">julia&gt; using DelimitedFiles julia&gt; @time dat = readdlm("./data/EURUSD-2015-03.csv", ',') 318.996088 seconds (1.03 G allocations: 23.877 GiB, 6.93% gc time) 5177037ร—4 Array{Any,2}: "EUR/USD" "20150302 00:00:00.237" 1.11603 1.11614 ... </code></pre></div>
1
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: [v1.35]</li> <li>Operating System: Windows 10</li> <li>Browser: Chromium</li> <li>Other info: Tested in both .NET 6 and .NET 7 project in Visual Studio 2022 17.6.4</li> </ul> <h3 dir="auto">Source code</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[TestFixture] public class PlaywrightPOCTest { private static IPlaywright playwright; private static IBrowser browser; private static IBrowserContext context; private static IPage page; [OneTimeSetUp] public static async Task DownloadBrowsers() { var exitCode = Microsoft.Playwright.Program.Main(new[] { &quot;install&quot; }); if (exitCode != 0) { throw new Exception($&quot;Playwright exited with code {exitCode}&quot;); } playwright = await Playwright.CreateAsync(); } [OneTimeSetUp] public static async Task EdgeDriverInitialize() { browser = await playwright.Chromium.LaunchAsync( new BrowserTypeLaunchOptions { Channel = &quot;msedge&quot;, Headless = true, /*SlowMo = 2000 */} ); context = await browser.NewContextAsync(); page = await context.NewPageAsync(); } [Test] public static async Task PlaywrightFileUpload() { var frame = page.MainFrame; await frame.GotoAsync(@&quot;http://www.fileconvoy.com/&quot;); Console.Log($&quot;Memory usage before upload: {System.Diagnostics.Process.GetCurrentProcess().PrivateMemorySize64}&quot;); await frame.Locator(&quot;id=upfile_0&quot;).SetInputFilesAsync(@&quot;C:\Users\testuser\Downloads\19588.pdf&quot;); Console.Log($&quot;Memory usage after upload: {System.Diagnostics.Process.GetCurrentProcess().PrivateMemorySize64}&quot;); await frame.Locator(&quot;id=readTermsOfUse&quot;).CheckAsync(); await frame.GetByRole(AriaRole.Button).GetByText(&quot;Upload&quot;).ClickAsync(); Console.Log($&quot;Memory usage after page navigation: {System.Diagnostics.Process.GetCurrentProcess().PrivateMemorySize64}&quot;); } [OneTimeTearDown] public static async Task EdgeDriverCleanup() { await context?.CloseAsync(); await browser?.CloseAsync(); playwright.Dispose(); } }"><pre class="notranslate"><code class="notranslate">[TestFixture] public class PlaywrightPOCTest { private static IPlaywright playwright; private static IBrowser browser; private static IBrowserContext context; private static IPage page; [OneTimeSetUp] public static async Task DownloadBrowsers() { var exitCode = Microsoft.Playwright.Program.Main(new[] { "install" }); if (exitCode != 0) { throw new Exception($"Playwright exited with code {exitCode}"); } playwright = await Playwright.CreateAsync(); } [OneTimeSetUp] public static async Task EdgeDriverInitialize() { browser = await playwright.Chromium.LaunchAsync( new BrowserTypeLaunchOptions { Channel = "msedge", Headless = true, /*SlowMo = 2000 */} ); context = await browser.NewContextAsync(); page = await context.NewPageAsync(); } [Test] public static async Task PlaywrightFileUpload() { var frame = page.MainFrame; await frame.GotoAsync(@"http://www.fileconvoy.com/"); Console.Log($"Memory usage before upload: {System.Diagnostics.Process.GetCurrentProcess().PrivateMemorySize64}"); await frame.Locator("id=upfile_0").SetInputFilesAsync(@"C:\Users\testuser\Downloads\19588.pdf"); Console.Log($"Memory usage after upload: {System.Diagnostics.Process.GetCurrentProcess().PrivateMemorySize64}"); await frame.Locator("id=readTermsOfUse").CheckAsync(); await frame.GetByRole(AriaRole.Button).GetByText("Upload").ClickAsync(); Console.Log($"Memory usage after page navigation: {System.Diagnostics.Process.GetCurrentProcess().PrivateMemorySize64}"); } [OneTimeTearDown] public static async Task EdgeDriverCleanup() { await context?.CloseAsync(); await browser?.CloseAsync(); playwright.Dispose(); } } </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 provided exact source code that allows reproducing the issue locally.</li> </ul> <p dir="auto"><strong>Steps</strong></p> <ul dir="auto"> <li>Download this ~30MB PDF from here: <a href="https://research.nhm.org/pdfs/19588/19588.pdf" rel="nofollow">https://research.nhm.org/pdfs/19588/19588.pdf</a></li> <li>Update path in SetInputFilesAsync() method to your file location</li> <li>Run PlaywrightFileUpload() test</li> </ul> <p dir="auto"><strong>Expected</strong></p> <p dir="auto">I would expect memory usage to increase temporarily by the uploaded filesize (~30MB) and then go away or be cleaned up fairly soon after page navigation occurs.</p> <p dir="auto"><strong>Actual</strong></p> <p dir="auto">Memory usage jumps from about 40MB to &gt;700MB just from the file upload and persists for quite a long time in other tests which do not involve file uploads. Sometimes I can get it to drop by forcing a GC using GC.Collect() several minutes later, but I definitely should not be doing that.</p> <p dir="auto">This has had an impact on long running scenarios where we are doing a file upload as the first dependency and then running several tests on a web app after the upload. It also affects concurrent runs in our framework due to out of memory issues. Fwiw, I took a memory snapshot inside VS, and it shows up as a large number of dead char[] objects which are outside of my code.</p>
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: 1.35.1</li> <li>Operating System: macOs 13.4 (22F66)</li> <li>Browser: Chrome</li> <li>Other info: UI mode</li> </ul> <h3 dir="auto">Source code</h3> <p dir="auto"><strong>Config file</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// playwright.config.ts import type { PlaywrightTestConfig } from '@playwright/test'; const config: PlaywrightTestConfig = { testDir: 'tests', }; export default config;"><pre class="notranslate"><span class="pl-c">// playwright.config.ts</span> <span class="pl-k">import</span> <span class="pl-s1">type</span> <span class="pl-kos">{</span> <span class="pl-v">PlaywrightTestConfig</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@playwright/test'</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">config</span>: <span class="pl-v">PlaywrightTestConfig</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">testDir</span>: <span class="pl-s">'tests'</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-s1">config</span><span class="pl-kos">;</span></pre></div> <p dir="auto">(edited to add <code class="notranslate">export default config;</code> which I forgot to copy across initially)</p> <p dir="auto"><strong>Test file (self-contained)</strong></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="test.only('exceptions inside a test are swallowed', async () =&gt; { expect(1).toBe(1); // this is reached and displayed in UI mode try { undefinedVariable1 = 'this throws an exception'; } catch (e) { expect(e).toBeTruthy(); // this is reached and displayed in UI mode } undefinedVariable1 = 'this throws an exception'; expect(1).toBe(1); // never reached, no indication of what went wrong });"><pre class="notranslate"><span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-en">only</span><span class="pl-kos">(</span><span class="pl-s">'exceptions inside a test are swallowed'</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-en">expect</span><span class="pl-kos">(</span><span class="pl-c1">1</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toBe</span><span class="pl-kos">(</span><span class="pl-c1">1</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// this is reached and displayed in UI mode</span> <span class="pl-k">try</span> <span class="pl-kos">{</span> <span class="pl-s1">undefinedVariable1</span> <span class="pl-c1">=</span> <span class="pl-s">'this throws an exception'</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">catch</span> <span class="pl-kos">(</span><span class="pl-s1">e</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">expect</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-en">toBeTruthy</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// this is reached and displayed in UI mode</span> <span class="pl-kos">}</span> <span class="pl-s1">undefinedVariable1</span> <span class="pl-c1">=</span> <span class="pl-s">'this throws an exception'</span><span class="pl-kos">;</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-c1">1</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toBe</span><span class="pl-kos">(</span><span class="pl-c1">1</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// never reached, no indication of what went wrong</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Steps</strong></p> <ul dir="auto"> <li>Run the test in UI mode</li> <li>Observe that the test fails</li> <li>Observe that you are not told why it fails</li> </ul> <p dir="auto"><strong>Expected</strong></p> <p dir="auto">Ideally:</p> <ul dir="auto"> <li>We should see that the test itself threw an exception</li> <li>We should see the content of the exception (eg <code class="notranslate">ReferenceError: undefinedVariable1 is not defined</code>)</li> <li>We should see the line of code where the exception was thrown</li> </ul> <p dir="auto">Note: if you run the tests on the command line, you do get helpful output:<br> <a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/19584280/247822966-956112b7-a03d-4243-b90e-cd8d2058e570.png"><img width="716" alt="Screenshot 2023-06-22 at 2 29 09 pm" src="https://user-images.githubusercontent.com/19584280/247822966-956112b7-a03d-4243-b90e-cd8d2058e570.png" style="max-width: 100%;"></a></p> <p dir="auto"><strong>Actual</strong></p> <ul dir="auto"> <li>The test is marked as failing</li> <li>But, there is no explanation why it failed</li> </ul> <a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/19584280/247823191-1e56e713-0b82-4c32-acec-4346aa998d1a.png"><img width="648" alt="247822621-ba7d9040-383a-42b4-af64-00e3a7b60c31" src="https://user-images.githubusercontent.com/19584280/247823191-1e56e713-0b82-4c32-acec-4346aa998d1a.png" style="max-width: 100%;"></a>
0
<p dir="auto"><a href="https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/metrics/regression.py#L313">https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/metrics/regression.py#L313</a></p> <p dir="auto">E..g, wrong in case y_true&gt;0 but y_pred&lt;=0. One should have:</p> <p dir="auto">if not (y_true &gt;= 0).all() or not (y_pred &gt;= 0).all():</p> <p dir="auto">or</p> <p dir="auto">if not ((y_true &gt;= 0).all() and (y_pred &gt;= 0).all()):</p>
<h4 dir="auto">Description</h4> <p dir="auto">I found problem, where mean_squared_log_error() function does not catch error.</p> <h4 dir="auto">Steps/Code to Reproduce</h4> <p dir="auto">Imagine simple situation, where regression model predicts negative value:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np y_true = np.array([1, 2, 3]) y_pred = np.array([1, -2, 3]) mean_squared_log_error(y_true, y_pred)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-s1">y_true</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>]) <span class="pl-s1">y_pred</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">1</span>, <span class="pl-c1">-</span><span class="pl-c1">2</span>, <span class="pl-c1">3</span>]) <span class="pl-en">mean_squared_log_error</span>(<span class="pl-s1">y_true</span>, <span class="pl-s1">y_pred</span>)</pre></div> <p dir="auto">This happened, when my regression model predicted 1 negative value (among thousands of positive values).</p> <h4 dir="auto">Expected correct behavior:</h4> <p dir="auto">Expected behavior is, that exception:<br> <em>ValueError("Mean Squared Logarithmic Error cannot be used when targets contain negative values.")</em><br> should be raised and correctly inform about the underlying problem.</p> <h4 dir="auto">Exact location, where is the bug</h4> <p dir="auto">Problematic code is exactly in sklearn/metrics/regression.py: (around line 313)</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="if not (y_true &gt;= 0).all() and not (y_pred &gt;= 0).all(): raise ValueError(&quot;Mean Squared Logarithmic Error cannot be used when &quot; &quot;targets contain negative values.&quot;)"><pre class="notranslate"><span class="pl-k">if</span> <span class="pl-c1">not</span> (<span class="pl-s1">y_true</span> <span class="pl-c1">&gt;=</span> <span class="pl-c1">0</span>).<span class="pl-en">all</span>() <span class="pl-c1">and</span> <span class="pl-c1">not</span> (<span class="pl-s1">y_pred</span> <span class="pl-c1">&gt;=</span> <span class="pl-c1">0</span>).<span class="pl-en">all</span>(): <span class="pl-k">raise</span> <span class="pl-v">ValueError</span>(<span class="pl-s">"Mean Squared Logarithmic Error cannot be used when "</span> <span class="pl-s">"targets contain negative values."</span>)</pre></div> <p dir="auto">The condition is not fully correct and evaluates to False for example above - which is wrong.<br> It should evaluate to True, and raise the exception.</p> <h4 dir="auto">Suggested solution:</h4> <p dir="auto">Just change the condition to:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="if (y_true &lt; 0).any() or (y_pred &lt; 0).any(): raise ValueError(&quot;Mean Squared Logarithmic Error cannot be used when &quot; &quot;targets contain negative values.&quot;)"><pre class="notranslate"><span class="pl-k">if</span> (<span class="pl-s1">y_true</span> <span class="pl-c1">&lt;</span> <span class="pl-c1">0</span>).<span class="pl-en">any</span>() <span class="pl-c1">or</span> (<span class="pl-s1">y_pred</span> <span class="pl-c1">&lt;</span> <span class="pl-c1">0</span>).<span class="pl-en">any</span>(): <span class="pl-k">raise</span> <span class="pl-v">ValueError</span>(<span class="pl-s">"Mean Squared Logarithmic Error cannot be used when "</span> <span class="pl-s">"targets contain negative values."</span>)</pre></div> <p dir="auto">so it catches the problem in case any of the <strong>y_true</strong> or <strong>y_pred</strong> contain negative value.</p>
1
<p dir="auto">Would it be possible to preserve the original window size, for windows that are maximized when dragged into a zone, so that they return to their last state if dragged from the zone? This would be similar to the way Windows 10 handles windows that are dragged after they are snapped to the edge of a screen.</p>
<p dir="auto">Summary of the new feature/enhancement:</p> <p dir="auto">The ability to show the system tray in multiple taskbars on different monitors, not being limited to the main one. Currently in Windows 10 there is no way to do that, and the taskbar on every monitor except the main one doesnt show any tray icons.</p>
0
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-give-your-javascript-slot-machine-some-stylish-images" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-give-your-javascript-slot-machine-some-stylish-images</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p> <p dir="auto">In this challenge, the step one of the solve condition "Use the provided code three times. One for each slot" works on the premise the code <code class="notranslate">$($('.slot')[0]).html('&lt;img src = "' + images[slotOne-1] + '"&gt;');</code> is copied and entered three times. The solution is not solved if the user directly enters in the correct solution without copying and pasting the code.<br> This seems like an unnecessary step.</p>
<p dir="auto">The tests are not covering the task fully. One can pass it by updating only slot 0 three times:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5458077/9340230/6d98125e-45a3-11e5-990d-11f572af3cd5.png"><img src="https://cloud.githubusercontent.com/assets/5458077/9340230/6d98125e-45a3-11e5-990d-11f572af3cd5.png" alt="slot_zero_three" style="max-width: 100%;"></a></p>
1
<p dir="auto"><a href="http://jsfiddle.net/7kJcG/" rel="nofollow">http://jsfiddle.net/7kJcG/</a></p> <p dir="auto">Idk, make them white or something</p>
<p dir="auto">If you put a link in a panel-primary panel heading, the link color matches the panel heading color, rendering the link virtually invisible:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/03d9590ab7e70f9df11bcba59ed46fd6834a4a3bda3daa81ffbfeeb88f7729ce/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3438393436352f323030353234302f39346165373130632d383664382d313165332d386662652d6138643663613331623161352e706e67"><img src="https://camo.githubusercontent.com/03d9590ab7e70f9df11bcba59ed46fd6834a4a3bda3daa81ffbfeeb88f7729ce/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3438393436352f323030353234302f39346165373130632d383664382d313165332d386662652d6138643663613331623161352e706e67" alt="image" data-canonical-src="https://f.cloud.github.com/assets/489465/2005240/94ae710c-86d8-11e3-8fbe-a8d6ca31b1a5.png" style="max-width: 100%;"></a></p> <p dir="auto">To change this, I put:</p> <p dir="auto">panel-primary a {<br> color: #fff;<br> }</p> <p dir="auto">in the custom.css file.</p>
1
<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>: No</li> <li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: Ubuntu 16.04.4</li> <li><strong>TensorFlow installed from (source or binary)</strong>: source</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>: 0.5.3</li> <li><strong>CUDA/cuDNN version</strong>: 6.0.21</li> <li><strong>GPU model and memory</strong>:</li> <li><strong>Exact command to reproduce</strong>: bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package</li> </ul> <h3 dir="auto">Describe the problem</h3> <p dir="auto">I know someone had reported the same issue. Their solution is to roll back bazel to 0.5.2. But it does not work on my machine. Does anyone know how to fix this problem without the need of rolling back bazel? Thx!</p> <blockquote> <p dir="auto">tensorflow-git$ sudo bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package<br> WARNING: ignoring http_proxy in environment.<br> .......<br> ERROR: Skipping '//tensorflow/tools/pip_package:build_pip_package': error loading package 'tensorflow/tools/pip_package': Encountered error while reading extension file 'cuda/build_defs.bzl': no such package '@local_config_cuda//cuda': Traceback (most recent call last):<br> File "/home/intel/DevLib/tensorflow-git/third_party/gpus/cuda_configure.bzl", line 1039<br> _create_local_cuda_repository(repository_ctx)<br> File "/home/intel/DevLib/tensorflow-git/third_party/gpus/cuda_configure.bzl", line 976, in _create_local_cuda_repository<br> _host_compiler_includes(repository_ctx, cc)<br> File "/home/intel/DevLib/tensorflow-git/third_party/gpus/cuda_configure.bzl", line 145, in _host_compiler_includes<br> get_cxx_inc_directories(repository_ctx, cc)<br> File "/home/intel/DevLib/tensorflow-git/third_party/gpus/cuda_configure.bzl", line 120, in get_cxx_inc_directories<br> set(includes_cpp)<br> depsets cannot contain mutable items<br> WARNING: Target pattern parsing failed.<br> ERROR: error loading package 'tensorflow/tools/pip_package': Encountered error while reading extension file 'cuda/build_defs.bzl': no such package '@local_config_cuda//cuda': Traceback (most recent call last):<br> File "/home/intel/DevLib/tensorflow-git/third_party/gpus/cuda_configure.bzl", line 1039<br> _create_local_cuda_repository(repository_ctx)<br> File "/home/intel/DevLib/tensorflow-git/third_party/gpus/cuda_configure.bzl", line 976, in _create_local_cuda_repository<br> _host_compiler_includes(repository_ctx, cc)<br> File "/home/intel/DevLib/tensorflow-git/third_party/gpus/cuda_configure.bzl", line 145, in _host_compiler_includes<br> get_cxx_inc_directories(repository_ctx, cc)<br> File "/home/intel/DevLib/tensorflow-git/third_party/gpus/cuda_configure.bzl", line 120, in get_cxx_inc_directories<br> set(includes_cpp)<br> depsets cannot contain mutable items<br> INFO: Elapsed time: 4.064s<br> FAILED: Build did NOT complete successfully (0 packages loaded)<br> currently loading: tensorflow/tools/pip_package</p> </blockquote>
<p dir="auto">Please go to Stack Overflow for help and support:</p> <h3 dir="auto">System information</h3> <ul dir="auto"> <li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>:</li> </ul> <p dir="auto">No</p> <ul dir="auto"> <li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>:</li> </ul> <p dir="auto">Linux โ€” Ubuntu Server 16.04 LTS</p> <p dir="auto">Linux PowerEdge-R810 4.4.0-87-generic <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="116236573" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/110" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/110/hovercard" href="https://github.com/tensorflow/tensorflow/issues/110">#110</a>-Ubuntu SMP Tue Jul 18 12:55:35 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux</p> <ul dir="auto"> <li><strong>TensorFlow installed from (source or binary)</strong>:</li> </ul> <p dir="auto">Source</p> <ul dir="auto"> <li><strong>TensorFlow version (use command below)</strong>:</li> </ul> <p dir="auto">master, r1.3, r1.2.1</p> <ul dir="auto"> <li><strong>Python version</strong>:</li> </ul> <p dir="auto">2.7</p> <ul dir="auto"> <li><strong>Bazel version (if compiling from source)</strong>:</li> </ul> <p dir="auto">Build label: 0.5.3<br> Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar<br> Build time: Fri Jul 28 08:34:59 2017 (1501230899)<br> Build timestamp: 1501230899<br> Build timestamp as int: 1501230899</p> <ul dir="auto"> <li><strong>CUDA/cuDNN version</strong>:</li> </ul> <p dir="auto">CUDA 8, cuDNN 6</p> <ul dir="auto"> <li><strong>GPU model and memory</strong>:</li> </ul> <p dir="auto">GTX 1080, 8gb</p> <ul dir="auto"> <li><strong>Exact command to reproduce</strong>:</li> </ul> <p dir="auto"><code class="notranslate">./configure;bazel build -c opt โ€”config=cuda //tensorflow/tools/pip_package:build_pip_package</code></p> <p dir="auto">-<strong>Premade script</strong>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="alex@PowerEdge-R810:~$ sh tf_env_collect.sh Collecting system information... tf_env_collect.sh: 39: [: Linux: unexpected operator tf_env_collect.sh: 41: [: Linux: unexpected operator Traceback (most recent call last): File &quot;/tmp/check_tf.py&quot;, line 1, in &lt;module&gt; import tensorflow as tf; ImportError: No module named tensorflow Wrote environment to tf_env.txt. You can review the contents of that file. and use it to populate the fields in the github issue template. cat tf_env.txt alex@PowerEdge-R810:~$ cat tf_env.txt == cat /etc/issue =============================================== Linux PowerEdge-R810 4.4.0-87-generic #110-Ubuntu SMP Tue Jul 18 12:55:35 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux == are we in docker ============================================= No == compiler ===================================================== c++ (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609 Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. == uname -a ===================================================== Linux PowerEdge-R810 4.4.0-87-generic #110-Ubuntu SMP Tue Jul 18 12:55:35 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux == check pips =================================================== numpy (1.11.0) == check for virtualenv ========================================= False == tensorflow import ============================================ Traceback (most recent call last): File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt; ImportError: No module named tensorflow == env ========================================================== LD_LIBRARY_PATH /usr/local/cuda-8.0/lib64 DYLD_LIBRARY_PATH is unset == nvidia-smi =================================================== Fri Jul 28 18:12:37 2017 +-----------------------------------------------------------------------------+ | NVIDIA-SMI 384.59 Driver Version: 384.59 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | |===============================+======================+======================| | 0 GeForce GTX 1080 Off | 00000000:0E:00.0 Off | N/A | | 37% 32C P0 32W / 180W | 0MiB / 8105MiB | 0% Default | +-------------------------------+----------------------+----------------------+ +-----------------------------------------------------------------------------+ | Processes: GPU Memory | | GPU PID Type Process name Usage | |=============================================================================| | No running processes found | +-----------------------------------------------------------------------------+ == cuda libs =================================================== /usr/local/cuda-8.0/lib64/libcudart_static.a /usr/local/cuda-8.0/lib64/libcudart.so.8.0.61 /usr/local/cuda-8.0/doc/man/man7/libcudart.7 /usr/local/cuda-8.0/doc/man/man7/libcudart.so.7"><pre class="notranslate"><code class="notranslate">alex@PowerEdge-R810:~$ sh tf_env_collect.sh Collecting system information... tf_env_collect.sh: 39: [: Linux: unexpected operator tf_env_collect.sh: 41: [: Linux: unexpected operator Traceback (most recent call last): File "/tmp/check_tf.py", line 1, in &lt;module&gt; import tensorflow as tf; ImportError: No module named tensorflow Wrote environment to tf_env.txt. You can review the contents of that file. and use it to populate the fields in the github issue template. cat tf_env.txt alex@PowerEdge-R810:~$ cat tf_env.txt == cat /etc/issue =============================================== Linux PowerEdge-R810 4.4.0-87-generic #110-Ubuntu SMP Tue Jul 18 12:55:35 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux == are we in docker ============================================= No == compiler ===================================================== c++ (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609 Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. == uname -a ===================================================== Linux PowerEdge-R810 4.4.0-87-generic #110-Ubuntu SMP Tue Jul 18 12:55:35 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux == check pips =================================================== numpy (1.11.0) == check for virtualenv ========================================= False == tensorflow import ============================================ Traceback (most recent call last): File "&lt;string&gt;", line 1, in &lt;module&gt; ImportError: No module named tensorflow == env ========================================================== LD_LIBRARY_PATH /usr/local/cuda-8.0/lib64 DYLD_LIBRARY_PATH is unset == nvidia-smi =================================================== Fri Jul 28 18:12:37 2017 +-----------------------------------------------------------------------------+ | NVIDIA-SMI 384.59 Driver Version: 384.59 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | |===============================+======================+======================| | 0 GeForce GTX 1080 Off | 00000000:0E:00.0 Off | N/A | | 37% 32C P0 32W / 180W | 0MiB / 8105MiB | 0% Default | +-------------------------------+----------------------+----------------------+ +-----------------------------------------------------------------------------+ | Processes: GPU Memory | | GPU PID Type Process name Usage | |=============================================================================| | No running processes found | +-----------------------------------------------------------------------------+ == cuda libs =================================================== /usr/local/cuda-8.0/lib64/libcudart_static.a /usr/local/cuda-8.0/lib64/libcudart.so.8.0.61 /usr/local/cuda-8.0/doc/man/man7/libcudart.7 /usr/local/cuda-8.0/doc/man/man7/libcudart.so.7 </code></pre></div> <h3 dir="auto">Describe the problem</h3> <p dir="auto">I am trying to compile tensorflow from source. When I run the above command, the bazel build fails. This is the configuration I used as well as the error. It seems like some other people had this issue but the threads were for much older versions and none of the solutions fixed it:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Please specify the location of python. [Default is /usr/bin/python]: Found possible Python library paths: /usr/local/lib/python2.7/dist-packages /usr/lib/python2.7/dist-packages Please input the desired Python library path to use. Default is /usr/local/lib/python2.7/dist-packages Do you wish to build TensorFlow with jemalloc as malloc support? [Y/n]: jemalloc as malloc support will be enabled for TensorFlow. Do you wish to build TensorFlow with Google Cloud Platform support? [y/N]: y Google Cloud Platform support will be enabled for TensorFlow. Do you wish to build TensorFlow with Hadoop File System support? [y/N]: No Hadoop File System support will be enabled for TensorFlow. Do you wish to build TensorFlow with XLA JIT support? [y/N]: No XLA JIT support will be enabled for TensorFlow. Do you wish to build TensorFlow with VERBS support? [y/N]: No VERBS support will be enabled for TensorFlow. Do you wish to build TensorFlow with OpenCL support? [y/N]: y OpenCL support will be enabled for TensorFlow. Please specify which C++ compiler should be used as the host C++ compiler. [Default is /usr/bin/g++]: Please specify which C compiler should be used as the host C compiler. [Default is /usr/bin/gcc]: Please specify the location where ComputeCpp for SYCL 1.2 is installed. [Default is /usr/local/computecpp]: Do you wish to build TensorFlow with CUDA support? [y/N]: y CUDA support will be enabled for TensorFlow. Please specify the CUDA SDK version you want to use, e.g. 7.0. [Leave empty to default to CUDA 8.0]: Please specify the location where CUDA 8.0 toolkit is installed. Refer to README.md for more details. [Default is /usr/local/cuda]: &quot;Please specify the cuDNN version you want to use. [Leave empty to default to cuDNN 6.0]: Please specify the location where cuDNN 6 library is installed. Refer to README.md for more details. [Default is /usr/local/cuda]: Please specify a list of comma-separated Cuda compute capabilities you want to build with. You can find the compute capability of your device at: https://developer.nvidia.com/cuda-gpus. Please note that each additional compute capability significantly increases your build time and binary size. [Default is: 6.1] Do you want to use clang as CUDA compiler? [y/N]: nvcc will be used as CUDA compiler. Please specify which gcc should be used by nvcc as the host compiler. [Default is /usr/bin/gcc]: Do you wish to build TensorFlow with MPI support? [y/N]: No MPI support will be enabled for TensorFlow. Please specify optimization flags to use during compilation when bazel option &quot;--config=opt&quot; is specified [Default is -march=native]: Add &quot;--config=mkl&quot; to your bazel command to build with MKL support. Please note that MKL on MacOS or windows is still not supported. If you would like to use a local MKL instead of downloading, please set the environment variable &quot;TF_MKL_ROOT&quot; every time before build. Configuration finished ............... ERROR: Skipping '//tensorflow/tools/pip_package:build_pip_package': error loading package 'tensorflow/tools/pip_package': Encountered error while reading extension file 'cuda/build_defs.bzl': no such package '@local_config_cuda//cuda': Traceback (most recent call last): File &quot;/home/alex/tensorflow/third_party/gpus/cuda_configure.bzl&quot;, line 1039 _create_local_cuda_repository(repository_ctx) File &quot;/home/alex/tensorflow/third_party/gpus/cuda_configure.bzl&quot;, line 976, in _create_local_cuda_repository _host_compiler_includes(repository_ctx, cc) File &quot;/home/alex/tensorflow/third_party/gpus/cuda_configure.bzl&quot;, line 145, in _host_compiler_includes get_cxx_inc_directories(repository_ctx, cc) File &quot;/home/alex/tensorflow/third_party/gpus/cuda_configure.bzl&quot;, line 120, in get_cxx_inc_directories set(includes_cpp) depsets cannot contain mutable items WARNING: Target pattern parsing failed. ERROR: error loading package 'tensorflow/tools/pip_package': Encountered error while reading extension file 'cuda/build_defs.bzl': no such package '@local_config_cuda//cuda': Traceback (most recent call last): File &quot;/home/alex/tensorflow/third_party/gpus/cuda_configure.bzl&quot;, line 1039 _create_local_cuda_repository(repository_ctx) File &quot;/home/alex/tensorflow/third_party/gpus/cuda_configure.bzl&quot;, line 976, in _create_local_cuda_repository _host_compiler_includes(repository_ctx, cc) File &quot;/home/alex/tensorflow/third_party/gpus/cuda_configure.bzl&quot;, line 145, in _host_compiler_includes get_cxx_inc_directories(repository_ctx, cc) File &quot;/home/alex/tensorflow/third_party/gpus/cuda_configure.bzl&quot;, line 120, in get_cxx_inc_directories set(includes_cpp) depsets cannot contain mutable items INFO: Elapsed time: 13.663s FAILED: Build did NOT complete successfully (0 packages loaded) currently loading: tensorflow/tools/pip_package"><pre class="notranslate"><code class="notranslate">Please specify the location of python. [Default is /usr/bin/python]: Found possible Python library paths: /usr/local/lib/python2.7/dist-packages /usr/lib/python2.7/dist-packages Please input the desired Python library path to use. Default is /usr/local/lib/python2.7/dist-packages Do you wish to build TensorFlow with jemalloc as malloc support? [Y/n]: jemalloc as malloc support will be enabled for TensorFlow. Do you wish to build TensorFlow with Google Cloud Platform support? [y/N]: y Google Cloud Platform support will be enabled for TensorFlow. Do you wish to build TensorFlow with Hadoop File System support? [y/N]: No Hadoop File System support will be enabled for TensorFlow. Do you wish to build TensorFlow with XLA JIT support? [y/N]: No XLA JIT support will be enabled for TensorFlow. Do you wish to build TensorFlow with VERBS support? [y/N]: No VERBS support will be enabled for TensorFlow. Do you wish to build TensorFlow with OpenCL support? [y/N]: y OpenCL support will be enabled for TensorFlow. Please specify which C++ compiler should be used as the host C++ compiler. [Default is /usr/bin/g++]: Please specify which C compiler should be used as the host C compiler. [Default is /usr/bin/gcc]: Please specify the location where ComputeCpp for SYCL 1.2 is installed. [Default is /usr/local/computecpp]: Do you wish to build TensorFlow with CUDA support? [y/N]: y CUDA support will be enabled for TensorFlow. Please specify the CUDA SDK version you want to use, e.g. 7.0. [Leave empty to default to CUDA 8.0]: Please specify the location where CUDA 8.0 toolkit is installed. Refer to README.md for more details. [Default is /usr/local/cuda]: "Please specify the cuDNN version you want to use. [Leave empty to default to cuDNN 6.0]: Please specify the location where cuDNN 6 library is installed. Refer to README.md for more details. [Default is /usr/local/cuda]: Please specify a list of comma-separated Cuda compute capabilities you want to build with. You can find the compute capability of your device at: https://developer.nvidia.com/cuda-gpus. Please note that each additional compute capability significantly increases your build time and binary size. [Default is: 6.1] Do you want to use clang as CUDA compiler? [y/N]: nvcc will be used as CUDA compiler. Please specify which gcc should be used by nvcc as the host compiler. [Default is /usr/bin/gcc]: Do you wish to build TensorFlow with MPI support? [y/N]: No MPI support will be enabled for TensorFlow. Please specify optimization flags to use during compilation when bazel option "--config=opt" is specified [Default is -march=native]: Add "--config=mkl" to your bazel command to build with MKL support. Please note that MKL on MacOS or windows is still not supported. If you would like to use a local MKL instead of downloading, please set the environment variable "TF_MKL_ROOT" every time before build. Configuration finished ............... ERROR: Skipping '//tensorflow/tools/pip_package:build_pip_package': error loading package 'tensorflow/tools/pip_package': Encountered error while reading extension file 'cuda/build_defs.bzl': no such package '@local_config_cuda//cuda': Traceback (most recent call last): File "/home/alex/tensorflow/third_party/gpus/cuda_configure.bzl", line 1039 _create_local_cuda_repository(repository_ctx) File "/home/alex/tensorflow/third_party/gpus/cuda_configure.bzl", line 976, in _create_local_cuda_repository _host_compiler_includes(repository_ctx, cc) File "/home/alex/tensorflow/third_party/gpus/cuda_configure.bzl", line 145, in _host_compiler_includes get_cxx_inc_directories(repository_ctx, cc) File "/home/alex/tensorflow/third_party/gpus/cuda_configure.bzl", line 120, in get_cxx_inc_directories set(includes_cpp) depsets cannot contain mutable items WARNING: Target pattern parsing failed. ERROR: error loading package 'tensorflow/tools/pip_package': Encountered error while reading extension file 'cuda/build_defs.bzl': no such package '@local_config_cuda//cuda': Traceback (most recent call last): File "/home/alex/tensorflow/third_party/gpus/cuda_configure.bzl", line 1039 _create_local_cuda_repository(repository_ctx) File "/home/alex/tensorflow/third_party/gpus/cuda_configure.bzl", line 976, in _create_local_cuda_repository _host_compiler_includes(repository_ctx, cc) File "/home/alex/tensorflow/third_party/gpus/cuda_configure.bzl", line 145, in _host_compiler_includes get_cxx_inc_directories(repository_ctx, cc) File "/home/alex/tensorflow/third_party/gpus/cuda_configure.bzl", line 120, in get_cxx_inc_directories set(includes_cpp) depsets cannot contain mutable items INFO: Elapsed time: 13.663s FAILED: Build did NOT complete successfully (0 packages loaded) currently loading: tensorflow/tools/pip_package </code></pre></div>
1
<h5 dir="auto">Issue Type:</h5> <p dir="auto">Bug Report</p> <h5 dir="auto">Ansible Version:</h5> <p dir="auto">Ansible devel (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/ansible/ansible/commit/e32d88760906da5ed473570218b5831292e0bfa8/hovercard" href="https://github.com/ansible/ansible/commit/e32d88760906da5ed473570218b5831292e0bfa8"><tt>e32d887</tt></a>)</p> <h5 dir="auto">Ansible Configuration:</h5> <p dir="auto">Standard <code class="notranslate">ansible.cfg</code></p> <h5 dir="auto">Environment:</h5> <p dir="auto">Debian, Ubuntu</p> <h5 dir="auto">Summary:</h5> <p dir="auto">Ansible converts strings <code class="notranslate">"yes"</code> and <code class="notranslate">"no"</code> into booleans <code class="notranslate">true</code> and <code class="notranslate">false</code> when it is not asked to. This can interfere when user wants to have literal strings <code class="notranslate">yes</code> or <code class="notranslate">no</code> passed through a variable.</p> <h5 dir="auto">Steps To Reproduce:</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" --- - hosts: localhost tasks: - name: Register fact set_fact: some_fact: 'yes' - name: Show fact as is debug: var=some_fact - name: Show fact filtered as bool debug: msg=&quot;{{ some_fact | bool }}&quot; - name: Show fact in string debug: msg=&quot;some_fact is {{ some_fact }}&quot; - name: Show fact in string as bool debug: msg=&quot;some_fact is {{ some_fact | bool }}&quot; "><pre class="notranslate"><code class="notranslate"> --- - hosts: localhost tasks: - name: Register fact set_fact: some_fact: 'yes' - name: Show fact as is debug: var=some_fact - name: Show fact filtered as bool debug: msg="{{ some_fact | bool }}" - name: Show fact in string debug: msg="some_fact is {{ some_fact }}" - name: Show fact in string as bool debug: msg="some_fact is {{ some_fact | bool }}" </code></pre></div> <h5 dir="auto">Expected Results:</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY [all] ******************************************************************** GATHERING FACTS *************************************************************** ok: [localhost] TASK: [Register fact] ********************************************************* ok: [localhost] TASK: [Show fact as is] ******************************************************* ok: [localhost] =&gt; { &quot;var&quot;: { &quot;some_fact&quot;: &quot;yes&quot; } } TASK: [Show fact filtered as bool] ******************************************** ok: [localhost] =&gt; { &quot;msg&quot;: &quot;True&quot; } TASK: [Show fact in string] *************************************************** ok: [localhost] =&gt; { &quot;msg&quot;: &quot;some_fact is yes&quot; } TASK: [Show fact in string as bool] ******************************************* ok: [localhost] =&gt; { &quot;msg&quot;: &quot;some_fact is True&quot; } "><pre class="notranslate"><code class="notranslate">PLAY [all] ******************************************************************** GATHERING FACTS *************************************************************** ok: [localhost] TASK: [Register fact] ********************************************************* ok: [localhost] TASK: [Show fact as is] ******************************************************* ok: [localhost] =&gt; { "var": { "some_fact": "yes" } } TASK: [Show fact filtered as bool] ******************************************** ok: [localhost] =&gt; { "msg": "True" } TASK: [Show fact in string] *************************************************** ok: [localhost] =&gt; { "msg": "some_fact is yes" } TASK: [Show fact in string as bool] ******************************************* ok: [localhost] =&gt; { "msg": "some_fact is True" } </code></pre></div> <h5 dir="auto">Actual Results:</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY *************************************************************************** TASK [setup] ******************************************************************* ok: [localhost] TASK [Register fact] *********************************************************** ok: [localhost] TASK [Show fact as is] ********************************************************* ok: [localhost] =&gt; { &quot;changed&quot;: false, &quot;some_fact&quot;: true } TASK [Show fact filtered as bool] ********************************************** ok: [localhost] =&gt; { &quot;changed&quot;: false, &quot;msg&quot;: true } TASK [Show fact in string] ***************************************************** ok: [localhost] =&gt; { &quot;changed&quot;: false, &quot;msg&quot;: &quot;some_fact is True&quot; } TASK [Show fact in string as bool] ********************************************* ok: [localhost] =&gt; { &quot;changed&quot;: false, &quot;msg&quot;: &quot;some_fact is True&quot; }"><pre class="notranslate"><code class="notranslate">PLAY *************************************************************************** TASK [setup] ******************************************************************* ok: [localhost] TASK [Register fact] *********************************************************** ok: [localhost] TASK [Show fact as is] ********************************************************* ok: [localhost] =&gt; { "changed": false, "some_fact": true } TASK [Show fact filtered as bool] ********************************************** ok: [localhost] =&gt; { "changed": false, "msg": true } TASK [Show fact in string] ***************************************************** ok: [localhost] =&gt; { "changed": false, "msg": "some_fact is True" } TASK [Show fact in string as bool] ********************************************* ok: [localhost] =&gt; { "changed": false, "msg": "some_fact is True" } </code></pre></div>
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">win_copy</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2.3.2"><pre class="notranslate"><code class="notranslate">2.3.2 </code></pre></div> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">Control node: Ubuntu 16<br> Target node: Windows Server 2016</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">The documentation states that if the "src" parameter ends with a "/", then the contents of the directory is copied, not the directory itself. However, when using this together with "remote_src" the module seems to be broken.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">Source folder layout:</p> <div class="highlight highlight-source-powershell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="PS C:\Users\trond.hindenes&gt; ls F:\softwaredownload\nginx-1.13.3\nginx-1.13.3 Directory: F:\softwaredownload\nginx-1.13.3\nginx-1.13.3 Mode LastWriteTime Length Name ---- ------------- ------ ---- d----- 7/23/2017 10:24 AM conf d----- 7/23/2017 10:24 AM contrib d----- 7/23/2017 10:24 AM docs d----- 7/23/2017 10:24 AM html d----- 7/11/2017 4:30 PM logs d----- 7/11/2017 4:30 PM temp ------ 7/11/2017 4:28 PM 3066880 nginx.exe PS C:\Users\trond.hindenes&gt;"><pre class="notranslate">PS C:\Users\trond.hindenes<span class="pl-k">&gt;</span> ls F:\softwaredownload\nginx<span class="pl-k">-</span><span class="pl-c1">1.13</span>.<span class="pl-c1">3</span>\nginx<span class="pl-k">-</span><span class="pl-c1">1.13</span>.<span class="pl-c1">3</span> Directory: F:\softwaredownload\nginx<span class="pl-k">-</span><span class="pl-c1">1.13</span>.<span class="pl-c1">3</span>\nginx<span class="pl-k">-</span><span class="pl-c1">1.13</span>.<span class="pl-c1">3</span> Mode LastWriteTime Length Name <span class="pl-k">----</span> <span class="pl-k">-------------</span> <span class="pl-k">------</span> <span class="pl-k">----</span> d<span class="pl-k">-----</span> <span class="pl-c1">7</span><span class="pl-k">/</span><span class="pl-c1">23</span><span class="pl-k">/</span><span class="pl-c1">2017</span> <span class="pl-c1">10</span>:<span class="pl-c1">24</span> AM conf d<span class="pl-k">-----</span> <span class="pl-c1">7</span><span class="pl-k">/</span><span class="pl-c1">23</span><span class="pl-k">/</span><span class="pl-c1">2017</span> <span class="pl-c1">10</span>:<span class="pl-c1">24</span> AM contrib d<span class="pl-k">-----</span> <span class="pl-c1">7</span><span class="pl-k">/</span><span class="pl-c1">23</span><span class="pl-k">/</span><span class="pl-c1">2017</span> <span class="pl-c1">10</span>:<span class="pl-c1">24</span> AM docs d<span class="pl-k">-----</span> <span class="pl-c1">7</span><span class="pl-k">/</span><span class="pl-c1">23</span><span class="pl-k">/</span><span class="pl-c1">2017</span> <span class="pl-c1">10</span>:<span class="pl-c1">24</span> AM html d<span class="pl-k">-----</span> <span class="pl-c1">7</span><span class="pl-k">/</span><span class="pl-c1">11</span><span class="pl-k">/</span><span class="pl-c1">2017</span> <span class="pl-c1">4</span>:<span class="pl-c1">30</span> PM logs d<span class="pl-k">-----</span> <span class="pl-c1">7</span><span class="pl-k">/</span><span class="pl-c1">11</span><span class="pl-k">/</span><span class="pl-c1">2017</span> <span class="pl-c1">4</span>:<span class="pl-c1">30</span> PM temp <span class="pl-k">------</span> <span class="pl-c1">7</span><span class="pl-k">/</span><span class="pl-c1">11</span><span class="pl-k">/</span><span class="pl-c1">2017</span> <span class="pl-c1">4</span>:<span class="pl-c1">28</span> PM <span class="pl-c1">3066880</span> <span class="pl-c1">nginx.exe</span> PS C:\Users\trond.hindenes<span class="pl-k">&gt;</span></pre></div> <p dir="auto">playbook:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- name: copy nginx.exe to target dir win_copy: src: &quot;F:\\softwaredownload\\nginx-1.13.3\\nginx-1.13.3/&quot; dest: &quot;F:\\apps\\nginx&quot; remote_src: yes force: yes"><pre class="notranslate">- <span class="pl-ent">name</span>: <span class="pl-s">copy nginx.exe to target dir</span> <span class="pl-ent">win_copy</span>: <span class="pl-ent">src</span>: <span class="pl-s"><span class="pl-pds">"</span>F:<span class="pl-cce">\\</span>softwaredownload<span class="pl-cce">\\</span>nginx-1.13.3<span class="pl-cce">\\</span>nginx-1.13.3/<span class="pl-pds">"</span></span> <span class="pl-ent">dest</span>: <span class="pl-s"><span class="pl-pds">"</span>F:<span class="pl-cce">\\</span>apps<span class="pl-cce">\\</span>nginx<span class="pl-pds">"</span></span> <span class="pl-ent">remote_src</span>: <span class="pl-s">yes</span> <span class="pl-ent">force</span>: <span class="pl-s">yes</span></pre></div> <p dir="auto">ansible <code class="notranslate">vvvv</code> output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="changed: [wpm-0101001] =&gt; { &quot;changed&quot;: true, &quot;dest&quot;: &quot;F:\\apps\\nginx&quot;, &quot;operation&quot;: &quot;folder_copy&quot;, &quot;original_basename&quot;: null, &quot;size&quot;: 3943932, &quot;src&quot;: &quot;F:\\softwaredownload\\nginx-1.13.3\\nginx-1.13.3/&quot; } "><pre class="notranslate"><code class="notranslate">changed: [wpm-0101001] =&gt; { "changed": true, "dest": "F:\\apps\\nginx", "operation": "folder_copy", "original_basename": null, "size": 3943932, "src": "F:\\softwaredownload\\nginx-1.13.3\\nginx-1.13.3/" } </code></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">The contents of <code class="notranslate">F:\\apps\\nginx</code> should be equal to the contents of <code class="notranslate">F:\\softwaredownload\\nginx-1.13.3\\nginx-1.13.3</code></p> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">The root folder is also copied, so <code class="notranslate">F:\\apps\\nginx</code> only contains one folder, <code class="notranslate">nginx-1.13.3</code> (which again has the copied files)</p>
0
<p dir="auto">I originally left a comment in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="107717775" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/4936" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/4936/hovercard" href="https://github.com/facebook/react/issues/4936">#4936</a>, but I felt this might be better as a separate issue.</p> <blockquote> <p dir="auto">I completely agree with the rationale behind no backing instances and no refs for stateless components. I want to use pure stateless components as much as possible.</p> <p dir="auto">However, I'm running into instances where testing stateless components gets tricky. For the most part, using the shallow renderer to render a stateless component has been fine. I can then make assertions on expected props and children. To reduce the duplication, I abstract out the shallow renderer process to a helper function.</p> <p dir="auto">When, I want to test events, though, I have to take a different route. If my component takes an <code class="notranslate">onClick</code> prop, then I wrap it in a class component, so I can access the DOM node to simulate my click event. Again, this isn't a huge deal because I can abstract out the wrap/render process into a helper function.</p> <p dir="auto">I bring all this up because I feel that it would be nice to have better facilities in <code class="notranslate">TestUtils</code> for stateless components. I don't think the answer is allowing <code class="notranslate">ReactDOM.findDOMNode</code> to work on stateless components because that opens up it to abuse in normal application code. Are you open to allowing extra functions in <code class="notranslate">TestUtils</code> to simplify the process of testing stateless components? Or am I creating a code smell in my testing?</p> <p dir="auto">I'd be happy to create a PR for <code class="notranslate">TestUtils</code> if you think some more helper functions for stateless components would be beneficial.</p> </blockquote>
<p dir="auto">Hi,</p> <p dir="auto">I have a fairly trivial application which was running on ReactJS 0.14.x. Since I've moved it to 15rc1, it continues to work perfectly in Chrome. However, in IE11, in appears to render critical parts empty. The relevant piece of code where I'm failing is here:</p> <p dir="auto"><a href="https://github.com/technion/erlvulnscan/blob/master/frontend/assets/erlvulnscan.jsx#L37">https://github.com/technion/erlvulnscan/blob/master/frontend/assets/erlvulnscan.jsx#L37</a></p> <p dir="auto">There is no error output on the debug console. The DOM explorer appears to just render it with missing data.</p> <div dir="auto"></div> <p dir="auto">You can see the application with the relevant behaviour running live at: <a href="https://erlvulnscan.lolware.net" rel="nofollow">https://erlvulnscan.lolware.net</a>. Enter any network (127.0.0.0 will yield the fastest return) to see the issue.</p> <p dir="auto">Edit: For non IE users, you can see a SS here: <a href="http://imgur.com/i9TciqZ" rel="nofollow">http://imgur.com/i9TciqZ</a></p>
0
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> Usage of the <code class="notranslate">formArrayName</code> directive stops <code class="notranslate">@ContentChildren()</code> from finding children of the element onto which <code class="notranslate">formArrayName</code> was applied.</p> <p dir="auto"><strong>Expected behavior</strong><br> <code class="notranslate">@ContentChildren()</code> reaches children of <code class="notranslate">formArrayName</code>.</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p> <p dir="auto"><a href="http://plnkr.co/edit/q9DREq88aeAXO645X8zK?p=preview" rel="nofollow">This plunker</a> shows the problem. <code class="notranslate">&lt;my-component&gt;</code> is defined twice in the template, but the length of the found components is 1.</p> <p dir="auto"><strong>Please tell us about your environment:</strong></p> <ul dir="auto"> <li><strong>Angular version:</strong> 2.4.7</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><br> ContentChild queries descendants but ContentChildren does not. This commit changed this behavior -&gt; <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/angular/angular/commit/0dc15eb64ac268e115c484319941ba11ce09d596/hovercard" href="https://github.com/angular/angular/commit/0dc15eb64ac268e115c484319941ba11ce09d596"><tt>0dc15eb</tt></a></p> <p dir="auto"><strong>Expected behavior</strong></p> <p dir="auto">ContentChild should behave like ContentChildren or better page author should decide with an option like descendats: true|false or we need to new decorators like ContentDescendant and ContentDescendants. Note that if you guys also decide to change ContentChildren to descendants:true all of a sudden, it will break whole a lot of apps. Even if you do, we need a way to customize the default behavior to restore the order back.</p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br> Lack of support to customize querying.</p> <ul dir="auto"> <li><strong>Angular version:</strong> 2.0.X<br> 2.2</li> </ul>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">A React.Component should be returned when using:<br> <code class="notranslate">private responsiveDialog = withResponsiveFullScreen({ breakpoint: 'sm' })(Dialog);</code><br> This means that <code class="notranslate">withResponsiveFullScreen({ breakpoint: 'sm' })</code> should return a function that accepts a type and returns the new Component with responsive properties.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">Currently calling <code class="notranslate">withResponsiveFullScreen({ breakpoint: 'sm' })</code> returns a React.Component. This is out of line with the expected behaviour when looking at the funciton in withResponsiveFullScreen.js.<br> The definition of withResponsiveFullScreen in withResponsiveFullScreen.d.ts should probably be changed to return a function.</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li><code class="notranslate">private responsiveDialog = withResponsiveFullScreen({ breakpoint: 'sm' })(Dialog);</code> when using typescript.</li> </ol> <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.8</td> </tr> </tbody> </table>
<p dir="auto">When using the classes root override in the Snackbar component, it adds a wrapping div with your the css classes you define instead of overriding the root containers properties.</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">Change the style of the snackbar components root element</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">Adds a parent div to the snackbar components root element</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <p dir="auto">Here is an example I added padding to it so you can actually see what it does, if you remove the padding you will not see the changes: <a href="https://codesandbox.io/s/03l5x9klwn" rel="nofollow">https://codesandbox.io/s/03l5x9klwn</a></p> <h2 dir="auto">Context</h2> <p dir="auto">I'm trying to change the styling of the Snackbar component</p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>1.0.0-beta.13</td> </tr> <tr> <td>React</td> <td>15.5.3</td> </tr> <tr> <td>browser</td> <td>Chrome Version 61.0.3163.10</td> </tr> </tbody> </table>
0
<h3 dir="auto">Current Behavior:</h3> <p dir="auto">Running <code class="notranslate">npm view --json sompackage dist-tags</code> gives an error output in case no tags exist like:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;shortMessage&quot;: &quot;Command failed with exit code 1: npm view --json sompackage dist-tags&quot;, &quot;command&quot;: &quot;npm view --json sompackage dist-tags&quot;, &quot;exitCode&quot;: 1, &quot;stdout&quot;: &quot;&quot;, &quot;stderr&quot;: &quot;npm ERR! code E404\nnpm ERR! 404 Not Found - GET https://registry.npmjs.org/hayden-test-repo - Not found\nnpm ERR! 404 \nnpm ERR! 404 'hayden-test-repo@latest' is not in the npm registry.\nnpm ERR! 404 You should bug the author to publish it (or use the name yourself!)\nnpm ERR! 404 \nnpm ERR! 404 Note that you can also install from a\nnpm ERR! 404 tarball, folder, http url, or git url.\n{\n \&quot;error\&quot;: {\n \&quot;code\&quot;: \&quot;E404\&quot;,\n \&quot;summary\&quot;: \&quot;Not Found - GET https://registry.npmjs.org/hayden-test-repo - Not found\&quot;,\n \&quot;detail\&quot;: \&quot;\\n 'hayden-test-repo@latest' is not in the npm registry.\\nYou should bug the author to publish it (or use the name yourself!)\\n\\nNote that you can also install from a\\ntarball, folder, http url, or git url.\&quot;\n }\n}\n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR! /Users/hayden/.npm/_logs/2021-04-12T14_41_53_367Z-debug.log&quot;, &quot;failed&quot;: true, &quot;timedOut&quot;: false, &quot;isCanceled&quot;: false, &quot;killed&quot;: false }"><pre class="notranslate"><span class="pl-kos">{</span> <span class="pl-s">"shortMessage"</span>: <span class="pl-s">"Command failed with exit code 1: npm view --json sompackage dist-tags"</span><span class="pl-kos">,</span> <span class="pl-s">"command"</span>: <span class="pl-s">"npm view --json sompackage dist-tags"</span><span class="pl-kos">,</span> <span class="pl-s">"exitCode"</span>: <span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-s">"stdout"</span>: <span class="pl-s">""</span><span class="pl-kos">,</span> <span class="pl-s">"stderr"</span>: <span class="pl-s">"npm ERR! code E404\nnpm ERR! 404 Not Found - GET https://registry.npmjs.org/hayden-test-repo - Not found\nnpm ERR! 404 \nnpm ERR! 404 'hayden-test-repo@latest' is not in the npm registry.\nnpm ERR! 404 You should bug the author to publish it (or use the name yourself!)\nnpm ERR! 404 \nnpm ERR! 404 Note that you can also install from a\nnpm ERR! 404 tarball, folder, http url, or git url.\n{\n \"error\": {\n \"code\": \"E404\",\n \"summary\": \"Not Found - GET https://registry.npmjs.org/hayden-test-repo - Not found\",\n \"detail\": \"\\n 'hayden-test-repo@latest' is not in the npm registry.\\nYou should bug the author to publish it (or use the name yourself!)\\n\\nNote that you can also install from a\\ntarball, folder, http url, or git url.\"\n }\n}\n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR! /Users/hayden/.npm/_logs/2021-04-12T14_41_53_367Z-debug.log"</span><span class="pl-kos">,</span> <span class="pl-s">"failed"</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-s">"timedOut"</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span> <span class="pl-s">"isCanceled"</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span> <span class="pl-s">"killed"</span>: <span class="pl-c1">false</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">The <code class="notranslate">stderr</code> contains the <code class="notranslate">json</code> response but also contains some text making the JSON unparsable.</p> <h3 dir="auto">Expected Behavior:</h3> <p dir="auto">We should be able to get a valid json in <code class="notranslate">stderr</code> without the extra string.</p> <h3 dir="auto">Steps To Reproduce:</h3> <ol dir="auto"> <li>Run npm view --json sompackage dist-tags</li> <li>Observe the stderr being given.</li> </ol> <p dir="auto"><a href="https://github.com/sindresorhus/np/issues/600" data-hovercard-type="issue" data-hovercard-url="/sindresorhus/np/issues/600/hovercard">This issue</a> on <code class="notranslate">np</code> has more detailed info in case it is needed.</p> <h3 dir="auto">Environment:</h3> <ul dir="auto"> <li>OS: Ubuntu 20.04</li> <li>Node: v14.16.1</li> <li>npm: 7.9.0</li> </ul>
<h3 dir="auto">The problem</h3> <p dir="auto">NPM's <a href="https://docs.npmjs.com/cli/v6/using-npm/config#json" rel="nofollow">--json</a> option allows scripts to invoke an NPM command and receive machine-readable JSON that can be easily processed. In previous NPM versions, the JSON was written to STDOUT and all other messages were written to STDERR, making it easy for a script to extract the JSON.</p> <p dir="auto">With NPM 7.x, everything is mixed together on STDERR. This defeats the point of the <code class="notranslate">--json</code> feature, which was to make parsing easy. Instead, a script has to implement heuristics to guess which STDERR lines are JSON or not. Scripts developed for NPM 6 now fail because they are reading the wrong stream.</p> <h3 dir="auto">Steps To Reproduce:</h3> <ol dir="auto"> <li> <p dir="auto"><strong>Correct behavior:</strong> With NPM 6.x, invoke this command:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm search --json"><pre class="notranslate"><code class="notranslate">npm search --json </code></pre></div> <p dir="auto">The JSON output is written to STDOUT:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;error&quot;: { &quot;code&quot;: null, &quot;summary&quot;: &quot;search must be called with arguments&quot;, &quot;detail&quot;: &quot;&quot; } }"><pre class="notranslate"><span class="pl-kos">{</span> <span class="pl-s">"error"</span>: <span class="pl-kos">{</span> <span class="pl-s">"code"</span>: <span class="pl-c1">null</span><span class="pl-kos">,</span> <span class="pl-s">"summary"</span>: <span class="pl-s">"search must be called with arguments"</span><span class="pl-kos">,</span> <span class="pl-s">"detail"</span>: <span class="pl-s">""</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">The console messages are written to STDERR:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm ERR! search must be called with arguments npm ERR! A complete log of this run can be found in:"><pre class="notranslate"><code class="notranslate">npm ERR! search must be called with arguments npm ERR! A complete log of this run can be found in: </code></pre></div> </li> <li> <p dir="auto"><strong>Broken behavior:</strong> With NPM 7.5.4 (the latest version), invoke the same command. Both outputs are mixed together on STDERR. Nothing is written to STDOUT.</p> </li> </ol> <p dir="auto">This regression appears to have been introduced with NPM 7.0.0.</p> <h3 dir="auto">Environment:</h3> <ul dir="auto"> <li>OS: All OS's</li> <li>Node: 12.17.0</li> <li>npm: 7.5.4</li> </ul>
1
<h5 dir="auto">Issue Type:</h5> <p dir="auto">Bug Report</p> <h5 dir="auto">Ansible Version:</h5> <p dir="auto">ansible 1.6.6</p> <h5 dir="auto">Environment:</h5> <p dir="auto">Mac OSX 10.9.3</p> <h5 dir="auto">Summary:</h5> <p dir="auto">When firing a handler from a task with notify: limited to specific hosts via a when: clause, play_hosts in the handler reflects only the hosts that triggered a notify:</p> <h5 dir="auto">Steps To Reproduce:</h5> <p dir="auto">runn playbook and inventory from <a href="https://drive.google.com/file/d/0B7vhBal_UqRNMGdwTkNxSzZmRTg/edit?usp=sharing" rel="nofollow">https://drive.google.com/file/d/0B7vhBal_UqRNMGdwTkNxSzZmRTg/edit?usp=sharing</a></p> <p dir="auto">see example output below.</p> <h5 dir="auto">Expected Results:</h5> <p dir="auto">play_hosts should reflect the host in the play, regardless of limit</p> <h5 dir="auto">Actual Results:</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[nhruby@badhorse ../ansible-handler-play-hosts]$ ansible-playbook -i test.inv test.yml PLAY [test handler from role] ************************************************* GATHERING FACTS *************************************************************** ok: [test2] ok: [test1] TASK: [testhandler | this is a test role task for all] ************************ changed: [test1] =&gt; { &quot;changed&quot;: true, &quot;play_hosts&quot;: [ &quot;test1&quot;, &quot;test2&quot; ] } changed: [test2] =&gt; { &quot;changed&quot;: true, &quot;play_hosts&quot;: [ &quot;test1&quot;, &quot;test2&quot; ] } TASK: [testhandler | this is a test role task limited and notifies] *********** skipping: [test2] changed: [test1] =&gt; { &quot;changed&quot;: true, &quot;play_hosts&quot;: [ &quot;test1&quot;, &quot;test2&quot; ] } NOTIFIED: [testhandler | this is a test role handler] ************************* ok: [test1] =&gt; { &quot;play_hosts&quot;: [ &quot;test1&quot; ] } PLAY RECAP ******************************************************************** test1 : ok=4 changed=2 unreachable=0 failed=0 test2 : ok=2 changed=1 unreachable=0 failed=0 [nhruby@badhorse ../ansible-handler-play-hosts]$"><pre class="notranslate"><code class="notranslate">[nhruby@badhorse ../ansible-handler-play-hosts]$ ansible-playbook -i test.inv test.yml PLAY [test handler from role] ************************************************* GATHERING FACTS *************************************************************** ok: [test2] ok: [test1] TASK: [testhandler | this is a test role task for all] ************************ changed: [test1] =&gt; { "changed": true, "play_hosts": [ "test1", "test2" ] } changed: [test2] =&gt; { "changed": true, "play_hosts": [ "test1", "test2" ] } TASK: [testhandler | this is a test role task limited and notifies] *********** skipping: [test2] changed: [test1] =&gt; { "changed": true, "play_hosts": [ "test1", "test2" ] } NOTIFIED: [testhandler | this is a test role handler] ************************* ok: [test1] =&gt; { "play_hosts": [ "test1" ] } PLAY RECAP ******************************************************************** test1 : ok=4 changed=2 unreachable=0 failed=0 test2 : ok=2 changed=1 unreachable=0 failed=0 [nhruby@badhorse ../ansible-handler-play-hosts]$ </code></pre></div>
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">ios_command</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible --version 2.3.0 (commit 20160706.246e32a) config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">ansible --version 2.3.0 (commit 20160706.246e32a) config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <p dir="auto">inventory = ./hosts<br> gathering = explicit<br> roles_path = /home/actionmystique/Program-Files/Ubuntu/Ansible/git-Ansible/Roles/roles<br> private_role_vars = yes<br> log_path = /var/log/ansible.log<br> fact_caching = redis<br> fact_caching_timeout = 86400<br> retry_files_enabled = False</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <ul dir="auto"> <li><strong>Local host</strong>: Ubuntu 16.10 4.8</li> <li><strong>Target nodes</strong>: IOSv 15.6(2)T<br> IOSv_L2 15.2(4.0.55)E</li> </ul> <h5 dir="auto">SUMMARY</h5> <p dir="auto">This exception happens with different types of targets (IOSv &amp; IOSv_L2), although there is no issue running ios_facts with the same targets.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">With config=running-config or config=startup-config</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- name: Fetching config from the remote node ios_command: provider: &quot;{{ connections.ssh }}&quot; commands: - &quot;show {{ config }}&quot; register: configuration"><pre class="notranslate"><code class="notranslate">- name: Fetching config from the remote node ios_command: provider: "{{ connections.ssh }}" commands: - "show {{ config }}" register: configuration </code></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">Successful "show running-config" or "show startup-config"</p> <h5 dir="auto">ACTUAL RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK [ios_pull_config : Fetching config from the remote node] *************************************************************************************************************** task path: /home/actionmystique/Program-Files/Ubuntu/Ansible/Roles/roles/ios_pull_config/tasks/main.yml:76 Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/network/ios/ios_command.py Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/network/ios/ios_command.py &lt;172.21.100.210&gt; ESTABLISH LOCAL CONNECTION FOR USER: root &lt;172.21.100.210&gt; EXEC /bin/sh -c '( umask 77 &amp;&amp; mkdir -p &quot;` echo $HOME/.ansible/tmp/ansible-tmp-1479307602.12-88135957770534 `&quot; &amp;&amp; echo ansible-tmp-1479307602.12-88135957770534=&quot;` echo $HOME/.ansible/tmp/ansible-tmp-1479307602.12-88135957770534 `&quot; ) &amp;&amp; sleep 0' &lt;172.21.100.220&gt; ESTABLISH LOCAL CONNECTION FOR USER: root &lt;172.21.100.220&gt; EXEC /bin/sh -c '( umask 77 &amp;&amp; mkdir -p &quot;` echo $HOME/.ansible/tmp/ansible-tmp-1479307602.13-213866714018858 `&quot; &amp;&amp; echo ansible-tmp-1479307602.13-213866714018858=&quot;` echo $HOME/.ansible/tmp/ansible-tmp-1479307602.13-213866714018858 `&quot; ) &amp;&amp; sleep 0' &lt;172.21.100.220&gt; PUT /tmp/tmpT5ggUh TO /root/.ansible/tmp/ansible-tmp-1479307602.13-213866714018858/ios_command.py &lt;172.21.100.210&gt; PUT /tmp/tmpqxKZuu TO /root/.ansible/tmp/ansible-tmp-1479307602.12-88135957770534/ios_command.py &lt;172.21.100.220&gt; EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1479307602.13-213866714018858/ /root/.ansible/tmp/ansible-tmp-1479307602.13-213866714018858/ios_command.py &amp;&amp; sleep 0' &lt;172.21.100.210&gt; EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1479307602.12-88135957770534/ /root/.ansible/tmp/ansible-tmp-1479307602.12-88135957770534/ios_command.py &amp;&amp; sleep 0' &lt;172.21.100.220&gt; EXEC /bin/sh -c '/usr/bin/python /root/.ansible/tmp/ansible-tmp-1479307602.13-213866714018858/ios_command.py; rm -rf &quot;/root/.ansible/tmp/ansible-tmp-1479307602.13-213866714018858/&quot; &gt; /dev/null 2&gt;&amp;1 &amp;&amp; sleep 0' &lt;172.21.100.210&gt; EXEC /bin/sh -c '/usr/bin/python /root/.ansible/tmp/ansible-tmp-1479307602.12-88135957770534/ios_command.py; rm -rf &quot;/root/.ansible/tmp/ansible-tmp-1479307602.12-88135957770534/&quot; &gt; /dev/null 2&gt;&amp;1 &amp;&amp; sleep 0' An exception occurred during task execution. The full traceback is: Traceback (most recent call last): File &quot;/usr/lib/python2.7/dist-packages/ansible/executor/task_executor.py&quot;, line 126, in run res = self._execute() File &quot;/usr/lib/python2.7/dist-packages/ansible/executor/task_executor.py&quot;, line 502, in _execute result = self._handler.run(task_vars=variables) File &quot;/usr/lib/python2.7/dist-packages/ansible/plugins/action/normal.py&quot;, line 33, in run results = merge_hash(results, self._execute_module(tmp=tmp, task_vars=task_vars)) File &quot;/usr/lib/python2.7/dist-packages/ansible/plugins/action/__init__.py&quot;, line 662, in _execute_module data['stdout_lines'] = data.get('stdout', u'').splitlines() AttributeError: 'list' object has no attribute 'splitlines' fatal: [IOSv_L2_10]: FAILED! =&gt; { &quot;failed&quot;: true, &quot;msg&quot;: &quot;Unexpected failure during module execution.&quot;, &quot;stdout&quot;: &quot;&quot; }"><pre class="notranslate"><code class="notranslate">TASK [ios_pull_config : Fetching config from the remote node] *************************************************************************************************************** task path: /home/actionmystique/Program-Files/Ubuntu/Ansible/Roles/roles/ios_pull_config/tasks/main.yml:76 Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/network/ios/ios_command.py Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/network/ios/ios_command.py &lt;172.21.100.210&gt; ESTABLISH LOCAL CONNECTION FOR USER: root &lt;172.21.100.210&gt; EXEC /bin/sh -c '( umask 77 &amp;&amp; mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1479307602.12-88135957770534 `" &amp;&amp; echo ansible-tmp-1479307602.12-88135957770534="` echo $HOME/.ansible/tmp/ansible-tmp-1479307602.12-88135957770534 `" ) &amp;&amp; sleep 0' &lt;172.21.100.220&gt; ESTABLISH LOCAL CONNECTION FOR USER: root &lt;172.21.100.220&gt; EXEC /bin/sh -c '( umask 77 &amp;&amp; mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1479307602.13-213866714018858 `" &amp;&amp; echo ansible-tmp-1479307602.13-213866714018858="` echo $HOME/.ansible/tmp/ansible-tmp-1479307602.13-213866714018858 `" ) &amp;&amp; sleep 0' &lt;172.21.100.220&gt; PUT /tmp/tmpT5ggUh TO /root/.ansible/tmp/ansible-tmp-1479307602.13-213866714018858/ios_command.py &lt;172.21.100.210&gt; PUT /tmp/tmpqxKZuu TO /root/.ansible/tmp/ansible-tmp-1479307602.12-88135957770534/ios_command.py &lt;172.21.100.220&gt; EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1479307602.13-213866714018858/ /root/.ansible/tmp/ansible-tmp-1479307602.13-213866714018858/ios_command.py &amp;&amp; sleep 0' &lt;172.21.100.210&gt; EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1479307602.12-88135957770534/ /root/.ansible/tmp/ansible-tmp-1479307602.12-88135957770534/ios_command.py &amp;&amp; sleep 0' &lt;172.21.100.220&gt; EXEC /bin/sh -c '/usr/bin/python /root/.ansible/tmp/ansible-tmp-1479307602.13-213866714018858/ios_command.py; rm -rf "/root/.ansible/tmp/ansible-tmp-1479307602.13-213866714018858/" &gt; /dev/null 2&gt;&amp;1 &amp;&amp; sleep 0' &lt;172.21.100.210&gt; EXEC /bin/sh -c '/usr/bin/python /root/.ansible/tmp/ansible-tmp-1479307602.12-88135957770534/ios_command.py; rm -rf "/root/.ansible/tmp/ansible-tmp-1479307602.12-88135957770534/" &gt; /dev/null 2&gt;&amp;1 &amp;&amp; sleep 0' An exception occurred during task execution. The full traceback is: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/ansible/executor/task_executor.py", line 126, in run res = self._execute() File "/usr/lib/python2.7/dist-packages/ansible/executor/task_executor.py", line 502, in _execute result = self._handler.run(task_vars=variables) File "/usr/lib/python2.7/dist-packages/ansible/plugins/action/normal.py", line 33, in run results = merge_hash(results, self._execute_module(tmp=tmp, task_vars=task_vars)) File "/usr/lib/python2.7/dist-packages/ansible/plugins/action/__init__.py", line 662, in _execute_module data['stdout_lines'] = data.get('stdout', u'').splitlines() AttributeError: 'list' object has no attribute 'splitlines' fatal: [IOSv_L2_10]: FAILED! =&gt; { "failed": true, "msg": "Unexpected failure during module execution.", "stdout": "" } </code></pre></div> <p dir="auto">Despite being able to retrieve its facts with ios_facts:</p> <ul dir="auto"> <li>name: Fetching facts from the remote node<br> ios_facts:<br> gather_subset: all<br> provider: "{{ connections.ssh }}"<br> register: facts</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK [ios_pull_facts : Fetching facts from the remote node] ***************************************************************************************************************** ok: [IOSv_L2_10] =&gt; {&quot;ansible_facts&quot;: {&quot;ansible_net_all_ipv4_addresses&quot;: [&quot;172.21.100.210&quot;], &quot;ansible_net_all_ipv6_addresses&quot;: [], &quot;ansible_net_config&quot;: &quot;Building configuration...\n\nCurrent configuration : 7126 bytes\n!\n! Last configuration change at 14:42:21 UTC Wed Nov 16 2016 by admin\n!\nversion 15.2\nservice timestamps debug datetime msec\nservice timestamps log datetime msec\nservice password-encryption\nservice compress-config\n!\nhostname IOSv_L2_10\n!\nboot-start-marker\nboot-end-marker\n!\n!\nenable se ...nged&quot;: false, &quot;failed_commands&quot;: []}"><pre class="notranslate"><code class="notranslate">TASK [ios_pull_facts : Fetching facts from the remote node] ***************************************************************************************************************** ok: [IOSv_L2_10] =&gt; {"ansible_facts": {"ansible_net_all_ipv4_addresses": ["172.21.100.210"], "ansible_net_all_ipv6_addresses": [], "ansible_net_config": "Building configuration...\n\nCurrent configuration : 7126 bytes\n!\n! Last configuration change at 14:42:21 UTC Wed Nov 16 2016 by admin\n!\nversion 15.2\nservice timestamps debug datetime msec\nservice timestamps log datetime msec\nservice password-encryption\nservice compress-config\n!\nhostname IOSv_L2_10\n!\nboot-start-marker\nboot-end-marker\n!\n!\nenable se ...nged": false, "failed_commands": []} </code></pre></div>
0
<p dir="auto">Hello there. Are there any plans for including official community-supported translations for React docs? At @translaiton-gang we've just completed Vue.js` docs Russian translation, and we also have some progress with React ones. I believe, at least Japanese and Chinese communities would also like to have their own translations. So, could we integrate it somehow?</p> <p dir="auto">UPD: I see some random translation files under <code class="notranslate">docs/community</code>. Is it how it's done now? How is the document version to display being detected? I mean, I can't see any header dropdown language choice or something.</p>
<p dir="auto">We've deleted the old localized content because most of the docs changed too much.<br> We should set up proper infrastructure for localization because the old process was slow and ineffective.</p> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lacker/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lacker">@lacker</a></p>
1
<p dir="auto">Error with 2.3.0<br> <a href="http://fancyapps.com/fancybox/" rel="nofollow">http://fancyapps.com/fancybox/</a></p>
<p dir="auto">Hi,</p> <p dir="auto">I've just noticed that jQuery fancyBox isn't working anymore in conjunction with Bootstrap 2.3.<br> When reverting back to Bootstrap 2.2.2 everything is fine again.<br> Here are two jsfiddles to demonstrate the issue:</p> <ol dir="auto"> <li>with Bootstrap 2.3 .js File: <a href="http://jsfiddle.net/XmDXJ/" rel="nofollow">http://jsfiddle.net/XmDXJ/</a> &lt;-- fancyBox doesn't open</li> <li>without the Bootstrap js file: <a href="http://jsfiddle.net/yzJVH/" rel="nofollow">http://jsfiddle.net/yzJVH/</a> &lt;-- fancyBox opens as it should</li> </ol>
1
<h4 dir="auto">Code Sample, a copy-pastable example if possible</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import seaborn as sns tips = sns.load_dataset(&quot;tips&quot;) print(tips[&quot;day&quot;].dtype) counts = tips.groupby(&quot;size&quot;).day.value_counts().rename(&quot;count&quot;).reset_index() print(counts[&quot;day&quot;].dtype)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">seaborn</span> <span class="pl-k">as</span> <span class="pl-s1">sns</span> <span class="pl-s1">tips</span> <span class="pl-c1">=</span> <span class="pl-s1">sns</span>.<span class="pl-en">load_dataset</span>(<span class="pl-s">"tips"</span>) <span class="pl-en">print</span>(<span class="pl-s1">tips</span>[<span class="pl-s">"day"</span>].<span class="pl-s1">dtype</span>) <span class="pl-s1">counts</span> <span class="pl-c1">=</span> <span class="pl-s1">tips</span>.<span class="pl-en">groupby</span>(<span class="pl-s">"size"</span>).<span class="pl-s1">day</span>.<span class="pl-en">value_counts</span>().<span class="pl-en">rename</span>(<span class="pl-s">"count"</span>).<span class="pl-en">reset_index</span>() <span class="pl-en">print</span>(<span class="pl-s1">counts</span>[<span class="pl-s">"day"</span>].<span class="pl-s1">dtype</span>)</pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="category object"><pre class="notranslate"><code class="notranslate">category object </code></pre></div> <h4 dir="auto">Problem description</h4> <p dir="auto">When the categorical variable (<code class="notranslate">day</code>) becomes an index in the groupby and then gets reset, it loses its categorical metadata (and dtype). In the case of the tips dataset, this includes the proper ordering of days.</p> <p dir="auto">Interestingly, this isn't the case with the <code class="notranslate">Series.value_counts</code> method, which properly creates a <code class="notranslate">CategoricalIndex</code> with the order metadata.</p> <p dir="auto">I don't see an existing issue about this but maybe <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="65107624" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/9748" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/9748/hovercard" href="https://github.com/pandas-dev/pandas/issues/9748">#9748</a> is related?</p> <h4 dir="auto">Expected Output</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="category category"><pre class="notranslate"><code class="notranslate">category category </code></pre></div> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> <h2 dir="auto">INSTALLED VERSIONS</h2> <p dir="auto">commit: None<br> python: 3.6.2.final.0<br> python-bits: 64<br> OS: Darwin<br> OS-release: 16.7.0<br> machine: x86_64<br> processor: i386<br> byteorder: little<br> LC_ALL: None<br> LANG: en_US.UTF-8<br> LOCALE: en_US.UTF-8</p> <p dir="auto">pandas: 0.21.1<br> pytest: 3.2.1<br> pip: 9.0.1<br> setuptools: 36.5.0.post20170921<br> Cython: 0.26.1<br> numpy: 1.13.1<br> scipy: 0.19.1<br> pyarrow: None<br> xarray: None<br> IPython: 6.2.1<br> sphinx: 1.6.3<br> patsy: 0.4.1<br> dateutil: 2.6.1<br> pytz: 2017.2<br> blosc: None<br> bottleneck: 1.2.1<br> tables: 3.4.2<br> numexpr: 2.6.2<br> feather: None<br> matplotlib: 2.1.1<br> openpyxl: 2.4.8<br> xlrd: 1.1.0<br> xlwt: 1.2.0<br> xlsxwriter: 0.9.8<br> lxml: 3.8.0<br> bs4: 4.6.0<br> html5lib: 0.999999999<br> sqlalchemy: 1.1.13<br> pymysql: None<br> psycopg2: None<br> jinja2: 2.9.6<br> s3fs: None<br> fastparquet: None<br> pandas_gbq: None<br> pandas_datareader: None</p> </details>
<h4 dir="auto">Code Sample, a copy-pastable example if possible</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# Your code here In [1]: df=pd.DataFrame(dict(payload=[-1,-2,-1,-2], col=pd.Categorical([&quot;foo&quot;, &quot;bar&quot;, &quot;bar&quot;, &quot;qux&quot;], ordered=True)));df Out[1]: col payload 0 foo -1 1 bar -2 2 bar -1 3 qux -2 In [2]: df.groupby(&quot;payload&quot;).first().col.dtype Out[2]: dtype('O') "><pre class="notranslate"><span class="pl-c"># Your code here</span> <span class="pl-v">In</span> [<span class="pl-c1">1</span>]: <span class="pl-s1">df</span><span class="pl-c1">=</span><span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>(<span class="pl-en">dict</span>(<span class="pl-s1">payload</span><span class="pl-c1">=</span>[<span class="pl-c1">-</span><span class="pl-c1">1</span>,<span class="pl-c1">-</span><span class="pl-c1">2</span>,<span class="pl-c1">-</span><span class="pl-c1">1</span>,<span class="pl-c1">-</span><span class="pl-c1">2</span>], <span class="pl-s1">col</span><span class="pl-c1">=</span><span class="pl-s1">pd</span>.<span class="pl-v">Categorical</span>([<span class="pl-s">"foo"</span>, <span class="pl-s">"bar"</span>, <span class="pl-s">"bar"</span>, <span class="pl-s">"qux"</span>], <span class="pl-s1">ordered</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)));<span class="pl-s1">df</span> <span class="pl-v">Out</span>[<span class="pl-c1">1</span>]: <span class="pl-s1">col</span> <span class="pl-s1">payload</span> <span class="pl-c1">0</span> <span class="pl-s1">foo</span> <span class="pl-c1">-</span><span class="pl-c1">1</span> <span class="pl-c1">1</span> <span class="pl-s1">bar</span> <span class="pl-c1">-</span><span class="pl-c1">2</span> <span class="pl-c1">2</span> <span class="pl-s1">bar</span> <span class="pl-c1">-</span><span class="pl-c1">1</span> <span class="pl-c1">3</span> <span class="pl-s1">qux</span> <span class="pl-c1">-</span><span class="pl-c1">2</span> <span class="pl-v">In</span> [<span class="pl-c1">2</span>]: <span class="pl-s1">df</span>.<span class="pl-en">groupby</span>(<span class="pl-s">"payload"</span>).<span class="pl-en">first</span>().<span class="pl-s1">col</span>.<span class="pl-s1">dtype</span> <span class="pl-v">Out</span>[<span class="pl-c1">2</span>]: <span class="pl-en">dtype</span>(<span class="pl-s">'O'</span>)</pre></div> <h4 dir="auto">Problem description</h4> <p dir="auto">Grouping shouldn't coerce a categorical into object. Categorical dtypes should be preserved as long as possible for efficiency and correctness.</p> <h4 dir="auto">Expected Output</h4> <p dir="auto">The result dtype should be CategoricalDtype(categories=['bar', 'foo', 'qux'], ordered=True), just like it is here:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" In [6]: df.groupby(&quot;payload&quot;).head().col.dtype Out[6]: CategoricalDtype(categories=['bar', 'foo', 'qux'], ordered=True #### Output of ``pd.show_versions()`` &lt;details&gt; INSTALLED VERSIONS ------------------ commit: None python: 3.4.3.final.0 python-bits: 64 OS: Linux OS-release: 4.4.0-98-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.21.0 pytest: 3.2.5 pip: 9.0.1 setuptools: 36.5.0 Cython: 0.20.1post0 numpy: 1.13.3 scipy: 0.13.3 pyarrow: None xarray: 0.9.6 IPython: 6.2.0 sphinx: None patsy: None dateutil: 2.6.1 pytz: 2017.3 blosc: None bottleneck: None tables: 3.1.1 numexpr: 2.6.4 feather: None matplotlib: 1.3.1 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: 4.2.1 html5lib: 0.999 sqlalchemy: 0.8.4 pymysql: None psycopg2: None jinja2: 2.7.2 s3fs: 0.1.2 fastparquet: None pandas_gbq: None pandas_datareader: None [paste the output of ``pd.show_versions()`` here below this line] &lt;/details&gt;"><pre class="notranslate"> <span class="pl-v">In</span> [<span class="pl-c1">6</span>]: <span class="pl-s1">df</span>.<span class="pl-en">groupby</span>(<span class="pl-s">"payload"</span>).<span class="pl-en">head</span>().<span class="pl-s1">col</span>.<span class="pl-s1">dtype</span> <span class="pl-v">Out</span>[<span class="pl-c1">6</span>]: <span class="pl-v">CategoricalDtype</span>(<span class="pl-s1">categories</span><span class="pl-c1">=</span>[<span class="pl-s">'bar'</span>, <span class="pl-s">'foo'</span>, <span class="pl-s">'qux'</span>], <span class="pl-s1">ordered</span><span class="pl-c1">=</span><span class="pl-c1">True</span> <span class="pl-c">#### Output of ``pd.show_versions()``</span> <span class="pl-c1">&lt;</span><span class="pl-s1">details</span><span class="pl-c1">&gt;</span> <span class="pl-v">INSTALLED</span> <span class="pl-v">VERSIONS</span> <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span> <span class="pl-s1">commit</span>: <span class="pl-c1">None</span> <span class="pl-s1">python</span>: <span class="pl-c1">3.4</span><span class="pl-c1">.3</span>.<span class="pl-s1">final</span><span class="pl-c1">.0</span> <span class="pl-s1">python</span><span class="pl-c1">-</span><span class="pl-s1">bits</span>: <span class="pl-c1">64</span> <span class="pl-v">OS</span>: <span class="pl-v">Linux</span> <span class="pl-v">OS</span><span class="pl-c1">-</span><span class="pl-s1">release</span>: <span class="pl-c1">4.4</span><span class="pl-c1">.0</span><span class="pl-c1">-</span><span class="pl-c1">98</span><span class="pl-c1">-</span><span class="pl-s1">generic</span> <span class="pl-s1">machine</span>: <span class="pl-s1">x86_64</span> <span class="pl-s1">processor</span>: <span class="pl-s1">x86_64</span> <span class="pl-s1">byteorder</span>: <span class="pl-s1">little</span> <span class="pl-v">LC_ALL</span>: <span class="pl-c1">None</span> <span class="pl-v">LANG</span>: <span class="pl-s1">en_US</span>.<span class="pl-v">UTF</span><span class="pl-c1">-</span><span class="pl-c1">8</span> <span class="pl-v">LOCALE</span>: <span class="pl-s1">en_US</span>.<span class="pl-v">UTF</span><span class="pl-c1">-</span><span class="pl-c1">8</span> <span class="pl-s1">pandas</span>: <span class="pl-c1">0.21</span>.<span class="pl-c1">0</span> <span class="pl-s1">pytest</span>: <span class="pl-c1">3.2</span>.<span class="pl-c1">5</span> <span class="pl-s1">pip</span>: <span class="pl-c1">9.0</span>.<span class="pl-c1">1</span> <span class="pl-s1">setuptools</span>: <span class="pl-c1">36.5</span>.<span class="pl-c1">0</span> <span class="pl-v">Cython</span>: <span class="pl-c1">0.20</span>.<span class="pl-c1">1</span><span class="pl-s1">post0</span> <span class="pl-s1">numpy</span>: <span class="pl-c1">1.13</span>.<span class="pl-c1">3</span> <span class="pl-s1">scipy</span>: <span class="pl-c1">0.13</span>.<span class="pl-c1">3</span> <span class="pl-s1">pyarrow</span>: <span class="pl-c1">None</span> <span class="pl-s1">xarray</span>: <span class="pl-c1">0.9</span>.<span class="pl-c1">6</span> <span class="pl-v">IPython</span>: <span class="pl-c1">6.2</span>.<span class="pl-c1">0</span> <span class="pl-s1">sphinx</span>: <span class="pl-c1">None</span> <span class="pl-s1">patsy</span>: <span class="pl-c1">None</span> <span class="pl-s1">dateutil</span>: <span class="pl-c1">2.6</span>.<span class="pl-c1">1</span> <span class="pl-s1">pytz</span>: <span class="pl-c1">2017.3</span> <span class="pl-s1">blosc</span>: <span class="pl-c1">None</span> <span class="pl-s1">bottleneck</span>: <span class="pl-c1">None</span> <span class="pl-s1">tables</span>: <span class="pl-c1">3.1</span>.<span class="pl-c1">1</span> <span class="pl-s1">numexpr</span>: <span class="pl-c1">2.6</span>.<span class="pl-c1">4</span> <span class="pl-s1">feather</span>: <span class="pl-c1">None</span> <span class="pl-s1">matplotlib</span>: <span class="pl-c1">1.3</span>.<span class="pl-c1">1</span> <span class="pl-s1">openpyxl</span>: <span class="pl-c1">None</span> <span class="pl-s1">xlrd</span>: <span class="pl-c1">None</span> <span class="pl-s1">xlwt</span>: <span class="pl-c1">None</span> <span class="pl-s1">xlsxwriter</span>: <span class="pl-c1">None</span> <span class="pl-s1">lxml</span>: <span class="pl-c1">None</span> <span class="pl-s1">bs4</span>: <span class="pl-c1">4.2</span>.<span class="pl-c1">1</span> <span class="pl-s1">html5lib</span>: <span class="pl-c1">0.999</span> <span class="pl-s1">sqlalchemy</span>: <span class="pl-c1">0.8</span>.<span class="pl-c1">4</span> <span class="pl-s1">pymysql</span>: <span class="pl-c1">None</span> <span class="pl-s1">psycopg2</span>: <span class="pl-c1">None</span> <span class="pl-s1">jinja2</span>: <span class="pl-c1">2.7</span>.<span class="pl-c1">2</span> <span class="pl-s1">s3fs</span>: <span class="pl-c1">0.1</span>.<span class="pl-c1">2</span> <span class="pl-s1">fastparquet</span>: <span class="pl-c1">None</span> <span class="pl-s1">pandas_gbq</span>: <span class="pl-c1">None</span> <span class="pl-s1">pandas_datareader</span>: <span class="pl-c1">None</span> [<span class="pl-s1">paste</span> <span class="pl-s1">the</span> <span class="pl-s1">output</span> <span class="pl-s1">of</span> <span class="pl-s">``</span><span class="pl-s1">pd</span>.<span class="pl-en">show_versions</span>()<span class="pl-s">``</span> <span class="pl-s1">here</span> <span class="pl-s1">below</span> <span class="pl-s1">this</span> <span class="pl-s1">line</span>] <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-s1">details</span><span class="pl-c1">&gt;</span></pre></div>
1
<p dir="auto">Suppose a <code class="notranslate">type</code> declaration is used to provide a shorter name for a specific example of a generic struct</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="struct X&lt;T&gt;; impl&lt;T&gt; X&lt;T&gt; { fn go() -&gt; int {-1} } struct A; type Alias = X&lt;A&gt;;"><pre class="notranslate"><span class="pl-k">struct</span> <span class="pl-smi">X</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">&gt;</span><span class="pl-kos">;</span> <span class="pl-k">impl</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">&gt;</span> <span class="pl-smi">X</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">fn</span> <span class="pl-en">go</span><span class="pl-kos">(</span><span class="pl-kos">)</span> -&gt; <span class="pl-smi">int</span> <span class="pl-kos">{</span>-<span class="pl-c1">1</span><span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">struct</span> <span class="pl-smi">A</span><span class="pl-kos">;</span> <span class="pl-k">type</span> <span class="pl-smi">Alias</span> = <span class="pl-smi">X</span><span class="pl-kos">&lt;</span><span class="pl-smi">A</span><span class="pl-kos">&gt;</span><span class="pl-kos">;</span></pre></div> <p dir="auto">then its not possible to call a static method via <code class="notranslate">Alias</code></p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fn main() { let a = X::&lt;A&gt;::go(); // Works let b = Alias::go(); // Won't compile - error: failed to resolve. Use of undeclared module `Alias` }"><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-k">let</span> a = <span class="pl-smi">X</span><span class="pl-kos">::</span><span class="pl-kos">&lt;</span><span class="pl-smi">A</span><span class="pl-kos">&gt;</span><span class="pl-kos">::</span><span class="pl-en">go</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Works</span> <span class="pl-k">let</span> b = <span class="pl-smi">Alias</span><span class="pl-kos">::</span><span class="pl-en">go</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Won't compile - error: failed to resolve. Use of undeclared module `Alias`</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Should the compiler expand <code class="notranslate">type</code> declarations in path expressions (ie <code class="notranslate">Alias =&gt; X::&lt;T&gt;</code>)?</p>
<p dir="auto">Compile this:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="pub mod foo { pub mod bar { pub mod baz { struct Qux; impl Qux { pub fn new() {} } } } } fn main() { type Ham = foo::bar::baz::Qux; let Foo = foo::bar::baz::Qux::new(); // works fine let Bar = Ham::new(); // oops! }"><pre class="notranslate"><span class="pl-k">pub</span> <span class="pl-k">mod</span> foo <span class="pl-kos">{</span> <span class="pl-k">pub</span> <span class="pl-k">mod</span> bar <span class="pl-kos">{</span> <span class="pl-k">pub</span> <span class="pl-k">mod</span> baz <span class="pl-kos">{</span> <span class="pl-k">struct</span> <span class="pl-smi">Qux</span><span class="pl-kos">;</span> <span class="pl-k">impl</span> <span class="pl-smi">Qux</span> <span class="pl-kos">{</span> <span class="pl-k">pub</span> <span class="pl-k">fn</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-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">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">type</span> <span class="pl-smi">Ham</span> = foo<span class="pl-kos">::</span>bar<span class="pl-kos">::</span>baz<span class="pl-kos">::</span><span class="pl-smi">Qux</span><span class="pl-kos">;</span> <span class="pl-k">let</span> <span class="pl-v">Foo</span> = foo<span class="pl-kos">::</span>bar<span class="pl-kos">::</span>baz<span class="pl-kos">::</span><span class="pl-smi">Qux</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-c">// works fine</span> <span class="pl-k">let</span> <span class="pl-v">Bar</span> = <span class="pl-smi">Ham</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-c">// oops!</span> <span class="pl-kos">}</span></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ rustc ty.rs !!! (resolving module in lexical scope) module wasn't actually a module! ty.rs:16:14: 16:22 error: unresolved name ty.rs:16 let Bar = Ham::new(); ^~~~~~~~ ty.rs:16:14: 16:22 error: use of undeclared module `Ham` ty.rs:16 let Bar = Ham::new(); ^~~~~~~~ !!! (resolving module in lexical scope) module wasn't actually a module! ty.rs:16:14: 16:22 error: unresolved name `Ham::new`. ty.rs:16 let Bar = Ham::new(); ^~~~~~~~ error: aborting due to 3 previous errors task 'rustc' failed at 'explicit failure', /root/catacombs/scrap/rust/src/libsyntax/diagnostic.rs:102 task '&lt;main&gt;' failed at 'explicit failure', /root/catacombs/scrap/rust/src/librustc/lib.rs:392"><pre class="notranslate"><code class="notranslate">$ rustc ty.rs !!! (resolving module in lexical scope) module wasn't actually a module! ty.rs:16:14: 16:22 error: unresolved name ty.rs:16 let Bar = Ham::new(); ^~~~~~~~ ty.rs:16:14: 16:22 error: use of undeclared module `Ham` ty.rs:16 let Bar = Ham::new(); ^~~~~~~~ !!! (resolving module in lexical scope) module wasn't actually a module! ty.rs:16:14: 16:22 error: unresolved name `Ham::new`. ty.rs:16 let Bar = Ham::new(); ^~~~~~~~ error: aborting due to 3 previous errors task 'rustc' failed at 'explicit failure', /root/catacombs/scrap/rust/src/libsyntax/diagnostic.rs:102 task '&lt;main&gt;' failed at 'explicit failure', /root/catacombs/scrap/rust/src/librustc/lib.rs:392 </code></pre></div> <p dir="auto">I can't imagine that this is intentional, as it greatly limits the utility of type aliases.</p>
1
<h1 dir="auto">Bug report</h1> <h2 dir="auto">Describe the bug</h2> <p dir="auto">When using Next's new <code class="notranslate">src/pages</code> support through <code class="notranslate">now dev</code> (because I'm using <code class="notranslate">now secrets</code>) I'm getting a directory list view listing only the <em>package.json</em> instead of the <code class="notranslate">index</code> page.</p> <h2 dir="auto">To Reproduce</h2> <ol dir="auto"> <li>Create a new Next app <code class="notranslate">npx create-next-app now-dev-src-pages</code></li> <li>Move the <code class="notranslate">pages</code> and the <code class="notranslate">components</code> directory to an <code class="notranslate">src</code> folder in the root folder</li> <li>Launch dev mode using <code class="notranslate">now dev</code></li> </ol> <h2 dir="auto">Expected behavior</h2> <p dir="auto">When visiting <code class="notranslate">http://localhost:3000</code> I should see the <code class="notranslate">src/pages/index.js</code> page contents.</p> <h2 dir="auto">Screenshots</h2> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/140042/66467493-d0bada80-ea84-11e9-9003-f9b9610df64d.png"><img src="https://user-images.githubusercontent.com/140042/66467493-d0bada80-ea84-11e9-9003-f9b9610df64d.png" alt="image" style="max-width: 100%;"></a></p> <h2 dir="auto">System information</h2> <ul dir="auto"> <li>OS: [macOS]</li> <li>Version of Next.js: 9.1.1</li> </ul> <h2 dir="auto">Additional info</h2> <p dir="auto">Visiting <code class="notranslate">http://localhost:5000</code> instead, I get to see the actual expected behaviour.</p>
<p dir="auto">Running <code class="notranslate">now dev</code> while having everything the <code class="notranslate">src</code> directory does not work. <code class="notranslate">next build</code> still works.</p> <p dir="auto">Next.js <code class="notranslate">v9.1.0</code>.<br> No <code class="notranslate">now.json</code>.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/40987398/66358765-5a15c400-e942-11e9-8ca1-e3a68b753f11.png"><img src="https://user-images.githubusercontent.com/40987398/66358765-5a15c400-e942-11e9-8ca1-e3a68b753f11.png" alt="Screenshot from 2019-10-07 20-37-27" style="max-width: 100%;"></a></p> <p dir="auto">Thanks!</p>
1
<h2 dir="auto">Feature Request</h2> <p dir="auto">Charset of ShardingSphere Proxy is determined by</p> <ol dir="auto"> <li>locale of environment</li> <li>The property <code class="notranslate">file.encoding</code></li> </ol> <h3 dir="auto">Is your feature request related to a problem?</h3> <p dir="auto">If the charset was unset in environment, any non-ASCII characters will always be malformed.</p> <h3 dir="auto">Describe the feature you would like.</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Parse Charset provides by client in protocol and store in connection scope. <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1038376989" data-permission-text="Title is private" data-url="https://github.com/apache/shardingsphere/issues/13332" data-hovercard-type="pull_request" data-hovercard-url="/apache/shardingsphere/pull/13332/hovercard" href="https://github.com/apache/shardingsphere/pull/13332">#13332</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Intercept SQL like <code class="notranslate">set names utf8</code> or <code class="notranslate">set client_encoding to 'UTF8'</code> and set the charset to current channel attribute. Duplicated with <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="989155171" data-permission-text="Title is private" data-url="https://github.com/apache/shardingsphere/issues/12245" data-hovercard-type="issue" data-hovercard-url="/apache/shardingsphere/issues/12245/hovercard" href="https://github.com/apache/shardingsphere/issues/12245">#12245</a></li> </ul>
<p dir="auto">I have a table with no sharding configuration, if I try to ask a page request with certain offset (not zero), it will always return the first page.</p> <p dir="auto">I took a look at class DQLMergeEngine, and found that some weird code below.<br> <code class="notranslate">@Override public MergedResult merge() throws SQLException { if (1 == queryResults.size()) { return new IteratorStreamMergedResult(queryResults); } selectStatement.setIndexForItems(columnLabelIndexMap); return decorate(build()); }</code></p> <p dir="auto">it will always return IteratorStreamMergedResult instance even it's a select request with limit.</p> <p dir="auto">It's working at 3.0.0 with different logic, please take a look.</p>
0
<p dir="auto">when parse SQL with many parameters, it will be very slow<br> method is : org.apache.shardingsphere.sql.parser.SQLParseEngine#parse0 sqlParseKernel.parse()<br> version:4.0.1<br> for example,this sql will be use 1.5s<br> sql:SELECT count(0) FROM table WHERE id IN (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) AND store_id IN (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)</p>
<p dir="auto">sql:<br> insert into t_order (id, avl_inventory, <code class="notranslate">type</code>,<br> create_person, create_time, update_person, update_time, is_deleted, version )<br> VALUES<br> (76667, 100, 1, 'xx(189870)', '2019-4-25 18:25:20', 'xx(189870)','2019-4-25 18:25:20', 0,0 ) ,<br> (78143, 100, 1, 'xx(189870)', '2019-4-25 18:25:20',<br> 'xx(189870)', '2019-4-25 18:25:20', 0,0 )<br> ON DUPLICATE KEY UPDATE avl_inventory = VALUES(avl_inventory),<br> <code class="notranslate">type</code> = VALUES(<code class="notranslate">type</code>),<br> create_time = VALUES(create_time), create_person = VALUES(create_person),<br> update_time = VALUES(update_time), update_person = VALUES(update_person);</p> <p dir="auto">error:<br> Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '78143' for key 'PRIMARY'<br> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)<br> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)<br> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)<br> at java.lang.reflect.Constructor.newInstance(Constructor.java:422)<br> at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)<br> at com.mysql.jdbc.Util.getInstance(Util.java:408)<br> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936)<br> at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3973)<br> at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3909)<br> at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2527)<br> at com.mysql.jdbc.ServerPreparedStatement.serverExecute(ServerPreparedStatement.java:1283)<br> at com.mysql.jdbc.ServerPreparedStatement.executeInternal(ServerPreparedStatement.java:783)<br> at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:1197)<br> at com.zaxxer.hikari.pool.ProxyPreparedStatement.execute(ProxyPreparedStatement.java:44)<br> at com.zaxxer.hikari.pool.HikariProxyPreparedStatement.execute(HikariProxyPreparedStatement.java)<br> at org.apache.shardingsphere.shardingjdbc.executor.SQLExecuteCallbackFactory$2.executeSQL(SQLExecuteCallbackFactory.java:65)<br> at org.apache.shardingsphere.shardingjdbc.executor.SQLExecuteCallbackFactory$2.executeSQL(SQLExecuteCallbackFactory.java:61)<br> at org.apache.shardingsphere.core.execute.sql.execute.SQLExecuteCallback.execute0(SQLExecuteCallback.java:69)<br> at org.apache.shardingsphere.core.execute.sql.execute.SQLExecuteCallback.execute(SQLExecuteCallback.java:58)</p>
0
<p dir="auto">It would be nice to allowing conversion of std::array to InputArrays, we are limited to std::vector and I often find myself refraining std::array although I know my data size is fixed (e.g code that involves triangles only).</p>
<h5 dir="auto">System information (version)</h5>
0
<p dir="auto">[x] Many common issues and suggestions are addressed in the FAQ<br> <a href="https://github.com/Microsoft/TypeScript/wiki/FAQ">https://github.com/Microsoft/TypeScript/wiki/FAQ</a><br> [x] Search for duplicates before logging new issues<br> <a href="https://github.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93&amp;q=is%3Aissue">https://github.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93&amp;q=is%3Aissue</a><br> [x] Questions are best asked and answered at Stack Overflow<br> <a href="http://stackoverflow.com/questions/tagged/typescript" rel="nofollow">http://stackoverflow.com/questions/tagged/typescript</a></p> <hr> <p dir="auto">-&gt; asked on S/O here <a href="http://stackoverflow.com/questions/37189910/react-stateless-component-children-with-typescript-error-property-children" rel="nofollow">http://stackoverflow.com/questions/37189910/react-stateless-component-children-with-typescript-error-property-children</a> no responses so far.</p> <p dir="auto"><strong>TypeScript Version:</strong><br> 1.8.2</p> <p dir="auto"><strong>Code</strong></p> <div class="highlight highlight-source-tsx notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// presentational components const MsgDisplay = ({msg}) =&gt; ( &lt;div&gt; {msg} // will be more complicated later &lt;/div&gt;) const RowDisplay = ({data, children}) =&gt; ( &lt;tr&gt; &lt;td&gt;...&lt;/td&gt; &lt;td&gt;{ children }&lt;/td&gt; &lt;td&gt;...&lt;/td&gt; &lt;/tr&gt;) // container component public render() { return ( &lt;RowDisplay data={this.props.xyz} &gt; &lt;MsgDisplay msg={someMsg} /&gt; &lt;/RowDisplay&gt; ) }"><pre class="notranslate"><span class="pl-c">// presentational components</span> <span class="pl-k">const</span> <span class="pl-smi">MsgDisplay</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">{</span>msg<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">div</span><span class="pl-c1">&gt;</span> <span class="pl-kos">{</span><span class="pl-s1">msg</span><span class="pl-kos">}</span> // will be more complicated later <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span><span class="pl-kos">)</span> <span class="pl-k">const</span> <span class="pl-smi">RowDisplay</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">{</span>data<span class="pl-kos">,</span> children<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">tr</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">td</span><span class="pl-c1">&gt;</span>...<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">td</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">td</span><span class="pl-c1">&gt;</span><span class="pl-kos">{</span> <span class="pl-s1">children</span> <span class="pl-kos">}</span><span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">td</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">td</span><span class="pl-c1">&gt;</span>...<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">td</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">tr</span><span class="pl-c1">&gt;</span><span class="pl-kos">)</span> <span class="pl-c">// container component</span> <span class="pl-en">public</span> <span class="pl-s1">render</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos"></span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-kos">(</span> <span class="pl-c1">&lt;</span><span class="pl-smi">RowDisplay</span> <span class="pl-c1">data</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">props</span><span class="pl-kos">.</span><span class="pl-c1">xyz</span><span class="pl-kos">}</span> <span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-smi">MsgDisplay</span> <span class="pl-c1">msg</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">someMsg</span><span class="pl-kos">}</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-smi">RowDisplay</span><span class="pl-c1">&gt;</span> <span class="pl-kos">)</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><strong>Expected behavior:</strong></p> <p dir="auto">Should compile.</p> <p dir="auto"><strong>Actual behavior:</strong></p> <p dir="auto">Complains that <code class="notranslate">error TS2324: Property 'children' is missing in type 'IntrinsicAttributes &amp; { data: any; children: any; }'.</code></p> <p dir="auto">Seems it can't see the children being passed in jsx notation.</p>
<h2 dir="auto">Rationale</h2> <p dir="auto">Props are an important part of a React component's interface, but children can be as well.<br> In applications it's not uncommon to want to restrict what kind of children a component will<br> accept. Currently this enforcement has to be done at runtime by throwing errors.</p> <h2 dir="auto">The Goal</h2> <p dir="auto">Components can specify allowed children as a union type. Each member would correspond to<br> the tag, or 'type' field, of the resulting Element. Ideally this could be plucked from<br> the type of props.children, which would satisfy both component classes and SFCs.</p> <h2 dir="auto">Motivating Examples:</h2> <p dir="auto">A modal component may want to make assumptions about its children to satisfy layout<br> constraints.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface IModalProps { children: ModalHeader | ModalBody | ModalFooter; } function Modal({ children }: IModalProps) { ... } function ModalHeader(props) { ... } function ModalBody(props) { ... } function ModalFooter(props) { ... } &lt;Modal&gt; &lt;ModalHeader /&gt; &lt;div /&gt; { /* Desired error: type 'div' does not exist in type 'ModalHeader | ModalBody | ModalFooter' */ } &lt;ModalBody /&gt; &lt;ModalFooter /&gt; &lt;/Modal&gt;"><pre class="notranslate"><span class="pl-s1">interface</span> <span class="pl-v">IModalProps</span> <span class="pl-kos">{</span> children: <span class="pl-v">ModalHeader</span> <span class="pl-c1">|</span> <span class="pl-v">ModalBody</span> <span class="pl-c1">|</span> <span class="pl-v">ModalFooter</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">function</span> <span class="pl-v">Modal</span><span class="pl-kos">(</span><span class="pl-kos">{</span> children <span class="pl-kos">}</span>: <span class="pl-v">IModalProps</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> ... <span class="pl-kos">}</span> <span class="pl-k">function</span> <span class="pl-v">ModalHeader</span><span class="pl-kos">(</span><span class="pl-s1">props</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> ... <span class="pl-kos">}</span> <span class="pl-k">function</span> <span class="pl-v">ModalBody</span><span class="pl-kos">(</span><span class="pl-s1">props</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> ... <span class="pl-kos">}</span> <span class="pl-k">function</span> <span class="pl-v">ModalFooter</span><span class="pl-kos">(</span><span class="pl-s1">props</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> ... <span class="pl-kos">}</span> <span class="pl-c1">&lt;</span><span class="pl-ent">Modal</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">ModalHeader</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span> <span class="pl-kos">{</span> <span class="pl-c">/* Desired error: type 'div' does not exist in type 'ModalHeader | ModalBody | ModalFooter' */</span> <span class="pl-kos">}</span> <span class="pl-c1">&lt;</span><span class="pl-ent">ModalBody</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">ModalFooter</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">Modal</span><span class="pl-c1">&gt;</span></pre></div> <p dir="auto">Similarly...</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface IButtonGroupProps { children: 'button'; } function ButtonGroup({ children }: IButtonGroupProps) { ... } &lt;ButtonGroup&gt; &lt;button /&gt; &lt;button /&gt; &lt;a href='' /&gt; { /* Desired error: type 'a' is not assignable to type 'button' */ } &lt;/ButtonGroup&gt;"><pre class="notranslate"><span class="pl-s1">interface</span> <span class="pl-v">IButtonGroupProps</span> <span class="pl-kos">{</span> children: <span class="pl-s">'button'</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">function</span> <span class="pl-v">ButtonGroup</span><span class="pl-kos">(</span><span class="pl-kos">{</span> children <span class="pl-kos">}</span>: <span class="pl-v">IButtonGroupProps</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> ... <span class="pl-kos">}</span> <span class="pl-c1">&lt;</span><span class="pl-ent">ButtonGroup</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span><span class="pl-c1">=</span><span class="pl-s">''</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span> <span class="pl-kos">{</span> <span class="pl-c">/* Desired error: type 'a' is not assignable to type 'button' */</span> <span class="pl-kos">}</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">ButtonGroup</span><span class="pl-c1">&gt;</span></pre></div> <p dir="auto">An interesting emerging pattern is using JSX as a function call to turn imperative APIs into<br> declarative ones. Currently these 'render callbacks' can't be type-checked at all. A more complete<br> summary can be found at <a href="http://reactpatterns.com/#render-callback" rel="nofollow">http://reactpatterns.com/#render-callback</a>. A further example can be found at <a href="https://github.com/ReactTraining/react-media#usage">https://github.com/ReactTraining/react-media#usage</a>.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface IUser { Name: string; } interface IFetchUserProps { children(user: IUser): any; } class FetchUser extends React.Component&lt;IFetchUserProps, any&gt; { render() { return this.state ? this.props.children(this.state.result) : null; } componentDidMount() { api.fetchUser().then(result =&gt; this.setState({ result })); } } function UserName() { return ( &lt;FetchUser&gt; { user =&gt; ( &lt;h1&gt;{ user.NAme }&lt;/h1&gt; // Desired error: property 'NAme' does not exist on type 'IUser' ) } &lt;/FetchUser&gt; ); }"><pre class="notranslate"><span class="pl-s1">interface</span> <span class="pl-v">IUser</span> <span class="pl-kos">{</span> Name: <span class="pl-s1">string</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-s1">interface</span> <span class="pl-v">IFetchUserProps</span> <span class="pl-kos">{</span> <span class="pl-c1">children</span><span class="pl-kos">(</span><span class="pl-s1">user</span>: <span class="pl-v">IUser</span><span class="pl-kos">)</span>: <span class="pl-s1">any</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">class</span> <span class="pl-v">FetchUser</span> <span class="pl-k">extends</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-c1">Component</span><span class="pl-c1">&lt;</span><span class="pl-v">IFetchUserProps</span><span class="pl-kos">,</span> <span class="pl-s1">any</span><span class="pl-c1">&gt;</span> <span class="pl-kos">{</span> <span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">state</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-en">children</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">state</span><span class="pl-kos">.</span><span class="pl-c1">result</span><span class="pl-kos">)</span> : <span class="pl-c1">null</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-en">componentDidMount</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">api</span><span class="pl-kos">.</span><span class="pl-en">fetchUser</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-s1">result</span> <span class="pl-c1">=&gt;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">setState</span><span class="pl-kos">(</span><span class="pl-kos">{</span> result <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-s1">function</span> <span class="pl-v">UserName</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c1">return</span> <span class="pl-kos">(</span> <span class="pl-c1">&lt;</span><span class="pl-v">FetchUser</span><span class="pl-c1">&gt;</span> <span class="pl-kos">{</span> <span class="pl-s1">user</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">(</span> <span class="pl-c1">&lt;</span><span class="pl-s1">h1</span><span class="pl-c1">&gt;</span><span class="pl-kos">{</span> user<span class="pl-kos">.</span><span class="pl-v">NAme</span> <span class="pl-kos">}</span><span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-s1">h1</span><span class="pl-c1">&gt;</span> <span class="pl-c">// Desired error: property 'NAme' does not exist on type 'IUser'</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-v">FetchUser</span><span class="pl-c1">&gt;</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Lastly, I don't <em>think</em> any of this is necessarily specific to React. Other libraries leveraging the JSX<br> specification for component structure should be able to leverage this as well. The crux of this lies at<br> the relationship between the type of the 'children' attribute of a given tag and the children actually<br> passed to it at usage sites.</p>
1
<p dir="auto">hi,<br> please add RTL support to bootstrap 2.1,<br> very thanx</p>
<p dir="auto">Would be great to have support for right-to-left languages.</p>
1
<p dir="auto">Words that coincide with variable / object names in comments are inspectable as if you were inspecting the real variable. For me this occurred in a JavaScript file on Windows 10.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/14299377/13093842/38301a82-d4bc-11e5-85db-e62d90f676a2.gif"><img src="https://cloud.githubusercontent.com/assets/14299377/13093842/38301a82-d4bc-11e5-85db-e62d90f676a2.gif" alt="debug_commented_variables" data-animated-image="" style="max-width: 100%;"></a></p>
<ul dir="auto"> <li>VSCode Version: 1.2</li> <li>OS Version: Debian Jessie</li> </ul> <p dir="auto">Steps to Reproduce:<br> A fresh install doesn't have this directory. Or just remove it to test.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rm -rf ~/.config/Code/User"><pre class="notranslate"><code class="notranslate">rm -rf ~/.config/Code/User </code></pre></div> <ol dir="auto"> <li>Try installing any extension.</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="code --install-extension ms-vscode.csharp Error: watch /home/vscode/.config/Code/User ENOENT at exports._errnoException (util.js:890:11) at FSWatcher.start (fs.js:1323:19) at Object.fs.watch (fs.js:1351:11) at new e (/usr/share/code/resources/app/out/vs/code/node/cliProcessMain.js:6:1245) at m (/usr/share/code/resources/app/out/vs/code/node/cli.js:4:11378) at t._createInstance (/usr/share/code/resources/app/out/vs/code/node/cliProcessMain.js:6:7605) at t._createAndCacheServiceInstance (/usr/share/code/resources/app/out/vs/code/node/cliProcessMain.js:6:8580) at t._getOrCreateServiceInstance (/usr/share/code/resources/app/out/vs/code/node/cliProcessMain.js:6:7766) at /usr/share/code/resources/app/out/vs/code/node/cliProcessMain.js:6:7122 at Array.map (native)"><pre class="notranslate"><code class="notranslate">code --install-extension ms-vscode.csharp Error: watch /home/vscode/.config/Code/User ENOENT at exports._errnoException (util.js:890:11) at FSWatcher.start (fs.js:1323:19) at Object.fs.watch (fs.js:1351:11) at new e (/usr/share/code/resources/app/out/vs/code/node/cliProcessMain.js:6:1245) at m (/usr/share/code/resources/app/out/vs/code/node/cli.js:4:11378) at t._createInstance (/usr/share/code/resources/app/out/vs/code/node/cliProcessMain.js:6:7605) at t._createAndCacheServiceInstance (/usr/share/code/resources/app/out/vs/code/node/cliProcessMain.js:6:8580) at t._getOrCreateServiceInstance (/usr/share/code/resources/app/out/vs/code/node/cliProcessMain.js:6:7766) at /usr/share/code/resources/app/out/vs/code/node/cliProcessMain.js:6:7122 at Array.map (native) </code></pre></div> <p dir="auto">Found while working on <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="159497696" data-permission-text="Title is private" data-url="https://github.com/ctaggart/rusty-vscode/issues/16" data-hovercard-type="issue" data-hovercard-url="/ctaggart/rusty-vscode/issues/16/hovercard" href="https://github.com/ctaggart/rusty-vscode/issues/16">ctaggart/rusty-vscode#16</a>.</p>
0
<p dir="auto">Using atom in mac<br> Version 0.131.0</p> <p dir="auto">Two panels open</p> <p dir="auto">Cmd + f opens chrome's dev tools with following error:</p> <p dir="auto">Window load time: 2181ms<br> Uncaught TypeError: undefined is not a function<br> /Applications/Atom.app/Contents/Resources/app/node_modules/find-and-replace/lib/find-view.js:71</p> <p dir="auto">Full stack trace is following:</p> <p dir="auto">(anonymous function) /Applications/Atom.app/Contents/Resources/app/node_modules/find-and-replace/lib/find-view.js:71Builder.tag /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/lib/space-pen.js:238View.(anonymous function) /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/lib/space-pen.js:56(anonymous function) /Applications/Atom.app/Contents/Resources/app/node_modules/find-and-replace/lib/find-view.js:68Builder.tag /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/lib/space-pen.js:238View.(anonymous function) /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/lib/space-pen.js:56(anonymous function) /Applications/Atom.app/Contents/Resources/app/node_modules/find-and-replace/lib/find-view.js:65Builder.tag /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/lib/space-pen.js:238View.(anonymous function) /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/lib/space-pen.js:56module.exports.FindView.content /Applications/Atom.app/Contents/Resources/app/node_modules/find-and-replace/lib/find-view.js:43(anonymous function) /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/lib/space-pen.js:117View.buildHtml /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/lib/space-pen.js:96View /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/lib/space-pen.js:116FindView /Applications/Atom.app/Contents/Resources/app/node_modules/find-and-replace/lib/find-view.js:39module.exports.createViews /Applications/Atom.app/Contents/Resources/app/node_modules/find-and-replace/lib/find.js:167(anonymous function) /Applications/Atom.app/Contents/Resources/app/node_modules/find-and-replace/lib/find.js:109jQuery.event.dispatch /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4676elemData.handle /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4360module.exports.KeymapManager.dispatchCommandEvent /Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:522module.exports.KeymapManager.handleKeyboardEvent /Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:364module.exports.WindowEventHandler.onKeydown /Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:151</p>
<p dir="auto">When i have opened two tabs and i start searching on one, after i go to second one without closing search bar i got this error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TypeError: undefined is not a function at FindModel.module.exports.FindModel.activePaneItemChanged (/opt/atom/resources/app/node_modules/find-and-replace/lib/find-model.js:38:14) at /opt/atom/resources/app/node_modules/find-and-replace/lib/find-model.js:29:24 at Emitter.module.exports.Emitter.emit (/opt/atom/resources/app/node_modules/event-kit/lib/emitter.js:71:11) at /opt/atom/resources/app/src/pane-container.js:285:34 at Emitter.module.exports.Emitter.emit (/opt/atom/resources/app/node_modules/event-kit/lib/emitter.js:71:11) at Pane.module.exports.Pane.setActiveItem (/opt/atom/resources/app/src/pane.js:254:22) at Pane.module.exports.Pane.activateItem (/opt/atom/resources/app/src/pane.js:300:21) at /opt/atom/resources/app/src/workspace.js:369:16 at _fulfilled (/opt/atom/resources/app/node_modules/q/q.js:787:54) at self.promiseDispatch.done (/opt/atom/resources/app/node_modules/q/q.js:816:30) at Promise.promise.promiseDispatch (/opt/atom/resources/app/node_modules/q/q.js:749:13) at /opt/atom/resources/app/node_modules/q/q.js:557:44 at flush (/opt/atom/resources/app/node_modules/q/q.js:108:17) at process._tickCallback (node.js:378:11) Uncaught TypeError: undefined is not a function /opt/atom/resources/app/node_modules/find-and-replace/lib/find-model.js:38"><pre class="notranslate"><code class="notranslate">TypeError: undefined is not a function at FindModel.module.exports.FindModel.activePaneItemChanged (/opt/atom/resources/app/node_modules/find-and-replace/lib/find-model.js:38:14) at /opt/atom/resources/app/node_modules/find-and-replace/lib/find-model.js:29:24 at Emitter.module.exports.Emitter.emit (/opt/atom/resources/app/node_modules/event-kit/lib/emitter.js:71:11) at /opt/atom/resources/app/src/pane-container.js:285:34 at Emitter.module.exports.Emitter.emit (/opt/atom/resources/app/node_modules/event-kit/lib/emitter.js:71:11) at Pane.module.exports.Pane.setActiveItem (/opt/atom/resources/app/src/pane.js:254:22) at Pane.module.exports.Pane.activateItem (/opt/atom/resources/app/src/pane.js:300:21) at /opt/atom/resources/app/src/workspace.js:369:16 at _fulfilled (/opt/atom/resources/app/node_modules/q/q.js:787:54) at self.promiseDispatch.done (/opt/atom/resources/app/node_modules/q/q.js:816:30) at Promise.promise.promiseDispatch (/opt/atom/resources/app/node_modules/q/q.js:749:13) at /opt/atom/resources/app/node_modules/q/q.js:557:44 at flush (/opt/atom/resources/app/node_modules/q/q.js:108:17) at process._tickCallback (node.js:378:11) Uncaught TypeError: undefined is not a function /opt/atom/resources/app/node_modules/find-and-replace/lib/find-model.js:38 </code></pre></div> <p dir="auto">My os is Ubuntu Gnome 14</p>
1
<p dir="auto">As discussed in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228532532" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/11332" data-hovercard-type="issue" data-hovercard-url="/mrdoob/three.js/issues/11332/hovercard" href="https://github.com/mrdoob/three.js/issues/11332">#11332</a></p> <ol dir="auto"> <li> <p dir="auto"><code class="notranslate">renderer.gammaInput</code> needs to be deprecated. We now support <code class="notranslate">texture.encoding</code> instead.</p> </li> <li> <p dir="auto">renderer.gammaOutput needs to be deprecated and replaced with <code class="notranslate">renderer.outputEncoding</code> when rendering to the screen. We already support <code class="notranslate">renderTarget.texture.encoding</code> when rendering to a render target.</p> </li> <li> <p dir="auto">WebGLPrograms.getProgramCode() needs to be updated to respond to changes in <code class="notranslate">renderer.outputEncoding</code>. Setting <code class="notranslate">material.needsUpdate = true</code> will then force the change.</p> </li> <li> <p dir="auto">Legacy warnings need to be added, and the examples need to be updated to accommodate this change.</p> </li> </ol>
<p dir="auto">For WebVR we now use <a href="https://github.com/mrdoob/three.js/blob/dev/examples/js/effects/VREffect.js">VREffect</a> for stereo render. A <a href="https://github.com/mrdoob/three.js/blob/dev/examples/js/effects/VREffect.js">camera is passed as a parameter</a> that gets duplicated and then the scene is rendered twice, once per eye. There's redundant work that we could avoid. We have superficially discussed in the past the idea of introducing an <code class="notranslate">ArrayCamera</code> that receives a list of cameras and then the render work is organized in a more efficient way than we do now with <code class="notranslate">VREffect</code>. Before getting into the implementation weeds I would like to better understand the problem and see the solutions people have in mind. <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mrdoob/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mrdoob">@mrdoob</a> Can you quickly sketch out the API you had in mind and what optimizations we would do inside to kick off the conversation?</p>
0
<p dir="auto">Hi,</p> <p dir="auto">on Gentoo Linux, we see parallel build issues in all versions (including latest 1.16.x version) for Python 3.x:</p> <p dir="auto">Most common failure with lapack (should come close to your defaults):</p> <p dir="auto"><a href="https://github.com/numpy/numpy/files/2923505/build-error_py36_with_lapack.txt">build-error_py36_with_lapack.txt</a></p> <p dir="auto">However, this is not always reproducible.</p> <p dir="auto">Most reproducible failure is without lapack:</p> <p dir="auto"><a href="https://github.com/numpy/numpy/files/2923506/build-error_py36_without_lapack.txt">build-error_py36_without_lapack.txt</a></p> <p dir="auto">Downstream-Bug: <a href="https://bugs.gentoo.org/660754" rel="nofollow">https://bugs.gentoo.org/660754</a></p>
<p dir="auto">I'm trying to build scipy 0.18.1 with Python 3.6.0, Numpy 1.12.0, GCC 6.1.0, and OpenBLAS 0.2.19 on CentOS 6.8. When I build in serial, things work just fine. But when I use <code class="notranslate">-j 16</code>, I'm seeing build errors:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/blues/gpfs/home/software/spack-0.10.0/lib/spack/env/gcc/gfortran -Wall -g -Wall -g -shared build/temp.linux-x86_64-3.6/build/src.linux-x86_64-3.6/scipy/integrate/_dopmodule.o build/temp.linux-x86_64-3.6/build/src.linux-x86_64-3.6/fortranobject.o -L/blues/gpfs/home/software/spack-0.10.0/opt/spack/linux-centos6-x86_64/gcc-6.1.0/python-3.6.0-prk6gk3ufbfetjc2bthqokmkjtjnce3j/lib -Lbuild/temp.linux-x86_64-3.6 -ldop -lpython3.6m -lgfortran -o build/lib.linux-x86_64-3.6/scipy/integrate/_dop.cpython-36m-x86_64-linux-gnu.so build/temp.linux-x86_64-3.6/build/src.linux-x86_64-3.6/fortranobject.o: file not recognized: File truncated collect2: error: ld returned 1 exit status build/temp.linux-x86_64-3.6/build/src.linux-x86_64-3.6/fortranobject.o: file not recognized: File truncated collect2: error: ld returned 1 exit status"><pre class="notranslate"><code class="notranslate">/blues/gpfs/home/software/spack-0.10.0/lib/spack/env/gcc/gfortran -Wall -g -Wall -g -shared build/temp.linux-x86_64-3.6/build/src.linux-x86_64-3.6/scipy/integrate/_dopmodule.o build/temp.linux-x86_64-3.6/build/src.linux-x86_64-3.6/fortranobject.o -L/blues/gpfs/home/software/spack-0.10.0/opt/spack/linux-centos6-x86_64/gcc-6.1.0/python-3.6.0-prk6gk3ufbfetjc2bthqokmkjtjnce3j/lib -Lbuild/temp.linux-x86_64-3.6 -ldop -lpython3.6m -lgfortran -o build/lib.linux-x86_64-3.6/scipy/integrate/_dop.cpython-36m-x86_64-linux-gnu.so build/temp.linux-x86_64-3.6/build/src.linux-x86_64-3.6/fortranobject.o: file not recognized: File truncated collect2: error: ld returned 1 exit status build/temp.linux-x86_64-3.6/build/src.linux-x86_64-3.6/fortranobject.o: file not recognized: File truncated collect2: error: ld returned 1 exit status </code></pre></div> <p dir="auto">I can successfully build in parallel with Python 2.7.13, so this problem may be specific to Python 3.</p>
1
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; recent 3.4 ( <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/opencv/opencv/commit/220b37144bbc32dad06e08d4a0b45dba852f3135/hovercard" href="https://github.com/opencv/opencv/commit/220b37144bbc32dad06e08d4a0b45dba852f3135"><tt>220b371</tt></a> ) / master ( <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/opencv/opencv/commit/f584c6d7239e1d56de0c3bd0232d5ccfaf830084/hovercard" href="https://github.com/opencv/opencv/commit/f584c6d7239e1d56de0c3bd0232d5ccfaf830084"><tt>f584c6d</tt></a> )</li> <li>Operating System / Platform =&gt; Firefly RK3399 Ubuntu 16.04 (Aarch64)</li> <li>Compiler =&gt; GCC 5.4.0</li> <li>OpenCL =&gt; 1.2</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">Some FP16 inference is disabled on purpose on non-intel platform<br> Setting <code class="notranslate">OPENCV_DNN_OPENCL_ALLOW_ALL_DEVICES</code> to <code class="notranslate">true</code> will avoid this bypass and kicks the kernel for FP16.<br> Also, enabling <code class="notranslate">dnn_skip_ocl_fp16</code>, <code class="notranslate">dnn_skip_ocl</code>, <code class="notranslate">dnn_skip_ie_ocl</code> and <code class="notranslate">dnn_skip_ie_ocl_fp16</code> shows one issue in the kernel build.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="OpenCL program build log: dnn/conv_layer_spatial Status -11: CL_BUILD_PROGRAM_FAILURE -D TYPE=1 -D Dtype=float -D Dtype2=float2 -D Dtype4=float4 -D Dtype8=float8 -D Dtype16=float16 -D as_Dtype=as_float -D as_Dtype2=as_float2 -D as_Dtype4=as_float4 -D as_Dtype8=as_float8 -D KERNEL_WIDTH=3 -D KERNEL_HEIGHT=3 -D STRIDE_X=1 -D STRIDE_Y=1 -D DILATION_X=1 -D DILATION_Y=1 -D KERNEL_BASIC -cl-fast-relaxed-math -D ConvolveBasic=BASIC_k3x3_cn16_g1_s1x1_d1x1_b0_in16x16_p1x1_num2_M16_activ2_eltwise0_FP32_4_1_1_1 -D CHANNELS=16 -D APPLY_BIAS=0 -D OUTPUT_Z=16 -D ZPAR=1 -D FUSED_CONV_PRELU=1 &lt;source&gt;:157:57: error: use of undeclared identifier 'biasIndex' ACTIVATION_FUNCTION(convolved_image, offset, sum[kern], biasIndex + kern); ^ &lt;source&gt;:35:53: note: expanded from here (_dst_)[(_offset_)] = ACTIVATION_RELU_FUNCTION(_x_, _channel_); \ ^ &lt;source&gt;:11:101: note: expanded from here #define ACTIVATION_RELU_FUNCTION(x, c) ((Dtype)(x) &gt; 0 ? (Dtype)(x) : ((Dtype)(x) * (negative_slope[c]))) ^ error: Compiler frontend failed (error code 59)"><pre class="notranslate"><code class="notranslate">OpenCL program build log: dnn/conv_layer_spatial Status -11: CL_BUILD_PROGRAM_FAILURE -D TYPE=1 -D Dtype=float -D Dtype2=float2 -D Dtype4=float4 -D Dtype8=float8 -D Dtype16=float16 -D as_Dtype=as_float -D as_Dtype2=as_float2 -D as_Dtype4=as_float4 -D as_Dtype8=as_float8 -D KERNEL_WIDTH=3 -D KERNEL_HEIGHT=3 -D STRIDE_X=1 -D STRIDE_Y=1 -D DILATION_X=1 -D DILATION_Y=1 -D KERNEL_BASIC -cl-fast-relaxed-math -D ConvolveBasic=BASIC_k3x3_cn16_g1_s1x1_d1x1_b0_in16x16_p1x1_num2_M16_activ2_eltwise0_FP32_4_1_1_1 -D CHANNELS=16 -D APPLY_BIAS=0 -D OUTPUT_Z=16 -D ZPAR=1 -D FUSED_CONV_PRELU=1 &lt;source&gt;:157:57: error: use of undeclared identifier 'biasIndex' ACTIVATION_FUNCTION(convolved_image, offset, sum[kern], biasIndex + kern); ^ &lt;source&gt;:35:53: note: expanded from here (_dst_)[(_offset_)] = ACTIVATION_RELU_FUNCTION(_x_, _channel_); \ ^ &lt;source&gt;:11:101: note: expanded from here #define ACTIVATION_RELU_FUNCTION(x, c) ((Dtype)(x) &gt; 0 ? (Dtype)(x) : ((Dtype)(x) * (negative_slope[c]))) ^ error: Compiler frontend failed (error code 59) </code></pre></div> <p dir="auto">I understand that the FP16 is not fully supported on non Intel platform, but this kernel build failure is a purely syntax error.<br> Regardless the value of <code class="notranslate">APPLY_BIAS</code>, the parameter <code class="notranslate">biasIndex</code> will be used</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/opencv/opencv/blob/eec468fa13b82721e48c371b131bf04404a8d2a9/modules/dnn/src/opencl/conv_layer_spatial.cl#L205-L209">opencv/modules/dnn/src/opencl/conv_layer_spatial.cl</a> </p> <p class="mb-0 color-fg-muted"> Lines 205 to 209 in <a data-pjax="true" class="commit-tease-sha" href="/opencv/opencv/commit/eec468fa13b82721e48c371b131bf04404a8d2a9">eec468f</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="L205" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="205"></td> <td id="LC205" 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-c1">APPLY_BIAS</span> </td> </tr> <tr class="border-0"> <td id="L206" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="206"></td> <td id="LC206" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-en">ACTIVATION_FUNCTION</span>(<span class="pl-s1">convolved_image</span>, <span class="pl-s1">offset</span>, <span class="pl-s1">sum</span>[<span class="pl-s1">kern</span>] <span class="pl-c1">+</span> <span class="pl-s1">bias</span>[<span class="pl-s1">biasIndex</span> <span class="pl-c1">+</span> <span class="pl-s1">kern</span>], <span class="pl-s1">biasIndex</span> <span class="pl-c1">+</span> <span class="pl-s1">kern</span>); </td> </tr> <tr class="border-0"> <td id="L207" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="207"></td> <td id="LC207" 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="L208" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="208"></td> <td id="LC208" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-en">ACTIVATION_FUNCTION</span>(<span class="pl-s1">convolved_image</span>, <span class="pl-s1">offset</span>, <span class="pl-s1">sum</span>[<span class="pl-s1">kern</span>], <span class="pl-s1">biasIndex</span> <span class="pl-c1">+</span> <span class="pl-s1">kern</span>); </td> </tr> <tr class="border-0"> <td id="L209" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="209"></td> <td id="LC209" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">#endif</span> </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto">when <code class="notranslate">biasIndex</code> in only defined with <code class="notranslate">APPLY_BIAS</code></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/opencv/opencv/blob/eec468fa13b82721e48c371b131bf04404a8d2a9/modules/dnn/src/opencl/conv_layer_spatial.cl#L170-L172">opencv/modules/dnn/src/opencl/conv_layer_spatial.cl</a> </p> <p class="mb-0 color-fg-muted"> Lines 170 to 172 in <a data-pjax="true" class="commit-tease-sha" href="/opencv/opencv/commit/eec468fa13b82721e48c371b131bf04404a8d2a9">eec468f</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="L170" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="170"></td> <td id="LC170" 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-c1">APPLY_BIAS</span> </td> </tr> <tr class="border-0"> <td id="L171" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="171"></td> <td id="LC171" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">const</span> <span class="pl-smi">int</span> <span class="pl-s1">biasIndex</span> <span class="pl-c1">=</span> <span class="pl-s1">bias_offset</span> <span class="pl-c1">+</span> <span class="pl-s1">kernelNum</span>; </td> </tr> <tr class="border-0"> <td id="L172" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="172"></td> <td id="LC172" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">#endif</span> </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto">Looks like this <code class="notranslate">biasIndex</code> was introduced in to <code class="notranslate">ACTIVATION_FUNCTION</code> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="265198673" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv/issues/9847" data-hovercard-type="pull_request" data-hovercard-url="/opencv/opencv/pull/9847/hovercard" href="https://github.com/opencv/opencv/pull/9847">#9847</a> when <code class="notranslate">ACTIVATION_FUNCTION</code> was now related with <code class="notranslate">ACTIVATION_RELU_FUNCTION</code> and <code class="notranslate">FUSED_CONV_PRELU</code>, but not considering the <code class="notranslate">APPLY_BIAS</code><br> I need to undo this <code class="notranslate">APPLY_BIAS</code> but it's bit tricky, so I'll just report the issue here.</p> <h5 dir="auto">Steps to reproduce</h5> <p dir="auto">On Firefly RK3399</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ mkdir build $ cd build $ cmake -DOPENCV_EXTRA_MODULES_PATH=/xxx/opencv_contrib/modules -DBUILD_EXAMPLES=true -DOPENCV_ENABLE_NONFREE=true .. $ make -j 4 all $ export OPENCV_DNN_OPENCL_ALLOW_ALL_DEVICES=true $ export OPENCV_TEST_DATA_PATH=/opencv_extra/testdata $ ./bin/opencv_test_dnn --test_tag_enable=dnn_skip_ocl --gtest_filter=TestLayerFusion/ConvolutionActivationFusion.Accuracy/6"><pre class="notranslate"><code class="notranslate">$ mkdir build $ cd build $ cmake -DOPENCV_EXTRA_MODULES_PATH=/xxx/opencv_contrib/modules -DBUILD_EXAMPLES=true -DOPENCV_ENABLE_NONFREE=true .. $ make -j 4 all $ export OPENCV_DNN_OPENCL_ALLOW_ALL_DEVICES=true $ export OPENCV_TEST_DATA_PATH=/opencv_extra/testdata $ ./bin/opencv_test_dnn --test_tag_enable=dnn_skip_ocl --gtest_filter=TestLayerFusion/ConvolutionActivationFusion.Accuracy/6 </code></pre></div> <h5 dir="auto">Issue submission checklist</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I report the issue, it's not a question </li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I checked the problem with documentation, FAQ, open issues,<br> answers.opencv.org, Stack Overflow, etc and have not found solution </li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I updated to latest OpenCV version and the issue is still there </li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> There is reproducer code and related data files: videos, images, onnx, etc </li> </ul>
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 4.4.0 (probably in 3.4 too)</li> <li>Operating System / Platform =&gt; Ubuntu 18.04</li> <li>Compiler =&gt; gcc 7.5</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">Convolution without bias followed by ChannelsPReLU activation with fusion enabled leads to:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="OpenCL program build log: dnn/conv_layer_spatial Status -11: CL_BUILD_PROGRAM_FAILURE -D TYPE=1 -D Dtype=float -D Dtype2=float2 -D Dtype4=float4 -D Dtype8=float8 -D Dtype16=float16 -D as_Dtype=as_float -D as_Dtype2=as_float2 -D as_Dtype4=as_float4 -D as_Dtype8=as_float8 -D KERNEL_WIDTH=3 -D KERNEL_HEIGHT=3 -D STRIDE_X=1 -D STRIDE_Y=1 -D DILATION_X=1 -D DILATION_Y=1 -D KERNEL_BASIC -cl-fast-relaxed-math -D ConvolveBasic=BASIC_k3x3_cn16_g1_s1x1_d1x1_b0_in16x16_p1x1_num2_M16_activ2_eltwise0_FP32_4_1_1_1 -cl-no-subgroup-ifp -D CHANNELS=16 -D APPLY_BIAS=0 -D OUTPUT_Z=16 -D ZPAR=1 -D FUSED_CONV_PRELU=1 -D INTEL_DEVICE 9:157:57: error: use of undeclared identifier 'biasIndex' ACTIVATION_FUNCTION(convolved_image, offset, sum[kern], biasIndex + kern); ^ Failed to compile kernel: BASIC_k3x3_cn16_g1_s1x1_d1x1_b0_in16x16_p1x1_num2_M16_activ2_eltwise0_FP32_4_1_1_1, buildflags: -D TYPE=1 -D Dtype=float -D Dtype2=float2 -D Dtype4=float4 -D Dtype8=float8 -D Dtype16=float16 -D as_Dtype=as_float -D as_Dtype2=as_float2 -D as_Dtype4=as_float4 -D as_Dtype8=as_float8 -D KERNEL_WIDTH=3 -D KERNEL_HEIGHT=3 -D STRIDE_X=1 -D STRIDE_Y=1 -D DILATION_X=1 -D DILATION_Y=1 -D KERNEL_BASIC -cl-fast-relaxed-math -D ConvolveBasic=BASIC_k3x3_cn16_g1_s1x1_d1x1_b0_in16x16_p1x1_num2_M16_activ2_eltwise0_FP32_4_1_1_1 -cl-no-subgroup-ifp -D CHANNELS=16 -D APPLY_BIAS=0 -D OUTPUT_Z=16 -D ZPAR=1 -D FUSED_CONV_PRELU=1, errmsg: 9:157:57: error: use of undeclared identifier 'biasIndex' ACTIVATION_FUNCTION(convolved_image, offset, sum[kern], biasIndex + kern); ^ Segmentation fault (core dumped)"><pre class="notranslate"><code class="notranslate">OpenCL program build log: dnn/conv_layer_spatial Status -11: CL_BUILD_PROGRAM_FAILURE -D TYPE=1 -D Dtype=float -D Dtype2=float2 -D Dtype4=float4 -D Dtype8=float8 -D Dtype16=float16 -D as_Dtype=as_float -D as_Dtype2=as_float2 -D as_Dtype4=as_float4 -D as_Dtype8=as_float8 -D KERNEL_WIDTH=3 -D KERNEL_HEIGHT=3 -D STRIDE_X=1 -D STRIDE_Y=1 -D DILATION_X=1 -D DILATION_Y=1 -D KERNEL_BASIC -cl-fast-relaxed-math -D ConvolveBasic=BASIC_k3x3_cn16_g1_s1x1_d1x1_b0_in16x16_p1x1_num2_M16_activ2_eltwise0_FP32_4_1_1_1 -cl-no-subgroup-ifp -D CHANNELS=16 -D APPLY_BIAS=0 -D OUTPUT_Z=16 -D ZPAR=1 -D FUSED_CONV_PRELU=1 -D INTEL_DEVICE 9:157:57: error: use of undeclared identifier 'biasIndex' ACTIVATION_FUNCTION(convolved_image, offset, sum[kern], biasIndex + kern); ^ Failed to compile kernel: BASIC_k3x3_cn16_g1_s1x1_d1x1_b0_in16x16_p1x1_num2_M16_activ2_eltwise0_FP32_4_1_1_1, buildflags: -D TYPE=1 -D Dtype=float -D Dtype2=float2 -D Dtype4=float4 -D Dtype8=float8 -D Dtype16=float16 -D as_Dtype=as_float -D as_Dtype2=as_float2 -D as_Dtype4=as_float4 -D as_Dtype8=as_float8 -D KERNEL_WIDTH=3 -D KERNEL_HEIGHT=3 -D STRIDE_X=1 -D STRIDE_Y=1 -D DILATION_X=1 -D DILATION_Y=1 -D KERNEL_BASIC -cl-fast-relaxed-math -D ConvolveBasic=BASIC_k3x3_cn16_g1_s1x1_d1x1_b0_in16x16_p1x1_num2_M16_activ2_eltwise0_FP32_4_1_1_1 -cl-no-subgroup-ifp -D CHANNELS=16 -D APPLY_BIAS=0 -D OUTPUT_Z=16 -D ZPAR=1 -D FUSED_CONV_PRELU=1, errmsg: 9:157:57: error: use of undeclared identifier 'biasIndex' ACTIVATION_FUNCTION(convolved_image, offset, sum[kern], biasIndex + kern); ^ Segmentation fault (core dumped) </code></pre></div> <p dir="auto">Segfault also happens with convolution without bias + eltwise + ChannelsPReLU. It works without problems if convolution layer has bias.</p> <h5 dir="auto">Steps to reproduce</h5> <p dir="auto">Disabled tests from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="667767932" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv/issues/17976" data-hovercard-type="pull_request" data-hovercard-url="/opencv/opencv/pull/17976/hovercard" href="https://github.com/opencv/opencv/pull/17976">#17976</a> can reproduce this bug. Relevant tests have <code class="notranslate">// bug: https://github.com/opencv/opencv/issues/17953</code> comment just before applying the skip test tag.</p> <h5 dir="auto">Issue submission checklist</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I report the issue, it's not a question </li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I checked the problem with documentation, FAQ, open issues,<br> answers.opencv.org, Stack Overflow, etc and have not found solution </li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I updated to latest OpenCV version and the issue is still there </li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> There is reproducer code and related data files: videos, images, onnx, etc </li> </ul>
1
<table role="table"> <thead> <tr> <th>Q</th> <th>A</th> </tr> </thead> <tbody> <tr> <td>Bug report?</td> <td>yes</td> </tr> <tr> <td>Feature request?</td> <td>no</td> </tr> <tr> <td>BC Break report?</td> <td>no</td> </tr> <tr> <td>RFC?</td> <td>no</td> </tr> <tr> <td>Symfony version</td> <td>3.3.5</td> </tr> </tbody> </table> <p dir="auto">After updating Symfony (v3.3.2 =&gt; v3.3.5) I can't shutdown local web server <a href="http://127.0.0.1:8000" rel="nofollow">http://127.0.0.1:8000</a></p> <p dir="auto">How to reproduce:</p> <ul dir="auto"> <li>install symfony 3.3.5 (reproducible on fresh Symfony)</li> <li>php bin/console server:start</li> <li>php bin/console server:stop</li> <li>check <a href="http://127.0.0.1:8000" rel="nofollow">http://127.0.0.1:8000</a> - it is still up and next stop commands doesnt work: "[ERROR] No web server is listening." - but it is running</li> </ul>
<table role="table"> <thead> <tr> <th>Q</th> <th>A</th> </tr> </thead> <tbody> <tr> <td>Bug report?</td> <td>yes</td> </tr> <tr> <td>Feature request?</td> <td>no</td> </tr> <tr> <td>BC Break report?</td> <td>no</td> </tr> <tr> <td>RFC?</td> <td>no</td> </tr> <tr> <td>Symfony version</td> <td>3.3.5</td> </tr> </tbody> </table> <p dir="auto">Hello,<br> Despite my initial assumption, the <code class="notranslate">server:stop</code> does not actually stop the web server. It displays all-is-good message, but I can still access the app under <code class="notranslate">127.0.0.1:8000</code>. What is more, there is no way for my to shut down the process aside from running <code class="notranslate">kill PROCESS_PID</code>.</p> <p dir="auto">This has changed since upgrading to 3.3.5 from 3.2.11 (PHP 7.1.7).</p>
1
<p dir="auto">It seems like this change <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="981521878" data-permission-text="Title is private" data-url="https://github.com/psf/requests/issues/5917" data-hovercard-type="pull_request" data-hovercard-url="/psf/requests/pull/5917/hovercard" href="https://github.com/psf/requests/pull/5917">#5917</a> unfortunately broke production for us.</p> <p dir="auto">We are using a proxy url that follows this scheme: <code class="notranslate">http://randomstring:[email protected]:9293</code> (from a service that provides static IPs)</p> <h2 dir="auto">Expected Result</h2> <p dir="auto">In 2.26.0 this still works:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; from requests.utils import prepend_scheme_if_needed &gt;&gt;&gt; prepend_scheme_if_needed('http://randomstring:[email protected]:9293', 'http') 'http://randomstring:[email protected]:9293'"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; from requests.utils import prepend_scheme_if_needed &gt;&gt;&gt; prepend_scheme_if_needed('http://randomstring:[email protected]:9293', 'http') 'http://randomstring:[email protected]:9293' </code></pre></div> <h2 dir="auto">Actual Result</h2> <p dir="auto">In 2.27.0 it's broken:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; from requests.utils import prepend_scheme_if_needed &gt;&gt;&gt; prepend_scheme_if_needed('http://randomstring:[email protected]:9293', 'http') 'http://eu-west-static-04.example.com:9293'"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; from requests.utils import prepend_scheme_if_needed &gt;&gt;&gt; prepend_scheme_if_needed('http://randomstring:[email protected]:9293', 'http') 'http://eu-west-static-04.example.com:9293' </code></pre></div> <p dir="auto">This leads in the end to <code class="notranslate">ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 407 Proxy Authentication Required')))</code> because the url was cut.</p> <h2 dir="auto">Reproduction Steps</h2> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; from requests.utils import prepend_scheme_if_needed &gt;&gt;&gt; prepend_scheme_if_needed('http://randomstring:[email protected]:9293', 'http')"><pre class="notranslate"><span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-k">from</span> <span class="pl-s1">requests</span>.<span class="pl-s1">utils</span> <span class="pl-k">import</span> <span class="pl-s1">prepend_scheme_if_needed</span> <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-en">prepend_scheme_if_needed</span>(<span class="pl-s">'http://randomstring:[email protected]:9293'</span>, <span class="pl-s">'http'</span>)</pre></div> <h2 dir="auto">System Information</h2> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;chardet&quot;: { &quot;version&quot;: null }, &quot;charset_normalizer&quot;: { &quot;version&quot;: &quot;2.0.9&quot; }, &quot;cryptography&quot;: { &quot;version&quot;: &quot;36.0.1&quot; }, &quot;idna&quot;: { &quot;version&quot;: &quot;3.3&quot; }, &quot;implementation&quot;: { &quot;name&quot;: &quot;CPython&quot;, &quot;version&quot;: &quot;3.9.9&quot; }, &quot;platform&quot;: { &quot;release&quot;: &quot;5.14.21-2-MANJARO&quot;, &quot;system&quot;: &quot;Linux&quot; }, &quot;pyOpenSSL&quot;: { &quot;openssl_version&quot;: &quot;101010df&quot;, &quot;version&quot;: &quot;21.0.0&quot; }, &quot;requests&quot;: { &quot;version&quot;: &quot;2.27.0&quot; }, &quot;system_ssl&quot;: { &quot;version&quot;: &quot;101010df&quot; }, &quot;urllib3&quot;: { &quot;version&quot;: &quot;1.26.7&quot; }, &quot;using_charset_normalizer&quot;: true, &quot;using_pyopenssl&quot;: true }"><pre class="notranslate">{ <span class="pl-ent">"chardet"</span>: { <span class="pl-ent">"version"</span>: <span class="pl-c1">null</span> }, <span class="pl-ent">"charset_normalizer"</span>: { <span class="pl-ent">"version"</span>: <span class="pl-s"><span class="pl-pds">"</span>2.0.9<span class="pl-pds">"</span></span> }, <span class="pl-ent">"cryptography"</span>: { <span class="pl-ent">"version"</span>: <span class="pl-s"><span class="pl-pds">"</span>36.0.1<span class="pl-pds">"</span></span> }, <span class="pl-ent">"idna"</span>: { <span class="pl-ent">"version"</span>: <span class="pl-s"><span class="pl-pds">"</span>3.3<span class="pl-pds">"</span></span> }, <span class="pl-ent">"implementation"</span>: { <span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>CPython<span class="pl-pds">"</span></span>, <span class="pl-ent">"version"</span>: <span class="pl-s"><span class="pl-pds">"</span>3.9.9<span class="pl-pds">"</span></span> }, <span class="pl-ent">"platform"</span>: { <span class="pl-ent">"release"</span>: <span class="pl-s"><span class="pl-pds">"</span>5.14.21-2-MANJARO<span class="pl-pds">"</span></span>, <span class="pl-ent">"system"</span>: <span class="pl-s"><span class="pl-pds">"</span>Linux<span class="pl-pds">"</span></span> }, <span class="pl-ent">"pyOpenSSL"</span>: { <span class="pl-ent">"openssl_version"</span>: <span class="pl-s"><span class="pl-pds">"</span>101010df<span class="pl-pds">"</span></span>, <span class="pl-ent">"version"</span>: <span class="pl-s"><span class="pl-pds">"</span>21.0.0<span class="pl-pds">"</span></span> }, <span class="pl-ent">"requests"</span>: { <span class="pl-ent">"version"</span>: <span class="pl-s"><span class="pl-pds">"</span>2.27.0<span class="pl-pds">"</span></span> }, <span class="pl-ent">"system_ssl"</span>: { <span class="pl-ent">"version"</span>: <span class="pl-s"><span class="pl-pds">"</span>101010df<span class="pl-pds">"</span></span> }, <span class="pl-ent">"urllib3"</span>: { <span class="pl-ent">"version"</span>: <span class="pl-s"><span class="pl-pds">"</span>1.26.7<span class="pl-pds">"</span></span> }, <span class="pl-ent">"using_charset_normalizer"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"using_pyopenssl"</span>: <span class="pl-c1">true</span> }</pre></div>
<p dir="auto">When using proxies in python 3.8.12, I get an error 407. Using any other version of python works fine. I am assuming it could be to do with this <a href="https://docs.python.org/3/whatsnew/3.8.html#notable-changes-in-python-3-8-12" rel="nofollow">https://docs.python.org/3/whatsnew/3.8.html#notable-changes-in-python-3-8-12</a>.</p> <p dir="auto">I should get a status of 200.</p> <p dir="auto">I get a status code of 407.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import requests r = requests.get('https://example.org/', proxies=proxies) # You will need a proxy to test with, I am using a paid service. print(r.status_code) "><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">requests</span> <span class="pl-s1">r</span> <span class="pl-c1">=</span> <span class="pl-s1">requests</span>.<span class="pl-en">get</span>(<span class="pl-s">'https://example.org/'</span>, <span class="pl-s1">proxies</span><span class="pl-c1">=</span><span class="pl-s1">proxies</span>) <span class="pl-c"># You will need a proxy to test with, I am using a paid service.</span> <span class="pl-en">print</span>(<span class="pl-s1">r</span>.<span class="pl-s1">status_code</span>)</pre></div> <h2 dir="auto">System Information</h2> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;chardet&quot;: { &quot;version&quot;: null }, &quot;charset_normalizer&quot;: { &quot;version&quot;: &quot;2.0.9&quot; }, &quot;cryptography&quot;: { &quot;version&quot;: &quot;&quot; }, &quot;idna&quot;: { &quot;version&quot;: &quot;3.3&quot; }, &quot;implementation&quot;: { &quot;name&quot;: &quot;CPython&quot;, &quot;version&quot;: &quot;3.8.12&quot; }, &quot;platform&quot;: { &quot;release&quot;: &quot;5.13.0-7620-generic&quot;, &quot;system&quot;: &quot;Linux&quot; }, &quot;pyOpenSSL&quot;: { &quot;openssl_version&quot;: &quot;&quot;, &quot;version&quot;: null }, &quot;requests&quot;: { &quot;version&quot;: &quot;2.27.0&quot; }, &quot;system_ssl&quot;: { &quot;version&quot;: &quot;101010cf&quot; }, &quot;urllib3&quot;: { &quot;version&quot;: &quot;1.26.7&quot; }, &quot;using_charset_normalizer&quot;: true, &quot;using_pyopenssl&quot;: false }"><pre class="notranslate">{ <span class="pl-ent">"chardet"</span>: { <span class="pl-ent">"version"</span>: <span class="pl-c1">null</span> }, <span class="pl-ent">"charset_normalizer"</span>: { <span class="pl-ent">"version"</span>: <span class="pl-s"><span class="pl-pds">"</span>2.0.9<span class="pl-pds">"</span></span> }, <span class="pl-ent">"cryptography"</span>: { <span class="pl-ent">"version"</span>: <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span> }, <span class="pl-ent">"idna"</span>: { <span class="pl-ent">"version"</span>: <span class="pl-s"><span class="pl-pds">"</span>3.3<span class="pl-pds">"</span></span> }, <span class="pl-ent">"implementation"</span>: { <span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>CPython<span class="pl-pds">"</span></span>, <span class="pl-ent">"version"</span>: <span class="pl-s"><span class="pl-pds">"</span>3.8.12<span class="pl-pds">"</span></span> }, <span class="pl-ent">"platform"</span>: { <span class="pl-ent">"release"</span>: <span class="pl-s"><span class="pl-pds">"</span>5.13.0-7620-generic<span class="pl-pds">"</span></span>, <span class="pl-ent">"system"</span>: <span class="pl-s"><span class="pl-pds">"</span>Linux<span class="pl-pds">"</span></span> }, <span class="pl-ent">"pyOpenSSL"</span>: { <span class="pl-ent">"openssl_version"</span>: <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>, <span class="pl-ent">"version"</span>: <span class="pl-c1">null</span> }, <span class="pl-ent">"requests"</span>: { <span class="pl-ent">"version"</span>: <span class="pl-s"><span class="pl-pds">"</span>2.27.0<span class="pl-pds">"</span></span> }, <span class="pl-ent">"system_ssl"</span>: { <span class="pl-ent">"version"</span>: <span class="pl-s"><span class="pl-pds">"</span>101010cf<span class="pl-pds">"</span></span> }, <span class="pl-ent">"urllib3"</span>: { <span class="pl-ent">"version"</span>: <span class="pl-s"><span class="pl-pds">"</span>1.26.7<span class="pl-pds">"</span></span> }, <span class="pl-ent">"using_charset_normalizer"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"using_pyopenssl"</span>: <span class="pl-c1">false</span> }</pre></div>
1
<p dir="auto">Hello,</p> <p dir="auto">I have noticed not all of my AJAX requests are catched by the new feature of 2.6 in WebProfilerBundle.</p> <p dir="auto">If you create an url with the twig function <code class="notranslate">url</code> they aren't recognized. With urls generated by <code class="notranslate">path</code> it works.</p> <p dir="auto">I am on version 2.6.</p>
<p dir="auto">I am just testing the new ajax debug toolbar and my request are not visible in the profiler.<br> It works if the url are relatives and not absolute.<br> "<a href="http://localhost/sf_test/app_dev.php/demo/test" rel="nofollow">http://localhost/sf_test/app_dev.php/demo/test</a>" is not handled, but "/sf_test/app_dev.php/demo/test" works.</p> <p dir="auto">That seems normal regarding this code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/* prevent logging AJAX calls to static and inline files, like templates */ if (url.substr(0, 1) === '/' &amp;&amp; !url.match(new RegExp(&quot;{{ excluded_ajax_paths }}&quot;))) {"><pre class="notranslate"><code class="notranslate">/* prevent logging AJAX calls to static and inline files, like templates */ if (url.substr(0, 1) === '/' &amp;&amp; !url.match(new RegExp("{{ excluded_ajax_paths }}"))) { </code></pre></div> <p dir="auto"><a href="https://github.com/symfony/symfony/blob/master/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/base_js.html.twig#L181">https://github.com/symfony/symfony/blob/master/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/base_js.html.twig#L181</a></p> <p dir="auto">excluded path does not work also:<br> "<a href="http://localhost/sf_test/app_dev.php/_wdt" rel="nofollow">http://localhost/sf_test/app_dev.php/_wdt</a>" does not match regexp "^/_wdt".</p> <p dir="auto">Did I miss something ?</p> <p dir="auto">tested on Firefox and Chrome (Ubuntu)</p>
1
<p dir="auto">[Enter steps to reproduce below:]</p> <ol dir="auto"> <li>...</li> <li>...</li> </ol> <p dir="auto"><strong>Atom Version</strong>: 0.194.0<br> <strong>System</strong>: linux 3.11.10-29-desktop<br> <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Stack Trace</h3> <p dir="auto">Uncaught Error: ENOENT, node_modules/keybinding-resolver/keymaps/keybinding-resolver.json not found in /usr/share/atom/resources/app.asar</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At /usr/share/atom/resources/app.asar/src/workspace.js:457 Error: ENOENT, node_modules/keybinding-resolver/keymaps/keybinding-resolver.json not found in /usr/share/atom/resources/app.asar at createNotFoundError (ATOM_SHELL_ASAR.js:101:13) at Object.module.(anonymous function) [as open] (ATOM_SHELL_ASAR.js:156:25) at ReadStream.open (fs.js:1668:6) at new ReadStream (fs.js:1655:10) at Object.fs.createReadStream (fs.js:1610:10) at File.module.exports.File.read (/usr/share/atom/resources/app.asar/node_modules/pathwatcher/lib/file.js:286:27) at TextBuffer.module.exports.TextBuffer.updateCachedDiskContents (/usr/share/atom/resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:948:61) at TextBuffer.module.exports.TextBuffer.load (/usr/share/atom/resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:974:19) at Project.module.exports.Project.buildBuffer (/usr/share/atom/resources/app.asar/src/project.js:446:21) at Project.module.exports.Project.bufferForPath (/usr/share/atom/resources/app.asar/src/project.js:416:63)"><pre class="notranslate"><code class="notranslate">At /usr/share/atom/resources/app.asar/src/workspace.js:457 Error: ENOENT, node_modules/keybinding-resolver/keymaps/keybinding-resolver.json not found in /usr/share/atom/resources/app.asar at createNotFoundError (ATOM_SHELL_ASAR.js:101:13) at Object.module.(anonymous function) [as open] (ATOM_SHELL_ASAR.js:156:25) at ReadStream.open (fs.js:1668:6) at new ReadStream (fs.js:1655:10) at Object.fs.createReadStream (fs.js:1610:10) at File.module.exports.File.read (/usr/share/atom/resources/app.asar/node_modules/pathwatcher/lib/file.js:286:27) at TextBuffer.module.exports.TextBuffer.updateCachedDiskContents (/usr/share/atom/resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:948:61) at TextBuffer.module.exports.TextBuffer.load (/usr/share/atom/resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:974:19) at Project.module.exports.Project.buildBuffer (/usr/share/atom/resources/app.asar/src/project.js:446:21) at Project.module.exports.Project.bufferForPath (/usr/share/atom/resources/app.asar/src/project.js:416:63) </code></pre></div> <h3 dir="auto">Commands</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 3x -1:02.2.0 editor:copy-path (atom-text-editor.editor.is-focused) 2x -1:00.8.0 editor:toggle-line-comments (atom-text-editor.editor.is-focused) -0:09.3.0 key-binding-resolver:toggle (atom-text-editor.editor.is-focused)"><pre class="notranslate"><code class="notranslate"> 3x -1:02.2.0 editor:copy-path (atom-text-editor.editor.is-focused) 2x -1:00.8.0 editor:toggle-line-comments (atom-text-editor.editor.is-focused) -0:09.3.0 key-binding-resolver:toggle (atom-text-editor.editor.is-focused) </code></pre></div> <h3 dir="auto">Config</h3> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;core&quot;: { &quot;themes&quot;: [ &quot;atom-dark-ui&quot;, &quot;atom-dark-syntax&quot; ], &quot;autoHideMenuBar&quot;: true }, &quot;editor&quot;: { &quot;invisibles&quot;: { &quot;eol&quot;: &quot;\\n&quot; }, &quot;showInvisibles&quot;: true, &quot;softWrap&quot;: true, &quot;fontSize&quot;: 13 } }"><pre class="notranslate">{ <span class="pl-ent">"core"</span>: { <span class="pl-ent">"themes"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>atom-dark-ui<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>atom-dark-syntax<span class="pl-pds">"</span></span> ], <span class="pl-ent">"autoHideMenuBar"</span>: <span class="pl-c1">true</span> }, <span class="pl-ent">"editor"</span>: { <span class="pl-ent">"invisibles"</span>: { <span class="pl-ent">"eol"</span>: <span class="pl-s"><span class="pl-pds">"</span><span class="pl-cce">\\</span>n<span class="pl-pds">"</span></span> }, <span class="pl-ent">"showInvisibles"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"softWrap"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"fontSize"</span>: <span class="pl-c1">13</span> } }</pre></div> <h3 dir="auto">Installed Packages</h3> <div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# User No installed packages # Dev No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span> <span class="pl-en">No</span> <span class="pl-en">installed</span> packages <span class="pl-c"><span class="pl-c">#</span> Dev</span> <span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div>
<p dir="auto">[Enter steps to reproduce below:]</p> <ol dir="auto"> <li>...</li> <li>...</li> </ol> <p dir="auto"><strong>Atom Version</strong>: 0.194.0<br> <strong>System</strong>: Mac OS X 10.10.3<br> <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Stack Trace</h3> <p dir="auto">Uncaught Error: ENOENT, keymaps/darwin.json not found in /Users/holdicon/Downloads/Atom.app/Contents/Resources/app.asar</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At /Users/holdicon/Downloads/Atom.app/Contents/Resources/app.asar/src/workspace.js:457 Error: ENOENT, keymaps/darwin.json not found in /Users/holdicon/Downloads/Atom.app/Contents/Resources/app.asar at createNotFoundError (ATOM_SHELL_ASAR.js:101:13) at Object.module.(anonymous function) [as open] (ATOM_SHELL_ASAR.js:156:25) at ReadStream.open (fs.js:1668:6) at new ReadStream (fs.js:1655:10) at Object.fs.createReadStream (fs.js:1610:10) at File.module.exports.File.read (/Users/holdicon/Downloads/Atom.app/Contents/Resources/app.asar/node_modules/pathwatcher/lib/file.js:286:27) at TextBuffer.module.exports.TextBuffer.updateCachedDiskContents (/Users/holdicon/Downloads/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:948:61) at TextBuffer.module.exports.TextBuffer.load (/Users/holdicon/Downloads/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:974:19) at Project.module.exports.Project.buildBuffer (/Users/holdicon/Downloads/Atom.app/Contents/Resources/app.asar/src/project.js:446:21) at Project.module.exports.Project.bufferForPath (/Users/holdicon/Downloads/Atom.app/Contents/Resources/app.asar/src/project.js:416:63)"><pre class="notranslate"><code class="notranslate">At /Users/holdicon/Downloads/Atom.app/Contents/Resources/app.asar/src/workspace.js:457 Error: ENOENT, keymaps/darwin.json not found in /Users/holdicon/Downloads/Atom.app/Contents/Resources/app.asar at createNotFoundError (ATOM_SHELL_ASAR.js:101:13) at Object.module.(anonymous function) [as open] (ATOM_SHELL_ASAR.js:156:25) at ReadStream.open (fs.js:1668:6) at new ReadStream (fs.js:1655:10) at Object.fs.createReadStream (fs.js:1610:10) at File.module.exports.File.read (/Users/holdicon/Downloads/Atom.app/Contents/Resources/app.asar/node_modules/pathwatcher/lib/file.js:286:27) at TextBuffer.module.exports.TextBuffer.updateCachedDiskContents (/Users/holdicon/Downloads/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:948:61) at TextBuffer.module.exports.TextBuffer.load (/Users/holdicon/Downloads/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:974:19) at Project.module.exports.Project.buildBuffer (/Users/holdicon/Downloads/Atom.app/Contents/Resources/app.asar/src/project.js:446:21) at Project.module.exports.Project.bufferForPath (/Users/holdicon/Downloads/Atom.app/Contents/Resources/app.asar/src/project.js:416:63) </code></pre></div> <h3 dir="auto">Commands</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" -2:01.5.0 settings-view:check-for-package-updates (atom-workspace.workspace.scrollbars-visible-always.theme-solarized-dark-syntax.theme-yosemite-unity-ui) -1:52.9.0 deprecation-cop:view (atom-workspace.workspace.scrollbars-visible-always.theme-solarized-dark-syntax.theme-yosemite-unity-ui) -0:39.9.0 auto-update-packages:update-now (atom-text-editor.editor.vim-mode.command-mode) -0:32.4.0 key-binding-resolver:toggle (atom-text-editor.editor.vim-mode.command-mode) 2x -0:29.6.0 vim-mode:move-to-first-character-of-line-down (atom-text-editor.editor.vim-mode.command-mode) 2x -0:23.7.0 vim-mode:move-down (atom-text-editor.editor.vim-mode.command-mode.is-focused) 5x -0:18.9.0 vim-mode:move-to-first-character-of-line-down (atom-text-editor.editor.vim-mode.command-mode.is-focused) 2x -0:09.9.0 vim-mode:move-down (atom-text-editor.editor.vim-mode.command-mode.is-focused)"><pre class="notranslate"><code class="notranslate"> -2:01.5.0 settings-view:check-for-package-updates (atom-workspace.workspace.scrollbars-visible-always.theme-solarized-dark-syntax.theme-yosemite-unity-ui) -1:52.9.0 deprecation-cop:view (atom-workspace.workspace.scrollbars-visible-always.theme-solarized-dark-syntax.theme-yosemite-unity-ui) -0:39.9.0 auto-update-packages:update-now (atom-text-editor.editor.vim-mode.command-mode) -0:32.4.0 key-binding-resolver:toggle (atom-text-editor.editor.vim-mode.command-mode) 2x -0:29.6.0 vim-mode:move-to-first-character-of-line-down (atom-text-editor.editor.vim-mode.command-mode) 2x -0:23.7.0 vim-mode:move-down (atom-text-editor.editor.vim-mode.command-mode.is-focused) 5x -0:18.9.0 vim-mode:move-to-first-character-of-line-down (atom-text-editor.editor.vim-mode.command-mode.is-focused) 2x -0:09.9.0 vim-mode:move-down (atom-text-editor.editor.vim-mode.command-mode.is-focused) </code></pre></div> <h3 dir="auto">Config</h3> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;core&quot;: { &quot;disabledPackages&quot;: [ &quot;package-that-throws-an-exception&quot;, &quot;package-with-broken-package-json&quot;, &quot;package-with-broken-keymap&quot;, &quot;language-java&quot;, &quot;debugger&quot;, &quot;debugger&quot; ], &quot;themes&quot;: [ &quot;yosemite-unity-ui&quot;, &quot;solarized-dark-syntax&quot; ], &quot;destroyEmptyPanes&quot;: false }, &quot;editor&quot;: { &quot;fontFamily&quot;: &quot;Courier&quot;, &quot;useShadowDOM&quot;: true, &quot;invisibles&quot;: {} } }"><pre class="notranslate">{ <span class="pl-ent">"core"</span>: { <span class="pl-ent">"disabledPackages"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>package-that-throws-an-exception<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>package-with-broken-package-json<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>package-with-broken-keymap<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>language-java<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>debugger<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>debugger<span class="pl-pds">"</span></span> ], <span class="pl-ent">"themes"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>yosemite-unity-ui<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>solarized-dark-syntax<span class="pl-pds">"</span></span> ], <span class="pl-ent">"destroyEmptyPanes"</span>: <span class="pl-c1">false</span> }, <span class="pl-ent">"editor"</span>: { <span class="pl-ent">"fontFamily"</span>: <span class="pl-s"><span class="pl-pds">"</span>Courier<span class="pl-pds">"</span></span>, <span class="pl-ent">"useShadowDOM"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"invisibles"</span>: {} } }</pre></div> <h3 dir="auto">Installed Packages</h3> <div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# User auto-update-packages, v0.2.2 autocomplete-plus, v2.12.0 color-picker, v1.7.0 emmet, v2.3.8 language-javascript-semantic, v0.1.0 up2date, v0.0.7 vim-mode, v0.44.0 web-view, v0.3.0 yosemite-unity-ui, v0.3.13 # Dev No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span> auto<span class="pl-k">-</span>update<span class="pl-k">-</span>packages, v0.<span class="pl-ii">2</span>.<span class="pl-ii">2</span> autocomplete<span class="pl-k">-</span>plus, v2.<span class="pl-ii">12</span>.<span class="pl-ii">0</span> color<span class="pl-k">-</span>picker, v1.<span class="pl-ii">7</span>.<span class="pl-ii">0</span> emmet, v2.<span class="pl-ii">3</span>.<span class="pl-ii">8</span> language<span class="pl-k">-</span>javascript<span class="pl-k">-</span>semantic, v0.<span class="pl-ii">1</span>.<span class="pl-ii">0</span> up2date, v0.<span class="pl-ii">0</span>.<span class="pl-ii">7</span> vim<span class="pl-k">-</span>mode, v0.<span class="pl-ii">44</span>.<span class="pl-ii">0</span> web<span class="pl-k">-</span>view, v0.<span class="pl-ii">3</span>.<span class="pl-ii">0</span> yosemite<span class="pl-k">-</span>unity<span class="pl-k">-</span>ui, v0.<span class="pl-ii">3</span>.<span class="pl-ii">13</span> <span class="pl-c"><span class="pl-c">#</span> Dev</span> <span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div>
1
<p dir="auto">That would help all Windows users immensely.</p>
<p dir="auto">I'm on Windows and I don't know how to build packages. I'd like to run <code class="notranslate">pip install jaxlib</code> and have it work.</p> <p dir="auto">I saw there's discussion on <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="413688094" data-permission-text="Title is private" data-url="https://github.com/google/jax/issues/438" data-hovercard-type="issue" data-hovercard-url="/google/jax/issues/438/hovercard" href="https://github.com/google/jax/issues/438">#438</a>, but that ticket was about supporting Windows. It seems that Windows is partially supported now, so this is a separate ticket for providing a Windows binary on PyPI.</p>
1
<p dir="auto">Get the following error: <code class="notranslate">Querying the GitHub API failed. This is usually caused by a network outage or because you have reached your hourly API rate limit of 60 requests.</code></p> <p dir="auto">Here is a screenshot:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1110569/83357238-0c5e2980-a320-11ea-8b2c-c534afd8697a.png"><img src="https://user-images.githubusercontent.com/1110569/83357238-0c5e2980-a320-11ea-8b2c-c534afd8697a.png" alt="Screen Shot 2020-05-31 at 9 20 02 AM" style="max-width: 100%;"></a></p>
<p dir="auto"><a href="https://deno.land/std" rel="nofollow">https://deno.land/std</a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/23056320/81916390-577cfa80-9606-11ea-89d8-752ed1a2cb64.png"><img src="https://user-images.githubusercontent.com/23056320/81916390-577cfa80-9606-11ea-89d8-752ed1a2cb64.png" alt="image" style="max-width: 100%;"></a><br> Failed to get directory listing<br> Querying the GitHub API failed. This is usually caused by a network outage or because you have reached your hourly API rate limit of 60 requests.</p>
1
<p dir="auto">Hi! Do you plan to support the &lt; noindex &gt; tag (and even better its valid type &lt;!--noindex&gt;)? It is very necessary for every SEO needs.</p> <p dir="auto">Type: Feature Request<br> Component: DOM (general issues)</p>
<p dir="auto">I'm hacking on an fully server and client compatible app using React. One obstactle I'm running into is it seems react doesn't like exclamation marks in your jsx-style code.</p> <p dir="auto">Here's an example of a pretty standard boilerplate for HTML:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;!doctype html&gt; &lt;!--[if IE 7]&gt; &lt;html class=&quot;no-js ie ie7 ltie8 ltie9&quot;&gt;&lt;![endif]--&gt; &lt;!--[if IE 8]&gt; &lt;html class=&quot;no-js ie ie8 ltie9&quot;&gt;&lt;![endif]--&gt; &lt;!--[if gt IE 8]&gt; &lt;html class=&quot;no-js ie gtie8&quot;&gt;&lt;![endif]--&gt; &lt;!--[if !IE]&gt;&lt;!--&gt;&lt;html class=&quot;no-js&quot; xmlns:og=&quot;http://opengraphprotocol.org/schema/&quot; xmlns:fb=&quot;http://www.facebook.com/2008/fbml&quot; &gt;&lt;!--&lt;![endif]--&gt; &lt;head&gt; &lt;meta charset=&quot;utf-8&quot;&gt; &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge&quot;&gt; &lt;title&gt;&lt;/title&gt; &lt;meta name=&quot;description&quot; content=&quot;&quot;&gt; &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&gt; &lt;link rel=&quot;stylesheet&quot; href=&quot;/css/app.css&quot; type=&quot;text/css&quot; media=&quot;all&quot; /&gt; &lt;/head&gt; &lt;body&gt; &lt;!--[if lt IE 8]&gt; &lt;p class=&quot;browsehappy&quot;&gt;You are using an &lt;strong&gt;outdated&lt;/strong&gt; browser. Please &lt;a href=&quot;http://browsehappy.com/&quot;&gt;upgrade your browser&lt;/a&gt; to improve your experience.&lt;/p&gt; &lt;![endif]--&gt; {this.props.page} &lt;!-- &lt;script src=&quot;/js/vendor.js&quot;&gt;&lt;/script&gt; --&gt; &lt;script src=&quot;/js/app.js&quot;&gt;&lt;/script&gt; &lt;/body&gt; &lt;/html&gt;"><pre class="notranslate"><code class="notranslate">&lt;!doctype html&gt; &lt;!--[if IE 7]&gt; &lt;html class="no-js ie ie7 ltie8 ltie9"&gt;&lt;![endif]--&gt; &lt;!--[if IE 8]&gt; &lt;html class="no-js ie ie8 ltie9"&gt;&lt;![endif]--&gt; &lt;!--[if gt IE 8]&gt; &lt;html class="no-js ie gtie8"&gt;&lt;![endif]--&gt; &lt;!--[if !IE]&gt;&lt;!--&gt;&lt;html class="no-js" xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml" &gt;&lt;!--&lt;![endif]--&gt; &lt;head&gt; &lt;meta charset="utf-8"&gt; &lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&gt; &lt;title&gt;&lt;/title&gt; &lt;meta name="description" content=""&gt; &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt; &lt;link rel="stylesheet" href="/css/app.css" type="text/css" media="all" /&gt; &lt;/head&gt; &lt;body&gt; &lt;!--[if lt IE 8]&gt; &lt;p class="browsehappy"&gt;You are using an &lt;strong&gt;outdated&lt;/strong&gt; browser. Please &lt;a href="http://browsehappy.com/"&gt;upgrade your browser&lt;/a&gt; to improve your experience.&lt;/p&gt; &lt;![endif]--&gt; {this.props.page} &lt;!-- &lt;script src="/js/vendor.js"&gt;&lt;/script&gt; --&gt; &lt;script src="/js/app.js"&gt;&lt;/script&gt; &lt;/body&gt; &lt;/html&gt; </code></pre></div> <p dir="auto">I think it's getting stuck on the conditional comments in this example.</p> <p dir="auto">I would prefer to keep this code in the HTML style, and to render it from the server without making major changes, it needs to be inside a react class. I'd be open to trying to hack this together, I may take a stab sometime this coming week.</p>
1
<h3 dir="auto">Is there an existing issue for this?</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the existing issues</li> </ul> <h3 dir="auto">Current Behavior</h3> <p dir="auto">Minimal reproduction is here:<br> <a href="https://github.com/bigtimebuddy/npm-bug-package-lock-only">https://github.com/bigtimebuddy/npm-bug-package-lock-only</a></p> <p dir="auto">Package structure is roughly this:</p> <ul dir="auto"> <li>packages/package-a (<em>@package/a</em>) <ul dir="auto"> <li>devDependencies <ul dir="auto"> <li><em>@tools/a</em></li> </ul> </li> </ul> </li> <li>package/tools-a (<em>@tools/a</em>) <strong>private</strong></li> </ul> <p dir="auto">After doing a version bump of my workspaces packages, I use <code class="notranslate">--package-lock-only option</code> to update the <strong>package-lock.json</strong> file. Prior to [email protected] this worked fine. After then, it fails with the following message:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm ERR! code E404 npm ERR! 404 Not Found - GET https://registry.npmjs.org/@tools%2fa - Not found npm ERR! 404 npm ERR! 404 '@tools/[email protected]' is not in this registry. npm ERR! 404 You should bug the author to publish it (or use the name yourself!) npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, http url, or git url. npm ERR! A complete log of this run can be found in: npm ERR! ~/.npm/_logs/2021-10-29T17_43_19_186Z-debug.log"><pre class="notranslate"><code class="notranslate">npm ERR! code E404 npm ERR! 404 Not Found - GET https://registry.npmjs.org/@tools%2fa - Not found npm ERR! 404 npm ERR! 404 '@tools/[email protected]' is not in this registry. npm ERR! 404 You should bug the author to publish it (or use the name yourself!) npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, http url, or git url. npm ERR! A complete log of this run can be found in: npm ERR! ~/.npm/_logs/2021-10-29T17_43_19_186Z-debug.log </code></pre></div> <h2 dir="auto">Additional Links</h2> <p dir="auto">Changed was introduced here: <a class="commit-link" href="https://github.com/npm/cli/compare/v7.20.2...v7.20.3"><tt>v7.20.2...v7.20.3</tt></a><br> Additional context here: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="874199630" data-permission-text="Title is private" data-url="https://github.com/lerna/lerna/issues/2891" data-hovercard-type="issue" data-hovercard-url="/lerna/lerna/issues/2891/hovercard" href="https://github.com/lerna/lerna/issues/2891">lerna/lerna#2891</a></p> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">With the reproduction, should get the following and not fail.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="up to date, audited 6 packages in 1s found 0 vulnerabilities"><pre class="notranslate"><code class="notranslate">up to date, audited 6 packages in 1s found 0 vulnerabilities </code></pre></div> <h3 dir="auto">Steps To Reproduce</h3> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="git clone https://github.com/bigtimebuddy/npm-bug-package-lock-only` cd npm-bug-package-lock-only npm i npm@8 -g npm test"><pre class="notranslate">git clone https://github.com/bigtimebuddy/npm-bug-package-lock-only<span class="pl-s"><span class="pl-pds">`</span></span> <span class="pl-s"><span class="pl-c1">cd</span> npm-bug-package-lock-only</span> <span class="pl-s">npm i npm@8 -g</span> <span class="pl-s">npm <span class="pl-c1">test</span></span></pre></div> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>OS: macOS v11.6</li> <li>Node: v12.20.1</li> <li>npm: v8.1.2</li> </ul>
0
<p dir="auto">Let's assume there are two excel files with almost identical content:</p> <p dir="auto">file_1.xlsx:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/9d196db59437c2d975eb12d29e883f8c1724be750d68991d21bad24c6e1c6d40/687474703a2f2f692e696d6775722e636f6d2f54424962434f752e706e67"><img src="https://camo.githubusercontent.com/9d196db59437c2d975eb12d29e883f8c1724be750d68991d21bad24c6e1c6d40/687474703a2f2f692e696d6775722e636f6d2f54424962434f752e706e67" alt="Imgur" data-canonical-src="http://i.imgur.com/TBIbCOu.png" style="max-width: 100%;"></a></p> <p dir="auto">file_2.xlsx:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/80d1d42736d4196da24cdd20e7ec9f911e067e38395f6316cba1a6f984d15dda/687474703a2f2f692e696d6775722e636f6d2f4d4d6968596c362e706e67"><img src="https://camo.githubusercontent.com/80d1d42736d4196da24cdd20e7ec9f911e067e38395f6316cba1a6f984d15dda/687474703a2f2f692e696d6775722e636f6d2f4d4d6968596c362e706e67" alt="Imgur" data-canonical-src="http://i.imgur.com/MMihYl6.png" style="max-width: 100%;"></a></p> <p dir="auto">Then reading first file in pandas:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="df1 = pd.read_excel('file_1.xlsx', header=0, index_col=None, converters={'A0': str, 'B0': str}) print(df1)"><pre class="notranslate"><code class="notranslate">df1 = pd.read_excel('file_1.xlsx', header=0, index_col=None, converters={'A0': str, 'B0': str}) print(df1) </code></pre></div> <p dir="auto">Would produce expected result:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" A0 B0 C0 D0 E0 0 0001 0004 0.1 1 a 1 0002 0005 0.2 2 b 2 0003 0006 0.3 3 c"><pre class="notranslate"><code class="notranslate"> A0 B0 C0 D0 E0 0 0001 0004 0.1 1 a 1 0002 0005 0.2 2 b 2 0003 0006 0.3 3 c </code></pre></div> <p dir="auto">However trying the same with the second file:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="df2 = pd.read_excel('file_2.xlsx', header=[0,1], index_col=None, converters={('A0', 'A1'): str, ('A0', 'B1'): str}, ) print(df2)"><pre class="notranslate"><code class="notranslate">df2 = pd.read_excel('file_2.xlsx', header=[0,1], index_col=None, converters={('A0', 'A1'): str, ('A0', 'B1'): str}, ) print(df2) </code></pre></div> <p dir="auto">Would yield somewhat different and unexpected (in comparison with previous example) result:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="A0 A0 C0 E0 A1 B1 C1 D1 E1 1 0004 0.1 1 a 2 0005 0.2 2 b 3 0006 0.3 3 c"><pre class="notranslate"><code class="notranslate">A0 A0 C0 E0 A1 B1 C1 D1 E1 1 0004 0.1 1 a 2 0005 0.2 2 b 3 0006 0.3 3 c </code></pre></div> <p dir="auto">Since it is not possible to use <code class="notranslate">has_index_names=False</code> as it has been depreciated since 0.16.2, there seems to be no way to have control over how pandas imports this first column (i.e. no way to convert values before original formatting is lost).</p> <p dir="auto">And there is no way to tell pandas DO_NOT_ASSIGN first column to index as it ignores <code class="notranslate">index_col=None</code> when <code class="notranslate">header</code> is a list.</p> <p dir="auto">So the question is what would be the sensible way to regain control over import process of first columns with multi-index header:</p> <ul dir="auto"> <li>revive or de-depreciate (would that be appreciate?) <code class="notranslate">has_index_names</code>;</li> <li>make <code class="notranslate">index_col</code> play a role in parsing header?</li> </ul>
<p dir="auto">From SO: <a href="http://stackoverflow.com/questions/34020061/excel-to-pandas-dataframe-using-first-column-as-index" rel="nofollow">http://stackoverflow.com/questions/34020061/excel-to-pandas-dataframe-using-first-column-as-index</a></p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/chris-b1/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/chris-b1">@chris-b1</a> another one on the multi-index excel issues .. :-)</p> <p dir="auto">Small test case: content of excel file:</p> <table role="table"> <thead> <tr> <th>A</th> <th>A</th> <th>B</th> <th>B</th> </tr> </thead> <tbody> <tr> <td>key</td> <td>val</td> <td>key</td> <td>val</td> </tr> <tr> <td>1</td> <td>2</td> <td>3</td> <td>4</td> </tr> <tr> <td>1</td> <td>2</td> <td>3</td> <td>4</td> </tr> </tbody> </table> <p dir="auto">gives:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [2]: pd.read_excel(&quot;test_excel_index_col.xlsx&quot;, header=[0,1], index_col=None) Out[2]: A A B key val key val 1 2 3 4 1 2 3 4"><pre class="notranslate"><code class="notranslate">In [2]: pd.read_excel("test_excel_index_col.xlsx", header=[0,1], index_col=None) Out[2]: A A B key val key val 1 2 3 4 1 2 3 4 </code></pre></div> <p dir="auto">It's not super clear in the formatting of the dataframe, but the [1, 1] is the index and [A, key] are seen as the level names of the multi-indexed columns.</p>
1
<p dir="auto"><a href="https://github.com/microsoft/PowerToys/files/5013122/2020-08-02.txt">2020-08-02.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: 08/02/2020 16:10: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">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
<p dir="auto">Because <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="980471166" data-permission-text="Title is private" data-url="https://github.com/denoland/deno_docker/issues/175" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno_docker/pull/175/hovercard" href="https://github.com/denoland/deno_docker/pull/175">denoland/deno_docker#175</a> would be possible.</p> <p dir="auto">References <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="876530543" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/10507" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/10507/hovercard?comment_id=857446761&amp;comment_type=issue_comment" href="https://github.com/denoland/deno/issues/10507#issuecomment-857446761">#10507 (comment)</a>, <a href="https://github.com/felipecrs/deno_docker/blob/e585daffcb72ed8accca8c392c7a040ff0b3218a/README.md#staying-low-on-size">https://github.com/felipecrs/deno_docker/blob/e585daffcb72ed8accca8c392c7a040ff0b3218a/README.md#staying-low-on-size</a></p>
<p dir="auto">Feature request: compile JS/TS scripts with <strong>no dependency</strong>. To be used in IoT, IIoT, embedded devices etc.</p>
1
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=balaji" rel="nofollow">Balaji Varanasi</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-6053?redirect=false" rel="nofollow">SPR-6053</a></strong> and commented</p> <p dir="auto">When executing a Sybase stored procedure using SimpleJdbcCall class, the database metadata is not being loaded. The logs show the following messages:</p> <p dir="auto">org.springframework.jdbc.core.metadata.CallMetaDataProviderFactory - SQL Server is not one of the databases fully supported for procedure calls -- supported are: [Apache Derby, DB2, MySQL, Microsoft SQL Server, Oracle, Sybase]<br> org.springframework.jdbc.core.metadata.CallMetaDataProviderFactory - Metadata processing disabled - you must specify all parameters explicitly<br> org.springframework.jdbc.core.metadata.CallMetaDataProviderFactory - Using org.springframework.jdbc.core.metadata.GenericCallMetaDataProvider</p> <p dir="auto">After little research, I found that our Sybase database is named "SQL Server" and the commonDatabaseName method in JdbcUtils being used to get the database name compares against the string "sql server".</p> <p dir="auto">This problem gets fixed if the comparison with "sql server" is done without considering the case.</p> <hr> <p dir="auto"><strong>Affects:</strong> 2.5.6, 3.0 M4</p> <p dir="auto"><strong>Attachments:</strong></p> <ul dir="auto"> <li><a href="https://jira.spring.io/secure/attachment/15652/sybase.patch" rel="nofollow">sybase.patch</a> (<em>822 bytes</em>)</li> </ul> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398103705" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11630" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11630/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11630">#11630</a> Sybase isn't detected by metadata when using WebLogic JDBC Driver (<em><strong>"is duplicated by"</strong></em>)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398098648" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10936" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10936/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10936">#10936</a> Include 'ASE' in the list of product names recognised by JDBCUtils as Sybase (<em><strong>"is duplicated by"</strong></em>)</li> </ul> <p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/ea674f2fa61d53c68902120dd666d6756ef5656e/hovercard" href="https://github.com/spring-projects/spring-framework/commit/ea674f2fa61d53c68902120dd666d6756ef5656e"><tt>ea674f2</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/b482d6db121033e7ee0feed2854d277343f393e1/hovercard" href="https://github.com/spring-projects/spring-framework/commit/b482d6db121033e7ee0feed2854d277343f393e1"><tt>b482d6d</tt></a></p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=phancke" rel="nofollow">Patrick Hancke</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-3165?redirect=false" rel="nofollow">SPR-3165</a></strong> and commented</p> <p dir="auto">The Freemarker macro below displays a text area but performs a HTML escape of the 'stringStatusValue' variable. Nothing wrong with that, except that the 'bind' macro also does a HTML escape in case the "defaultHtmlEscape" context-param is set in the 'web.xml'. This is the case in my application, so I end up with a duplicate HTML escape of the textarea content. As a workaround, I've rewritten the 'formTextarea' macro to prevent the HTML escape.</p> <p dir="auto">&lt;#macro formTextarea path attributes="" &gt;<br> &lt;<code class="notranslate">@bind</code> path/&gt;</p> &lt;textarea id="${status.expression}" name="${status.expression}" ${attributes}&gt;${stringStatusValue?html}\&lt;/textarea&gt; <p dir="auto">&lt;/#macro&gt;</p> <p dir="auto">&lt;#macro bind path&gt;<br> &lt;#if htmlEscape?exists&gt;<br> &lt;#assign status = springMacroRequestContext.getBindStatus(path, htmlEscape)&gt;<br> &lt;#else&gt;<br> &lt;#assign status = springMacroRequestContext.getBindStatus(path)&gt;<br> &lt;/#if&gt;<br> &lt;#-- assign a temporary value, forcing a string representation for any<br> kind of variable. This temp value is only used in this macro lib --&gt;<br> &lt;#if status.value?exists &amp;&amp; status.value?is_boolean&gt;<br> &lt;#assign stringStatusValue=status.value?string&gt;<br> &lt;#else&gt;<br> &lt;#assign stringStatusValue=status.value?default("")&gt;<br> &lt;/#if&gt;<br> &lt;/#macro&gt;</p> <hr> <p dir="auto"><strong>Affects:</strong> 2.0 final</p>
0
<p dir="auto"><a href="https://github.com/hupili/pandas-to-json-multi-index-issue/blob/master/pandas%20to_json%20test.ipynb">https://github.com/hupili/pandas-to-json-multi-index-issue/blob/master/pandas%20to_json%20test.ipynb</a></p> <h4 dir="auto">Code Sample, a copy-pastable example if possible</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" df = pd.DataFrame( [ ['1', '2', 'a'], ['1', '3', 'b'], ['2', '4', 'c'], ['3', '5', 'd'] ], columns=['key1', 'key2', 'key3'] ) j = df.set_index(['key1', 'key2']).to_json() json.loads(j) "><pre class="notranslate"><span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>( [ [<span class="pl-s">'1'</span>, <span class="pl-s">'2'</span>, <span class="pl-s">'a'</span>], [<span class="pl-s">'1'</span>, <span class="pl-s">'3'</span>, <span class="pl-s">'b'</span>], [<span class="pl-s">'2'</span>, <span class="pl-s">'4'</span>, <span class="pl-s">'c'</span>], [<span class="pl-s">'3'</span>, <span class="pl-s">'5'</span>, <span class="pl-s">'d'</span>] ], <span class="pl-s1">columns</span><span class="pl-c1">=</span>[<span class="pl-s">'key1'</span>, <span class="pl-s">'key2'</span>, <span class="pl-s">'key3'</span>] ) <span class="pl-s1">j</span> <span class="pl-c1">=</span> <span class="pl-s1">df</span>.<span class="pl-en">set_index</span>([<span class="pl-s">'key1'</span>, <span class="pl-s">'key2'</span>]).<span class="pl-en">to_json</span>() <span class="pl-s1">json</span>.<span class="pl-en">loads</span>(<span class="pl-s1">j</span>)</pre></div> <h4 dir="auto">Problem description</h4> <p dir="auto">The exported JSON is ill-formatted</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--------------------------------------------------------------------------- JSONDecodeError Traceback (most recent call last) &lt;ipython-input-8-5f4db1ed154c&gt; in &lt;module&gt;() ----&gt; 1 json.loads(j) /usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/json/__init__.py in loads(s, encoding, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw) 317 parse_int is None and parse_float is None and 318 parse_constant is None and object_pairs_hook is None and not kw): --&gt; 319 return _default_decoder.decode(s) 320 if cls is None: 321 cls = JSONDecoder /usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/json/decoder.py in decode(self, s, _w) 337 338 &quot;&quot;&quot; --&gt; 339 obj, end = self.raw_decode(s, idx=_w(s, 0).end()) 340 end = _w(s, end).end() 341 if end != len(s): /usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/json/decoder.py in raw_decode(self, s, idx) 353 &quot;&quot;&quot; 354 try: --&gt; 355 obj, end = self.scan_once(s, idx) 356 except StopIteration as err: 357 raise JSONDecodeError(&quot;Expecting value&quot;, s, err.value) from None JSONDecodeError: Expecting ':' delimiter: line 1 column 13 (char 12) "><pre class="notranslate"><code class="notranslate">--------------------------------------------------------------------------- JSONDecodeError Traceback (most recent call last) &lt;ipython-input-8-5f4db1ed154c&gt; in &lt;module&gt;() ----&gt; 1 json.loads(j) /usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/json/__init__.py in loads(s, encoding, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw) 317 parse_int is None and parse_float is None and 318 parse_constant is None and object_pairs_hook is None and not kw): --&gt; 319 return _default_decoder.decode(s) 320 if cls is None: 321 cls = JSONDecoder /usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/json/decoder.py in decode(self, s, _w) 337 338 """ --&gt; 339 obj, end = self.raw_decode(s, idx=_w(s, 0).end()) 340 end = _w(s, end).end() 341 if end != len(s): /usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/json/decoder.py in raw_decode(self, s, idx) 353 """ 354 try: --&gt; 355 obj, end = self.scan_once(s, idx) 356 except StopIteration as err: 357 raise JSONDecodeError("Expecting value", s, err.value) from None JSONDecodeError: Expecting ':' delimiter: line 1 column 13 (char 12) </code></pre></div> <h4 dir="auto">Expected Output</h4> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> INSTALLED VERSIONS ------------------ commit: None python: 3.5.1.final.0 python-bits: 64 OS: Darwin OS-release: 16.1.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: en_US.UTF-8 LANG: en_US.UTF-8 <p dir="auto">pandas: 0.18.1<br> nose: 1.3.7<br> pip: 7.1.2<br> setuptools: 28.6.1<br> Cython: None<br> numpy: 1.11.2<br> scipy: 0.18.1<br> statsmodels: None<br> xarray: None<br> IPython: 5.1.0<br> sphinx: None<br> patsy: None<br> dateutil: 2.5.3<br> pytz: 2016.7<br> blosc: None<br> bottleneck: None<br> tables: None<br> numexpr: None<br> matplotlib: 1.4.3<br> openpyxl: None<br> xlrd: None<br> xlwt: None<br> xlsxwriter: None<br> lxml: None<br> bs4: 4.5.1<br> html5lib: None<br> httplib2: 0.9.2<br> apiclient: 1.5.4<br> sqlalchemy: 1.1.2<br> pymysql: None<br> psycopg2: 2.6.2 (dt dec pq3 ext lo64)<br> jinja2: 2.8<br> boto: 2.43.0<br> pandas_datareader: None<br> In [4]:</p> </details>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Komnomnomnom/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Komnomnomnom">@Komnomnomnom</a></p> <p dir="auto">I'm using a recent anaconda build on Windows, which includes v 0.12.0 pandas. I'm attempting to use a multi-index header, write it out to a json file, import it and get the same formatted dataframe. The column headers come out stacked vertically instead.</p> <p dir="auto">import numpy as np<br> import pandas as pd<br> pd.set_option('html',False)</p> <p dir="auto">index = pd.MultiIndex(levels=[['foo', 'bar', 'baz', 'qux'],<br> ['one', 'two', 'three']],<br> labels=[[0, 0, 0, 1, 1, 2, 2, 3, 3, 3],<br> [0, 1, 2, 0, 1, 1, 2, 0, 1, 2]],<br> names=['foo', 'bar'])<br> df = pd.DataFrame(np.random.randn(10, 3), index=index,<br> columns=['A', 'B', 'C'])<br> dft = df.transpose()<br> dft<br> dft.to_json('D:\xxmt.json',orient='split')<br> dftj=pd.read_json('D:\xxmt.json',orient='split')<br> dftj</p>
1
<p dir="auto">We are investigating using React for drawing custom native UIs (that fall outside the scope of react-native and react-windows-native). <code class="notranslate">ReactFiberReconciler</code> seems like the most sensible place to start (assuming fibers start getting used in mainline relatively soon, which seems reasonably likely), and it certainly seems to be very easy to get a proof of concept up and running using it, at least so far.</p> <p dir="auto">If not this, then what is the recommended entry point for 3rd party renders to use?</p>
<p dir="auto">This issue is intended to be a discussion for how to distribute the ReactFiberReconciler.js file and dependencies for custom renderers.</p> <p dir="auto">Currently first-class renderers within the React codebase/Facebook ecosystem do not have any concerns for this because of Haste / access to the React.js build + publish tooling within this codebase.</p> <p dir="auto">3rd party renderers are currently adding <code class="notranslate">react-dom</code> to their dependency list and requiring <code class="notranslate">react-dom/lib/ReactFiberReconciler.js</code> to build and expose their custom renderer.</p> <p dir="auto">Ideally, <code class="notranslate">ReactFiberReconciler.js</code> would be distributed with the <code class="notranslate">react</code> package or as a standalone <code class="notranslate">react-fiber-reconciler</code> package. Whether this is at <code class="notranslate">react/reconciler.js</code> or <code class="notranslate">react/lib/reconciler.js</code> idk. I think at the root is better to continue the discouragement of looking in <code class="notranslate">react/lib/*</code> for anything.</p> <p dir="auto">I understand flat bundles are coming, too. I donโ€™t know if that should block this or if this could be a flat bundle, or any other alternative.</p> <p dir="auto">Is this something the team is ready to commit to and support if we came to a decision on approach and I put together a PR?</p> <p dir="auto">Related issues:</p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="155564701" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/6795" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/6795/hovercard" href="https://github.com/facebook/react/issues/6795">#6795</a> Create Separate Copies of Each Renderer</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="117001444" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/5472" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/5472/hovercard" href="https://github.com/facebook/react/issues/5472">#5472</a> Include flow type definitions (flow type distribution proposal at <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="117001444" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/5472" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/5472/hovercard?comment_id=282394248&amp;comment_type=issue_comment" href="https://github.com/facebook/react/issues/5472#issuecomment-282394248">#5472 (comment)</a>)</li> </ul> <ul dir="auto"> <li><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/sebmarkbage/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/sebmarkbage">@sebmarkbage</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/spicyj/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/spicyj">@spicyj</a></li> </ul>
1
<p dir="auto">crypto/x509 currently supports parsing PKCS#8 private keys with <code class="notranslate">ParsePKCS8PrivateKey</code> but doesn't provide a way to marshal them. A corresponding <code class="notranslate">MarshalPKCS8PrivateKey</code> function would be handy.</p>
<p dir="auto">I <a href="https://groups.google.com/d/topic/golang-nuts/lEOoZ98yi4Q/discussion" rel="nofollow">posted to golang-nuts</a> without any replies so before I push to gerrit I thought I'd make a bug here first.</p> <p dir="auto">There is a <code class="notranslate">x509.ParsePKCS8PrivateKey</code> but there is no <code class="notranslate">x509.MarshalPKCS8PrivateKey</code>, which doesn't seem to match up with the other Parse/Marshal combinations in the <code class="notranslate">x509</code> package. I've written a Marshal method but I'm curious why it was originally omitted and if I'm missing something.</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">I would like to see a PyTorch feature to generate a dataset, ideally Pandas DataFrame with the image name as index and lists of labels for each image.</p> <h2 dir="auto">Motivation</h2> <p dir="auto">For multi-label image classification, it is important to generate the dataset from scratch given a custom datasets. Most likely, the images would be duplicated in multiple folder if the image has multiple label, similar to how <code class="notranslate">ImageFolder</code> works. Unfortunately, I have not seen any of such features offered in most PyTorch implementation.</p> <h2 dir="auto">Pitch</h2> <p dir="auto">Multi-label image classification is definitely an important topic as most images can be classified with multiple labels. It is also much easier to implement compared to object detection if such level of detection is not required.</p> <h2 dir="auto">Alternatives</h2> <p dir="auto">@SpandanMadan had proposed a <a href="https://discuss.pytorch.org/t/multi-label-classification-in-pytorch/905/26" rel="nofollow">working solution</a>. I would like to clean it up and make it consistent with PyTorch implementation.</p> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/fmassa/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/fmassa">@fmassa</a></p>
<h2 dir="auto"><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">๐Ÿ›</g-emoji> Bug</h2> <p dir="auto">When adding a tensor to another tensor <code class="notranslate">c</code> at some <strong>non-unique indices</strong>, we end up with an incorrect tensor. The output is stochastic (demonstrated below).</p> <p dir="auto">This bug is also there when writing to <code class="notranslate">c</code> (instead of adding); I.e., <code class="notranslate">c1[b] = a; c2[b] = a</code>.</p> <h2 dir="auto">To Reproduce</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import torch import numpy as np def torch_indexing_test(device): a = torch.arange(10000).float().to(device) b = torch.tensor(np.random.choice(100, 10000)).to(device).long() c1 = torch.zeros(100).to(device) c2 = torch.zeros(100).to(device) c1[b] += a c2[b] += a print(torch.max(c1-c2)) # should be zero if __name__ == '__main__': torch_indexing_test(device=&quot;cpu&quot;) torch_indexing_test(device=&quot;cuda:0&quot;) # print output: # tensor(0.) # tensor(9307., device='cuda:0')"><pre class="notranslate"><code class="notranslate">import torch import numpy as np def torch_indexing_test(device): a = torch.arange(10000).float().to(device) b = torch.tensor(np.random.choice(100, 10000)).to(device).long() c1 = torch.zeros(100).to(device) c2 = torch.zeros(100).to(device) c1[b] += a c2[b] += a print(torch.max(c1-c2)) # should be zero if __name__ == '__main__': torch_indexing_test(device="cpu") torch_indexing_test(device="cuda:0") # print output: # tensor(0.) # tensor(9307., device='cuda:0') </code></pre></div> <h2 dir="auto">Expected behavior</h2> <p dir="auto">I would expect the printed output for the code when ran on both cpu and gpu to be <code class="notranslate">0</code> (meaning no stochasticity), but the output is non-zero for the gpu code.</p> <h2 dir="auto">Environment</h2> <p dir="auto">PyTorch version: 1.4.0<br> Is debug build: No<br> CUDA used to build PyTorch: 10.1</p> <p dir="auto">OS: Microsoft Windows 10 Home<br> GCC version: (Rev5, Built by MSYS2 project) 5.3.0<br> CMake version: Could not collect</p> <p dir="auto">Python version: 3.7<br> Is CUDA available: Yes<br> CUDA runtime version: 10.1.105<br> GPU models and configuration: GPU 0: GeForce GTX 1080 Ti<br> Nvidia driver version: 441.22<br> cuDNN version: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin\cudnn64_7.dll</p> <p dir="auto">Versions of relevant libraries:<br> [pip] numpy==1.18.1<br> [pip] torch==1.4.0<br> [pip] torchvision==0.5.0<br> [conda] blas 1.0 mkl<br> [conda] libblas 3.8.0 14_mkl conda-forge<br> [conda] libcblas 3.8.0 14_mkl conda-forge<br> [conda] liblapack 3.8.0 14_mkl conda-forge<br> [conda] liblapacke 3.8.0 14_mkl conda-forge<br> [conda] mkl 2019.4 245<br> [conda] mkl-service 2.3.0 py37hb782905_0<br> [conda] mkl_fft 1.0.15 py37h14836fe_0<br> [conda] mkl_random 1.1.0 py37h675688f_0<br> [conda] pytorch 1.4.0 py3.7_cuda101_cudnn7_0 pytorch<br> [conda] torchvision 0.5.0 py37_cu101 pytorch</p>
0
<p dir="auto">That came up during working on <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="101871681" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/12910" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/12910/hovercard" href="https://github.com/kubernetes/kubernetes/pull/12910">#12910</a>. I'm adding new <code class="notranslate">Job</code> resource in <code class="notranslate">pkg/expapi</code> and while generating conversions for that I'm reaching <code class="notranslate">convert_v1_PodSpec_To_api_PodSpec</code> and <code class="notranslate">convert_api_PodSpec_To_v1_PodSpec</code> functions which are hand written in <a href="https://github.com/kubernetes/kubernetes/blob/master/pkg/api/v1/conversion.go#L230-L361">pkg/api/v1/conversion.go</a> which results in compilation errors. What should be the right path to proceed with this? For now I've copied those functions manually to <code class="notranslate">pkg/expapi/v1/conversion.go</code> in aforementioned PR but I'm quite it's not the expected way to proceed with that.<br> <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/smarterclayton/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/smarterclayton">@smarterclayton</a></p>
<p dir="auto">Could not find anything about this, but would be nice to use petsets across clusters, for example database replication for read only databases to another cluster.</p> <p dir="auto">A possible first pass could be to make the DNS entries of each pet resolve in the other clusters.</p>
0
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=vickeryj" rel="nofollow">Joshua Vickery</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-263?redirect=false" rel="nofollow">SPR-263</a></strong> and commented</p> <p dir="auto">I am having trouble creating a bean of type java.io.File with a single constructor-arg. The problem is that the bean that is instantiated seems to "double" its argument value.</p> <p dir="auto">Application Context:</p> <hr> <p dir="auto">&lt;!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"<br> "<a href="http://www.springframework.org/dtd/spring-beans.dtd%22%3E" rel="nofollow">http://www.springframework.org/dtd/spring-beans.dtd"&gt;</a><br> &lt;beans&gt;<br> &lt;bean id="dir" class="java.io.File"&gt;<br> &lt;constructor-arg&gt;&lt;value&gt;test&lt;/value&gt;&lt;/constructor-arg&gt;<br> &lt;/bean&gt;<br> &lt;/beans&gt;</p> <p dir="auto">Test code:</p> <hr> <p dir="auto">import java.io.File;<br> import org.springframework.context.ApplicationContext;<br> import org.springframework.context.support.FileSystemXmlApplicationContext;</p> <p dir="auto">public class Test {<br> public static void main(String[] args) throws Exception {<br> File f1 = new File("test");<br> System.out.println(f1.getAbsolutePath());<br> ApplicationContext ac = new FileSystemXmlApplicationContext("applicationContext.xml");<br> File f2 = (File)ac.getBean("dir");<br> System.out.println(f2.getAbsolutePath());</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">}</p> <p dir="auto">Abbreviated Output from code:</p> <hr> <p dir="auto">run:<br> [java] /home/vickeryj/temp/springTest/test</p> <p dir="auto">...</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[java] /home/vickeryj/temp/springTest/test/test"><pre class="notranslate"><code class="notranslate">[java] /home/vickeryj/temp/springTest/test/test </code></pre></div> <p dir="auto">In short it seems to me that both println statements should be the same, however the bean retrieved from the application context has a path of "test/test" rather than the value of "test" which I passed in.</p> <p dir="auto">Can anyone recreate this?</p> <hr> <p dir="auto"><strong>Affects:</strong> 1.0.2</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=kdonald" rel="nofollow">Keith Donald</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-6413?redirect=false" rel="nofollow">SPR-6413</a></strong> and commented</p> <p dir="auto">Spring Roo has the requirement to map a web requests to static views. Rather than configure a "default handler" that attempts to map any request not handled by a Controller to a view, they're now defining a ParameterizableViewController bean for each static view [which is a safer and more explicit]. This change results in some extra low-level bean configuration that could be simplified.</p> <p dir="auto">Currently, the following must be added to mvc-config.xml:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;!-- Required to enable invocation of org.springframework.web.servlet.Controllers --&gt; &lt;bean class=&quot;org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter&quot; /&gt; &lt;!-- Required for bean name-based request mapping --&gt; &lt;bean class=&quot;org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping&quot; p:order =&quot;1&quot;&gt; &lt;!-- Register any interceptors, typically duplicating interceptor set with other handler mappings --&gt; &lt;property name=&quot;interceptors&quot;&gt; ... &lt;/property&gt; &lt;/bean&gt; &lt;!-- Required for each static view controller --&gt; &lt;bean name=&quot;/index&quot; class=&quot;org.springframework.web.servlet.mvc.ParameterizableViewController&quot; p:viewName=&quot;index&quot; /&gt;"><pre class="notranslate"><code class="notranslate">&lt;!-- Required to enable invocation of org.springframework.web.servlet.Controllers --&gt; &lt;bean class="org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter" /&gt; &lt;!-- Required for bean name-based request mapping --&gt; &lt;bean class="org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping" p:order ="1"&gt; &lt;!-- Register any interceptors, typically duplicating interceptor set with other handler mappings --&gt; &lt;property name="interceptors"&gt; ... &lt;/property&gt; &lt;/bean&gt; &lt;!-- Required for each static view controller --&gt; &lt;bean name="/index" class="org.springframework.web.servlet.mvc.ParameterizableViewController" p:viewName="index" /&gt; </code></pre></div> <p dir="auto">Proposal:</p> <ul dir="auto"> <li>We can simplify the above config by encapsulating the registration of the SimpleControllerHandlerAdapter and BeanNameUrlHandlerMapping beans in the mvc:annotation-driven element.</li> <li>We can simplify the registration of ParameterizableViewControllers by introducing a custom mvc namespace tag such as:</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;mvc:view-controller path=&quot;/index&quot; /&gt; &lt;!-- defaults to view name &quot;index&quot; via RequestToViewNameTranslator --&gt; &lt;mvc:view-controller path=&quot;/foo&quot; view-name=&quot;aCustomViewName&quot; /&gt;"><pre class="notranslate"><code class="notranslate">&lt;mvc:view-controller path="/index" /&gt; &lt;!-- defaults to view name "index" via RequestToViewNameTranslator --&gt; &lt;mvc:view-controller path="/foo" view-name="aCustomViewName" /&gt; </code></pre></div> <hr> <p dir="auto"><strong>Affects:</strong> 3.0 RC2</p> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a href="https://jira.spring.io/browse/ROO-385" rel="nofollow">ROO-385</a> Use new Spring MVC namespace (<em><strong>"is depended on by"</strong></em>)</li> </ul> <p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/de1d54872565a8e62e90a4993b20251c372c0fe7/hovercard" href="https://github.com/spring-projects/spring-framework/commit/de1d54872565a8e62e90a4993b20251c372c0fe7"><tt>de1d548</tt></a></p>
0
<p dir="auto">I'm about to work on the <em>Zipline: Show the Local Weather</em> challenge but it appear the example failed to display weather information: <a href="http://codepen.io/AdventureBear/full/yNBJRj" rel="nofollow">http://codepen.io/AdventureBear/full/yNBJRj</a></p> <p dir="auto">Checking the console log reveal the following error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Failed to load resource: the server responded with a status of 401 (Unauthorized) http://api.openweathermap.org/data/2.5/weather?lat=45.9000&amp;lon=6.1167&amp;units=metric&amp;callback=jQuery213018545346311293542_1445901807518&amp;_=1445901807520"><pre class="notranslate"><code class="notranslate">Failed to load resource: the server responded with a status of 401 (Unauthorized) http://api.openweathermap.org/data/2.5/weather?lat=45.9000&amp;lon=6.1167&amp;units=metric&amp;callback=jQuery213018545346311293542_1445901807518&amp;_=1445901807520 </code></pre></div> <p dir="auto">The link <a href="http://api.openweathermap.org/data/2.5/weather?lat=45.9000&amp;lon=6.1167&amp;units=metric&amp;callback=jQuery213018545346311293542_1445901807518&amp;_=1445901807520" rel="nofollow">http://api.openweathermap.org/data/2.5/weather?lat=45.9000&amp;lon=6.1167&amp;units=metric&amp;callback=jQuery213018545346311293542_1445901807518&amp;_=1445901807520</a> display the following error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Invalid API key. Please see http://openweathermap.org/faq#error401 for more info."><pre class="notranslate"><code class="notranslate">Invalid API key. Please see http://openweathermap.org/faq#error401 for more info. </code></pre></div>
<p dir="auto">Our Weather Zipline example is now broken. Aparently the API <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/AdventureBear/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/AdventureBear">@AdventureBear</a> used on her Zipline no longer works. <a href="https://www.evernote.com/l/AlwSsfX2kblJYoOSp9uAq-BKFosOSCg8-aAB/image.png" rel="nofollow">https://www.evernote.com/l/AlwSsfX2kblJYoOSp9uAq-BKFosOSCg8-aAB/image.png</a></p> <p dir="auto">We need to find an API that works and doesn't require adding an API key, or we need to make an API endpoint on Free Code Camp that campers can use (we don't want people exposing API keys on CodePen).</p> <p dir="auto">Thanks to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/martoncsikos/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/martoncsikos">@martoncsikos</a> for spotting this issue.</p>
1
<p dir="auto">I'm learning the usage of keras and thinking these lines are duplicated thus could be deleted safely.<br> line 63-68 in <a href="https://github.com/fchollet/keras/blob/master/examples/cifar10_resnet.py">https://github.com/fchollet/keras/blob/master/examples/cifar10_resnet.py</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# Input image dimensions. &lt;- FROM HERE # We assume data format &quot;channels_last&quot;. img_rows = x_train.shape[1] img_cols = x_train.shape[2] channels = x_train.shape[3] &lt;- TO HERE if K.image_data_format() == 'channels_first': img_rows = x_train.shape[2] img_cols = x_train.shape[3] channels = x_train.shape[1] x_train = x_train.reshape(x_train.shape[0], channels, img_rows, img_cols) x_test = x_test.reshape(x_test.shape[0], channels, img_rows, img_cols) input_shape = (channels, img_rows, img_cols) else: img_rows = x_train.shape[1] img_cols = x_train.shape[2] channels = x_train.shape[3] x_train = x_train.reshape(x_train.shape[0], img_rows, img_cols, channels) x_test = x_test.reshape(x_test.shape[0], img_rows, img_cols, channels) input_shape = (img_rows, img_cols, channels)"><pre class="notranslate"><code class="notranslate"># Input image dimensions. &lt;- FROM HERE # We assume data format "channels_last". img_rows = x_train.shape[1] img_cols = x_train.shape[2] channels = x_train.shape[3] &lt;- TO HERE if K.image_data_format() == 'channels_first': img_rows = x_train.shape[2] img_cols = x_train.shape[3] channels = x_train.shape[1] x_train = x_train.reshape(x_train.shape[0], channels, img_rows, img_cols) x_test = x_test.reshape(x_test.shape[0], channels, img_rows, img_cols) input_shape = (channels, img_rows, img_cols) else: img_rows = x_train.shape[1] img_cols = x_train.shape[2] channels = x_train.shape[3] x_train = x_train.reshape(x_train.shape[0], img_rows, img_cols, channels) x_test = x_test.reshape(x_test.shape[0], img_rows, img_cols, channels) input_shape = (img_rows, img_cols, channels) </code></pre></div> <p dir="auto">Maybe I will open a pull request soon.</p> <hr> <p dir="auto">Please make sure that the boxes below are checked before you submit your issue. If your issue is an implementation question, please ask your question on <a href="http://stackoverflow.com/questions/tagged/keras" rel="nofollow">StackOverflow</a> or <a href="https://keras-slack-autojoin.herokuapp.com/" rel="nofollow">join the Keras Slack channel</a> and ask there instead of filing a GitHub issue.</p> <p dir="auto">Thank you!</p> <ul class="contains-task-list"> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Check that you are up-to-date with the master branch of Keras. You can update with:<br> pip install git+git://github.com/fchollet/keras.git --upgrade --no-deps</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> If running on TensorFlow, check that you are up-to-date with the latest version. The installation instructions can be found <a href="https://www.tensorflow.org/get_started/os_setup" rel="nofollow">here</a>.</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> If running on Theano, check that you are up-to-date with the master branch of Theano. You can update with:<br> pip install git+git://github.com/Theano/Theano.git --upgrade --no-deps</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Provide a link to a GitHub Gist of a Python script that can reproduce your issue (or just copy the script here if it is short).</p> </li> </ul>
<p dir="auto">I am using <code class="notranslate">ctc_decode</code> for unsegmented text recognition. When <code class="notranslate">greedy=True</code>, <code class="notranslate">ctc_decode</code> works as expected. But if <code class="notranslate">greedy=False</code>, the function merges repeated classes in the output sequence (for example, ABCCD becomes ABCD).<br> Depending on the <code class="notranslate">greedy</code> flag <code class="notranslate">ctc_decode</code> calls either <code class="notranslate">tf.nn.ctc_greedy_decoder</code> or <code class="notranslate">tf.nn.ctc_beam_search_decoder</code>. Both of them has parameter <code class="notranslate">merge_repeated</code>, which is True by default. But the meaning of this parameter is different for these functions.</p> <p dir="auto">For <code class="notranslate">ctc_greedy_decoder</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" If `merge_repeated` is `True`, merge repeated classes in output. This means that if consecutive logits' maximum indices are the same, only the first of these is emitted. The sequence `A B B * B * B` (where '*' is the blank label) becomes * `A B B B` if `merge_repeated=True`. * `A B B B B` if `merge_repeated=False`."><pre class="notranslate"><code class="notranslate"> If `merge_repeated` is `True`, merge repeated classes in output. This means that if consecutive logits' maximum indices are the same, only the first of these is emitted. The sequence `A B B * B * B` (where '*' is the blank label) becomes * `A B B B` if `merge_repeated=True`. * `A B B B B` if `merge_repeated=False`. </code></pre></div> <p dir="auto">For <code class="notranslate">ctc_beam_search_decoder</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" If `merge_repeated` is `True`, merge repeated classes in the output beams. This means that if consecutive entries in a beam are the same, only the first of these is emitted. That is, when the top path is `A B B B B`, the return value is: * `A B` if `merge_repeated = True`. * `A B B B B` if `merge_repeated = False`."><pre class="notranslate"><code class="notranslate"> If `merge_repeated` is `True`, merge repeated classes in the output beams. This means that if consecutive entries in a beam are the same, only the first of these is emitted. That is, when the top path is `A B B B B`, the return value is: * `A B` if `merge_repeated = True`. * `A B B B B` if `merge_repeated = False`. </code></pre></div> <p dir="auto">So, for <code class="notranslate">ctc_greedy_decoder</code>, <code class="notranslate">merge_repeated</code> works with logits, and for <code class="notranslate">ctc_beam_search_decoder</code>, <code class="notranslate">merge_repeated</code> works with the result (decoded) sequence.<br> I tried to set <code class="notranslate">merge_repeated=False</code> in <code class="notranslate">ctc_decode</code> when <code class="notranslate">ctc_beam_search_decoder</code> is called, and <code class="notranslate">ctc_decode</code> returned expected result (consistent with the case when <code class="notranslate">greedy=True</code>):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" if greedy: (decoded, log_prob) = ctc.ctc_greedy_decoder( inputs=y_pred, sequence_length=input_length) else: (decoded, log_prob) = ctc.ctc_beam_search_decoder( inputs=y_pred, sequence_length=input_length, beam_width=beam_width, top_paths=top_paths, merge_repeated=False) "><pre class="notranslate"><code class="notranslate"> if greedy: (decoded, log_prob) = ctc.ctc_greedy_decoder( inputs=y_pred, sequence_length=input_length) else: (decoded, log_prob) = ctc.ctc_beam_search_decoder( inputs=y_pred, sequence_length=input_length, beam_width=beam_width, top_paths=top_paths, merge_repeated=False) </code></pre></div>
0
<p dir="auto"><strong>Describe the bug</strong><br> If we create a datetime at year 0, month 1, day 1 with a timezone such that the utc equivalent<br> would refer to a UTC time that is in a BC year a and save it to a database,<br> then we can't deserialize it back to a datetime - as when we write the utc</p> <p dir="auto"><strong>Expected behavior</strong></p> <p dir="auto">We shouldn't be able to insert datetime values that can't be deserialized back into a datetime.</p> <p dir="auto"><strong>To Reproduce</strong></p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from uuid import uuid4, UUID from datetime import datetime, timezone, timedelta from sqlalchemy import ( Column, DateTime, ) from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() class Example(Base): __tablename__ = &quot;example&quot; example_id = Column(UUID(as_uuid=True), primary_key=True) date = Column(DateTime(timezone=True), nullable=True) bc_datetime = datetime(year=1, month=1, day=1, tzinfo=timezone(timedelta(hours=1))) db_session.add( Example( example_id=uuid4(), date=bc_datetime. ) ) db.commit() # This works # but this won't, as date can't be serialized into a datetime: example = db.query(Example).first() example.date"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">uuid</span> <span class="pl-k">import</span> <span class="pl-s1">uuid4</span>, <span class="pl-v">UUID</span> <span class="pl-k">from</span> <span class="pl-s1">datetime</span> <span class="pl-k">import</span> <span class="pl-s1">datetime</span>, <span class="pl-s1">timezone</span>, <span class="pl-s1">timedelta</span> <span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span> <span class="pl-k">import</span> ( <span class="pl-v">Column</span>, <span class="pl-v">DateTime</span>, ) <span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span>.<span class="pl-s1">ext</span>.<span class="pl-s1">declarative</span> <span class="pl-k">import</span> <span class="pl-s1">declarative_base</span> <span class="pl-v">Base</span> <span class="pl-c1">=</span> <span class="pl-en">declarative_base</span>() <span class="pl-k">class</span> <span class="pl-v">Example</span>(<span class="pl-v">Base</span>): <span class="pl-s1">__tablename__</span> <span class="pl-c1">=</span> <span class="pl-s">"example"</span> <span class="pl-s1">example_id</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">UUID</span>(<span class="pl-s1">as_uuid</span><span class="pl-c1">=</span><span class="pl-c1">True</span>), <span class="pl-s1">primary_key</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">date</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">DateTime</span>(<span class="pl-s1">timezone</span><span class="pl-c1">=</span><span class="pl-c1">True</span>), <span class="pl-s1">nullable</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">bc_datetime</span> <span class="pl-c1">=</span> <span class="pl-en">datetime</span>(<span class="pl-s1">year</span><span class="pl-c1">=</span><span class="pl-c1">1</span>, <span class="pl-s1">month</span><span class="pl-c1">=</span><span class="pl-c1">1</span>, <span class="pl-s1">day</span><span class="pl-c1">=</span><span class="pl-c1">1</span>, <span class="pl-s1">tzinfo</span><span class="pl-c1">=</span><span class="pl-en">timezone</span>(<span class="pl-en">timedelta</span>(<span class="pl-s1">hours</span><span class="pl-c1">=</span><span class="pl-c1">1</span>))) <span class="pl-s1">db_session</span>.<span class="pl-en">add</span>( <span class="pl-v">Example</span>( <span class="pl-s1">example_id</span><span class="pl-c1">=</span><span class="pl-en">uuid4</span>(), <span class="pl-s1">date</span><span class="pl-c1">=</span><span class="pl-s1">bc_datetime</span>. ) ) <span class="pl-s1">db</span>.<span class="pl-en">commit</span>() <span class="pl-c"># This works</span> <span class="pl-c"># but this won't, as date can't be serialized into a datetime:</span> <span class="pl-s1">example</span> <span class="pl-c1">=</span> <span class="pl-s1">db</span>.<span class="pl-en">query</span>(<span class="pl-v">Example</span>).<span class="pl-en">first</span>() <span class="pl-s1">example</span>.<span class="pl-s1">date</span></pre></div> <p dir="auto"><strong>Versions.</strong></p> <ul dir="auto"> <li>OS: Ubuntu 20.04.2 LTS</li> <li>Python: 3.8.5</li> <li>SQLAlchemy:</li> <li>Database: PostgreSQL 11.9</li> <li>DBAPI:</li> </ul>
<p dir="auto"><strong>Migrated issue, originally created by whereswalden</strong></p> <p dir="auto">Currently, <a href="http://docs.sqlalchemy.org/en/latest/core/metadata.html#sqlalchemy.schema.MetaData.params.naming_convention" rel="nofollow">MetaData.naming_convention</a> does not support composite indexes or foreign keys, so those must be named explicitly. It'd be nice to be able to provide a template for those to be automatically named as well.</p> <p dir="auto">It would likely be necessary for users to define a function to provide the name, since the constraint/index could include any number of columns, but a fairly simple example could be provided in the documentation that simply <code class="notranslate">','.join()</code>s the column names.</p>
0
<h3 dir="auto">Description</h3> <p dir="auto">JAX configures the root logger facility what is a little breaking behavior since using JAX in a third-party application changes logging configuration of the whole app! In my opinion, such side-effects are not desirable and should be fixed.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import logging, jax # The next line does nothing since the root logger is already created. We need # to reset the root logger with force=True option. logging.basicConfig(level=logging.INFO) logging.error('error') logging.info('info')"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">logging</span>, <span class="pl-s1">jax</span> <span class="pl-c"># The next line does nothing since the root logger is already created. We need</span> <span class="pl-c"># to reset the root logger with force=True option.</span> <span class="pl-s1">logging</span>.<span class="pl-en">basicConfig</span>(<span class="pl-s1">level</span><span class="pl-c1">=</span><span class="pl-s1">logging</span>.<span class="pl-v">INFO</span>) <span class="pl-s1">logging</span>.<span class="pl-en">error</span>(<span class="pl-s">'error'</span>) <span class="pl-s1">logging</span>.<span class="pl-en">info</span>(<span class="pl-s">'info'</span>)</pre></div> <h4 dir="auto">Expected output</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR:root:error INFO:root:info"><pre class="notranslate"><code class="notranslate">ERROR:root:error INFO:root:info </code></pre></div> <h4 dir="auto">Actual output</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR:root:error"><pre class="notranslate"><code class="notranslate">ERROR:root:error </code></pre></div> <h3 dir="auto">What jax/jaxlib version are you using?</h3> <p dir="auto">jax v0.3.17, jaxlib v0.3.15</p> <h3 dir="auto">Which accelerator(s) are you using?</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Additional System Info</h3> <p dir="auto"><em>No response</em></p>
<p dir="auto">Hi. There is some (very minor) deviations in the output of <code class="notranslate">jax.numpy.percentile</code> between <code class="notranslate">jax</code> <a href="https://github.com/google/jax/compare/jax-v0.2.20...jax-v0.2.21"><code class="notranslate">v0.2.20</code> and <code class="notranslate">v0.2.21</code></a> in the case that linear interpolation is used (the default). Interestingly, it is really in <code class="notranslate">jax.numpy.percentile</code> and not in <code class="notranslate">jax.numpy.quantile</code> as can be shown in the included example (for convenience this Issue also exists as <a href="https://gist.github.com/matthewfeickert/d8364201ddad6653315a62dc9b921318">a GitHub Gist</a>).</p> <h2 dir="auto">Minimal failing example</h2> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# example.py import jax import jax.numpy as jnp import numpy as np from jax.config import config config.update(&quot;jax_enable_x64&quot;, True) if __name__ == &quot;__main__&quot;: # percentile interpolation options: # This optional parameter specifies the interpolation method to use when the desired percentile lies between two data points i &lt; j: # * โ€™linearโ€™: i + (j - i) * fraction, where fraction is the fractional part of the index surrounded by i and j. # * โ€™lowerโ€™: i. # * โ€™higherโ€™: j. # * โ€™nearestโ€™: i or j, whichever is nearest. # * โ€™midpointโ€™: (i + j) / 2. input = [[10, 7, 4], [3, 2, 1]] print(f&quot;input list: {input}&quot;) print(f&quot;input list ravel: {np.asarray(input).ravel()}&quot;) # [10 7 4 3 2 1] print(f&quot;\nNumPy v{np.__version__}&quot;) print(f&quot;JAX v{jax.__version__}\n&quot;) numpy_array = np.asarray(input) print(f&quot;{numpy_array=}&quot;) jax_array = jnp.asarray(input, dtype=&quot;float&quot;) print(f&quot;{jax_array=}&quot;) print(&quot;\n# Checking quantile\n&quot;) assert np.quantile(numpy_array, 0) == 1.0 assert np.quantile(numpy_array, 0.50) == 3.5 assert np.quantile(numpy_array, 1) == 10 assert np.quantile(numpy_array, 0.50, axis=1).tolist() == [7.0, 2.0] assert np.quantile(numpy_array, 0.50, interpolation=&quot;linear&quot;) == 3.5 assert np.quantile(numpy_array, 0.50, interpolation=&quot;nearest&quot;) == 3.0 assert np.quantile(numpy_array, 0.50, interpolation=&quot;lower&quot;) == 3.0 assert np.quantile(numpy_array, 0.50, interpolation=&quot;midpoint&quot;) == 3.5 assert np.quantile(numpy_array, 0.50, interpolation=&quot;higher&quot;) == 4.0 assert jnp.quantile(jax_array, 0) == 1.0 assert jnp.quantile(jax_array, 0.50) == 3.5 assert jnp.quantile(jax_array, 1) == 10 assert jnp.quantile(jax_array, 0.50, axis=1).tolist() == [7.0, 2.0] assert jnp.quantile(jax_array, 0.50, interpolation=&quot;linear&quot;) == 3.5 assert jnp.quantile(jax_array, 0.50, interpolation=&quot;nearest&quot;) == 3.0 assert jnp.quantile(jax_array, 0.50, interpolation=&quot;lower&quot;) == 3.0 assert jnp.quantile(jax_array, 0.50, interpolation=&quot;midpoint&quot;) == 3.5 assert jnp.quantile(jax_array, 0.50, interpolation=&quot;higher&quot;) == 4.0 print(&quot;# Checking percentile&quot;) assert np.percentile(numpy_array, 0) == 1.0 assert np.percentile(numpy_array, 50) == 3.5 assert np.percentile(numpy_array, 100) == 10 assert np.percentile(numpy_array, 50, axis=1).tolist() == [7.0, 2.0] assert np.percentile(numpy_array, 50, interpolation=&quot;linear&quot;) == 3.5 assert np.percentile(numpy_array, 50, interpolation=&quot;nearest&quot;) == 3.0 assert np.percentile(numpy_array, 50, interpolation=&quot;lower&quot;) == 3.0 assert np.percentile(numpy_array, 50, interpolation=&quot;midpoint&quot;) == 3.5 assert np.percentile(numpy_array, 50, interpolation=&quot;higher&quot;) == 4.0 # default interpolation method is &quot;linear&quot; assert jnp.percentile(jax_array, 0) == 1.0 assert jnp.percentile(jax_array, 50) == 3.5 # 3.499999761581421 assert jnp.percentile(jax_array, 100) == 10 # 9.999998092651367 assert jnp.percentile(jax_array, 50, axis=1).tolist() == [7.0, 2.0] assert jnp.percentile(jax_array, 50, interpolation=&quot;linear&quot;) == 3.5 # 3.499999761581421 assert jnp.percentile(jax_array, 50, interpolation=&quot;nearest&quot;) == 3.0 assert jnp.percentile(jax_array, 50, interpolation=&quot;lower&quot;) == 3.0 assert jnp.percentile(jax_array, 50, interpolation=&quot;midpoint&quot;) == 3.5 assert jnp.percentile(jax_array, 50, interpolation=&quot;higher&quot;) == 4.0"><pre class="notranslate"><span class="pl-c"># example.py</span> <span class="pl-k">import</span> <span class="pl-s1">jax</span> <span class="pl-k">import</span> <span class="pl-s1">jax</span>.<span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">jnp</span> <span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-k">from</span> <span class="pl-s1">jax</span>.<span class="pl-s1">config</span> <span class="pl-k">import</span> <span class="pl-s1">config</span> <span class="pl-s1">config</span>.<span class="pl-en">update</span>(<span class="pl-s">"jax_enable_x64"</span>, <span class="pl-c1">True</span>) <span class="pl-k">if</span> <span class="pl-s1">__name__</span> <span class="pl-c1">==</span> <span class="pl-s">"__main__"</span>: <span class="pl-c"># percentile interpolation options:</span> <span class="pl-c"># This optional parameter specifies the interpolation method to use when the desired percentile lies between two data points i &lt; j:</span> <span class="pl-c"># * โ€™linearโ€™: i + (j - i) * fraction, where fraction is the fractional part of the index surrounded by i and j.</span> <span class="pl-c"># * โ€™lowerโ€™: i.</span> <span class="pl-c"># * โ€™higherโ€™: j.</span> <span class="pl-c"># * โ€™nearestโ€™: i or j, whichever is nearest.</span> <span class="pl-c"># * โ€™midpointโ€™: (i + j) / 2.</span> <span class="pl-s1">input</span> <span class="pl-c1">=</span> [[<span class="pl-c1">10</span>, <span class="pl-c1">7</span>, <span class="pl-c1">4</span>], [<span class="pl-c1">3</span>, <span class="pl-c1">2</span>, <span class="pl-c1">1</span>]] <span class="pl-en">print</span>(<span class="pl-s">f"input list: <span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">input</span><span class="pl-kos">}</span></span>"</span>) <span class="pl-en">print</span>(<span class="pl-s">f"input list ravel: <span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">np</span>.<span class="pl-en">asarray</span>(<span class="pl-s1">input</span>).<span class="pl-en">ravel</span>()<span class="pl-kos">}</span></span>"</span>) <span class="pl-c"># [10 7 4 3 2 1]</span> <span class="pl-en">print</span>(<span class="pl-s">f"<span class="pl-cce">\n</span>NumPy v<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">np</span>.<span class="pl-s1">__version__</span><span class="pl-kos">}</span></span>"</span>) <span class="pl-en">print</span>(<span class="pl-s">f"JAX v<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">jax</span>.<span class="pl-s1">__version__</span><span class="pl-kos">}</span></span><span class="pl-cce">\n</span>"</span>) <span class="pl-s1">numpy_array</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">asarray</span>(<span class="pl-s1">input</span>) <span class="pl-en">print</span>(<span class="pl-s">f"<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">numpy_array</span><span class="pl-c1">=</span><span class="pl-kos">}</span></span>"</span>) <span class="pl-s1">jax_array</span> <span class="pl-c1">=</span> <span class="pl-s1">jnp</span>.<span class="pl-en">asarray</span>(<span class="pl-s1">input</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s">"float"</span>) <span class="pl-en">print</span>(<span class="pl-s">f"<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">jax_array</span><span class="pl-c1">=</span><span class="pl-kos">}</span></span>"</span>) <span class="pl-en">print</span>(<span class="pl-s">"<span class="pl-cce">\n</span># Checking quantile<span class="pl-cce">\n</span>"</span>) <span class="pl-k">assert</span> <span class="pl-s1">np</span>.<span class="pl-en">quantile</span>(<span class="pl-s1">numpy_array</span>, <span class="pl-c1">0</span>) <span class="pl-c1">==</span> <span class="pl-c1">1.0</span> <span class="pl-k">assert</span> <span class="pl-s1">np</span>.<span class="pl-en">quantile</span>(<span class="pl-s1">numpy_array</span>, <span class="pl-c1">0.50</span>) <span class="pl-c1">==</span> <span class="pl-c1">3.5</span> <span class="pl-k">assert</span> <span class="pl-s1">np</span>.<span class="pl-en">quantile</span>(<span class="pl-s1">numpy_array</span>, <span class="pl-c1">1</span>) <span class="pl-c1">==</span> <span class="pl-c1">10</span> <span class="pl-k">assert</span> <span class="pl-s1">np</span>.<span class="pl-en">quantile</span>(<span class="pl-s1">numpy_array</span>, <span class="pl-c1">0.50</span>, <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">1</span>).<span class="pl-en">tolist</span>() <span class="pl-c1">==</span> [<span class="pl-c1">7.0</span>, <span class="pl-c1">2.0</span>] <span class="pl-k">assert</span> <span class="pl-s1">np</span>.<span class="pl-en">quantile</span>(<span class="pl-s1">numpy_array</span>, <span class="pl-c1">0.50</span>, <span class="pl-s1">interpolation</span><span class="pl-c1">=</span><span class="pl-s">"linear"</span>) <span class="pl-c1">==</span> <span class="pl-c1">3.5</span> <span class="pl-k">assert</span> <span class="pl-s1">np</span>.<span class="pl-en">quantile</span>(<span class="pl-s1">numpy_array</span>, <span class="pl-c1">0.50</span>, <span class="pl-s1">interpolation</span><span class="pl-c1">=</span><span class="pl-s">"nearest"</span>) <span class="pl-c1">==</span> <span class="pl-c1">3.0</span> <span class="pl-k">assert</span> <span class="pl-s1">np</span>.<span class="pl-en">quantile</span>(<span class="pl-s1">numpy_array</span>, <span class="pl-c1">0.50</span>, <span class="pl-s1">interpolation</span><span class="pl-c1">=</span><span class="pl-s">"lower"</span>) <span class="pl-c1">==</span> <span class="pl-c1">3.0</span> <span class="pl-k">assert</span> <span class="pl-s1">np</span>.<span class="pl-en">quantile</span>(<span class="pl-s1">numpy_array</span>, <span class="pl-c1">0.50</span>, <span class="pl-s1">interpolation</span><span class="pl-c1">=</span><span class="pl-s">"midpoint"</span>) <span class="pl-c1">==</span> <span class="pl-c1">3.5</span> <span class="pl-k">assert</span> <span class="pl-s1">np</span>.<span class="pl-en">quantile</span>(<span class="pl-s1">numpy_array</span>, <span class="pl-c1">0.50</span>, <span class="pl-s1">interpolation</span><span class="pl-c1">=</span><span class="pl-s">"higher"</span>) <span class="pl-c1">==</span> <span class="pl-c1">4.0</span> <span class="pl-k">assert</span> <span class="pl-s1">jnp</span>.<span class="pl-en">quantile</span>(<span class="pl-s1">jax_array</span>, <span class="pl-c1">0</span>) <span class="pl-c1">==</span> <span class="pl-c1">1.0</span> <span class="pl-k">assert</span> <span class="pl-s1">jnp</span>.<span class="pl-en">quantile</span>(<span class="pl-s1">jax_array</span>, <span class="pl-c1">0.50</span>) <span class="pl-c1">==</span> <span class="pl-c1">3.5</span> <span class="pl-k">assert</span> <span class="pl-s1">jnp</span>.<span class="pl-en">quantile</span>(<span class="pl-s1">jax_array</span>, <span class="pl-c1">1</span>) <span class="pl-c1">==</span> <span class="pl-c1">10</span> <span class="pl-k">assert</span> <span class="pl-s1">jnp</span>.<span class="pl-en">quantile</span>(<span class="pl-s1">jax_array</span>, <span class="pl-c1">0.50</span>, <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">1</span>).<span class="pl-en">tolist</span>() <span class="pl-c1">==</span> [<span class="pl-c1">7.0</span>, <span class="pl-c1">2.0</span>] <span class="pl-k">assert</span> <span class="pl-s1">jnp</span>.<span class="pl-en">quantile</span>(<span class="pl-s1">jax_array</span>, <span class="pl-c1">0.50</span>, <span class="pl-s1">interpolation</span><span class="pl-c1">=</span><span class="pl-s">"linear"</span>) <span class="pl-c1">==</span> <span class="pl-c1">3.5</span> <span class="pl-k">assert</span> <span class="pl-s1">jnp</span>.<span class="pl-en">quantile</span>(<span class="pl-s1">jax_array</span>, <span class="pl-c1">0.50</span>, <span class="pl-s1">interpolation</span><span class="pl-c1">=</span><span class="pl-s">"nearest"</span>) <span class="pl-c1">==</span> <span class="pl-c1">3.0</span> <span class="pl-k">assert</span> <span class="pl-s1">jnp</span>.<span class="pl-en">quantile</span>(<span class="pl-s1">jax_array</span>, <span class="pl-c1">0.50</span>, <span class="pl-s1">interpolation</span><span class="pl-c1">=</span><span class="pl-s">"lower"</span>) <span class="pl-c1">==</span> <span class="pl-c1">3.0</span> <span class="pl-k">assert</span> <span class="pl-s1">jnp</span>.<span class="pl-en">quantile</span>(<span class="pl-s1">jax_array</span>, <span class="pl-c1">0.50</span>, <span class="pl-s1">interpolation</span><span class="pl-c1">=</span><span class="pl-s">"midpoint"</span>) <span class="pl-c1">==</span> <span class="pl-c1">3.5</span> <span class="pl-k">assert</span> <span class="pl-s1">jnp</span>.<span class="pl-en">quantile</span>(<span class="pl-s1">jax_array</span>, <span class="pl-c1">0.50</span>, <span class="pl-s1">interpolation</span><span class="pl-c1">=</span><span class="pl-s">"higher"</span>) <span class="pl-c1">==</span> <span class="pl-c1">4.0</span> <span class="pl-en">print</span>(<span class="pl-s">"# Checking percentile"</span>) <span class="pl-k">assert</span> <span class="pl-s1">np</span>.<span class="pl-en">percentile</span>(<span class="pl-s1">numpy_array</span>, <span class="pl-c1">0</span>) <span class="pl-c1">==</span> <span class="pl-c1">1.0</span> <span class="pl-k">assert</span> <span class="pl-s1">np</span>.<span class="pl-en">percentile</span>(<span class="pl-s1">numpy_array</span>, <span class="pl-c1">50</span>) <span class="pl-c1">==</span> <span class="pl-c1">3.5</span> <span class="pl-k">assert</span> <span class="pl-s1">np</span>.<span class="pl-en">percentile</span>(<span class="pl-s1">numpy_array</span>, <span class="pl-c1">100</span>) <span class="pl-c1">==</span> <span class="pl-c1">10</span> <span class="pl-k">assert</span> <span class="pl-s1">np</span>.<span class="pl-en">percentile</span>(<span class="pl-s1">numpy_array</span>, <span class="pl-c1">50</span>, <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">1</span>).<span class="pl-en">tolist</span>() <span class="pl-c1">==</span> [<span class="pl-c1">7.0</span>, <span class="pl-c1">2.0</span>] <span class="pl-k">assert</span> <span class="pl-s1">np</span>.<span class="pl-en">percentile</span>(<span class="pl-s1">numpy_array</span>, <span class="pl-c1">50</span>, <span class="pl-s1">interpolation</span><span class="pl-c1">=</span><span class="pl-s">"linear"</span>) <span class="pl-c1">==</span> <span class="pl-c1">3.5</span> <span class="pl-k">assert</span> <span class="pl-s1">np</span>.<span class="pl-en">percentile</span>(<span class="pl-s1">numpy_array</span>, <span class="pl-c1">50</span>, <span class="pl-s1">interpolation</span><span class="pl-c1">=</span><span class="pl-s">"nearest"</span>) <span class="pl-c1">==</span> <span class="pl-c1">3.0</span> <span class="pl-k">assert</span> <span class="pl-s1">np</span>.<span class="pl-en">percentile</span>(<span class="pl-s1">numpy_array</span>, <span class="pl-c1">50</span>, <span class="pl-s1">interpolation</span><span class="pl-c1">=</span><span class="pl-s">"lower"</span>) <span class="pl-c1">==</span> <span class="pl-c1">3.0</span> <span class="pl-k">assert</span> <span class="pl-s1">np</span>.<span class="pl-en">percentile</span>(<span class="pl-s1">numpy_array</span>, <span class="pl-c1">50</span>, <span class="pl-s1">interpolation</span><span class="pl-c1">=</span><span class="pl-s">"midpoint"</span>) <span class="pl-c1">==</span> <span class="pl-c1">3.5</span> <span class="pl-k">assert</span> <span class="pl-s1">np</span>.<span class="pl-en">percentile</span>(<span class="pl-s1">numpy_array</span>, <span class="pl-c1">50</span>, <span class="pl-s1">interpolation</span><span class="pl-c1">=</span><span class="pl-s">"higher"</span>) <span class="pl-c1">==</span> <span class="pl-c1">4.0</span> <span class="pl-c"># default interpolation method is "linear"</span> <span class="pl-k">assert</span> <span class="pl-s1">jnp</span>.<span class="pl-en">percentile</span>(<span class="pl-s1">jax_array</span>, <span class="pl-c1">0</span>) <span class="pl-c1">==</span> <span class="pl-c1">1.0</span> <span class="pl-k">assert</span> <span class="pl-s1">jnp</span>.<span class="pl-en">percentile</span>(<span class="pl-s1">jax_array</span>, <span class="pl-c1">50</span>) <span class="pl-c1">==</span> <span class="pl-c1">3.5</span> <span class="pl-c"># 3.499999761581421</span> <span class="pl-k">assert</span> <span class="pl-s1">jnp</span>.<span class="pl-en">percentile</span>(<span class="pl-s1">jax_array</span>, <span class="pl-c1">100</span>) <span class="pl-c1">==</span> <span class="pl-c1">10</span> <span class="pl-c"># 9.999998092651367</span> <span class="pl-k">assert</span> <span class="pl-s1">jnp</span>.<span class="pl-en">percentile</span>(<span class="pl-s1">jax_array</span>, <span class="pl-c1">50</span>, <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">1</span>).<span class="pl-en">tolist</span>() <span class="pl-c1">==</span> [<span class="pl-c1">7.0</span>, <span class="pl-c1">2.0</span>] <span class="pl-k">assert</span> <span class="pl-s1">jnp</span>.<span class="pl-en">percentile</span>(<span class="pl-s1">jax_array</span>, <span class="pl-c1">50</span>, <span class="pl-s1">interpolation</span><span class="pl-c1">=</span><span class="pl-s">"linear"</span>) <span class="pl-c1">==</span> <span class="pl-c1">3.5</span> <span class="pl-c"># 3.499999761581421</span> <span class="pl-k">assert</span> <span class="pl-s1">jnp</span>.<span class="pl-en">percentile</span>(<span class="pl-s1">jax_array</span>, <span class="pl-c1">50</span>, <span class="pl-s1">interpolation</span><span class="pl-c1">=</span><span class="pl-s">"nearest"</span>) <span class="pl-c1">==</span> <span class="pl-c1">3.0</span> <span class="pl-k">assert</span> <span class="pl-s1">jnp</span>.<span class="pl-en">percentile</span>(<span class="pl-s1">jax_array</span>, <span class="pl-c1">50</span>, <span class="pl-s1">interpolation</span><span class="pl-c1">=</span><span class="pl-s">"lower"</span>) <span class="pl-c1">==</span> <span class="pl-c1">3.0</span> <span class="pl-k">assert</span> <span class="pl-s1">jnp</span>.<span class="pl-en">percentile</span>(<span class="pl-s1">jax_array</span>, <span class="pl-c1">50</span>, <span class="pl-s1">interpolation</span><span class="pl-c1">=</span><span class="pl-s">"midpoint"</span>) <span class="pl-c1">==</span> <span class="pl-c1">3.5</span> <span class="pl-k">assert</span> <span class="pl-s1">jnp</span>.<span class="pl-en">percentile</span>(<span class="pl-s1">jax_array</span>, <span class="pl-c1">50</span>, <span class="pl-s1">interpolation</span><span class="pl-c1">=</span><span class="pl-s">"higher"</span>) <span class="pl-c1">==</span> <span class="pl-c1">4.0</span></pre></div> <div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="user@machine:~$ python --version Python 3.9.6 user@machine:~$ python -m venv /tmp/venv &amp;&amp; . /tmp/venv/bin/activate (venv) user@machine:~$ python -m pip install --upgrade pip setuptools wheel (venv) user@machine:~$ cat requirements_passing.txt jax==0.2.20 jaxlib==0.1.69 (venv) user@machine:~$ python -m pip install -r requirements_passing.txt (venv) user@machine:~$ python example.py input list: [[10, 7, 4], [3, 2, 1]] input list ravel: [10 7 4 3 2 1] NumPy v1.21.4 JAX v0.2.20 numpy_array=array([[10, 7, 4], [ 3, 2, 1]]) WARNING:absl:No GPU/TPU found, falling back to CPU. (Set TF_CPP_MIN_LOG_LEVEL=0 and rerun for more info.) jax_array=DeviceArray([[10., 7., 4.], [ 3., 2., 1.]], dtype=float64) # Checking quantile # Checking percentile (venv) user@machine:~$ cat requirements_failing.txt jax==0.2.21 jaxlib==0.1.69 (venv) user@machine:~$ python -m pip install -r requirements_failing.txt (venv) user@machine:~$ python example.py input list: [[10, 7, 4], [3, 2, 1]] input list ravel: [10 7 4 3 2 1] NumPy v1.21.4 JAX v0.2.21 numpy_array=array([[10, 7, 4], [ 3, 2, 1]]) WARNING:absl:No GPU/TPU found, falling back to CPU. (Set TF_CPP_MIN_LOG_LEVEL=0 and rerun for more info.) jax_array=DeviceArray([[10., 7., 4.], [ 3., 2., 1.]], dtype=float64) # Checking quantile # Checking percentile Traceback (most recent call last): File &quot;/home/feickert/Code/debug/jax-percentile-drift/example.py&quot;, line 67, in &lt;module&gt; assert jnp.percentile(jax_array, 50) == 3.5 # 3.499999761581421 AssertionError"><pre class="notranslate"><span class="pl-e">user@machine:~</span>$ <span class="pl-s1">python --version</span> <span class="pl-c1">Python 3.9.6</span> <span class="pl-e">user@machine:~</span>$ <span class="pl-s1">python -m venv /tmp/venv <span class="pl-k">&amp;&amp;</span> <span class="pl-c1">.</span> /tmp/venv/bin/activate</span> <span class="pl-e">(venv) user@machine:~</span>$ <span class="pl-s1">python -m pip install --upgrade pip setuptools wheel</span> <span class="pl-e">(venv) user@machine:~</span>$ <span class="pl-s1">cat requirements_passing.txt</span> <span class="pl-c1">jax==0.2.20</span> <span class="pl-c1">jaxlib==0.1.69</span> <span class="pl-e">(venv) user@machine:~</span>$ <span class="pl-s1">python -m pip install -r requirements_passing.txt</span> <span class="pl-e">(venv) user@machine:~</span>$ <span class="pl-s1">python example.py</span> <span class="pl-c1">input list: [[10, 7, 4], [3, 2, 1]]</span> <span class="pl-c1">input list ravel: [10 7 4 3 2 1]</span> <span class="pl-c1">NumPy v1.21.4</span> <span class="pl-c1">JAX v0.2.20</span> <span class="pl-c1">numpy_array=array([[10, 7, 4],</span> <span class="pl-c1"> [ 3, 2, 1]])</span> <span class="pl-c1">WARNING:absl:No GPU/TPU found, falling back to CPU. (Set TF_CPP_MIN_LOG_LEVEL=0 and rerun for more info.)</span> <span class="pl-c1">jax_array=DeviceArray([[10., 7., 4.],</span> <span class="pl-c1"> [ 3., 2., 1.]], dtype=float64)</span> # <span class="pl-s1">Checking quantile</span> # <span class="pl-s1">Checking percentile</span> <span class="pl-e">(venv) user@machine:~</span>$ <span class="pl-s1">cat requirements_failing.txt</span> <span class="pl-c1">jax==0.2.21</span> <span class="pl-c1">jaxlib==0.1.69</span> <span class="pl-e">(venv) user@machine:~</span>$ <span class="pl-s1">python -m pip install -r requirements_failing.txt</span> <span class="pl-e">(venv) user@machine:~</span>$ <span class="pl-s1">python example.py</span> <span class="pl-c1">input list: [[10, 7, 4], [3, 2, 1]]</span> <span class="pl-c1">input list ravel: [10 7 4 3 2 1]</span> <span class="pl-c1">NumPy v1.21.4</span> <span class="pl-c1">JAX v0.2.21</span> <span class="pl-c1">numpy_array=array([[10, 7, 4],</span> <span class="pl-c1"> [ 3, 2, 1]])</span> <span class="pl-c1">WARNING:absl:No GPU/TPU found, falling back to CPU. (Set TF_CPP_MIN_LOG_LEVEL=0 and rerun for more info.)</span> <span class="pl-c1">jax_array=DeviceArray([[10., 7., 4.],</span> <span class="pl-c1"> [ 3., 2., 1.]], dtype=float64)</span> # <span class="pl-s1">Checking quantile</span> # <span class="pl-s1">Checking percentile</span> <span class="pl-c1">Traceback (most recent call last):</span> <span class="pl-c1"> File "/home/feickert/Code/debug/jax-percentile-drift/example.py", line 67, in &lt;module&gt;</span> <span class="pl-c1"> assert jnp.percentile(jax_array, 50) == 3.5 # 3.499999761581421</span> <span class="pl-c1">AssertionError</span></pre></div> <h2 dir="auto">Notes</h2> <p dir="auto">Comparing the code for <a href="https://github.com/google/jax/blob/jax-v0.2.20/jax/_src/numpy/lax_numpy.py#L5905-L5912"><code class="notranslate">v0.2.20</code></a></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/google/jax/blob/a7b61c0e00d1b535df8a30a82edc0074884d5f4c/jax/_src/numpy/lax_numpy.py#L5905-L5912">jax/jax/_src/numpy/lax_numpy.py</a> </p> <p class="mb-0 color-fg-muted"> Lines 5905 to 5912 in <a data-pjax="true" class="commit-tease-sha" href="/google/jax/commit/a7b61c0e00d1b535df8a30a82edc0074884d5f4c">a7b61c0</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="L5905" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="5905"></td> <td id="LC5905" 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-en">_wraps</span>(<span class="pl-s1">np</span>.<span class="pl-s1">percentile</span>, <span class="pl-s1">skip_params</span><span class="pl-c1">=</span>[<span class="pl-s">'out'</span>, <span class="pl-s">'overwrite_input'</span>])</span> </td> </tr> <tr class="border-0"> <td id="L5906" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="5906"></td> <td id="LC5906" 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">percentile</span>(<span class="pl-s1">a</span>, <span class="pl-s1">q</span>, <span class="pl-s1">axis</span>: <span class="pl-v">Optional</span>[<span class="pl-v">Union</span>[<span class="pl-s1">int</span>, <span class="pl-v">Tuple</span>[<span class="pl-s1">int</span>, ...]]] <span class="pl-c1">=</span> <span class="pl-c1">None</span>, </td> </tr> <tr class="border-0"> <td id="L5907" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="5907"></td> <td id="LC5907" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">out</span><span class="pl-c1">=</span><span class="pl-c1">None</span>, <span class="pl-s1">overwrite_input</span><span class="pl-c1">=</span><span class="pl-c1">False</span>, <span class="pl-s1">interpolation</span><span class="pl-c1">=</span><span class="pl-s">"linear"</span>, </td> </tr> <tr class="border-0"> <td id="L5908" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="5908"></td> <td id="LC5908" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">keepdims</span><span class="pl-c1">=</span><span class="pl-c1">False</span>): </td> </tr> <tr class="border-0"> <td id="L5909" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="5909"></td> <td id="LC5909" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-en">_check_arraylike</span>(<span class="pl-s">"percentile"</span>, <span class="pl-s1">a</span>) </td> </tr> <tr class="border-0"> <td id="L5910" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="5910"></td> <td id="LC5910" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">q</span> <span class="pl-c1">=</span> <span class="pl-en">true_divide</span>(<span class="pl-en">asarray</span>(<span class="pl-s1">q</span>), <span class="pl-en">float32</span>(<span class="pl-c1">100.0</span>)) </td> </tr> <tr class="border-0"> <td id="L5911" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="5911"></td> <td id="LC5911" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">return</span> <span class="pl-en">quantile</span>(<span class="pl-s1">a</span>, <span class="pl-s1">q</span>, <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-s1">axis</span>, <span class="pl-s1">out</span><span class="pl-c1">=</span><span class="pl-s1">out</span>, <span class="pl-s1">overwrite_input</span><span class="pl-c1">=</span><span class="pl-s1">overwrite_input</span>, </td> </tr> <tr class="border-0"> <td id="L5912" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="5912"></td> <td id="LC5912" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">interpolation</span><span class="pl-c1">=</span><span class="pl-s1">interpolation</span>, <span class="pl-s1">keepdims</span><span class="pl-c1">=</span><span class="pl-s1">keepdims</span>) </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto">and <a href="https://github.com/google/jax/blob/jax-v0.2.21/jax/_src/numpy/lax_numpy.py#L6420-L6429"><code class="notranslate">v0.2.21</code></a></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/google/jax/blob/dbeb97d394740bfd122a46249c967139c10d3f11/jax/_src/numpy/lax_numpy.py#L6420-L6429">jax/jax/_src/numpy/lax_numpy.py</a> </p> <p class="mb-0 color-fg-muted"> Lines 6420 to 6429 in <a data-pjax="true" class="commit-tease-sha" href="/google/jax/commit/dbeb97d394740bfd122a46249c967139c10d3f11">dbeb97d</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="L6420" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="6420"></td> <td id="LC6420" 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-en">_wraps</span>(<span class="pl-s1">np</span>.<span class="pl-s1">percentile</span>, <span class="pl-s1">skip_params</span><span class="pl-c1">=</span>[<span class="pl-s">'out'</span>, <span class="pl-s">'overwrite_input'</span>])</span> </td> </tr> <tr class="border-0"> <td id="L6421" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="6421"></td> <td id="LC6421" 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-en">partial</span>(<span class="pl-s1">jit</span>, <span class="pl-s1">static_argnames</span><span class="pl-c1">=</span>(<span class="pl-s">'axis'</span>, <span class="pl-s">'overwrite_input'</span>, <span class="pl-s">'interpolation'</span>,</span> </td> </tr> <tr class="border-0"> <td id="L6422" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="6422"></td> <td id="LC6422" 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-s">'keepdims'</span>))</span> </td> </tr> <tr class="border-0"> <td id="L6423" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="6423"></td> <td id="LC6423" 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">percentile</span>(<span class="pl-s1">a</span>, <span class="pl-s1">q</span>, <span class="pl-s1">axis</span>: <span class="pl-v">Optional</span>[<span class="pl-v">Union</span>[<span class="pl-s1">int</span>, <span class="pl-v">Tuple</span>[<span class="pl-s1">int</span>, ...]]] <span class="pl-c1">=</span> <span class="pl-c1">None</span>, </td> </tr> <tr class="border-0"> <td id="L6424" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="6424"></td> <td id="LC6424" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">out</span><span class="pl-c1">=</span><span class="pl-c1">None</span>, <span class="pl-s1">overwrite_input</span><span class="pl-c1">=</span><span class="pl-c1">False</span>, <span class="pl-s1">interpolation</span><span class="pl-c1">=</span><span class="pl-s">"linear"</span>, </td> </tr> <tr class="border-0"> <td id="L6425" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="6425"></td> <td id="LC6425" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">keepdims</span><span class="pl-c1">=</span><span class="pl-c1">False</span>): </td> </tr> <tr class="border-0"> <td id="L6426" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="6426"></td> <td id="LC6426" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-en">_check_arraylike</span>(<span class="pl-s">"percentile"</span>, <span class="pl-s1">a</span>, <span class="pl-s1">q</span>) </td> </tr> <tr class="border-0"> <td id="L6427" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="6427"></td> <td id="LC6427" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">q</span> <span class="pl-c1">=</span> <span class="pl-en">true_divide</span>(<span class="pl-s1">q</span>, <span class="pl-en">float32</span>(<span class="pl-c1">100.0</span>)) </td> </tr> <tr class="border-0"> <td id="L6428" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="6428"></td> <td id="LC6428" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">return</span> <span class="pl-en">quantile</span>(<span class="pl-s1">a</span>, <span class="pl-s1">q</span>, <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-s1">axis</span>, <span class="pl-s1">out</span><span class="pl-c1">=</span><span class="pl-s1">out</span>, <span class="pl-s1">overwrite_input</span><span class="pl-c1">=</span><span class="pl-s1">overwrite_input</span>, </td> </tr> <tr class="border-0"> <td id="L6429" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="6429"></td> <td id="LC6429" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">interpolation</span><span class="pl-c1">=</span><span class="pl-s1">interpolation</span>, <span class="pl-s1">keepdims</span><span class="pl-c1">=</span><span class="pl-s1">keepdims</span>) </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto">It seems (at first glance as I haven't dug into this yet) that the only relevant difference is the removal of <code class="notranslate">asarray(q)</code> in the <code class="notranslate">true_divide</code> call in PR <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="981633498" data-permission-text="Title is private" data-url="https://github.com/google/jax/issues/7747" data-hovercard-type="pull_request" data-hovercard-url="/google/jax/pull/7747/hovercard" href="https://github.com/google/jax/pull/7747">#7747</a> (though I would think given the point of that PR that nothing should have changed)</p> <div class="highlight highlight-source-diff notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="-q = true_divide(asarray(q), float32(100.0)) +q = true_divide(q, float32(100.0))"><pre class="notranslate"><span class="pl-md"><span class="pl-md">-</span>q = true_divide(asarray(q), float32(100.0))</span> <span class="pl-mi1"><span class="pl-mi1">+</span>q = true_divide(q, float32(100.0))</span></pre></div> <p dir="auto">This effect is quite minor, and probably poses no real significance in most cases, but it deviates from the docstring described behavior. Maybe the most obvious example is the extremes where the q-th percentile is 1 โ€” which should return the element of the array object which is the maxima (in the example <code class="notranslate">10</code>) but instead returns the floating point approximation of that element (<code class="notranslate">9.999998092651367</code>).</p> <h2 dir="auto">Request</h2> <p dir="auto">Would it be possible to revert to the <code class="notranslate">v0.2.20</code> behavior? This would be more consistent with both the docstring and NumPy.</p> <h2 dir="auto">JAX Issues checklist</h2> <p dir="auto">Please:</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Check for duplicate issues.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Provide a complete example of how to reproduce the bug, wrapped in triple backticks</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> If applicable, include full error messages/tracebacks.</li> </ul>
0
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; commit: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/opencv/opencv/commit/1b07274e34378e83fa7ee67ca794e240f64f832a/hovercard" href="https://github.com/opencv/opencv/commit/1b07274e34378e83fa7ee67ca794e240f64f832a"><tt>1b07274</tt></a> (master branch latest commit)</li> <li>Operating System / Platform =&gt; ubuntu 18.04</li> <li>Compiler =&gt; clang++ 10.0.1</li> </ul> <h5 dir="auto">Detailed description</h5> <h5 dir="auto">Steps to reproduce</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="##### Issue submission checklist - [X] I report the issue, it's not a question &lt;!-- OpenCV team works with forum.opencv.org, Stack Overflow and other communities to discuss problems. Tickets with questions without a real issue statement will be closed. --&gt; - [ X] I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution &lt;!-- Places to check: * OpenCV documentation: https://docs.opencv.org * FAQ page: https://github.com/opencv/opencv/wiki/FAQ * OpenCV forum: https://forum.opencv.org * OpenCV issue tracker: https://github.com/opencv/opencv/issues?q=is%3Aissue * Stack Overflow branch: https://stackoverflow.com/questions/tagged/opencv --&gt; - [X ] I updated to the latest OpenCV version and the issue is still there &lt;!-- master branch for OpenCV 4.x and 3.4 branch for OpenCV 3.x releases. OpenCV team supports only the latest release for each branch. The ticket is closed if the problem is not reproduced with the modern version. --&gt; - [X ] There is reproducer code and related data files: videos, images, onnx, etc &lt;!-- The best reproducer -- test case for OpenCV that we can add to the library. Recommendations for media files and binary files: * Try to reproduce the issue with images and videos in opencv_extra repository to reduce attachment size * Use PNG for images, if you report some CV related bug, but not image reader issue * Attach the image as an archive to the ticket, if you report some reader issue. Image hosting services compress images and it breaks the repro code. * Provide ONNX file for some public model or ONNX file with random weights, if you report ONNX parsing or handling issue. Architecture details diagram from netron tool can be very useful too. See https://lutzroeder.github.io/netron/ --&gt;"><pre class="notranslate"><code class="notranslate">##### Issue submission checklist - [X] I report the issue, it's not a question &lt;!-- OpenCV team works with forum.opencv.org, Stack Overflow and other communities to discuss problems. Tickets with questions without a real issue statement will be closed. --&gt; - [ X] I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution &lt;!-- Places to check: * OpenCV documentation: https://docs.opencv.org * FAQ page: https://github.com/opencv/opencv/wiki/FAQ * OpenCV forum: https://forum.opencv.org * OpenCV issue tracker: https://github.com/opencv/opencv/issues?q=is%3Aissue * Stack Overflow branch: https://stackoverflow.com/questions/tagged/opencv --&gt; - [X ] I updated to the latest OpenCV version and the issue is still there &lt;!-- master branch for OpenCV 4.x and 3.4 branch for OpenCV 3.x releases. OpenCV team supports only the latest release for each branch. The ticket is closed if the problem is not reproduced with the modern version. --&gt; - [X ] There is reproducer code and related data files: videos, images, onnx, etc &lt;!-- The best reproducer -- test case for OpenCV that we can add to the library. Recommendations for media files and binary files: * Try to reproduce the issue with images and videos in opencv_extra repository to reduce attachment size * Use PNG for images, if you report some CV related bug, but not image reader issue * Attach the image as an archive to the ticket, if you report some reader issue. Image hosting services compress images and it breaks the repro code. * Provide ONNX file for some public model or ONNX file with random weights, if you report ONNX parsing or handling issue. Architecture details diagram from netron tool can be very useful too. See https://lutzroeder.github.io/netron/ --&gt; </code></pre></div> <h1 dir="auto">Reproduce code</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#include &quot;opencv2/dnn.hpp&quot; #include &lt;fstream&gt; using namespace cv; using namespace dnn; std::string Input1 { 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, (char)0xba, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x0a, (char)0xbd, 0x00, 0x1a, 0x00, 0x0a, 0x00, 0x0a, 0x00, (char)0xba, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, (char)0xba, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, (char)0xba, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x2a, 0x00, (char)0xba, 0x0a, 0x00, 0x0a, 0x00, 0x5d, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x40 }; std::string Input1Path = &quot;Input1&quot;; bool saveFile(std::string Path, std::string Content) { std::ofstream OFS(Path); if (!OFS.is_open()) return false; OFS &lt;&lt; Content; return true; } int main(int argc, char* argv[]) { if (!saveFile(Input1Path, Input1)) return 1; Net net; net = readNetFromTensorflow(Input1Path); return 0; } "><pre class="notranslate"><code class="notranslate">#include "opencv2/dnn.hpp" #include &lt;fstream&gt; using namespace cv; using namespace dnn; std::string Input1 { 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, (char)0xba, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x0a, (char)0xbd, 0x00, 0x1a, 0x00, 0x0a, 0x00, 0x0a, 0x00, (char)0xba, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, (char)0xba, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, (char)0xba, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x2a, 0x00, (char)0xba, 0x0a, 0x00, 0x0a, 0x00, 0x5d, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x0a, 0x40 }; std::string Input1Path = "Input1"; bool saveFile(std::string Path, std::string Content) { std::ofstream OFS(Path); if (!OFS.is_open()) return false; OFS &lt;&lt; Content; return true; } int main(int argc, char* argv[]) { if (!saveFile(Input1Path, Input1)) return 1; Net net; net = readNetFromTensorflow(Input1Path); return 0; } </code></pre></div> <h1 dir="auto">Build steps to opencv</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="mkdir -p build &amp;&amp; cd build cmake -DBUILD_SHARED_LIBS=OFF -DOPENCV_ENABLE_ALLOCATOR_STATS=OFF -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_AR=/bin/llvm-ar -DCMAKE_C_FLAGS=&quot;-fsanitize=address,fuzzer-no-link -fno-omit-frame-pointer -g&quot; -DCMAKE_CXX_FLAGS=&quot;-fsanitize=address,fuzzer-no-link -fno-omit-frame-pointer -g&quot; -DCMAKE_EXE_LINKER_FLAGS=&quot;-fsanitize=address,fuzzer-no-link -fno-omit-frame-pointer -g&quot; -DCMAKE_SHARED_LINKER_FLAGS=&quot;-fsanitize=address,fuzzer-no-link -fno-omit-frame-pointer -g&quot; .. make -j16"><pre class="notranslate"><code class="notranslate">mkdir -p build &amp;&amp; cd build cmake -DBUILD_SHARED_LIBS=OFF -DOPENCV_ENABLE_ALLOCATOR_STATS=OFF -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_AR=/bin/llvm-ar -DCMAKE_C_FLAGS="-fsanitize=address,fuzzer-no-link -fno-omit-frame-pointer -g" -DCMAKE_CXX_FLAGS="-fsanitize=address,fuzzer-no-link -fno-omit-frame-pointer -g" -DCMAKE_EXE_LINKER_FLAGS="-fsanitize=address,fuzzer-no-link -fno-omit-frame-pointer -g" -DCMAKE_SHARED_LINKER_FLAGS="-fsanitize=address,fuzzer-no-link -fno-omit-frame-pointer -g" .. make -j16 </code></pre></div> <h1 dir="auto">Reason</h1> <p dir="auto">tf_graph_simplifier.cpp : sortByExecutionOrder(tensorflow::GraphDef&amp; net)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="void sortByExecutionOrder(tensorflow::GraphDef&amp; net) { ... std::map&lt;std::string, int&gt; nodesMap; ... 987~991 for (int i = 0; i &lt; net.node_size(); ++i) { const tensorflow::NodeDef&amp; node = net.node(i); nodesMap.insert(std::make_pair(node.name(), i)); //nodesMap size and net.node_size() can be different if there is duplicated node.name() in net instance. } ... 995 std::vector&lt;int&gt; numRefsToAdd(nodesMap.size(), 0); //numRefsToAdd size is depends on nodesMap.size(). ... 997 for (int i = 0; i &lt; net.node_size(); ++i) //loop from 0 to net.node_size(). ... 1026 numRefsToAdd[i] = numInputsInGraph; // numRegsToAdd is accessed with index i that depends on net.node_size(). However, numRefsToAdd's size is depends on nodesMap size that can be smaller than net.node_size(), finally heap overflow happened. ..."><pre class="notranslate"><code class="notranslate">void sortByExecutionOrder(tensorflow::GraphDef&amp; net) { ... std::map&lt;std::string, int&gt; nodesMap; ... 987~991 for (int i = 0; i &lt; net.node_size(); ++i) { const tensorflow::NodeDef&amp; node = net.node(i); nodesMap.insert(std::make_pair(node.name(), i)); //nodesMap size and net.node_size() can be different if there is duplicated node.name() in net instance. } ... 995 std::vector&lt;int&gt; numRefsToAdd(nodesMap.size(), 0); //numRefsToAdd size is depends on nodesMap.size(). ... 997 for (int i = 0; i &lt; net.node_size(); ++i) //loop from 0 to net.node_size(). ... 1026 numRefsToAdd[i] = numInputsInGraph; // numRegsToAdd is accessed with index i that depends on net.node_size(). However, numRefsToAdd's size is depends on nodesMap size that can be smaller than net.node_size(), finally heap overflow happened. ... </code></pre></div> <h1 dir="auto">Address Sanitizer Report</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="==11303==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x602000002578 at pc 0x000000762ffc bp 0x7fff554bd0f0 sp 0x7fff554bd0e8 WRITE of size 4 at 0x602000002578 thread T0 #0 0x762ffb in cv::dnn::dnn4_v20211220::sortByExecutionOrder(opencv_tensorflow::GraphDef&amp;) /root/fuzz-test-generation/exp/opencv/modules/dnn/src/tensorflow/tf_graph_simplifier.cpp:1026:33 #1 0x5f0fe9 in cv::dnn::dnn4_v20211220::(anonymous namespace)::TFImporter::populateNet() /root/fuzz-test-generation/exp/opencv/modules/dnn/src/tensorflow/tf_importer.cpp:3018:9 #2 0x5e6743 in cv::dnn::dnn4_v20211220::(anonymous namespace)::TFImporter::TFImporter(cv::dnn::dnn4_v20211220::Net&amp;, char const*, char const*) /root/fuzz-test-generation/exp/opencv/modules/dnn/src/tensorflow/tf_importer.cpp:2709:5 #3 0x5e6743 in cv::dnn::dnn4_v20211220::Net cv::dnn::dnn4_v20211220::detail::readNet&lt;cv::dnn::dnn4_v20211220::(anonymous namespace)::TFImporter, char const*, char const*&gt;(char const*&amp;&amp;, char const*&amp;&amp;) /root/fuzz-test-generation/exp/opencv/modules/dnn/src/tensorflow/../dnn_common.hpp:75:14 #4 0x5e2b33 in cv::dnn::dnn4_v20211220::Net cv::dnn::dnn4_v20211220::detail::readNetDiagnostic&lt;cv::dnn::dnn4_v20211220::(anonymous namespace)::TFImporter, char const*, char const*&gt;(char const*&amp;&amp;, char const*&amp;&amp;) /root/fuzz-test-generation/exp/opencv/modules/dnn/src/tensorflow/../dnn_common.hpp:82:25 #5 0x5e2b33 in cv::dnn::dnn4_v20211220::readNetFromTensorflow(std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;, std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;) /root/fuzz-test-generation/exp/opencv/modules/dnn/src/tensorflow/tf_importer.cpp:3219:12 #6 0x4d90ce in main (/root/fuzz-test-generation/exp/opencv/fuzzer/imread/crash_3/crash+0x4d90ce) #7 0x7fafffa17c86 in __libc_start_main /build/glibc-uZu3wS/glibc-2.27/csu/../csu/libc-start.c:310 #8 0x42e459 in _start (/root/fuzz-test-generation/exp/opencv/fuzzer/imread/crash_3/crash+0x42e459) 0x602000002578 is located 4 bytes to the right of 4-byte region [0x602000002570,0x602000002574) freed by thread T0 here: #0 0x4d6b6d in operator delete(void*) (/root/fuzz-test-generation/exp/opencv/fuzzer/imread/crash_3/crash+0x4d6b6d) #1 0x7611f5 in __gnu_cxx::new_allocator&lt;int&gt;::deallocate(int*, unsigned long) /usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/ext/new_allocator.h:125:2 #2 0x7611f5 in std::allocator_traits&lt;std::allocator&lt;int&gt; &gt;::deallocate(std::allocator&lt;int&gt;&amp;, int*, unsigned long) /usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/alloc_traits.h:462:13 #3 0x7611f5 in std::_Vector_base&lt;int, std::allocator&lt;int&gt; &gt;::_M_deallocate(int*, unsigned long) /usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/stl_vector.h:180:4 #4 0x7611f5 in void std::vector&lt;int, std::allocator&lt;int&gt; &gt;::_M_realloc_insert&lt;int const&amp;&gt;(__gnu_cxx::__normal_iterator&lt;int*, std::vector&lt;int, std::allocator&lt;int&gt; &gt; &gt;, int const&amp;) /usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/vector.tcc:448:7 #5 0x7611f5 in std::vector&lt;int, std::allocator&lt;int&gt; &gt;::push_back(int const&amp;) /usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/stl_vector.h:948:4 #6 0x7611f5 in cv::dnn::dnn4_v20211220::sortByExecutionOrder(opencv_tensorflow::GraphDef&amp;) /root/fuzz-test-generation/exp/opencv/modules/dnn/src/tensorflow/tf_graph_simplifier.cpp:1015:24 #7 0x5f0fe9 in cv::dnn::dnn4_v20211220::(anonymous namespace)::TFImporter::populateNet() /root/fuzz-test-generation/exp/opencv/modules/dnn/src/tensorflow/tf_importer.cpp:3018:9 #8 0x5e6743 in cv::dnn::dnn4_v20211220::(anonymous namespace)::TFImporter::TFImporter(cv::dnn::dnn4_v20211220::Net&amp;, char const*, char const*) /root/fuzz-test-generation/exp/opencv/modules/dnn/src/tensorflow/tf_importer.cpp:2709:5 #9 0x5e6743 in cv::dnn::dnn4_v20211220::Net cv::dnn::dnn4_v20211220::detail::readNet&lt;cv::dnn::dnn4_v20211220::(anonymous namespace)::TFImporter, char const*, char const*&gt;(char const*&amp;&amp;, char const*&amp;&amp;) /root/fuzz-test-generation/exp/opencv/modules/dnn/src/tensorflow/../dnn_common.hpp:75:14 #10 0x5e2b33 in cv::dnn::dnn4_v20211220::Net cv::dnn::dnn4_v20211220::detail::readNetDiagnostic&lt;cv::dnn::dnn4_v20211220::(anonymous namespace)::TFImporter, char const*, char const*&gt;(char const*&amp;&amp;, char const*&amp;&amp;) /root/fuzz-test-generation/exp/opencv/modules/dnn/src/tensorflow/../dnn_common.hpp:82:25 #11 0x5e2b33 in cv::dnn::dnn4_v20211220::readNetFromTensorflow(std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;, std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;) /root/fuzz-test-generation/exp/opencv/modules/dnn/src/tensorflow/tf_importer.cpp:3219:12 #12 0x4d90ce in main (/root/fuzz-test-generation/exp/opencv/fuzzer/imread/crash_3/crash+0x4d90ce) #13 0x7fafffa17c86 in __libc_start_main /build/glibc-uZu3wS/glibc-2.27/csu/../csu/libc-start.c:310 previously allocated by thread T0 here: #0 0x4d630d in operator new(unsigned long) (/root/fuzz-test-generation/exp/opencv/fuzzer/imread/crash_3/crash+0x4d630d) #1 0x76116c in __gnu_cxx::new_allocator&lt;int&gt;::allocate(unsigned long, void const*) /usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/ext/new_allocator.h:111:27 #2 0x76116c in std::allocator_traits&lt;std::allocator&lt;int&gt; &gt;::allocate(std::allocator&lt;int&gt;&amp;, unsigned long) /usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/alloc_traits.h:436:20 #3 0x76116c in std::_Vector_base&lt;int, std::allocator&lt;int&gt; &gt;::_M_allocate(unsigned long) /usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/stl_vector.h:172:20 #4 0x76116c in void std::vector&lt;int, std::allocator&lt;int&gt; &gt;::_M_realloc_insert&lt;int const&amp;&gt;(__gnu_cxx::__normal_iterator&lt;int*, std::vector&lt;int, std::allocator&lt;int&gt; &gt; &gt;, int const&amp;) /usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/vector.tcc:406:33 #5 0x76116c in std::vector&lt;int, std::allocator&lt;int&gt; &gt;::push_back(int const&amp;) /usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/stl_vector.h:948:4 #6 0x76116c in cv::dnn::dnn4_v20211220::sortByExecutionOrder(opencv_tensorflow::GraphDef&amp;) /root/fuzz-test-generation/exp/opencv/modules/dnn/src/tensorflow/tf_graph_simplifier.cpp:1015:24 #7 0x5f0fe9 in cv::dnn::dnn4_v20211220::(anonymous namespace)::TFImporter::populateNet() /root/fuzz-test-generation/exp/opencv/modules/dnn/src/tensorflow/tf_importer.cpp:3018:9 #8 0x5e6743 in cv::dnn::dnn4_v20211220::(anonymous namespace)::TFImporter::TFImporter(cv::dnn::dnn4_v20211220::Net&amp;, char const*, char const*) /root/fuzz-test-generation/exp/opencv/modules/dnn/src/tensorflow/tf_importer.cpp:2709:5 #9 0x5e6743 in cv::dnn::dnn4_v20211220::Net cv::dnn::dnn4_v20211220::detail::readNet&lt;cv::dnn::dnn4_v20211220::(anonymous namespace)::TFImporter, char const*, char const*&gt;(char const*&amp;&amp;, char const*&amp;&amp;) /root/fuzz-test-generation/exp/opencv/modules/dnn/src/tensorflow/../dnn_common.hpp:75:14 #10 0x5e2b33 in cv::dnn::dnn4_v20211220::Net cv::dnn::dnn4_v20211220::detail::readNetDiagnostic&lt;cv::dnn::dnn4_v20211220::(anonymous namespace)::TFImporter, char const*, char const*&gt;(char const*&amp;&amp;, char const*&amp;&amp;) /root/fuzz-test-generation/exp/opencv/modules/dnn/src/tensorflow/../dnn_common.hpp:82:25 #11 0x5e2b33 in cv::dnn::dnn4_v20211220::readNetFromTensorflow(std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;, std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;) /root/fuzz-test-generation/exp/opencv/modules/dnn/src/tensorflow/tf_importer.cpp:3219:12 #12 0x4d90ce in main (/root/fuzz-test-generation/exp/opencv/fuzzer/imread/crash_3/crash+0x4d90ce) #13 0x7fafffa17c86 in __libc_start_main /build/glibc-uZu3wS/glibc-2.27/csu/../csu/libc-start.c:310 SUMMARY: AddressSanitizer: heap-buffer-overflow /root/fuzz-test-generation/exp/opencv/modules/dnn/src/tensorflow/tf_graph_simplifier.cpp:1026:33 in cv::dnn::dnn4_v20211220::sortByExecutionOrder(opencv_tensorflow::GraphDef&amp;) Shadow bytes around the buggy address: 0x0c047fff8450: fa fa fd fa fa fa fd fd fa fa fd fd fa fa fd fa 0x0c047fff8460: fa fa fd fa fa fa fd fa fa fa fd fa fa fa fd fa 0x0c047fff8470: fa fa fd fa fa fa fd fa fa fa fd fa fa fa fd fa 0x0c047fff8480: fa fa fd fa fa fa fd fd fa fa fd fd fa fa fd fa 0x0c047fff8490: fa fa fd fa fa fa fd fa fa fa fd fa fa fa fd fd =&gt;0x0c047fff84a0: fa fa fd fd fa fa fd fd fa fa 04 fa fa fa fd[fa] 0x0c047fff84b0: fa fa fd fa fa fa fd fd fa fa 04 fa fa fa fa fa 0x0c047fff84c0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c047fff84d0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c047fff84e0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c047fff84f0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 Container overflow: fc Array cookie: ac Intra object redzone: bb ASan internal: fe Left alloca redzone: ca Right alloca redzone: cb Shadow gap: cc ==11303==ABORTING"><pre class="notranslate"><code class="notranslate">==11303==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x602000002578 at pc 0x000000762ffc bp 0x7fff554bd0f0 sp 0x7fff554bd0e8 WRITE of size 4 at 0x602000002578 thread T0 #0 0x762ffb in cv::dnn::dnn4_v20211220::sortByExecutionOrder(opencv_tensorflow::GraphDef&amp;) /root/fuzz-test-generation/exp/opencv/modules/dnn/src/tensorflow/tf_graph_simplifier.cpp:1026:33 #1 0x5f0fe9 in cv::dnn::dnn4_v20211220::(anonymous namespace)::TFImporter::populateNet() /root/fuzz-test-generation/exp/opencv/modules/dnn/src/tensorflow/tf_importer.cpp:3018:9 #2 0x5e6743 in cv::dnn::dnn4_v20211220::(anonymous namespace)::TFImporter::TFImporter(cv::dnn::dnn4_v20211220::Net&amp;, char const*, char const*) /root/fuzz-test-generation/exp/opencv/modules/dnn/src/tensorflow/tf_importer.cpp:2709:5 #3 0x5e6743 in cv::dnn::dnn4_v20211220::Net cv::dnn::dnn4_v20211220::detail::readNet&lt;cv::dnn::dnn4_v20211220::(anonymous namespace)::TFImporter, char const*, char const*&gt;(char const*&amp;&amp;, char const*&amp;&amp;) /root/fuzz-test-generation/exp/opencv/modules/dnn/src/tensorflow/../dnn_common.hpp:75:14 #4 0x5e2b33 in cv::dnn::dnn4_v20211220::Net cv::dnn::dnn4_v20211220::detail::readNetDiagnostic&lt;cv::dnn::dnn4_v20211220::(anonymous namespace)::TFImporter, char const*, char const*&gt;(char const*&amp;&amp;, char const*&amp;&amp;) /root/fuzz-test-generation/exp/opencv/modules/dnn/src/tensorflow/../dnn_common.hpp:82:25 #5 0x5e2b33 in cv::dnn::dnn4_v20211220::readNetFromTensorflow(std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;, std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;) /root/fuzz-test-generation/exp/opencv/modules/dnn/src/tensorflow/tf_importer.cpp:3219:12 #6 0x4d90ce in main (/root/fuzz-test-generation/exp/opencv/fuzzer/imread/crash_3/crash+0x4d90ce) #7 0x7fafffa17c86 in __libc_start_main /build/glibc-uZu3wS/glibc-2.27/csu/../csu/libc-start.c:310 #8 0x42e459 in _start (/root/fuzz-test-generation/exp/opencv/fuzzer/imread/crash_3/crash+0x42e459) 0x602000002578 is located 4 bytes to the right of 4-byte region [0x602000002570,0x602000002574) freed by thread T0 here: #0 0x4d6b6d in operator delete(void*) (/root/fuzz-test-generation/exp/opencv/fuzzer/imread/crash_3/crash+0x4d6b6d) #1 0x7611f5 in __gnu_cxx::new_allocator&lt;int&gt;::deallocate(int*, unsigned long) /usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/ext/new_allocator.h:125:2 #2 0x7611f5 in std::allocator_traits&lt;std::allocator&lt;int&gt; &gt;::deallocate(std::allocator&lt;int&gt;&amp;, int*, unsigned long) /usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/alloc_traits.h:462:13 #3 0x7611f5 in std::_Vector_base&lt;int, std::allocator&lt;int&gt; &gt;::_M_deallocate(int*, unsigned long) /usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/stl_vector.h:180:4 #4 0x7611f5 in void std::vector&lt;int, std::allocator&lt;int&gt; &gt;::_M_realloc_insert&lt;int const&amp;&gt;(__gnu_cxx::__normal_iterator&lt;int*, std::vector&lt;int, std::allocator&lt;int&gt; &gt; &gt;, int const&amp;) /usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/vector.tcc:448:7 #5 0x7611f5 in std::vector&lt;int, std::allocator&lt;int&gt; &gt;::push_back(int const&amp;) /usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/stl_vector.h:948:4 #6 0x7611f5 in cv::dnn::dnn4_v20211220::sortByExecutionOrder(opencv_tensorflow::GraphDef&amp;) /root/fuzz-test-generation/exp/opencv/modules/dnn/src/tensorflow/tf_graph_simplifier.cpp:1015:24 #7 0x5f0fe9 in cv::dnn::dnn4_v20211220::(anonymous namespace)::TFImporter::populateNet() /root/fuzz-test-generation/exp/opencv/modules/dnn/src/tensorflow/tf_importer.cpp:3018:9 #8 0x5e6743 in cv::dnn::dnn4_v20211220::(anonymous namespace)::TFImporter::TFImporter(cv::dnn::dnn4_v20211220::Net&amp;, char const*, char const*) /root/fuzz-test-generation/exp/opencv/modules/dnn/src/tensorflow/tf_importer.cpp:2709:5 #9 0x5e6743 in cv::dnn::dnn4_v20211220::Net cv::dnn::dnn4_v20211220::detail::readNet&lt;cv::dnn::dnn4_v20211220::(anonymous namespace)::TFImporter, char const*, char const*&gt;(char const*&amp;&amp;, char const*&amp;&amp;) /root/fuzz-test-generation/exp/opencv/modules/dnn/src/tensorflow/../dnn_common.hpp:75:14 #10 0x5e2b33 in cv::dnn::dnn4_v20211220::Net cv::dnn::dnn4_v20211220::detail::readNetDiagnostic&lt;cv::dnn::dnn4_v20211220::(anonymous namespace)::TFImporter, char const*, char const*&gt;(char const*&amp;&amp;, char const*&amp;&amp;) /root/fuzz-test-generation/exp/opencv/modules/dnn/src/tensorflow/../dnn_common.hpp:82:25 #11 0x5e2b33 in cv::dnn::dnn4_v20211220::readNetFromTensorflow(std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;, std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;) /root/fuzz-test-generation/exp/opencv/modules/dnn/src/tensorflow/tf_importer.cpp:3219:12 #12 0x4d90ce in main (/root/fuzz-test-generation/exp/opencv/fuzzer/imread/crash_3/crash+0x4d90ce) #13 0x7fafffa17c86 in __libc_start_main /build/glibc-uZu3wS/glibc-2.27/csu/../csu/libc-start.c:310 previously allocated by thread T0 here: #0 0x4d630d in operator new(unsigned long) (/root/fuzz-test-generation/exp/opencv/fuzzer/imread/crash_3/crash+0x4d630d) #1 0x76116c in __gnu_cxx::new_allocator&lt;int&gt;::allocate(unsigned long, void const*) /usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/ext/new_allocator.h:111:27 #2 0x76116c in std::allocator_traits&lt;std::allocator&lt;int&gt; &gt;::allocate(std::allocator&lt;int&gt;&amp;, unsigned long) /usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/alloc_traits.h:436:20 #3 0x76116c in std::_Vector_base&lt;int, std::allocator&lt;int&gt; &gt;::_M_allocate(unsigned long) /usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/stl_vector.h:172:20 #4 0x76116c in void std::vector&lt;int, std::allocator&lt;int&gt; &gt;::_M_realloc_insert&lt;int const&amp;&gt;(__gnu_cxx::__normal_iterator&lt;int*, std::vector&lt;int, std::allocator&lt;int&gt; &gt; &gt;, int const&amp;) /usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/vector.tcc:406:33 #5 0x76116c in std::vector&lt;int, std::allocator&lt;int&gt; &gt;::push_back(int const&amp;) /usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/stl_vector.h:948:4 #6 0x76116c in cv::dnn::dnn4_v20211220::sortByExecutionOrder(opencv_tensorflow::GraphDef&amp;) /root/fuzz-test-generation/exp/opencv/modules/dnn/src/tensorflow/tf_graph_simplifier.cpp:1015:24 #7 0x5f0fe9 in cv::dnn::dnn4_v20211220::(anonymous namespace)::TFImporter::populateNet() /root/fuzz-test-generation/exp/opencv/modules/dnn/src/tensorflow/tf_importer.cpp:3018:9 #8 0x5e6743 in cv::dnn::dnn4_v20211220::(anonymous namespace)::TFImporter::TFImporter(cv::dnn::dnn4_v20211220::Net&amp;, char const*, char const*) /root/fuzz-test-generation/exp/opencv/modules/dnn/src/tensorflow/tf_importer.cpp:2709:5 #9 0x5e6743 in cv::dnn::dnn4_v20211220::Net cv::dnn::dnn4_v20211220::detail::readNet&lt;cv::dnn::dnn4_v20211220::(anonymous namespace)::TFImporter, char const*, char const*&gt;(char const*&amp;&amp;, char const*&amp;&amp;) /root/fuzz-test-generation/exp/opencv/modules/dnn/src/tensorflow/../dnn_common.hpp:75:14 #10 0x5e2b33 in cv::dnn::dnn4_v20211220::Net cv::dnn::dnn4_v20211220::detail::readNetDiagnostic&lt;cv::dnn::dnn4_v20211220::(anonymous namespace)::TFImporter, char const*, char const*&gt;(char const*&amp;&amp;, char const*&amp;&amp;) /root/fuzz-test-generation/exp/opencv/modules/dnn/src/tensorflow/../dnn_common.hpp:82:25 #11 0x5e2b33 in cv::dnn::dnn4_v20211220::readNetFromTensorflow(std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;, std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;) /root/fuzz-test-generation/exp/opencv/modules/dnn/src/tensorflow/tf_importer.cpp:3219:12 #12 0x4d90ce in main (/root/fuzz-test-generation/exp/opencv/fuzzer/imread/crash_3/crash+0x4d90ce) #13 0x7fafffa17c86 in __libc_start_main /build/glibc-uZu3wS/glibc-2.27/csu/../csu/libc-start.c:310 SUMMARY: AddressSanitizer: heap-buffer-overflow /root/fuzz-test-generation/exp/opencv/modules/dnn/src/tensorflow/tf_graph_simplifier.cpp:1026:33 in cv::dnn::dnn4_v20211220::sortByExecutionOrder(opencv_tensorflow::GraphDef&amp;) Shadow bytes around the buggy address: 0x0c047fff8450: fa fa fd fa fa fa fd fd fa fa fd fd fa fa fd fa 0x0c047fff8460: fa fa fd fa fa fa fd fa fa fa fd fa fa fa fd fa 0x0c047fff8470: fa fa fd fa fa fa fd fa fa fa fd fa fa fa fd fa 0x0c047fff8480: fa fa fd fa fa fa fd fd fa fa fd fd fa fa fd fa 0x0c047fff8490: fa fa fd fa fa fa fd fa fa fa fd fa fa fa fd fd =&gt;0x0c047fff84a0: fa fa fd fd fa fa fd fd fa fa 04 fa fa fa fd[fa] 0x0c047fff84b0: fa fa fd fa fa fa fd fd fa fa 04 fa fa fa fa fa 0x0c047fff84c0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c047fff84d0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c047fff84e0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c047fff84f0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 Container overflow: fc Array cookie: ac Intra object redzone: bb ASan internal: fe Left alloca redzone: ca Right alloca redzone: cb Shadow gap: cc ==11303==ABORTING </code></pre></div> <h1 dir="auto">Effect</h1> <p dir="auto">This bug may cause security vulnerability by reading invalid memory address.</p> <h1 dir="auto">Recommendations</h1> <p dir="auto">2 suggestions for opencv security improvements.<br> [1] Request CVE number for this bug to inform opencv users to prevent potential security vulnerabilities.<br> [2] Register below fuzzer code to ossfuzz (<a href="https://github.com/google/oss-fuzz">https://github.com/google/oss-fuzz</a>) for continuous fuzzing.<br> (This fuzzer already found fixes <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1199814447" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv/issues/21852" data-hovercard-type="issue" data-hovercard-url="/opencv/opencv/issues/21852/hovercard" href="https://github.com/opencv/opencv/issues/21852">#21852</a>, and found this bug again.)<br> ossfuzz already has fuzzers for opencv thus only commit below fuzzer code and build script to ossfuzz is enough I think.<br> (<a href="https://github.com/google/oss-fuzz/tree/master/projects/opencv">https://github.com/google/oss-fuzz/tree/master/projects/opencv</a>)<br> Note that, the git repo of UTopia project(<a href="https://github.com/Samsung/UTopia">https://github.com/Samsung/UTopia</a>) is currently empty and will be updated until the end of May.</p> <p dir="auto">FuzzerCode:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/* * This fuzzer is generated by UTopia project based on TEST(Test_Tensorflow, read_inception). * (UTopia Project: https://github.com/Samsung/UTopia) */ #include &lt;opencv2/dnn/dnn.hpp&gt; #include &lt;opencv2/imgcodecs.hpp&gt; #include &lt;opencv2/imgproc.hpp&gt; #include &lt;Fuzzer/FuzzedDataProvider.h&gt; #include &lt;fstream&gt; using namespace cv; using namespace dnn; bool saveFile(std::string Path, std::string Content) { std::ofstream OFS(Path); if (!OFS.is_open()) return false; OFS &lt;&lt; Content; return true; } static inline void fuzz(FuzzedDataProvider &amp;Provider) { auto Input1 = Provider.ConsumeRandomLengthString(); std::string Input1Path = &quot;input1&quot;; if (!saveFile(Input1Path, Input1)) return; int Input2 = Provider.ConsumeIntegral&lt;int&gt;(); auto Input3 = Provider.ConsumeRandomLengthString(); std::string Input3Path = &quot;input3&quot;; if (!saveFile(Input3Path, Input3)) return; int Input4 = Provider.ConsumeIntegralInRange&lt;int&gt;(0, 256); int Input5 = Provider.ConsumeIntegralInRange&lt;int&gt;(0, 256); int Input6 = Provider.ConsumeIntegralInRange&lt;int&gt;(0, 256); auto Input7 = Provider.ConsumeRandomLengthString(); auto Input8 = Provider.ConsumeRandomLengthString(); Net net; net = readNetFromTensorflow(Input1Path); if (net.empty()) return; net.setPreferableBackend(Input2); Mat sample = imread(Input3Path); if (sample.empty()) return; Mat input; resize(sample, input, Size(Input4, Input5)); input -= Scalar::all(Input6); Mat inputBlob = blobFromImage(input); net.setInput(inputBlob, Input7); Mat out = net.forward(Input8); } extern &quot;C&quot; int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { FuzzedDataProvider Provider(data, size); try { fuzz(Provider); } catch (std::exception &amp;E) {} return 0; }"><pre class="notranslate"><code class="notranslate">/* * This fuzzer is generated by UTopia project based on TEST(Test_Tensorflow, read_inception). * (UTopia Project: https://github.com/Samsung/UTopia) */ #include &lt;opencv2/dnn/dnn.hpp&gt; #include &lt;opencv2/imgcodecs.hpp&gt; #include &lt;opencv2/imgproc.hpp&gt; #include &lt;Fuzzer/FuzzedDataProvider.h&gt; #include &lt;fstream&gt; using namespace cv; using namespace dnn; bool saveFile(std::string Path, std::string Content) { std::ofstream OFS(Path); if (!OFS.is_open()) return false; OFS &lt;&lt; Content; return true; } static inline void fuzz(FuzzedDataProvider &amp;Provider) { auto Input1 = Provider.ConsumeRandomLengthString(); std::string Input1Path = "input1"; if (!saveFile(Input1Path, Input1)) return; int Input2 = Provider.ConsumeIntegral&lt;int&gt;(); auto Input3 = Provider.ConsumeRandomLengthString(); std::string Input3Path = "input3"; if (!saveFile(Input3Path, Input3)) return; int Input4 = Provider.ConsumeIntegralInRange&lt;int&gt;(0, 256); int Input5 = Provider.ConsumeIntegralInRange&lt;int&gt;(0, 256); int Input6 = Provider.ConsumeIntegralInRange&lt;int&gt;(0, 256); auto Input7 = Provider.ConsumeRandomLengthString(); auto Input8 = Provider.ConsumeRandomLengthString(); Net net; net = readNetFromTensorflow(Input1Path); if (net.empty()) return; net.setPreferableBackend(Input2); Mat sample = imread(Input3Path); if (sample.empty()) return; Mat input; resize(sample, input, Size(Input4, Input5)); input -= Scalar::all(Input6); Mat inputBlob = blobFromImage(input); net.setInput(inputBlob, Input7); Mat out = net.forward(Input8); } extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { FuzzedDataProvider Provider(data, size); try { fuzz(Provider); } catch (std::exception &amp;E) {} return 0; } </code></pre></div>
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 3.4.6</li> <li>Operating System / Platform =&gt; Windows7 64Bit</li> <li>Compiler =&gt; c++</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">vs 2015 detect memory leak after cv::resize<br> without resize, there is no memory leak</p> <p dir="auto">how I can i fix it?<br> is there any right way to this code?</p> <h5 dir="auto">Steps to reproduce</h5> <p dir="auto">void main()<br> {<br> cv::Mat matImg = cv::imread("181031085202_lb-000000_000594_rectified_cam0.jpg");<br> cv::resize(matImg, matImg, cv::Size(2500 , 3500), 0, 0, cv::INTER_NEAREST);<br> _CrtDumpMemoryLeaks();<br> }</p> <p dir="auto">{794} normal block at 0x0000000002B065F0, 256 bytes long.<br> Data: &lt; g &gt; 00 00 00 00 00 00 00 00 10 67 11 00 00 00 00 00<br> {793} normal block at 0x0000000000142000, 16 bytes long.<br> Data: &lt; g &gt; 80 67 11 00 00 00 00 00 00 00 00 00 00 00 00 00<br> {792} normal block at 0x0000000000116780, 40 bytes long.<br> Data: &lt; e &gt; 00 20 14 00 00 00 00 00 F0 65 B0 02 00 00 00 00<br> {791} normal block at 0x0000000000116710, 40 bytes long.<br> Data: &lt; &gt; FF FF FF FF 00 00 00 00 00 00 00 00 CD CD CD CD<br> {782} normal block at 0x0000000002B01890, 256 bytes long.<br> Data: &lt; 0f &gt; 00 00 00 00 00 00 00 00 30 66 11 00 00 00 00 00<br> {781} normal block at 0x0000000000141F60, 16 bytes long.<br> Data: &lt; f &gt; A0 66 11 00 00 00 00 00 00 00 00 00 00 00 00 00<br> {780} normal block at 0x00000000001166A0, 40 bytes long.<br> Data: &lt;<code class="notranslate"> &gt; 60 1F 14 00 00 00 00 00 90 18 B0 02 00 00 00 00 {779} normal block at 0x0000000000116630, 40 bytes long. Data: &lt; &gt; FF FF FF FF 00 00 00 00 00 00 00 00 CD CD CD CD {765} normal block at 0x0000000002AFF380, 256 bytes long. Data: &lt; Pe &gt; 00 00 00 00 00 00 00 00 50 65 11 00 00 00 00 00 {764} normal block at 0x0000000000141EC0, 16 bytes long. Data: &lt; e &gt; C0 65 11 00 00 00 00 00 00 00 00 00 00 00 00 00 {763} normal block at 0x00000000001165C0, 40 bytes long. Data: &lt; &gt; C0 1E 14 00 00 00 00 00 80 F3 AF 02 00 00 00 00 {762} normal block at 0x0000000000116550, 40 bytes long. Data: &lt; &gt; FF FF FF FF 00 00 00 00 00 00 00 00 CD CD CD CD {753} normal block at 0x0000000002AFE650, 256 bytes long. Data: &lt; pd &gt; 00 00 00 00 00 00 00 00 70 64 11 00 00 00 00 00 {752} normal block at 0x0000000000141E70, 16 bytes long. Data: &lt; d &gt; E0 64 11 00 00 00 00 00 00 00 00 00 00 00 00 00 {751} normal block at 0x00000000001164E0, 40 bytes long. Data: &lt;p P &gt; 70 1E 14 00 00 00 00 00 50 E6 AF 02 00 00 00 00 {750} normal block at 0x0000000000116470, 40 bytes long. Data: &lt; &gt; FF FF FF FF 00 00 00 00 00 00 00 00 CD CD CD CD {739} normal block at 0x0000000002AFD7F0, 256 bytes long. Data: &lt; c &gt; 00 00 00 00 00 00 00 00 90 63 11 00 00 00 00 00 {738} normal block at 0x0000000000141DD0, 16 bytes long. Data: &lt; d &gt; 00 64 11 00 00 00 00 00 00 00 00 00 00 00 00 00 {737} normal block at 0x0000000000116400, 40 bytes long. Data: &lt; &gt; D0 1D 14 00 00 00 00 00 F0 D7 AF 02 00 00 00 00 {736} normal block at 0x0000000000116390, 40 bytes long. Data: &lt; &gt; FF FF FF FF 00 00 00 00 00 00 00 00 CD CD CD CD {703} normal block at 0x0000000002AFBC70, 256 bytes long. Data: &lt; b &gt; 00 00 00 00 00 00 00 00 B0 62 11 00 00 00 00 00 {702} normal block at 0x0000000000141C90, 16 bytes long. Data: &lt; c &gt; 20 63 11 00 00 00 00 00 00 00 00 00 00 00 00 00 {701} normal block at 0x0000000000116320, 40 bytes long. Data: &lt; p &gt; 90 1C 14 00 00 00 00 00 70 BC AF 02 00 00 00 00 {700} normal block at 0x00000000001162B0, 40 bytes long. Data: &lt; &gt; FF FF FF FF 00 00 00 00 00 00 00 00 CD CD CD CD {699} normal block at 0x0000000002AFBB30, 256 bytes long. Data: &lt; a &gt; 00 00 00 00 00 00 00 00 D0 61 11 00 00 00 00 00 {698} normal block at 0x0000000000141C40, 16 bytes long. Data: &lt;@b &gt; 40 62 11 00 00 00 00 00 00 00 00 00 00 00 00 00 {697} normal block at 0x0000000000116240, 40 bytes long. Data: &lt;@ 0 &gt; 40 1C 14 00 00 00 00 00 30 BB AF 02 00 00 00 00 {696} normal block at 0x00000000001161D0, 40 bytes long. Data: &lt; &gt; FF FF FF FF 00 00 00 00 00 00 00 00 CD CD CD CD {677} normal block at 0x000000000015FC70, 256 bytes long. Data: &lt; </code> &gt; 00 00 00 00 00 00 00 00 F0 60 11 00 00 00 00 00<br> {676} normal block at 0x0000000000141BA0, 16 bytes long.<br> Data: &lt;<code class="notranslate">a &gt; 60 61 11 00 00 00 00 00 00 00 00 00 00 00 00 00 {674} normal block at 0x0000000000116160, 40 bytes long. Data: &lt; p &gt; A0 1B 14 00 00 00 00 00 70 FC 15 00 00 00 00 00 {673} normal block at 0x00000000001160F0, 40 bytes long. Data: &lt; &gt; FF FF FF FF 00 00 00 00 00 00 00 00 CD CD CD CD {637} normal block at 0x000000000015E5C0, 256 bytes long. Data: &lt; </code> &gt; 00 00 00 00 00 00 00 00 10 60 11 00 00 00 00 00<br> {636} normal block at 0x0000000000141AB0, 16 bytes long.<br> Data: &lt; <code class="notranslate"> &gt; 80 60 11 00 00 00 00 00 00 00 00 00 00 00 00 00 {635} normal block at 0x0000000000116080, 40 bytes long. Data: &lt; &gt; B0 1A 14 00 00 00 00 00 C0 E5 15 00 00 00 00 00 {634} normal block at 0x0000000000116010, 40 bytes long. Data: &lt; &gt; FF FF FF FF 00 00 00 00 00 00 00 00 CD CD CD CD {633} normal block at 0x0000000002AF6E20, 256 bytes long. Data: &lt; [ &gt; 00 00 00 00 00 00 00 00 B0 5B 11 00 00 00 00 00 {632} normal block at 0x0000000000141A60, 16 bytes long. Data: &lt; _ &gt; A0 5F 11 00 00 00 00 00 00 00 00 00 00 00 00 00 {631} normal block at 0x0000000000115FA0, 40 bytes long. Data: &lt;</code> n &gt; 60 1A 14 00 00 00 00 00 20 6E AF 02 00 00 00 00<br> {630} normal block at 0x0000000000115BB0, 40 bytes long.<br> Data: &lt; &gt; FF FF FF FF 00 00 00 00 00 00 00 00 CD CD CD CD</p> <p dir="auto">---------------------below is cause of dll load<br> {395} normal block at 0x0000000000119320, 16 bytes long.<br> Data: &lt; &gt; 08 92 11 00 00 00 00 00 00 00 00 00 00 00 00 00<br> {393} normal block at 0x0000000000106CA0, 4 bytes long.<br> Data: &lt; &gt; 00 00 00 00<br> ...</p>
0
<h3 dir="auto">Expected Behavior</h3> <p dir="auto">I was trying to write unit tests for my flask restful api which uses BasicHttpAuth on the initial request and returns a JWT token. All subsequent requests have this token in an x-access-header up to an expiry of 15 mins, then re-authentication happens( the code for this is in the anacropapi repo on my profile under api.<strong>init</strong>.py). I have noted the error in the template. I thought this test client would be fully compatible with the requests package. Does anyone know of a work around for this or can an auth keyword arg be added ?</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import unittest class ApiTest(unittest.TestCase): def setUp(self): # creates a test client self.app = app.test_client() # add a user into the account code goes here ... def tearDown(self): db.drop_all() # etc... def test_login(self): # sends HTTP GET request to the application # on the specified path with an auth kwarg passed like in requests result = self.app.get('/login', auth=requests.auth.BasicHttpAuth(username, password)) "><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">unittest</span> <span class="pl-k">class</span> <span class="pl-v">ApiTest</span>(<span class="pl-s1">unittest</span>.<span class="pl-v">TestCase</span>): <span class="pl-k">def</span> <span class="pl-en">setUp</span>(<span class="pl-s1">self</span>): <span class="pl-c"># creates a test client</span> <span class="pl-s1">self</span>.<span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-s1">app</span>.<span class="pl-en">test_client</span>() <span class="pl-c"># add a user into the account code goes here ...</span> <span class="pl-k">def</span> <span class="pl-en">tearDown</span>(<span class="pl-s1">self</span>): <span class="pl-s1">db</span>.<span class="pl-en">drop_all</span>() <span class="pl-c"># etc...</span> <span class="pl-k">def</span> <span class="pl-en">test_login</span>(<span class="pl-s1">self</span>): <span class="pl-c"># sends HTTP GET request to the application</span> <span class="pl-c"># on the specified path with an auth kwarg passed like in requests </span> <span class="pl-s1">result</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-s1">app</span>.<span class="pl-en">get</span>(<span class="pl-s">'/login'</span>, <span class="pl-s1">auth</span><span class="pl-c1">=</span><span class="pl-s1">requests</span>.<span class="pl-s1">auth</span>.<span class="pl-v">BasicHttpAuth</span>(<span class="pl-s1">username</span>, <span class="pl-s1">password</span>)) </pre></div> <h3 dir="auto">Actual Behavior</h3> <div class="highlight highlight-text-python-traceback notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="this returns no auth arg found error i cant remember the specfic error off hand "><pre class="notranslate">this returns no auth arg found error i cant remember the specfic error off hand </pre></div> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Python version: 3.6</li> <li>Flask version: latest</li> <li>Werkzeug version: latest</li> </ul>
<h3 dir="auto">Expected Behavior</h3> <p dir="auto">According to <a href="https://flask.palletsprojects.com/en/master/testing/#the-first-test" rel="nofollow">https://flask.palletsprojects.com/en/master/testing/#the-first-test</a>, test should pass</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import os import tempfile import pytest from flaskr import create_app @pytest.fixture def client(): db_fd, flaskr.app.config['DATABASE'] = tempfile.mkstemp() flaskr.app.config['TESTING'] = True with flaskr.app.test_client() as client: with flaskr.app.app_context(): flaskr.init_db() yield client os.close(db_fd) os.unlink(flaskr.app.config['DATABASE']) def test_empty_db(client): &quot;&quot;&quot;Start with a blank database.&quot;&quot;&quot; rv = client.get('/') assert b'No entries here so far' in rv.data"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">os</span> <span class="pl-k">import</span> <span class="pl-s1">tempfile</span> <span class="pl-k">import</span> <span class="pl-s1">pytest</span> <span class="pl-k">from</span> <span class="pl-s1">flaskr</span> <span class="pl-k">import</span> <span class="pl-s1">create_app</span> <span class="pl-en">@<span class="pl-s1">pytest</span>.<span class="pl-s1">fixture</span></span> <span class="pl-k">def</span> <span class="pl-en">client</span>(): <span class="pl-s1">db_fd</span>, <span class="pl-s1">flaskr</span>.<span class="pl-s1">app</span>.<span class="pl-s1">config</span>[<span class="pl-s">'DATABASE'</span>] <span class="pl-c1">=</span> <span class="pl-s1">tempfile</span>.<span class="pl-en">mkstemp</span>() <span class="pl-s1">flaskr</span>.<span class="pl-s1">app</span>.<span class="pl-s1">config</span>[<span class="pl-s">'TESTING'</span>] <span class="pl-c1">=</span> <span class="pl-c1">True</span> <span class="pl-k">with</span> <span class="pl-s1">flaskr</span>.<span class="pl-s1">app</span>.<span class="pl-en">test_client</span>() <span class="pl-k">as</span> <span class="pl-s1">client</span>: <span class="pl-k">with</span> <span class="pl-s1">flaskr</span>.<span class="pl-s1">app</span>.<span class="pl-en">app_context</span>(): <span class="pl-s1">flaskr</span>.<span class="pl-en">init_db</span>() <span class="pl-k">yield</span> <span class="pl-s1">client</span> <span class="pl-s1">os</span>.<span class="pl-en">close</span>(<span class="pl-s1">db_fd</span>) <span class="pl-s1">os</span>.<span class="pl-en">unlink</span>(<span class="pl-s1">flaskr</span>.<span class="pl-s1">app</span>.<span class="pl-s1">config</span>[<span class="pl-s">'DATABASE'</span>]) <span class="pl-k">def</span> <span class="pl-en">test_empty_db</span>(<span class="pl-s1">client</span>): <span class="pl-s">"""Start with a blank database."""</span> <span class="pl-s1">rv</span> <span class="pl-c1">=</span> <span class="pl-s1">client</span>.<span class="pl-en">get</span>(<span class="pl-s">'/'</span>) <span class="pl-k">assert</span> <span class="pl-s">b'No entries here so far'</span> <span class="pl-c1">in</span> <span class="pl-s1">rv</span>.<span class="pl-s1">data</span></pre></div> <h3 dir="auto">Actual Behavior</h3> <p dir="auto">The test fail</p> <div class="highlight highlight-text-python-traceback notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="(test2) florian@POC-Docker-1:~/test_testing_flask/flask/examples/tutorial$ pytest -v ========================================================================================================== test session starts ========================================================================================================== platform linux -- Python 3.6.9, pytest-6.0.1, py-1.9.0, pluggy-0.13.1 -- /home/florian/.pyenv/versions/3.6.9/envs/test2/bin/python3.6 cachedir: .pytest_cache rootdir: /home/florian/test_testing_flask/flask/examples/tutorial, configfile: setup.cfg, testpaths: tests collected 25 items tests/test_auth.py::test_register PASSED [ 4%] tests/test_auth.py::test_register_validate_input[--Username is required.] PASSED [ 8%] tests/test_auth.py::test_register_validate_input[a--Password is required.] PASSED [ 12%] tests/test_auth.py::test_register_validate_input[test-test-already registered] PASSED [ 16%] tests/test_auth.py::test_login PASSED [ 20%] tests/test_auth.py::test_login_validate_input[a-test-Incorrect username.] PASSED [ 24%] tests/test_auth.py::test_login_validate_input[test-a-Incorrect password.] PASSED [ 28%] tests/test_auth.py::test_logout PASSED [ 32%] tests/test_blog.py::test_index PASSED [ 36%] tests/test_blog.py::test_login_required[/create] PASSED [ 40%] tests/test_blog.py::test_login_required[/1/update] PASSED [ 44%] tests/test_blog.py::test_login_required[/1/delete] PASSED [ 48%] tests/test_blog.py::test_author_required PASSED [ 52%] tests/test_blog.py::test_exists_required[/2/update] PASSED [ 56%] tests/test_blog.py::test_exists_required[/2/delete] PASSED [ 60%] tests/test_blog.py::test_create PASSED [ 64%] tests/test_blog.py::test_update PASSED [ 68%] tests/test_blog.py::test_create_update_validate[/create] PASSED [ 72%] tests/test_blog.py::test_create_update_validate[/1/update] PASSED [ 76%] tests/test_blog.py::test_delete PASSED [ 80%] tests/test_db.py::test_get_close_db PASSED [ 84%] tests/test_db.py::test_init_db_command PASSED [ 88%] tests/test_factory.py::test_config PASSED [ 92%] tests/test_factory.py::test_hello PASSED [ 96%] tests/test_flaskr.py::test_empty_db ERROR [100%] ================================================================================================================ ERRORS ================================================================================================================= ____________________________________________________________________________________________________ ERROR at setup of test_empty_db ____________________________________________________________________________________________________ @pytest.fixture def client(): &gt; db_fd, flaskr.app.config['DATABASE'] = tempfile.mkstemp() E NameError: name 'flaskr' is not defined tests/test_flaskr.py:11: NameError ======================================================================================================== short test summary info ======================================================================================================== ERROR tests/test_flaskr.py::test_empty_db - NameError: name 'flaskr' is not defined ====================================================================================================== 24 passed, 1 error in 1.30s ======================================================================================================"><pre class="notranslate">(test2) florian@POC-Docker-1:~/test_testing_flask/flask/examples/tutorial$ pytest -v ========================================================================================================== test session starts ========================================================================================================== platform linux -- Python 3.6.9, pytest-6.0.1, py-1.9.0, pluggy-0.13.1 -- /home/florian/.pyenv/versions/3.6.9/envs/test2/bin/python3.6 <span class="pl-en">cachedir</span>: <span class="pl-s">.pytest_cache</span> <span class="pl-en">rootdir</span>: <span class="pl-s">/home/florian/test_testing_flask/flask/examples/tutorial, configfile: setup.cfg, testpaths: tests</span> collected 25 items tests/test_auth.py::test_register PASSED [ 4%] tests/test_auth.py::test_register_validate_input[--Username is required.] PASSED [ 8%] tests/test_auth.py::test_register_validate_input[a--Password is required.] PASSED [ 12%] tests/test_auth.py::test_register_validate_input[test-test-already registered] PASSED [ 16%] tests/test_auth.py::test_login PASSED [ 20%] tests/test_auth.py::test_login_validate_input[a-test-Incorrect username.] PASSED [ 24%] tests/test_auth.py::test_login_validate_input[test-a-Incorrect password.] PASSED [ 28%] tests/test_auth.py::test_logout PASSED [ 32%] tests/test_blog.py::test_index PASSED [ 36%] tests/test_blog.py::test_login_required[/create] PASSED [ 40%] tests/test_blog.py::test_login_required[/1/update] PASSED [ 44%] tests/test_blog.py::test_login_required[/1/delete] PASSED [ 48%] tests/test_blog.py::test_author_required PASSED [ 52%] tests/test_blog.py::test_exists_required[/2/update] PASSED [ 56%] tests/test_blog.py::test_exists_required[/2/delete] PASSED [ 60%] tests/test_blog.py::test_create PASSED [ 64%] tests/test_blog.py::test_update PASSED [ 68%] tests/test_blog.py::test_create_update_validate[/create] PASSED [ 72%] tests/test_blog.py::test_create_update_validate[/1/update] PASSED [ 76%] tests/test_blog.py::test_delete PASSED [ 80%] tests/test_db.py::test_get_close_db PASSED [ 84%] tests/test_db.py::test_init_db_command PASSED [ 88%] tests/test_factory.py::test_config PASSED [ 92%] tests/test_factory.py::test_hello PASSED [ 96%] tests/test_flaskr.py::test_empty_db ERROR [100%] ================================================================================================================ ERRORS ================================================================================================================= ____________________________________________________________________________________________________ ERROR at setup of test_empty_db ____________________________________________________________________________________________________ <span class="pl-k">@</span>pytest.fixture <span class="pl-k">def</span> <span class="pl-en">client</span>(): &gt; db_fd, flaskr.app.config['DATABASE'] = tempfile.mkstemp() E NameError: name 'flaskr' is not defined tests/test_flaskr.py:11: NameError ======================================================================================================== short test summary info ======================================================================================================== ERROR tests/test_flaskr.py::test_empty_db - NameError: name 'flaskr' is not defined ====================================================================================================== 24 passed, 1 error in 1.30s ======================================================================================================</pre></div> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Python version: Python 3.6.9</li> <li>Flask version: 1.1.2</li> <li>Werkzeug version: 1.0.1</li> </ul>
0
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="mod test_mod { enum A { Foo, } } type Alias = test_mod::A; let _v = Alias::Foo; // Compile error"><pre class="notranslate"><span class="pl-k">mod</span> test_mod <span class="pl-kos">{</span> <span class="pl-k">enum</span> <span class="pl-smi">A</span> <span class="pl-kos">{</span> <span class="pl-v">Foo</span><span class="pl-kos">,</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">type</span> <span class="pl-smi">Alias</span> = test_mod<span class="pl-kos">::</span><span class="pl-smi">A</span><span class="pl-kos">;</span> <span class="pl-k">let</span> _v = <span class="pl-smi">Alias</span><span class="pl-kos">::</span><span class="pl-v">Foo</span><span class="pl-kos">;</span> <span class="pl-c">// Compile error</span></pre></div>
<p dir="auto">type items don't work with enums.</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#[derive(Debug)] enum Foo { Bar, Baz, } type Loz = Foo; fn main() { let y = Loz::Bar; println!(&quot;{:?}&quot;, y); }"><pre class="notranslate"><span class="pl-c1">#<span class="pl-kos">[</span>derive<span class="pl-kos">(</span><span class="pl-v">Debug</span><span class="pl-kos">)</span><span class="pl-kos">]</span></span> <span class="pl-k">enum</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span> <span class="pl-v">Bar</span><span class="pl-kos">,</span> <span class="pl-v">Baz</span><span class="pl-kos">,</span> <span class="pl-kos">}</span> <span class="pl-k">type</span> <span class="pl-smi">Loz</span> = <span class="pl-smi">Foo</span><span class="pl-kos">;</span> <span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> y = <span class="pl-smi">Loz</span><span class="pl-kos">::</span><span class="pl-v">Bar</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">"{:?}"</span>, y<span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">On the stable channel the following error occurs:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;anon&gt;:8:13: 8:21 error: type `Foo` does not implement any method in scope named `Bar` &lt;anon&gt;:8 let y = Loz::Bar; ^~~~~~~~ error: aborting due to previous error playpen: application terminated with error code 101```"><pre class="notranslate"><code class="notranslate">&lt;anon&gt;:8:13: 8:21 error: type `Foo` does not implement any method in scope named `Bar` &lt;anon&gt;:8 let y = Loz::Bar; ^~~~~~~~ error: aborting due to previous error playpen: application terminated with error code 101``` </code></pre></div>
1
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: [v1.32]</li> <li>Operating System: [macOS 13.2]</li> <li>Browser: [All]</li> <li>Other info: Storage State / Authentication state enabled through globalSetup</li> </ul> <p dir="auto"><strong>Config file</strong></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// playwright.config.ts globalSetup: require.resolve(&quot;./src/e2e/tests/global-setup&quot;), storageState: './src/e2e/tests/state.json', actionTimeout: 0, screenshot: 'only-on-failure', trace: 'on-first-retry', },"><pre class="notranslate"><span class="pl-c">// playwright.config.ts</span> <span class="pl-s1">globalSetup</span>: <span class="pl-en">require</span><span class="pl-kos">.</span><span class="pl-en">resolve</span><span class="pl-kos">(</span><span class="pl-s">"./src/e2e/tests/global-setup"</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-s1">storageState</span>: <span class="pl-s">'./src/e2e/tests/state.json'</span><span class="pl-kos">,</span> <span class="pl-s1">actionTimeout</span>: <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-s1">screenshot</span>: <span class="pl-s">'only-on-failure'</span><span class="pl-kos">,</span> <span class="pl-s1">trace</span>: <span class="pl-s">'on-first-retry'</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span></pre></div> <p dir="auto"><strong>Test file (self-contained)</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="test.beforeEach(async ({ page }) =&gt; { // Runs before each test and signs in each page. const assetsPage = new AnyPage(page); const loginPage = new LoginPage(page); await loginPage.visit() await assetsPage.menuTopNavComponent.clickAnyMenuItemNav(); }); test('Creating an Element - Any Type', async ({ page }) =&gt; { const anyPage = new AnyPage(page); await anyPage.anyGridLoads() await anyPage.createElementAnyType(); });"><pre class="notranslate"><span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-en">beforeEach</span><span class="pl-kos">(</span><span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> page <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-c">// Runs before each test and signs in each page.</span> <span class="pl-k">const</span> <span class="pl-s1">assetsPage</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">AnyPage</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">loginPage</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">LoginPage</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">loginPage</span><span class="pl-kos">.</span><span class="pl-en">visit</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-k">await</span> <span class="pl-s1">assetsPage</span><span class="pl-kos">.</span><span class="pl-c1">menuTopNavComponent</span><span class="pl-kos">.</span><span class="pl-en">clickAnyMenuItemNav</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-en">test</span><span class="pl-kos">(</span><span class="pl-s">'Creating an Element - Any Type'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> page <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">anyPage</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">AnyPage</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">anyPage</span><span class="pl-kos">.</span><span class="pl-en">anyGridLoads</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-k">await</span> <span class="pl-s1">anyPage</span><span class="pl-kos">.</span><span class="pl-en">createElementAnyType</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>Pre-condition</strong></p> <ul dir="auto"> <li>Having Storage state enabled and being used to sign in during the beforeEach hook</li> </ul> <p dir="auto"><strong>Steps</strong></p> <ul dir="auto"> <li>Run the test with the new flag --ui</li> <li>npx playwright test --ui</li> </ul> <p dir="auto"><strong>Expected</strong></p> <p dir="auto">UI Should be displayed as per the new feature is intended to work</p> <p dir="auto"><strong>Actual</strong></p> <p dir="auto">After executing the command with the new flag --ui, terminal shows the following error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/Users/clundstedt/Documents/zf-playwright/node_modules/@playwright/test/lib/runner/uiMode.js:159 this._page.mainFrame().evaluateExpression(dispatchFuncSource, true, message).catch(e =&gt; this._originalStderr(String(e))); ^ TypeError: Cannot read properties of undefined (reading 'mainFrame') at UIMode._dispatchEvent (/Users/clundstedt/Documents/zf-playwright/node_modules/@playwright/test/lib/runner/uiMode.js:159:16) at Timeout._onTimeout (/Users/clundstedt/Documents/zf-playwright/node_modules/@playwright/test/lib/runner/uiMode.js:69:14) at listOnTimeout (node:internal/timers:564:17) at processTimers (node:internal/timers:507:7) Node.js v19.4.0"><pre class="notranslate"><code class="notranslate">/Users/clundstedt/Documents/zf-playwright/node_modules/@playwright/test/lib/runner/uiMode.js:159 this._page.mainFrame().evaluateExpression(dispatchFuncSource, true, message).catch(e =&gt; this._originalStderr(String(e))); ^ TypeError: Cannot read properties of undefined (reading 'mainFrame') at UIMode._dispatchEvent (/Users/clundstedt/Documents/zf-playwright/node_modules/@playwright/test/lib/runner/uiMode.js:159:16) at Timeout._onTimeout (/Users/clundstedt/Documents/zf-playwright/node_modules/@playwright/test/lib/runner/uiMode.js:69:14) at listOnTimeout (node:internal/timers:564:17) at processTimers (node:internal/timers:507:7) Node.js v19.4.0 </code></pre></div>
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: [v1.33.0]</li> <li>Operating System: Ubuntu 22.04.2 LTS</li> <li>Browser: Chromium</li> <li>Other info: Confirmed on Chromium but I think it likely affects all browsers</li> </ul> <p dir="auto"><strong>Note: OP has been edited for clarity</strong>.</p> <h3 dir="auto">Source code</h3> <p dir="auto">implementation details</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// open browser, inject needed Carted window object, and wait for graphQL responses async open(waitForApi = true) { const graphQlResponses = waitForResponses(this.page, 4); await this.injectCarted(); // note no await this.page.goto(ClientData.baseUrl + '/index.html'); // workarounds that fix the issue: // 1. await this.page.goto(ClientData.baseUrl + '/index.html'); // 2. this.page.goto(ClientData.baseUrl + '/index.html', { waitUntil: 'commit' }); if (waitForApi) { await graphQlResponses; } } // example page object class getter - `this.self` is itself a locator that scopes // the CSS query, while OrderStatusCardSelectors.confirmationHeader is a CSS string get confirmationHeader() { return this.self.locator(OrderStatusCardSelectors.confirmationHeader); }"><pre class="notranslate"><span class="pl-c">// open browser, inject needed Carted window object, and wait for graphQL responses</span> <span class="pl-en">async</span> <span class="pl-s1">open</span><span class="pl-kos">(</span><span class="pl-s1">waitForApi</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span><span class="pl-kos">)</span><span class="pl-kos"></span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">graphQlResponses</span> <span class="pl-c1">=</span> <span class="pl-en">waitForResponses</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">page</span><span class="pl-kos">,</span> <span class="pl-c1">4</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">injectCarted</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// note no await</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span><span class="pl-smi">ClientData</span><span class="pl-kos">.</span><span class="pl-c1">baseUrl</span> <span class="pl-c1">+</span> <span class="pl-s">'/index.html'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// workarounds that fix the issue:</span> <span class="pl-c">// 1. await this.page.goto(ClientData.baseUrl + '/index.html');</span> <span class="pl-c">// 2. this.page.goto(ClientData.baseUrl + '/index.html', { waitUntil: 'commit' });</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">waitForApi</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-s1">graphQlResponses</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-c">// example page object class getter - `this.self` is itself a locator that scopes</span> <span class="pl-c">// the CSS query, while OrderStatusCardSelectors.confirmationHeader is a CSS string</span> <span class="pl-s1">get</span><span class="pl-kos"></span> <span class="pl-en">confirmationHeader</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos"></span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">self</span><span class="pl-kos">.</span><span class="pl-en">locator</span><span class="pl-kos">(</span><span class="pl-smi">OrderStatusCardSelectors</span><span class="pl-kos">.</span><span class="pl-c1">confirmationHeader</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">test.spec.ts</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { Page, test } from '@playwright/test'; import { Browser, Page } from '@playwright/test'; // graphql helper import CartedSession from '../../graphql'; // extended test and expect import { expect, test } from '../fixtures'; // page objects import { CreditCard, FloatingCartButton, OrderStatusCard, ShoppingCart, } from '../page-objects'; // support import { cleanUp, getState, sendResults, setUp } from '../support'; // test data import { adidasBackpack, ccDetailsTestCard, plushToy, staticUSShippingDetails, } from '../test-data'; test.describe.configure({ mode: 'serial' }); test.describe('Order Confirmation', () =&gt; { const cartedSession = new CartedSession('order-confirmation'); let page: Page; let testBrowser: Browser; let cart: ShoppingCart; let floatingCartButton: FloatingCartButton; let payment: CreditCard; let orderStatus: OrderStatusCard; test.beforeAll(async ({ browser }, testInfo) =&gt; { // use the GraphAPI directly set session state, loading needed fixtures (if any) // all these requests happens before the browser even opens, so we can seed some state await cartedSession.loadFixture(); await cartedSession.fetchProduct(plushToy); await cartedSession.fetchProduct(adidasBackpack); await cartedSession.addToCart(plushToy); await cartedSession.addToCart(adidasBackpack, 2); await cartedSession.startCheckout(); await cartedSession.setAddress(staticUSShippingDetails); await cartedSession.setShippingOptions([ { vendorName: plushToy.vendor, label: 'Economy' }, { vendorName: adidasBackpack.vendor, label: 'Standard' }, ]); // fetch local storage state object const state = getState([cartedSession.localStorageObject]); const mockOptions = { fixtureName: 'order-confirmation', storageState: state, sessionId: cartedSession.sessionId, }; // now we create a page and setup calls // browser.newPage({ storageState }) at some point [page, testBrowser] = await setUp(browser, testInfo, mockOptions); // init page objects cart = new ShoppingCart(page); floatingCartButton = new FloatingCartButton(page); payment = new CreditCard(page); orderStatus = new OrderStatusCard(page); // launch the browser, open the cart, confirm payment await payment.open(); await floatingCartButton.openCart(); await payment.enterCreditCardDetails(ccDetailsTestCard); await cart.confirmPurchase(); }); test.afterEach(async ({}, testInfo) =&gt; { await sendResults(page, testInfo); }); test.afterAll(async ({}) =&gt; { await cleanUp(page, testBrowser, { fixtureName: 'order-confirmation' }); }); test('shows the order confrimation header', () =&gt; { expect(orderStatus.confirmationHeader).toBeVisible(); }); test('displays correct email in thank you summary', () =&gt; { expect(orderStatus.emailSummary).toContainText( staticUSShippingDetails.email ); }); test('displays Order Placed for the first item', () =&gt; { // set order status card to equal plushtoy vendor orderStatus.merchantName = plushToy.vendor; expect(orderStatus.badge).toHaveText('Order Placed'); }); test('displays correct title for first item', () =&gt; { expect(orderStatus.title).toHaveText(plushToy.title); }); test.fixme('displays correct image for first item ', () =&gt; { expect(orderStatus.image).toHaveScreenshot(); }); test('displays correct vendor name for first item ', () =&gt; { expect(orderStatus.vendor).toContainText(plushToy.vendor); }); test('displays Order Placed for the second item', () =&gt; { // set order status card to equal backpack vendor orderStatus.merchantName = adidasBackpack.vendor; expect(orderStatus.badge).toHaveText('Order Placed'); }); test('displays correct title for second item', () =&gt; { expect(orderStatus.title).toHaveText(adidasBackpack.title); }); test('displays correct vendor name for second item ', () =&gt; { expect(orderStatus.vendor).toContainText(adidasBackpack.vendor); }); test.fixme('displays correct image for second item ', () =&gt; { expect(orderStatus.image).toHaveScreenshot(); }); });"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">Page</span><span class="pl-kos">,</span> <span class="pl-s1">test</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@playwright/test'</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">Browser</span><span class="pl-kos">,</span> <span class="pl-smi">Page</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@playwright/test'</span><span class="pl-kos">;</span> <span class="pl-c">// graphql helper</span> <span class="pl-k">import</span> <span class="pl-smi">CartedSession</span> <span class="pl-k">from</span> <span class="pl-s">'../../graphql'</span><span class="pl-kos">;</span> <span class="pl-c">// extended test and expect</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">expect</span><span class="pl-kos">,</span> <span class="pl-s1">test</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'../fixtures'</span><span class="pl-kos">;</span> <span class="pl-c">// page objects</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">CreditCard</span><span class="pl-kos">,</span> <span class="pl-smi">FloatingCartButton</span><span class="pl-kos">,</span> <span class="pl-smi">OrderStatusCard</span><span class="pl-kos">,</span> <span class="pl-smi">ShoppingCart</span><span class="pl-kos">,</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'../page-objects'</span><span class="pl-kos">;</span> <span class="pl-c">// support</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">cleanUp</span><span class="pl-kos">,</span> <span class="pl-s1">getState</span><span class="pl-kos">,</span> <span class="pl-s1">sendResults</span><span class="pl-kos">,</span> <span class="pl-s1">setUp</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'../support'</span><span class="pl-kos">;</span> <span class="pl-c">// test data</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">adidasBackpack</span><span class="pl-kos">,</span> <span class="pl-s1">ccDetailsTestCard</span><span class="pl-kos">,</span> <span class="pl-s1">plushToy</span><span class="pl-kos">,</span> <span class="pl-s1">staticUSShippingDetails</span><span class="pl-kos">,</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'../test-data'</span><span class="pl-kos">;</span> <span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-c1">describe</span><span class="pl-kos">.</span><span class="pl-en">configure</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">mode</span>: <span class="pl-s">'serial'</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-en">describe</span><span class="pl-kos">(</span><span class="pl-s">'Order Confirmation'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">cartedSession</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">CartedSession</span><span class="pl-kos">(</span><span class="pl-s">'order-confirmation'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">let</span> <span class="pl-s1">page</span>: <span class="pl-smi">Page</span><span class="pl-kos">;</span> <span class="pl-k">let</span> <span class="pl-s1">testBrowser</span>: <span class="pl-smi">Browser</span><span class="pl-kos">;</span> <span class="pl-k">let</span> <span class="pl-s1">cart</span>: <span class="pl-smi">ShoppingCart</span><span class="pl-kos">;</span> <span class="pl-k">let</span> <span class="pl-s1">floatingCartButton</span>: <span class="pl-smi">FloatingCartButton</span><span class="pl-kos">;</span> <span class="pl-k">let</span> <span class="pl-s1">payment</span>: <span class="pl-smi">CreditCard</span><span class="pl-kos">;</span> <span class="pl-k">let</span> <span class="pl-s1">orderStatus</span>: <span class="pl-smi">OrderStatusCard</span><span class="pl-kos">;</span> <span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-en">beforeAll</span><span class="pl-kos">(</span><span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> browser <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-s1">testInfo</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-c">// use the GraphAPI directly set session state, loading needed fixtures (if any)</span> <span class="pl-c">// all these requests happens before the browser even opens, so we can seed some state</span> <span class="pl-k">await</span> <span class="pl-s1">cartedSession</span><span class="pl-kos">.</span><span class="pl-en">loadFixture</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">cartedSession</span><span class="pl-kos">.</span><span class="pl-en">fetchProduct</span><span class="pl-kos">(</span><span class="pl-s1">plushToy</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">cartedSession</span><span class="pl-kos">.</span><span class="pl-en">fetchProduct</span><span class="pl-kos">(</span><span class="pl-s1">adidasBackpack</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">cartedSession</span><span class="pl-kos">.</span><span class="pl-en">addToCart</span><span class="pl-kos">(</span><span class="pl-s1">plushToy</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">cartedSession</span><span class="pl-kos">.</span><span class="pl-en">addToCart</span><span class="pl-kos">(</span><span class="pl-s1">adidasBackpack</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-k">await</span> <span class="pl-s1">cartedSession</span><span class="pl-kos">.</span><span class="pl-en">startCheckout</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">cartedSession</span><span class="pl-kos">.</span><span class="pl-en">setAddress</span><span class="pl-kos">(</span><span class="pl-s1">staticUSShippingDetails</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">cartedSession</span><span class="pl-kos">.</span><span class="pl-en">setShippingOptions</span><span class="pl-kos">(</span><span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">vendorName</span>: <span class="pl-s1">plushToy</span><span class="pl-kos">.</span><span class="pl-c1">vendor</span><span class="pl-kos">,</span> <span class="pl-c1">label</span>: <span class="pl-s">'Economy'</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">vendorName</span>: <span class="pl-s1">adidasBackpack</span><span class="pl-kos">.</span><span class="pl-c1">vendor</span><span class="pl-kos">,</span> <span class="pl-c1">label</span>: <span class="pl-s">'Standard'</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-c">// fetch local storage state object</span> <span class="pl-k">const</span> <span class="pl-s1">state</span> <span class="pl-c1">=</span> <span class="pl-en">getState</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-s1">cartedSession</span><span class="pl-kos">.</span><span class="pl-c1">localStorageObject</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">mockOptions</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">fixtureName</span>: <span class="pl-s">'order-confirmation'</span><span class="pl-kos">,</span> <span class="pl-c1">storageState</span>: <span class="pl-s1">state</span><span class="pl-kos">,</span> <span class="pl-c1">sessionId</span>: <span class="pl-s1">cartedSession</span><span class="pl-kos">.</span><span class="pl-c1">sessionId</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-c">// now we create a page and setup calls</span> <span class="pl-c">// browser.newPage({ storageState }) at some point</span> <span class="pl-kos">[</span><span class="pl-s1">page</span><span class="pl-kos">,</span> <span class="pl-s1">testBrowser</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-en">setUp</span><span class="pl-kos">(</span><span class="pl-s1">browser</span><span class="pl-kos">,</span> <span class="pl-s1">testInfo</span><span class="pl-kos">,</span> <span class="pl-s1">mockOptions</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// init page objects</span> <span class="pl-s1">cart</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">ShoppingCart</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">floatingCartButton</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">FloatingCartButton</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">payment</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">CreditCard</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">orderStatus</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">OrderStatusCard</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// launch the browser, open the cart, confirm payment</span> <span class="pl-k">await</span> <span class="pl-s1">payment</span><span class="pl-kos">.</span><span class="pl-en">open</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">floatingCartButton</span><span class="pl-kos">.</span><span class="pl-en">openCart</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">payment</span><span class="pl-kos">.</span><span class="pl-en">enterCreditCardDetails</span><span class="pl-kos">(</span><span class="pl-s1">ccDetailsTestCard</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">cart</span><span class="pl-kos">.</span><span class="pl-en">confirmPurchase</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-en">afterEach</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-kos">}</span><span class="pl-kos">,</span> <span class="pl-s1">testInfo</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-en">sendResults</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">,</span> <span class="pl-s1">testInfo</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-en">afterAll</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-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-en">cleanUp</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">,</span> <span class="pl-s1">testBrowser</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">fixtureName</span>: <span class="pl-s">'order-confirmation'</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-en">test</span><span class="pl-kos">(</span><span class="pl-s">'shows the order confrimation header'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">orderStatus</span><span class="pl-kos">.</span><span class="pl-c1">confirmationHeader</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toBeVisible</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-en">test</span><span class="pl-kos">(</span><span class="pl-s">'displays correct email in thank you summary'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">orderStatus</span><span class="pl-kos">.</span><span class="pl-c1">emailSummary</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toContainText</span><span class="pl-kos">(</span> <span class="pl-s1">staticUSShippingDetails</span><span class="pl-kos">.</span><span class="pl-c1">email</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">'displays Order Placed for the first item'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-c">// set order status card to equal plushtoy vendor</span> <span class="pl-s1">orderStatus</span><span class="pl-kos">.</span><span class="pl-c1">merchantName</span> <span class="pl-c1">=</span> <span class="pl-s1">plushToy</span><span class="pl-kos">.</span><span class="pl-c1">vendor</span><span class="pl-kos">;</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">orderStatus</span><span class="pl-kos">.</span><span class="pl-c1">badge</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toHaveText</span><span class="pl-kos">(</span><span class="pl-s">'Order Placed'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">'displays correct title for first item'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">orderStatus</span><span class="pl-kos">.</span><span class="pl-c1">title</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toHaveText</span><span class="pl-kos">(</span><span class="pl-s1">plushToy</span><span class="pl-kos">.</span><span class="pl-c1">title</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-en">fixme</span><span class="pl-kos">(</span><span class="pl-s">'displays correct image for first item '</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">orderStatus</span><span class="pl-kos">.</span><span class="pl-c1">image</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toHaveScreenshot</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-en">test</span><span class="pl-kos">(</span><span class="pl-s">'displays correct vendor name for first item '</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">orderStatus</span><span class="pl-kos">.</span><span class="pl-c1">vendor</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toContainText</span><span class="pl-kos">(</span><span class="pl-s1">plushToy</span><span class="pl-kos">.</span><span class="pl-c1">vendor</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">'displays Order Placed for the second item'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-c">// set order status card to equal backpack vendor</span> <span class="pl-s1">orderStatus</span><span class="pl-kos">.</span><span class="pl-c1">merchantName</span> <span class="pl-c1">=</span> <span class="pl-s1">adidasBackpack</span><span class="pl-kos">.</span><span class="pl-c1">vendor</span><span class="pl-kos">;</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">orderStatus</span><span class="pl-kos">.</span><span class="pl-c1">badge</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toHaveText</span><span class="pl-kos">(</span><span class="pl-s">'Order Placed'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">'displays correct title for second item'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">orderStatus</span><span class="pl-kos">.</span><span class="pl-c1">title</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toHaveText</span><span class="pl-kos">(</span><span class="pl-s1">adidasBackpack</span><span class="pl-kos">.</span><span class="pl-c1">title</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">'displays correct vendor name for second item '</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">orderStatus</span><span class="pl-kos">.</span><span class="pl-c1">vendor</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toContainText</span><span class="pl-kos">(</span><span class="pl-s1">adidasBackpack</span><span class="pl-kos">.</span><span class="pl-c1">vendor</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-en">fixme</span><span class="pl-kos">(</span><span class="pl-s">'displays correct image for second item '</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">orderStatus</span><span class="pl-kos">.</span><span class="pl-c1">image</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toHaveScreenshot</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">index.html</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;!DOCTYPE html&gt; &lt;html lang=&quot;en&quot;&gt; &lt;head&gt; &lt;meta charset=&quot;utf-8&quot; /&gt; &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge&quot; /&gt; &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot; /&gt; &lt;meta name=&quot;description&quot; content=&quot;Test File&quot; /&gt; &lt;title&gt;Publisher Page&lt;/title&gt; &lt;script&gt; // if thing defined don't overwrite it if (!window['thing']) { window['thing'] = { environment: 'sandbox', apiKey: 'default', onMessage: console.debug, displayName: 'PlayWright Tester', }; } // actual index test file imports a module using scripts src='url' defer // this module registers a custom component which calls our graphQL api &lt;/script&gt; &lt;style&gt; * { box-sizing: border-box; } body { margin: 0; padding: 2rem; } main { max-width: min(100%, 58rem); margin: 0 auto; } carted-product-card { contain: size layout paint; } &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;main&gt; &lt;article&gt; &lt;h2&gt;Hello world!&lt;/h2&gt; &lt;p&gt;This is me, life can be: fun for everyone&lt;/p&gt; &lt;custom-component src='url'&gt;&lt;/custom-component&gt; &lt;/article&gt; &lt;/main&gt; &lt;/body&gt; &lt;/html&gt;"><pre class="notranslate"><span class="pl-c1">&lt;!DOCTYPE html<span class="pl-kos">&gt;</span></span> <span class="pl-kos">&lt;</span><span class="pl-ent">html</span> <span class="pl-c1">lang</span>="<span class="pl-s">en</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">head</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">meta</span> <span class="pl-c1">charset</span>="<span class="pl-s">utf-8</span>" /&gt; <span class="pl-kos">&lt;</span><span class="pl-ent">meta</span> <span class="pl-c1">http-equiv</span>="<span class="pl-s">X-UA-Compatible</span>" <span class="pl-c1">content</span>="<span class="pl-s">IE=edge</span>" /&gt; <span class="pl-kos">&lt;</span><span class="pl-ent">meta</span> <span class="pl-c1">name</span>="<span class="pl-s">viewport</span>" <span class="pl-c1">content</span>="<span class="pl-s">width=device-width, initial-scale=1.0</span>" /&gt; <span class="pl-kos">&lt;</span><span class="pl-ent">meta</span> <span class="pl-c1">name</span>="<span class="pl-s">description</span>" <span class="pl-c1">content</span>="<span class="pl-s">Test File</span>" /&gt; <span class="pl-kos">&lt;</span><span class="pl-ent">title</span><span class="pl-kos">&gt;</span>Publisher Page<span class="pl-kos">&lt;/</span><span class="pl-ent">title</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span> <span class="pl-c">// if thing defined don't overwrite it</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-c1">!</span><span class="pl-smi">window</span><span class="pl-kos">[</span><span class="pl-s">'thing'</span><span class="pl-kos">]</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">window</span><span class="pl-kos">[</span><span class="pl-s">'thing'</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">environment</span>: <span class="pl-s">'sandbox'</span><span class="pl-kos">,</span> <span class="pl-c1">apiKey</span>: <span class="pl-s">'default'</span><span class="pl-kos">,</span> <span class="pl-c1">onMessage</span>: <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-c1">debug</span><span class="pl-kos">,</span> <span class="pl-c1">displayName</span>: <span class="pl-s">'PlayWright Tester'</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-c">// actual index test file imports a module using scripts src='url' defer</span> <span class="pl-c">// this module registers a custom component which calls our graphQL api </span> <span class="pl-kos">&lt;/</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> <span class="pl-ent"><span class="pl-c1">*</span></span> { <span class="pl-c1">box-sizing</span><span class="pl-kos">:</span> border-box; } <span class="pl-ent">body</span> { <span class="pl-c1">margin</span><span class="pl-kos">:</span> <span class="pl-c1">0</span>; <span class="pl-c1">padding</span><span class="pl-kos">:</span> <span class="pl-c1">2<span class="pl-smi">rem</span></span>; } <span class="pl-ent">main</span> { <span class="pl-c1">max-width</span><span class="pl-kos">:</span> <span class="pl-en">min</span>(<span class="pl-c1">100<span class="pl-smi">%</span></span><span class="pl-kos">,</span> <span class="pl-c1">58<span class="pl-smi">rem</span></span>); <span class="pl-c1">margin</span><span class="pl-kos">:</span> <span class="pl-c1">0</span> auto; } <span class="pl-ent">carted-product-card</span> { <span class="pl-c1">contain</span><span class="pl-kos">:</span> size layout paint; } <span class="pl-kos">&lt;/</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">head</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">body</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">main</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">article</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h2</span><span class="pl-kos">&gt;</span>Hello world!<span class="pl-kos">&lt;/</span><span class="pl-ent">h2</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span>This is me, life can be: fun for everyone<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">custom-component</span> <span class="pl-c1">src</span>='<span class="pl-s">url</span>'<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">custom-component</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">article</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">main</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">body</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">html</span><span class="pl-kos">&gt;</span></pre></div> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I provided exact source code that allows reproducing the issue locally.</li> </ul> <p dir="auto"><strong>Config file</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// playwright.config.ts import type { PlaywrightTestConfig } from '@playwright/test'; import dotenv from 'dotenv'; // read .env file values dotenv.config(); // this config sets the browserstack env var to false process.env.BROWSERSTACK = 'false'; const config: PlaywrightTestConfig = { name: 'Local Config', globalSetup: './playwright/global-setup.ts', // only thing this does is remove all files in the dist directory testDir: './playwright/integration', timeout: 100_000, reporter: [['html', { outputFolder: 'dist/playwright/reports' }]], outputDir: 'dist/playwright/test-results/', retries: 0, expect: { timeout: 10_000, toHaveScreenshot: { threshold: 0.2, maxDiffPixelRatio: 0.1, maxDiffPixels: 5, }, }, use: { actionTimeout: 0, screenshot: 'only-on-failure', trace: 'on', video: 'off', contextOptions: { recordVideo: { dir: 'dist/playwright/videos', }, }, }, projects: [ { name: 'chromium', use: { browserName: 'chromium', channel: 'chromium', }, }, ], }; export default config; });"><pre class="notranslate"><span class="pl-c">// playwright.config.ts</span> <span class="pl-k">import</span> <span class="pl-s1">type</span> <span class="pl-kos">{</span> <span class="pl-v">PlaywrightTestConfig</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@playwright/test'</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-s1">dotenv</span> <span class="pl-k">from</span> <span class="pl-s">'dotenv'</span><span class="pl-kos">;</span> <span class="pl-c">// read .env file values</span> <span class="pl-s1">dotenv</span><span class="pl-kos">.</span><span class="pl-en">config</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// this config sets the browserstack env var to false</span> <span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">env</span><span class="pl-kos">.</span><span class="pl-c1">BROWSERSTACK</span> <span class="pl-c1">=</span> <span class="pl-s">'false'</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">config</span>: <span class="pl-v">PlaywrightTestConfig</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">'Local Config'</span><span class="pl-kos">,</span> <span class="pl-c1">globalSetup</span>: <span class="pl-s">'./playwright/global-setup.ts'</span><span class="pl-kos">,</span> <span class="pl-c">// only thing this does is remove all files in the dist directory</span> <span class="pl-c1">testDir</span>: <span class="pl-s">'./playwright/integration'</span><span class="pl-kos">,</span> <span class="pl-c1">timeout</span>: <span class="pl-c1">100_000</span><span class="pl-kos">,</span> <span class="pl-c1">reporter</span>: <span class="pl-kos">[</span><span class="pl-kos">[</span><span class="pl-s">'html'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">outputFolder</span>: <span class="pl-s">'dist/playwright/reports'</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">outputDir</span>: <span class="pl-s">'dist/playwright/test-results/'</span><span class="pl-kos">,</span> <span class="pl-c1">retries</span>: <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-c1">expect</span>: <span class="pl-kos">{</span> <span class="pl-c1">timeout</span>: <span class="pl-c1">10_000</span><span class="pl-kos">,</span> <span class="pl-c1">toHaveScreenshot</span>: <span class="pl-kos">{</span> <span class="pl-c1">threshold</span>: <span class="pl-c1">0.2</span><span class="pl-kos">,</span> <span class="pl-c1">maxDiffPixelRatio</span>: <span class="pl-c1">0.1</span><span class="pl-kos">,</span> <span class="pl-c1">maxDiffPixels</span>: <span class="pl-c1">5</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">use</span>: <span class="pl-kos">{</span> <span class="pl-c1">actionTimeout</span>: <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-c1">screenshot</span>: <span class="pl-s">'only-on-failure'</span><span class="pl-kos">,</span> <span class="pl-c1">trace</span>: <span class="pl-s">'on'</span><span class="pl-kos">,</span> <span class="pl-c1">video</span>: <span class="pl-s">'off'</span><span class="pl-kos">,</span> <span class="pl-c1">contextOptions</span>: <span class="pl-kos">{</span> <span class="pl-c1">recordVideo</span>: <span class="pl-kos">{</span> <span class="pl-c1">dir</span>: <span class="pl-s">'dist/playwright/videos'</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-c1">projects</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">'chromium'</span><span class="pl-kos">,</span> <span class="pl-c1">use</span>: <span class="pl-kos">{</span> <span class="pl-c1">browserName</span>: <span class="pl-s">'chromium'</span><span class="pl-kos">,</span> <span class="pl-c1">channel</span>: <span class="pl-s">'chromium'</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-s1">config</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Steps</strong></p> <ol dir="auto"> <li>Run the test</li> <li>I rarely see this bug occur when running a single test, create a bunch of dummy test files and run them in parallel to boost the chances of seeing the bug</li> </ol> <p dir="auto"><strong>Expected</strong></p> <p dir="auto">No "page goto failed: page was closed error" is thrown</p> <p dir="auto"><strong>Actual</strong></p> <p dir="auto">Fails 33% of the time on my machine. I don't know for sure but after verifying the valid load state <a href="https://github.com/microsoft/playwright/blob/10ce7af411edf5c31a4e81fd0f96bfde47de8c24/packages/playwright-core/src/client/frame.ts#L457">here</a> it seems like eventually the private server <a href="https://github.com/microsoft/playwright/blob/10ce7af411edf5c31a4e81fd0f96bfde47de8c24/packages/playwright-core/src/server/frames.ts#L657">_goToAction</a> method will be called, which on line <a href="https://github.com/microsoft/playwright/blob/10ce7af411edf5c31a4e81fd0f96bfde47de8c24/packages/playwright-core/src/server/frames.ts#L693">693</a> awaits an extra <code class="notranslate">LifecycleEvent</code> event promise.</p> <p dir="auto">My suspicion is that the file protocol is behaving differently (due to how the browser treats local html files) - or that it is perhaps just faster than the typical http/https file that, under normal circumstances, is served up by a server which is therefore exposing some raciness.</p> <p dir="auto">Mileage may vary, I believe the above code reproduces the issue, I had to take a whole lot of IP and other work related stuff out that over complicates things, but wanted to leave stuff like <code class="notranslate">dotenv</code> to mirror our code as close as possible.</p> <p dir="auto">What I can confirm is that setting the wait until option to <code class="notranslate">commit</code> fixes the issue for us.</p>
0
<p dir="auto">On my dual-core 32-bit ubuntu test machine, the tests fail to start.</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="~/julia$ make test JULIA test/all"><pre class="notranslate"><span class="pl-k">~</span><span class="pl-k">/</span>julia<span class="pl-k">$</span> make test JULIA test<span class="pl-k">/</span>all</pre></div> <p dir="auto">Setting it to single core, the linalg1 test fails:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="~/julia$ make test JULIA test/all * linalg1 exception on 1: ERROR: assertion failed: |:(det(capd)) - :(det(apd))| &lt;= 0.002384185791015625 :(det(capd)) = 1.626428240984628e9 :(det(apd)) = 1.6264282410016303e9 difference = 0.017002344131469727 &gt; 0.002384185791015625 in error at error.jl:22 in test_approx_eq at test.jl:68 in anonymous at no file:54 in runtests at /home/jameson/julia/test/testdefs.jl:5 in anonymous at multi.jl:629 in run_work_thunk at multi.jl:590 in remotecall_fetch at multi.jl:663 in remotecall_fetch at multi.jl:678 in anonymous at task.jl:1320 while loading linalg1.jl, in expression starting on line 23 ERROR: assertion failed: |:(det(capd)) - :(det(apd))| &lt;= 0.002384185791015625 :(det(capd)) = 1.626428240984628e9 :(det(apd)) = 1.6264282410016303e9 difference = 0.017002344131469727 &gt; 0.002384185791015625 in error at error.jl:22 in test_approx_eq at test.jl:68 in anonymous at no file:54 in runtests at /home/jameson/julia/test/testdefs.jl:5 in anonymous at multi.jl:629 in run_work_thunk at multi.jl:590 in remotecall_fetch at multi.jl:663 in remotecall_fetch at multi.jl:678 in anonymous at task.jl:1320 while loading linalg1.jl, in expression starting on line 23 while loading /home/jameson/julia/test/runtests.jl, in expression starting on line 32"><pre class="notranslate"><span class="pl-k">~</span><span class="pl-k">/</span>julia<span class="pl-k">$</span> make test JULIA test<span class="pl-k">/</span>all <span class="pl-k">*</span> linalg1 exception on <span class="pl-c1">1</span><span class="pl-k">:</span> ERROR<span class="pl-k">:</span> assertion failed<span class="pl-k">:</span> <span class="pl-k">|</span>:(<span class="pl-c1">det</span>(capd)) <span class="pl-k">-</span> :(<span class="pl-c1">det</span>(apd))<span class="pl-k">|</span> <span class="pl-k">&lt;=</span> <span class="pl-c1">0.002384185791015625</span> :(<span class="pl-en">det</span>(capd)) <span class="pl-k">=</span> <span class="pl-c1">1.626428240984628e9</span> :(<span class="pl-en">det</span>(apd)) <span class="pl-k">=</span> <span class="pl-c1">1.6264282410016303e9</span> difference <span class="pl-k">=</span> <span class="pl-c1">0.017002344131469727</span> <span class="pl-k">&gt;</span> <span class="pl-c1">0.002384185791015625</span> <span class="pl-k">in</span> error at error<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">22</span> <span class="pl-k">in</span> test_approx_eq at test<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">68</span> <span class="pl-k">in</span> anonymous at no file<span class="pl-k">:</span><span class="pl-c1">54</span> <span class="pl-k">in</span> runtests at <span class="pl-k">/</span>home<span class="pl-k">/</span>jameson<span class="pl-k">/</span>julia<span class="pl-k">/</span>test<span class="pl-k">/</span>testdefs<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">5</span> <span class="pl-k">in</span> anonymous at multi<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">629</span> <span class="pl-k">in</span> run_work_thunk at multi<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">590</span> <span class="pl-k">in</span> remotecall_fetch at multi<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">663</span> <span class="pl-k">in</span> remotecall_fetch at multi<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">678</span> <span class="pl-k">in</span> anonymous at task<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">1320</span> <span class="pl-k">while</span> loading linalg1<span class="pl-k">.</span>jl, <span class="pl-k">in</span> expression starting on line <span class="pl-c1">23</span> ERROR<span class="pl-k">:</span> assertion failed<span class="pl-k">:</span> <span class="pl-k">|</span>:(<span class="pl-c1">det</span>(capd)) <span class="pl-k">-</span> :(<span class="pl-c1">det</span>(apd))<span class="pl-k">|</span> <span class="pl-k">&lt;=</span> <span class="pl-c1">0.002384185791015625</span> :(<span class="pl-en">det</span>(capd)) <span class="pl-k">=</span> <span class="pl-c1">1.626428240984628e9</span> :(<span class="pl-en">det</span>(apd)) <span class="pl-k">=</span> <span class="pl-c1">1.6264282410016303e9</span> difference <span class="pl-k">=</span> <span class="pl-c1">0.017002344131469727</span> <span class="pl-k">&gt;</span> <span class="pl-c1">0.002384185791015625</span> <span class="pl-k">in</span> error at error<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">22</span> <span class="pl-k">in</span> test_approx_eq at test<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">68</span> <span class="pl-k">in</span> anonymous at no file<span class="pl-k">:</span><span class="pl-c1">54</span> <span class="pl-k">in</span> runtests at <span class="pl-k">/</span>home<span class="pl-k">/</span>jameson<span class="pl-k">/</span>julia<span class="pl-k">/</span>test<span class="pl-k">/</span>testdefs<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">5</span> <span class="pl-k">in</span> anonymous at multi<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">629</span> <span class="pl-k">in</span> run_work_thunk at multi<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">590</span> <span class="pl-k">in</span> remotecall_fetch at multi<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">663</span> <span class="pl-k">in</span> remotecall_fetch at multi<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">678</span> <span class="pl-k">in</span> anonymous at task<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">1320</span> <span class="pl-k">while</span> loading linalg1<span class="pl-k">.</span>jl, <span class="pl-k">in</span> expression starting on line <span class="pl-c1">23</span> <span class="pl-k">while</span> loading <span class="pl-k">/</span>home<span class="pl-k">/</span>jameson<span class="pl-k">/</span>julia<span class="pl-k">/</span>test<span class="pl-k">/</span>runtests<span class="pl-k">.</span>jl, <span class="pl-k">in</span> expression starting on line <span class="pl-c1">32</span></pre></div> <p dir="auto">(p.s. is this linalg1 test supposed to take several hundred megabytes of RAM? I've only assigned my VM 1GB)</p>
<p dir="auto">This has been failing for at least a day:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" JULIA test/linalg * linalg exception on 1: ERROR: assertion failed: |b - :(*(apd,\(capd,b)))| &lt;= 1.4432899320127035e-12 b = 5 1 3 5 5 3 2 1 4 1 1 5 3 5 2 3 2 5 1 2 :(*(apd,\(capd,b))) = 4.999999999999602 1.0000000000022737 2.9999999999998863 4.999999999999545 4.999999999999943 3.0000000000004547 1.9999999999999432 1.0000000000015916 4.000000000000114 1.0000000000020464 1.0000000000002274 4.999999999998636 3 5.000000000001592 2.0000000000000853 3.0000000000002274 2.0000000000001137 4.999999999999318 1.0000000000000568 2.000000000001819 difference = 2.2737367544323206e-12 &gt; 1.4432899320127035e-12 in error at error.jl:22 in test_approx_eq at test.jl:68 in anonymous at no file:39 in runtests at /Users/stefan/projects/julia.alt/test/testdefs.jl:5 in anonymous at multi.jl:613 in run_work_thunk at multi.jl:575 in remotecall_fetch at multi.jl:647 in remotecall_fetch at multi.jl:662 in anonymous at multi.jl:1382 while loading linalg.jl, in expression starting on line 23 ERROR: assertion failed: |b - :(*(apd,\(capd,b)))| &lt;= 1.4432899320127035e-12 b = 5 1 3 5 5 3 2 1 4 1 1 5 3 5 2 3 2 5 1 2 :(*(apd,\(capd,b))) = 4.999999999999602 1.0000000000022737 2.9999999999998863 4.999999999999545 4.999999999999943 3.0000000000004547 1.9999999999999432 1.0000000000015916 4.000000000000114 1.0000000000020464 1.0000000000002274 4.999999999998636 3 5.000000000001592 2.0000000000000853 3.0000000000002274 2.0000000000001137 4.999999999999318 1.0000000000000568 2.000000000001819 difference = 2.2737367544323206e-12 &gt; 1.4432899320127035e-12 in error at error.jl:22 in test_approx_eq at test.jl:68 in anonymous at no file:39 in runtests at /Users/stefan/projects/julia.alt/test/testdefs.jl:5 in anonymous at multi.jl:613 in run_work_thunk at multi.jl:575 in remotecall_fetch at multi.jl:647 in remotecall_fetch at multi.jl:662 in anonymous at multi.jl:1382 while loading linalg.jl, in expression starting on line 23 while loading /Users/stefan/projects/julia.alt/test/runtests.jl, in expression starting on line 23 make[1]: *** [linalg] Error 1 make: *** [test-linalg] Error 2"><pre class="notranslate"> JULIA test<span class="pl-k">/</span>linalg <span class="pl-k">*</span> linalg exception on <span class="pl-c1">1</span><span class="pl-k">:</span> ERROR<span class="pl-k">:</span> assertion failed<span class="pl-k">:</span> <span class="pl-k">|</span>b <span class="pl-k">-</span> :(<span class="pl-k">*</span>(apd,<span class="pl-k">\</span>(capd,b)))<span class="pl-k">|</span> <span class="pl-k">&lt;=</span> <span class="pl-c1">1.4432899320127035e-12</span> b <span class="pl-k">=</span> <span class="pl-c1">5</span> <span class="pl-c1">1</span> <span class="pl-c1">3</span> <span class="pl-c1">5</span> <span class="pl-c1">5</span> <span class="pl-c1">3</span> <span class="pl-c1">2</span> <span class="pl-c1">1</span> <span class="pl-c1">4</span> <span class="pl-c1">1</span> <span class="pl-c1">1</span> <span class="pl-c1">5</span> <span class="pl-c1">3</span> <span class="pl-c1">5</span> <span class="pl-c1">2</span> <span class="pl-c1">3</span> <span class="pl-c1">2</span> <span class="pl-c1">5</span> <span class="pl-c1">1</span> <span class="pl-c1">2</span> :(<span class="pl-k">*</span>(apd,<span class="pl-k">\</span>(capd,b))) <span class="pl-k">=</span> <span class="pl-c1">4.999999999999602</span> <span class="pl-c1">1.0000000000022737</span> <span class="pl-c1">2.9999999999998863</span> <span class="pl-c1">4.999999999999545</span> <span class="pl-c1">4.999999999999943</span> <span class="pl-c1">3.0000000000004547</span> <span class="pl-c1">1.9999999999999432</span> <span class="pl-c1">1.0000000000015916</span> <span class="pl-c1">4.000000000000114</span> <span class="pl-c1">1.0000000000020464</span> <span class="pl-c1">1.0000000000002274</span> <span class="pl-c1">4.999999999998636</span> <span class="pl-c1">3</span> <span class="pl-c1">5.000000000001592</span> <span class="pl-c1">2.0000000000000853</span> <span class="pl-c1">3.0000000000002274</span> <span class="pl-c1">2.0000000000001137</span> <span class="pl-c1">4.999999999999318</span> <span class="pl-c1">1.0000000000000568</span> <span class="pl-c1">2.000000000001819</span> difference <span class="pl-k">=</span> <span class="pl-c1">2.2737367544323206e-12</span> <span class="pl-k">&gt;</span> <span class="pl-c1">1.4432899320127035e-12</span> <span class="pl-k">in</span> error at error<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">22</span> <span class="pl-k">in</span> test_approx_eq at test<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">68</span> <span class="pl-k">in</span> anonymous at no file<span class="pl-k">:</span><span class="pl-c1">39</span> <span class="pl-k">in</span> runtests at <span class="pl-k">/</span>Users<span class="pl-k">/</span>stefan<span class="pl-k">/</span>projects<span class="pl-k">/</span>julia<span class="pl-k">.</span>alt<span class="pl-k">/</span>test<span class="pl-k">/</span>testdefs<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">5</span> <span class="pl-k">in</span> anonymous at multi<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">613</span> <span class="pl-k">in</span> run_work_thunk at multi<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">575</span> <span class="pl-k">in</span> remotecall_fetch at multi<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">647</span> <span class="pl-k">in</span> remotecall_fetch at multi<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">662</span> <span class="pl-k">in</span> anonymous at multi<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">1382</span> <span class="pl-k">while</span> loading linalg<span class="pl-k">.</span>jl, <span class="pl-k">in</span> expression starting on line <span class="pl-c1">23</span> ERROR<span class="pl-k">:</span> assertion failed<span class="pl-k">:</span> <span class="pl-k">|</span>b <span class="pl-k">-</span> :(<span class="pl-k">*</span>(apd,<span class="pl-k">\</span>(capd,b)))<span class="pl-k">|</span> <span class="pl-k">&lt;=</span> <span class="pl-c1">1.4432899320127035e-12</span> b <span class="pl-k">=</span> <span class="pl-c1">5</span> <span class="pl-c1">1</span> <span class="pl-c1">3</span> <span class="pl-c1">5</span> <span class="pl-c1">5</span> <span class="pl-c1">3</span> <span class="pl-c1">2</span> <span class="pl-c1">1</span> <span class="pl-c1">4</span> <span class="pl-c1">1</span> <span class="pl-c1">1</span> <span class="pl-c1">5</span> <span class="pl-c1">3</span> <span class="pl-c1">5</span> <span class="pl-c1">2</span> <span class="pl-c1">3</span> <span class="pl-c1">2</span> <span class="pl-c1">5</span> <span class="pl-c1">1</span> <span class="pl-c1">2</span> :(<span class="pl-k">*</span>(apd,<span class="pl-k">\</span>(capd,b))) <span class="pl-k">=</span> <span class="pl-c1">4.999999999999602</span> <span class="pl-c1">1.0000000000022737</span> <span class="pl-c1">2.9999999999998863</span> <span class="pl-c1">4.999999999999545</span> <span class="pl-c1">4.999999999999943</span> <span class="pl-c1">3.0000000000004547</span> <span class="pl-c1">1.9999999999999432</span> <span class="pl-c1">1.0000000000015916</span> <span class="pl-c1">4.000000000000114</span> <span class="pl-c1">1.0000000000020464</span> <span class="pl-c1">1.0000000000002274</span> <span class="pl-c1">4.999999999998636</span> <span class="pl-c1">3</span> <span class="pl-c1">5.000000000001592</span> <span class="pl-c1">2.0000000000000853</span> <span class="pl-c1">3.0000000000002274</span> <span class="pl-c1">2.0000000000001137</span> <span class="pl-c1">4.999999999999318</span> <span class="pl-c1">1.0000000000000568</span> <span class="pl-c1">2.000000000001819</span> difference <span class="pl-k">=</span> <span class="pl-c1">2.2737367544323206e-12</span> <span class="pl-k">&gt;</span> <span class="pl-c1">1.4432899320127035e-12</span> <span class="pl-k">in</span> error at error<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">22</span> <span class="pl-k">in</span> test_approx_eq at test<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">68</span> <span class="pl-k">in</span> anonymous at no file<span class="pl-k">:</span><span class="pl-c1">39</span> <span class="pl-k">in</span> runtests at <span class="pl-k">/</span>Users<span class="pl-k">/</span>stefan<span class="pl-k">/</span>projects<span class="pl-k">/</span>julia<span class="pl-k">.</span>alt<span class="pl-k">/</span>test<span class="pl-k">/</span>testdefs<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">5</span> <span class="pl-k">in</span> anonymous at multi<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">613</span> <span class="pl-k">in</span> run_work_thunk at multi<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">575</span> <span class="pl-k">in</span> remotecall_fetch at multi<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">647</span> <span class="pl-k">in</span> remotecall_fetch at multi<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">662</span> <span class="pl-k">in</span> anonymous at multi<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">1382</span> <span class="pl-k">while</span> loading linalg<span class="pl-k">.</span>jl, <span class="pl-k">in</span> expression starting on line <span class="pl-c1">23</span> <span class="pl-k">while</span> loading <span class="pl-k">/</span>Users<span class="pl-k">/</span>stefan<span class="pl-k">/</span>projects<span class="pl-k">/</span>julia<span class="pl-k">.</span>alt<span class="pl-k">/</span>test<span class="pl-k">/</span>runtests<span class="pl-k">.</span>jl, <span class="pl-k">in</span> expression starting on line <span class="pl-c1">23</span> make[<span class="pl-c1">1</span>]<span class="pl-k">:</span> <span class="pl-k">***</span> [linalg] Error <span class="pl-c1">1</span> make<span class="pl-k">:</span> <span class="pl-k">***</span> [test<span class="pl-k">-</span>linalg] Error <span class="pl-c1">2</span></pre></div> <p dir="auto">cc: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jiahao/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jiahao">@jiahao</a>, @andreasnoackjensen โ€“ย did you guys monkey around with these tests some time on Friday or yesterday?</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Julia Version 0.3.0-prerelease+1362 Commit d0aa799* (2014-02-02 17:49 UTC) Platform Info: System: Darwin (x86_64-apple-darwin13.0.0) CPU: Intel(R) Core(TM) i7-3740QM CPU @ 2.70GHz WORD_SIZE: 64 BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY) LAPACK: libopenblas LIBM: libopenlibm"><pre class="notranslate"><code class="notranslate">Julia Version 0.3.0-prerelease+1362 Commit d0aa799* (2014-02-02 17:49 UTC) Platform Info: System: Darwin (x86_64-apple-darwin13.0.0) CPU: Intel(R) Core(TM) i7-3740QM CPU @ 2.70GHz WORD_SIZE: 64 BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY) LAPACK: libopenblas LIBM: libopenlibm </code></pre></div>
1
<p dir="auto">I'm having an issue that foces me to rewrite the type of a function parameter to 'any' instead of 'typeof SomeSuperClass' because a subclass that extends that superclass, but has <em>another constructor signature</em> cannot be passed into that function anymore. Is this expected behavior? My intuition says no. I've read that it has to do with some Javascript function type check conflict because of the use of 'typeof', but currently I don't see another clean way to pass a class type as an argument in a function. without resolving to strings. And the use of 'typeof' seems to break when a subclass has another constructor signature.</p> <p dir="auto">See code, where function foo(..) accepts the subclass with equal constructor signature, but rejects the other subclass which has another constructor signature:</p> <p dir="auto"><strong>TypeScript Version:</strong></p> <p dir="auto">1.7.5</p> <p dir="auto"><strong>Code</strong></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Super { private a: number; constructor(a : number) { this.a = a; } } class SubSameConstructor extends Super { private b: number; constructor(a : number) { super(a); this.b = a; } } class SubDifferentConstructor extends Super { private b: number; constructor(a : number, b: number) { super(a); this.b = b; } } function foo(classParam: typeof Super) { console.log(classParam); } foo(SubSameConstructor); // works foo(SubDifferentConstructor); // TS2345: Argument of type 'typeof SubDifferentConstructor' is not assignable to parameter of type 'typeof Base'."><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">Super</span> <span class="pl-kos">{</span> <span class="pl-k">private</span> <span class="pl-c1">a</span>: <span class="pl-smi">number</span><span class="pl-kos">;</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-s1">a</span> : <span class="pl-smi">number</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">a</span> <span class="pl-c1">=</span> <span class="pl-s1">a</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">class</span> <span class="pl-smi">SubSameConstructor</span> <span class="pl-k">extends</span> <span class="pl-smi">Super</span> <span class="pl-kos">{</span> <span class="pl-k">private</span> <span class="pl-c1">b</span>: <span class="pl-smi">number</span><span class="pl-kos">;</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-s1">a</span> : <span class="pl-smi">number</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">super</span><span class="pl-kos">(</span><span class="pl-s1">a</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">b</span> <span class="pl-c1">=</span> <span class="pl-s1">a</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">class</span> <span class="pl-smi">SubDifferentConstructor</span> <span class="pl-k">extends</span> <span class="pl-smi">Super</span> <span class="pl-kos">{</span> <span class="pl-k">private</span> <span class="pl-c1">b</span>: <span class="pl-smi">number</span><span class="pl-kos">;</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-s1">a</span> : <span class="pl-smi">number</span><span class="pl-kos">,</span> <span class="pl-s1">b</span>: <span class="pl-smi">number</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">super</span><span class="pl-kos">(</span><span class="pl-s1">a</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">b</span> <span class="pl-c1">=</span> <span class="pl-s1">b</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">function</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-s1">classParam</span>: <span class="pl-k">typeof</span> <span class="pl-smi">Super</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">classParam</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-smi">SubSameConstructor</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// works</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-smi">SubDifferentConstructor</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// TS2345: Argument of type 'typeof SubDifferentConstructor' is not assignable to parameter of type 'typeof Base'.</span></pre></div> <p dir="auto"><strong>Expected behavior:</strong><br> Being able to pass a subclass with different constructor signature into a function that accepts an argument of type 'typeof Super' to pass class types.</p> <p dir="auto"><strong>Actual behavior:</strong><br> The last function call does not compile.</p>
<p dir="auto">Currently we create <code class="notranslate">DocumentRegistry</code> <a href="https://github.com/Microsoft/TypeScript/blob/master/src/server/editorServices.ts#L1358">once per project</a> which means that we don't share anything between multiple open projects (because of that we can end up with multiple copies of i.e. <code class="notranslate">lib.d.ts</code>). We should consider using one instance of <code class="notranslate">DocumentRegistry</code> that will be utilized for all projects to remove this duplication.</p>
0
<p dir="auto">Electron 0.36.0<br> OS X 10.10.3<br> BrowserWindow with <code class="notranslate">'title-bar-style'</code> set to <code class="notranslate">'hidden-inset'</code>.</p> <p dir="auto"><strong>Problem:</strong><br> There is always a draggable area at the top, even if I don't place any elements there. It has a standard size for this type of windows in OS X (see <em>System Preferences</em>). And I can't disable it for my buttons or other elements by using <code class="notranslate">-webkit-app-region: no-drag;</code>.</p> <p dir="auto">I'm not sure but I think there wasn't such an issue in 0.35.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/135717/11769011/74f76366-a1e6-11e5-8126-1dcec3d2bd2e.gif"><img src="https://cloud.githubusercontent.com/assets/135717/11769011/74f76366-a1e6-11e5-8126-1dcec3d2bd2e.gif" alt="adv0gldx9e" data-animated-image="" style="max-width: 100%;"></a></p>
<p dir="auto">If this option is set, you can't drag/drop elements that are located in the top of the window (in the region where window's toolbar is placed). Even with <code class="notranslate">-webkit-app-region: drag</code>, dragging is not performed correctly.</p> <p dir="auto">The element which being dragged is native <code class="notranslate">input[type="range"]</code><br> Here is the preview:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2175645/10311824/0f1bebae-6c51-11e5-9194-07cecebfbab3.gif"><img src="https://cloud.githubusercontent.com/assets/2175645/10311824/0f1bebae-6c51-11e5-9194-07cecebfbab3.gif" alt="Preview" data-animated-image="" style="max-width: 100%;"></a></p>
1
<p dir="auto">Version: 1.0.0<br> OS Version: Microsoft Windows NT 10.0.18363.0<br> IntPtr Length: 8<br> x64: True<br> Date: 09/10/2020 20:24:34<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/5201588/2020-09-10.txt">2020-09-10.txt</a></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
<h3 dir="auto">Current Behavior:</h3> <h3 dir="auto">Expected Behavior:</h3> <h3 dir="auto">Steps To Reproduce:</h3> <h3 dir="auto">Environment:</h3>
<h3 dir="auto">*Updated* as of 01/15/2021</h3> <p dir="auto"><strong>Note: Please read <a href="https://github.com/npm/cli/wiki/%22cb()-never-called%3F-Exit-handler-never-called%3F-I'm-having-the-same-problem!%22">this doc</a> before filing a new issue.</strong></p>
1
<h2 dir="auto">What I Try to do</h2> <p dir="auto">I use the AutomaticKeepAliveClientMixin in my widget , because I want to build a TabView with 4 pages and they can save self's state after scroll Automaticlly.<br> And I follow the issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="313102672" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/16445" data-hovercard-type="pull_request" data-hovercard-url="/flutter/flutter/pull/16445/hovercard" href="https://github.com/flutter/flutter/pull/16445">#16445</a> , then switch my flutter channel to master , and yes , AutomaticKeepAlive works now , but I got a crush when I try to switch page 4 from page 1 directly after app launched.</p> <h2 dir="auto">Steps to Reproduce</h2> <p dir="auto">Here is my demo code :<br> <a href="https://gist.github.com/debuggerx01/69668ff96926d4fddf7a51167045be5b">https://gist.github.com/debuggerx01/69668ff96926d4fddf7a51167045be5b</a></p> <p dir="auto">And I record a gif to show this problem:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/19624835/38659535-8dc3d2ca-3e5c-11e8-8598-6b4a2517dbd4.gif"><img src="https://user-images.githubusercontent.com/19624835/38659535-8dc3d2ca-3e5c-11e8-8598-6b4a2517dbd4.gif" alt="tabbatview_issue" data-animated-image="" style="max-width: 100%;"></a></p> <h2 dir="auto">Logs</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="I/flutter ( 6641): โ•โ•โ•ก EXCEPTION CAUGHT BY WIDGETS LIBRARY โ•žโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• I/flutter ( 6641): The following assertion was thrown building NotificationListener&lt;KeepAliveNotification&gt;: I/flutter ( 6641): 'package:flutter/src/rendering/object.dart': Failed assertion: line 2732 pos 14: I/flutter ( 6641): '_debugUltimatePreviousSiblingOf(after, equals: _firstChild)': is not true. I/flutter ( 6641): I/flutter ( 6641): Either the assertion indicates an error in the framework itself, or we should provide substantially I/flutter ( 6641): more information in this error message to help you determine and fix the underlying cause. I/flutter ( 6641): In either case, please report this assertion by filing a bug on GitHub: I/flutter ( 6641): https://github.com/flutter/flutter/issues/new I/flutter ( 6641): I/flutter ( 6641): When the exception was thrown, this was the stack: I/flutter ( 6641): #2 _RenderSliverMultiBoxAdaptor&amp;RenderSliver&amp;ContainerRenderObjectMixin._insertIntoChildList (package:flutter/src/rendering/object.dart) I/flutter ( 6641): #3 _RenderSliverMultiBoxAdaptor&amp;RenderSliver&amp;ContainerRenderObjectMixin.insert (package:flutter/src/rendering/object.dart:2766:5) I/flutter ( 6641): #4 RenderSliverMultiBoxAdaptor.insert (package:flutter/src/rendering/sliver_multi_box_adaptor.dart:209:11) I/flutter ( 6641): #5 SliverMultiBoxAdaptorElement.insertChildRenderObject (package:flutter/src/widgets/sliver.dart:849:18) I/flutter ( 6641): #6 RenderObjectElement.attachRenderObject (package:flutter/src/widgets/framework.dart:4496:35) I/flutter ( 6641): #7 RenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4262:5) I/flutter ( 6641): #8 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4636:11) I/flutter ( 6641): #9 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14) I/flutter ( 6641): #10 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12) I/flutter ( 6641): #11 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 6641): #12 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 6641): #13 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3605:5) I/flutter ( 6641): #14 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3600:5) I/flutter ( 6641): #15 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14) I/flutter ( 6641): #16 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12) I/flutter ( 6641): #17 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 6641): #18 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 6641): #19 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3605:5) I/flutter ( 6641): #20 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3600:5) I/flutter ( 6641): #21 ParentDataElement.mount (package:flutter/src/widgets/framework.dart:3938:11) I/flutter ( 6641): #22 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14) I/flutter ( 6641): #23 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12) I/flutter ( 6641): #24 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 6641): #25 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 6641): #26 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3605:5) I/flutter ( 6641): #27 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3752:11) I/flutter ( 6641): #28 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3600:5) I/flutter ( 6641): #29 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14) I/flutter ( 6641): #30 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12) I/flutter ( 6641): #31 SliverMultiBoxAdaptorElement.performRebuild (package:flutter/src/widgets/sliver.dart:702:34) I/flutter ( 6641): #32 SliverMultiBoxAdaptorElement.update (package:flutter/src/widgets/sliver.dart:671:7) I/flutter ( 6641): #33 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 6641): #34 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:4362:32) I/flutter ( 6641): #35 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4752:17) I/flutter ( 6641): #36 _ViewportElement.update (package:flutter/src/widgets/viewport.dart:187:11) I/flutter ( 6641): #37 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 6641): #38 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 6641): #39 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 6641): #40 ProxyElement.update (package:flutter/src/widgets/framework.dart:3892:5) I/flutter ( 6641): #41 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 6641): #42 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4644:14) I/flutter ( 6641): #43 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 6641): #44 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4644:14) I/flutter ( 6641): #45 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 6641): #46 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4644:14) I/flutter ( 6641): #47 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 6641): #48 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4644:14) I/flutter ( 6641): #49 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 6641): #50 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 6641): #51 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 6641): #52 StatefulElement.update (package:flutter/src/widgets/framework.dart:3782:5) I/flutter ( 6641): #53 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 6641): #54 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4644:14) I/flutter ( 6641): #55 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 6641): #56 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4644:14) I/flutter ( 6641): #57 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 6641): #58 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4644:14) I/flutter ( 6641): #59 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 6641): #60 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4644:14) I/flutter ( 6641): #61 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 6641): #62 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 6641): #63 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 6641): #64 StatelessElement.update (package:flutter/src/widgets/framework.dart:3685:5) I/flutter ( 6641): #65 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 6641): #66 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 6641): #67 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 6641): #68 StatefulElement.update (package:flutter/src/widgets/framework.dart:3782:5) I/flutter ( 6641): #69 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 6641): #70 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 6641): #71 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 6641): #72 StatefulElement.update (package:flutter/src/widgets/framework.dart:3782:5) I/flutter ( 6641): #73 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 6641): #74 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 6641): #75 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 6641): #76 StatelessElement.update (package:flutter/src/widgets/framework.dart:3685:5) I/flutter ( 6641): #77 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 6641): #78 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 6641): #79 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 6641): #80 StatefulElement.update (package:flutter/src/widgets/framework.dart:3782:5) I/flutter ( 6641): #81 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 6641): #82 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 6641): #83 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 6641): #84 StatelessElement.update (package:flutter/src/widgets/framework.dart:3685:5) I/flutter ( 6641): #85 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 6641): #86 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 6641): #87 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 6641): #88 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2225:33) I/flutter ( 6641): #89 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding&amp;PaintingBinding&amp;RendererBinding&amp;WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:621:20) I/flutter ( 6641): #90 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding&amp;PaintingBinding&amp;RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:208:5) I/flutter ( 6641): #91 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15) I/flutter ( 6641): #92 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9) I/flutter ( 6641): #93 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:842:5) I/flutter ( 6641): #94 _invoke (dart:ui/hooks.dart:120:13) I/flutter ( 6641): #95 _drawFrame (dart:ui/hooks.dart:109:3) I/flutter ( 6641): (elided 2 frames from class _AssertionError) I/flutter ( 6641): โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• I/flutter ( 6641): Another exception was thrown: 'package:flutter/src/rendering/object.dart': Failed assertion: line 2732 pos 14: '_debugUltimatePreviousSiblingOf(after, equals: _firstChild)': is not true. I/flutter ( 6641): Another exception was thrown: 'package:flutter/src/rendering/object.dart': Failed assertion: line 2732 pos 14: '_debugUltimatePreviousSiblingOf(after, equals: _firstChild)': is not true. I/flutter ( 6641): Another exception was thrown: 'package:flutter/src/rendering/object.dart': Failed assertion: line 2732 pos 14: '_debugUltimatePreviousSiblingOf(after, equals: _firstChild)': is not true. I/flutter ( 6641): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3480 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. I/flutter ( 6641): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3480 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. I/flutter ( 6641): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3480 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. I/flutter ( 6641): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3480 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. I/flutter ( 6641): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3480 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. I/flutter ( 6641): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3480 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. I/flutter ( 6641): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3480 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. I/flutter ( 6641): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3480 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. I/flutter ( 6641): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3480 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. I/flutter ( 6641): Another exception was thrown: The _ScaffoldLayout custom multichild layout delegate forgot to lay out the following children:` ## Flutter Doctor `flutter doctor -v [โœ“] Flutter (Channel master, v0.2.12-pre.15, on Linux, locale zh_CN.UTF-8) โ€ข Flutter version 0.2.12-pre.15 at /home/debuggerx/flutter โ€ข Framework revision da9e1a4aca (3 ๅฐๆ—ถๅ‰), 2018-04-11 20:50:25 -0700 โ€ข Engine revision 4db7a00677 โ€ข Dart version 2.0.0-dev.47.0.flutter-4126459025 [โœ“] Android toolchain - develop for Android devices (Android SDK 27.0.3) โ€ข Android SDK at /opt/android-sdk โ€ข Android NDK at /opt/android-sdk/ndk-bundle โ€ข Platform android-27, build-tools 27.0.3 โ€ข ANDROID_HOME = /opt/android-sdk โ€ข Java binary at: /opt/android-studio/jre/bin/java โ€ข Java version openjdk version &quot;1.8.0_152-release&quot; โ€ข All Android licenses accepted. [โœ“] Android Studio (version 3.1) โ€ข Android Studio at /opt/android-studio โ€ข Flutter plugin version 23.2.2 โ€ข Dart plugin version 173.4700 โ€ข Java version openjdk version &quot;1.8.0_152-release&quot; [!] IntelliJ IDEA Ultimate Edition (version 2016.2) โ€ข IntelliJ at /home/debuggerx/idea โœ— Flutter plugin not installed; this adds Flutter specific functionality. โœ— Dart plugin not installed; this adds Dart specific functionality. โ€ข For information about installing plugins, see https://flutter.io/intellij-setup/#installing-the-plugins โœ— This install is older than the minimum recommended version of 2017.1.0. [!] IntelliJ IDEA Ultimate Edition (version 2017.2) โ€ข IntelliJ at /opt/idea โœ— Flutter plugin not installed; this adds Flutter specific functionality. โ€ข Dart plugin version 172.4343.25 โ€ข For information about installing plugins, see https://flutter.io/intellij-setup/#installing-the-plugins [โœ“] Connected devices (1 available) โ€ข Custom Phone, 7 1 0, API 25, 768x1280 โ€ข 192.168.56.101:5555 โ€ข android-x86 โ€ข Android 7.1.1 (API 25)"><pre class="notranslate"><code class="notranslate">I/flutter ( 6641): โ•โ•โ•ก EXCEPTION CAUGHT BY WIDGETS LIBRARY โ•žโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• I/flutter ( 6641): The following assertion was thrown building NotificationListener&lt;KeepAliveNotification&gt;: I/flutter ( 6641): 'package:flutter/src/rendering/object.dart': Failed assertion: line 2732 pos 14: I/flutter ( 6641): '_debugUltimatePreviousSiblingOf(after, equals: _firstChild)': is not true. I/flutter ( 6641): I/flutter ( 6641): Either the assertion indicates an error in the framework itself, or we should provide substantially I/flutter ( 6641): more information in this error message to help you determine and fix the underlying cause. I/flutter ( 6641): In either case, please report this assertion by filing a bug on GitHub: I/flutter ( 6641): https://github.com/flutter/flutter/issues/new I/flutter ( 6641): I/flutter ( 6641): When the exception was thrown, this was the stack: I/flutter ( 6641): #2 _RenderSliverMultiBoxAdaptor&amp;RenderSliver&amp;ContainerRenderObjectMixin._insertIntoChildList (package:flutter/src/rendering/object.dart) I/flutter ( 6641): #3 _RenderSliverMultiBoxAdaptor&amp;RenderSliver&amp;ContainerRenderObjectMixin.insert (package:flutter/src/rendering/object.dart:2766:5) I/flutter ( 6641): #4 RenderSliverMultiBoxAdaptor.insert (package:flutter/src/rendering/sliver_multi_box_adaptor.dart:209:11) I/flutter ( 6641): #5 SliverMultiBoxAdaptorElement.insertChildRenderObject (package:flutter/src/widgets/sliver.dart:849:18) I/flutter ( 6641): #6 RenderObjectElement.attachRenderObject (package:flutter/src/widgets/framework.dart:4496:35) I/flutter ( 6641): #7 RenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4262:5) I/flutter ( 6641): #8 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4636:11) I/flutter ( 6641): #9 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14) I/flutter ( 6641): #10 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12) I/flutter ( 6641): #11 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 6641): #12 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 6641): #13 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3605:5) I/flutter ( 6641): #14 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3600:5) I/flutter ( 6641): #15 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14) I/flutter ( 6641): #16 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12) I/flutter ( 6641): #17 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 6641): #18 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 6641): #19 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3605:5) I/flutter ( 6641): #20 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3600:5) I/flutter ( 6641): #21 ParentDataElement.mount (package:flutter/src/widgets/framework.dart:3938:11) I/flutter ( 6641): #22 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14) I/flutter ( 6641): #23 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12) I/flutter ( 6641): #24 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 6641): #25 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 6641): #26 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3605:5) I/flutter ( 6641): #27 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3752:11) I/flutter ( 6641): #28 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3600:5) I/flutter ( 6641): #29 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14) I/flutter ( 6641): #30 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12) I/flutter ( 6641): #31 SliverMultiBoxAdaptorElement.performRebuild (package:flutter/src/widgets/sliver.dart:702:34) I/flutter ( 6641): #32 SliverMultiBoxAdaptorElement.update (package:flutter/src/widgets/sliver.dart:671:7) I/flutter ( 6641): #33 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 6641): #34 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:4362:32) I/flutter ( 6641): #35 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4752:17) I/flutter ( 6641): #36 _ViewportElement.update (package:flutter/src/widgets/viewport.dart:187:11) I/flutter ( 6641): #37 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 6641): #38 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 6641): #39 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 6641): #40 ProxyElement.update (package:flutter/src/widgets/framework.dart:3892:5) I/flutter ( 6641): #41 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 6641): #42 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4644:14) I/flutter ( 6641): #43 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 6641): #44 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4644:14) I/flutter ( 6641): #45 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 6641): #46 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4644:14) I/flutter ( 6641): #47 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 6641): #48 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4644:14) I/flutter ( 6641): #49 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 6641): #50 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 6641): #51 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 6641): #52 StatefulElement.update (package:flutter/src/widgets/framework.dart:3782:5) I/flutter ( 6641): #53 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 6641): #54 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4644:14) I/flutter ( 6641): #55 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 6641): #56 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4644:14) I/flutter ( 6641): #57 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 6641): #58 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4644:14) I/flutter ( 6641): #59 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 6641): #60 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4644:14) I/flutter ( 6641): #61 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 6641): #62 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 6641): #63 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 6641): #64 StatelessElement.update (package:flutter/src/widgets/framework.dart:3685:5) I/flutter ( 6641): #65 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 6641): #66 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 6641): #67 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 6641): #68 StatefulElement.update (package:flutter/src/widgets/framework.dart:3782:5) I/flutter ( 6641): #69 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 6641): #70 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 6641): #71 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 6641): #72 StatefulElement.update (package:flutter/src/widgets/framework.dart:3782:5) I/flutter ( 6641): #73 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 6641): #74 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 6641): #75 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 6641): #76 StatelessElement.update (package:flutter/src/widgets/framework.dart:3685:5) I/flutter ( 6641): #77 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 6641): #78 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 6641): #79 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 6641): #80 StatefulElement.update (package:flutter/src/widgets/framework.dart:3782:5) I/flutter ( 6641): #81 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 6641): #82 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 6641): #83 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 6641): #84 StatelessElement.update (package:flutter/src/widgets/framework.dart:3685:5) I/flutter ( 6641): #85 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15) I/flutter ( 6641): #86 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16) I/flutter ( 6641): #87 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5) I/flutter ( 6641): #88 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2225:33) I/flutter ( 6641): #89 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding&amp;PaintingBinding&amp;RendererBinding&amp;WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:621:20) I/flutter ( 6641): #90 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding&amp;PaintingBinding&amp;RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:208:5) I/flutter ( 6641): #91 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15) I/flutter ( 6641): #92 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9) I/flutter ( 6641): #93 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:842:5) I/flutter ( 6641): #94 _invoke (dart:ui/hooks.dart:120:13) I/flutter ( 6641): #95 _drawFrame (dart:ui/hooks.dart:109:3) I/flutter ( 6641): (elided 2 frames from class _AssertionError) I/flutter ( 6641): โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• I/flutter ( 6641): Another exception was thrown: 'package:flutter/src/rendering/object.dart': Failed assertion: line 2732 pos 14: '_debugUltimatePreviousSiblingOf(after, equals: _firstChild)': is not true. I/flutter ( 6641): Another exception was thrown: 'package:flutter/src/rendering/object.dart': Failed assertion: line 2732 pos 14: '_debugUltimatePreviousSiblingOf(after, equals: _firstChild)': is not true. I/flutter ( 6641): Another exception was thrown: 'package:flutter/src/rendering/object.dart': Failed assertion: line 2732 pos 14: '_debugUltimatePreviousSiblingOf(after, equals: _firstChild)': is not true. I/flutter ( 6641): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3480 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. I/flutter ( 6641): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3480 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. I/flutter ( 6641): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3480 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. I/flutter ( 6641): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3480 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. I/flutter ( 6641): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3480 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. I/flutter ( 6641): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3480 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. I/flutter ( 6641): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3480 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. I/flutter ( 6641): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3480 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. I/flutter ( 6641): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3480 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. I/flutter ( 6641): Another exception was thrown: The _ScaffoldLayout custom multichild layout delegate forgot to lay out the following children:` ## Flutter Doctor `flutter doctor -v [โœ“] Flutter (Channel master, v0.2.12-pre.15, on Linux, locale zh_CN.UTF-8) โ€ข Flutter version 0.2.12-pre.15 at /home/debuggerx/flutter โ€ข Framework revision da9e1a4aca (3 ๅฐๆ—ถๅ‰), 2018-04-11 20:50:25 -0700 โ€ข Engine revision 4db7a00677 โ€ข Dart version 2.0.0-dev.47.0.flutter-4126459025 [โœ“] Android toolchain - develop for Android devices (Android SDK 27.0.3) โ€ข Android SDK at /opt/android-sdk โ€ข Android NDK at /opt/android-sdk/ndk-bundle โ€ข Platform android-27, build-tools 27.0.3 โ€ข ANDROID_HOME = /opt/android-sdk โ€ข Java binary at: /opt/android-studio/jre/bin/java โ€ข Java version openjdk version "1.8.0_152-release" โ€ข All Android licenses accepted. [โœ“] Android Studio (version 3.1) โ€ข Android Studio at /opt/android-studio โ€ข Flutter plugin version 23.2.2 โ€ข Dart plugin version 173.4700 โ€ข Java version openjdk version "1.8.0_152-release" [!] IntelliJ IDEA Ultimate Edition (version 2016.2) โ€ข IntelliJ at /home/debuggerx/idea โœ— Flutter plugin not installed; this adds Flutter specific functionality. โœ— Dart plugin not installed; this adds Dart specific functionality. โ€ข For information about installing plugins, see https://flutter.io/intellij-setup/#installing-the-plugins โœ— This install is older than the minimum recommended version of 2017.1.0. [!] IntelliJ IDEA Ultimate Edition (version 2017.2) โ€ข IntelliJ at /opt/idea โœ— Flutter plugin not installed; this adds Flutter specific functionality. โ€ข Dart plugin version 172.4343.25 โ€ข For information about installing plugins, see https://flutter.io/intellij-setup/#installing-the-plugins [โœ“] Connected devices (1 available) โ€ข Custom Phone, 7 1 0, API 25, 768x1280 โ€ข 192.168.56.101:5555 โ€ข android-x86 โ€ข Android 7.1.1 (API 25) </code></pre></div>
<h2 dir="auto">Steps to Reproduce</h2> <p dir="auto">I have a PageView that contains the top level widgets for my app, with switching between them controlled by a BottomNavBar. As per <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Hixie/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Hixie">@Hixie</a>'s advice in the chat, I am adding <code class="notranslate">AutomaticKeepAliveClientMixin</code> to these top level widgets so the PageView won't recycle them and will preserve state. After I added this to the main widget that contains a network loaded ListView, on occasion when switching back to this ListView from another tab I get this failed assertion in the framework.</p> <h2 dir="auto">Logs</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="โ•โ•โ•ก EXCEPTION CAUGHT BY WIDGETS LIBRARY โ•žโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• The following assertion was thrown building NotificationListener&lt;KeepAliveNotification&gt;: 'package:flutter/src/rendering/object.dart': Failed assertion: line 3031 pos 14: '_debugUltimatePreviousSiblingOf(after, equals: _firstChild)': is not true. Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause. In either case, please report this assertion by filing a bug on GitHub: https://github.com/flutter/flutter/issues/new When the exception was thrown, this was the stack: #2 RenderSliver&amp;ContainerRenderObjectMixin._insertIntoChildList (package:flutter/src/rendering/object.dart:3031:14) #3 RenderSliver&amp;ContainerRenderObjectMixin.insert (package:flutter/src/rendering/object.dart:3065:5) #4 RenderSliverMultiBoxAdaptor.insert (package:flutter/src/rendering/sliver_multi_box_adaptor.dart:193:17) #5 SliverMultiBoxAdaptorElement.insertChildRenderObject (package:flutter/src/widgets/sliver.dart:840:18) #6 RenderObjectElement.attachRenderObject (package:flutter/src/widgets/framework.dart:4380:35) #7 RenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4151:5) #8 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4515:16) #9 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2882:14) #10 Element.updateChild (package:flutter/src/widgets/framework.dart:2685:12) #11 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #12 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #13 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3514:5) #14 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3509:5) #15 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2882:14) #16 Element.updateChild (package:flutter/src/widgets/framework.dart:2685:12) #17 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #18 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #19 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3514:5) #20 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3509:5) #21 ParentDataElement.mount (package:flutter/src/widgets/framework.dart:3827:16) #22 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2882:14) #23 Element.updateChild (package:flutter/src/widgets/framework.dart:2685:12) #24 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #25 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #26 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3514:5) #27 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3652:22) #28 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3509:5) #29 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2882:14) #30 Element.updateChild (package:flutter/src/widgets/framework.dart:2685:12) #31 SliverMultiBoxAdaptorElement.performRebuild (package:flutter/src/widgets/sliver.dart:696:34) #32 SliverMultiBoxAdaptorElement.update (package:flutter/src/widgets/sliver.dart:665:7) #33 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #34 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:4250:32) #35 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4631:17) #36 _ViewportElement.update (package:flutter/src/widgets/viewport.dart:150:17) #37 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #38 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #39 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #40 ProxyElement.update (package:flutter/src/widgets/framework.dart:3781:5) #41 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #42 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4523:14) #43 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #44 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4523:14) #45 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #46 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4523:14) #47 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #48 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #49 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #50 StatefulElement.update (package:flutter/src/widgets/framework.dart:3671:5) #51 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #52 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #53 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #54 StatefulElement.update (package:flutter/src/widgets/framework.dart:3671:5) #55 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #56 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #57 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #58 StatelessElement.update (package:flutter/src/widgets/framework.dart:3596:5) #59 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #60 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #61 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #62 StatefulElement.update (package:flutter/src/widgets/framework.dart:3671:5) #63 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #64 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #65 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #66 ProxyElement.update (package:flutter/src/widgets/framework.dart:3781:5) #67 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #68 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:4250:32) #69 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4631:17) #70 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #71 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #72 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #73 ProxyElement.update (package:flutter/src/widgets/framework.dart:3781:5) #74 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #75 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #76 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #77 StatefulElement.update (package:flutter/src/widgets/framework.dart:3671:5) #78 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #79 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4523:14) #80 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #81 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #82 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #83 StatelessElement.update (package:flutter/src/widgets/framework.dart:3596:5) #84 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #85 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4523:14) #86 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #87 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #88 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #89 StatefulElement.update (package:flutter/src/widgets/framework.dart:3671:5) #90 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #91 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #92 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #93 StatefulElement.update (package:flutter/src/widgets/framework.dart:3671:5) #94 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #95 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #96 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #97 ProxyElement.update (package:flutter/src/widgets/framework.dart:3781:5) #98 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #99 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #100 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #101 ProxyElement.update (package:flutter/src/widgets/framework.dart:3781:5) #102 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #103 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #104 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #105 StatefulElement.update (package:flutter/src/widgets/framework.dart:3671:5) #106 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #107 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #108 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #109 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2260:33) #110 BindingBase&amp;SchedulerBinding&amp;GestureBinding&amp;ServicesBinding&amp;RendererBinding&amp;WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:503:20) #111 BindingBase&amp;SchedulerBinding&amp;GestureBinding&amp;ServicesBinding&amp;RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:189:5) #112 BindingBase&amp;SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:695:15) #113 BindingBase&amp;SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:643:9) #114 _invoke (file:///b/build/slave/Mac_Engine/build/src/flutter/lib/ui/hooks.dart:86) #115 _drawFrame (file:///b/build/slave/Mac_Engine/build/src/flutter/lib/ui/hooks.dart:75) (elided 2 frames from class _AssertionError) โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• Another exception was thrown: 'package:flutter/src/rendering/object.dart': Failed assertion: line 3031 pos 14: '_debugUltimatePreviousSiblingOf(after, equals: _firstChild)': is not true. Another exception was thrown: 'package:flutter/src/rendering/object.dart': Failed assertion: line 3031 pos 14: '_debugUltimatePreviousSiblingOf(after, equals: _firstChild)': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true."><pre class="notranslate"><code class="notranslate">โ•โ•โ•ก EXCEPTION CAUGHT BY WIDGETS LIBRARY โ•žโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• The following assertion was thrown building NotificationListener&lt;KeepAliveNotification&gt;: 'package:flutter/src/rendering/object.dart': Failed assertion: line 3031 pos 14: '_debugUltimatePreviousSiblingOf(after, equals: _firstChild)': is not true. Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause. In either case, please report this assertion by filing a bug on GitHub: https://github.com/flutter/flutter/issues/new When the exception was thrown, this was the stack: #2 RenderSliver&amp;ContainerRenderObjectMixin._insertIntoChildList (package:flutter/src/rendering/object.dart:3031:14) #3 RenderSliver&amp;ContainerRenderObjectMixin.insert (package:flutter/src/rendering/object.dart:3065:5) #4 RenderSliverMultiBoxAdaptor.insert (package:flutter/src/rendering/sliver_multi_box_adaptor.dart:193:17) #5 SliverMultiBoxAdaptorElement.insertChildRenderObject (package:flutter/src/widgets/sliver.dart:840:18) #6 RenderObjectElement.attachRenderObject (package:flutter/src/widgets/framework.dart:4380:35) #7 RenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4151:5) #8 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4515:16) #9 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2882:14) #10 Element.updateChild (package:flutter/src/widgets/framework.dart:2685:12) #11 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #12 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #13 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3514:5) #14 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3509:5) #15 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2882:14) #16 Element.updateChild (package:flutter/src/widgets/framework.dart:2685:12) #17 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #18 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #19 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3514:5) #20 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3509:5) #21 ParentDataElement.mount (package:flutter/src/widgets/framework.dart:3827:16) #22 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2882:14) #23 Element.updateChild (package:flutter/src/widgets/framework.dart:2685:12) #24 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #25 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #26 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3514:5) #27 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3652:22) #28 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3509:5) #29 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2882:14) #30 Element.updateChild (package:flutter/src/widgets/framework.dart:2685:12) #31 SliverMultiBoxAdaptorElement.performRebuild (package:flutter/src/widgets/sliver.dart:696:34) #32 SliverMultiBoxAdaptorElement.update (package:flutter/src/widgets/sliver.dart:665:7) #33 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #34 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:4250:32) #35 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4631:17) #36 _ViewportElement.update (package:flutter/src/widgets/viewport.dart:150:17) #37 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #38 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #39 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #40 ProxyElement.update (package:flutter/src/widgets/framework.dart:3781:5) #41 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #42 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4523:14) #43 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #44 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4523:14) #45 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #46 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4523:14) #47 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #48 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #49 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #50 StatefulElement.update (package:flutter/src/widgets/framework.dart:3671:5) #51 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #52 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #53 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #54 StatefulElement.update (package:flutter/src/widgets/framework.dart:3671:5) #55 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #56 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #57 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #58 StatelessElement.update (package:flutter/src/widgets/framework.dart:3596:5) #59 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #60 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #61 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #62 StatefulElement.update (package:flutter/src/widgets/framework.dart:3671:5) #63 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #64 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #65 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #66 ProxyElement.update (package:flutter/src/widgets/framework.dart:3781:5) #67 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #68 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:4250:32) #69 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4631:17) #70 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #71 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #72 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #73 ProxyElement.update (package:flutter/src/widgets/framework.dart:3781:5) #74 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #75 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #76 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #77 StatefulElement.update (package:flutter/src/widgets/framework.dart:3671:5) #78 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #79 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4523:14) #80 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #81 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #82 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #83 StatelessElement.update (package:flutter/src/widgets/framework.dart:3596:5) #84 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #85 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4523:14) #86 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #87 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #88 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #89 StatefulElement.update (package:flutter/src/widgets/framework.dart:3671:5) #90 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #91 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #92 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #93 StatefulElement.update (package:flutter/src/widgets/framework.dart:3671:5) #94 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #95 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #96 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #97 ProxyElement.update (package:flutter/src/widgets/framework.dart:3781:5) #98 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #99 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #100 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #101 ProxyElement.update (package:flutter/src/widgets/framework.dart:3781:5) #102 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #103 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #104 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #105 StatefulElement.update (package:flutter/src/widgets/framework.dart:3671:5) #106 Element.updateChild (package:flutter/src/widgets/framework.dart:2674:15) #107 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3546:16) #108 Element.rebuild (package:flutter/src/widgets/framework.dart:3435:5) #109 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2260:33) #110 BindingBase&amp;SchedulerBinding&amp;GestureBinding&amp;ServicesBinding&amp;RendererBinding&amp;WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:503:20) #111 BindingBase&amp;SchedulerBinding&amp;GestureBinding&amp;ServicesBinding&amp;RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:189:5) #112 BindingBase&amp;SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:695:15) #113 BindingBase&amp;SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:643:9) #114 _invoke (file:///b/build/slave/Mac_Engine/build/src/flutter/lib/ui/hooks.dart:86) #115 _drawFrame (file:///b/build/slave/Mac_Engine/build/src/flutter/lib/ui/hooks.dart:75) (elided 2 frames from class _AssertionError) โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• Another exception was thrown: 'package:flutter/src/rendering/object.dart': Failed assertion: line 3031 pos 14: '_debugUltimatePreviousSiblingOf(after, equals: _firstChild)': is not true. Another exception was thrown: 'package:flutter/src/rendering/object.dart': Failed assertion: line 3031 pos 14: '_debugUltimatePreviousSiblingOf(after, equals: _firstChild)': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3437 pos 14: 'owner._debugCurrentBuildTarget == this': is not true. </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Analyzing /Users/matt/code/flutter/kudos... lint โ€ข Don't import implementation files from another package at lib/feed.dart:5:8 โ€ข implementation_imports lint โ€ข Close instances of `dart.core.Sink` at lib/feed.dart:26:26 โ€ข close_sinks lint โ€ข Don't explicitly initialize variables to null at lib/loading_list_view.dart:23:5 โ€ข avoid_init_to_null lint โ€ข Don't import implementation files from another package at lib/post.dart:3:8 โ€ข implementation_imports hint โ€ข Unused import at lib/application.dart:4:8 โ€ข unused_import hint โ€ข Unused import at lib/feed.dart:2:8 โ€ข unused_import hint โ€ข Unused import at lib/feed.dart:5:8 โ€ข unused_import hint โ€ข Unused import at lib/feed.dart:7:8 โ€ข unused_import hint โ€ข Unused import at lib/feed.dart:12:8 โ€ข unused_import hint โ€ข Unused import at lib/feed.dart:13:8 โ€ข unused_import hint โ€ข This method overrides a method annotated as @mustCallSuper in 'State', but does not invoke the overridden method at lib/feed.dart:29:8 โ€ข must_call_super hint โ€ข This method overrides a method annotated as @mustCallSuper in 'State', but does not invoke the overridden method at lib/feed.dart:40:8 โ€ข must_call_super hint โ€ข The type parameter 'widgetAdapter' is annotated with @required but only named parameters without default value can be annotated with it at lib/loading_list_view.dart:23:5 โ€ข invalid_required_param hint โ€ข Unused import at lib/main.dart:6:8 โ€ข unused_import hint โ€ข The value of the field '_counter' isn't used at lib/main.dart:56:7 โ€ข unused_field hint โ€ข This method overrides a method annotated as @mustCallSuper in 'State', but does not invoke the overridden method at lib/main.dart:63:8 โ€ข must_call_super hint โ€ข This method overrides a method annotated as @mustCallSuper in 'State', but does not invoke the overridden method at lib/main.dart:71:8 โ€ข must_call_super hint โ€ข The method '_incrementCounter' isn't used at lib/main.dart:76:8 โ€ข unused_element hint โ€ข Unused import at lib/post.dart:7:8 โ€ข unused_import hint โ€ข This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) at lib/post.dart:10:7 โ€ข must_be_immutable hint โ€ข This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) at lib/post.dart:34:7 โ€ข must_be_immutable hint โ€ข The value of the local variable 'plainText' isn't used at lib/post.dart:71:10 โ€ข unused_local_variable hint โ€ข This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) at lib/post.dart:112:7 โ€ข must_be_immutable hint โ€ข This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) at lib/post.dart:160:7 โ€ข must_be_immutable hint โ€ข This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) at lib/profile.dart:10:7 โ€ข must_be_immutable hint โ€ข This method overrides a method annotated as @mustCallSuper in 'State', but does not invoke the overridden method at lib/profile.dart:27:10 โ€ข must_call_super hint โ€ข This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) at lib/profile.dart:145:7 โ€ข must_be_immutable hint โ€ข The class '_KudosEarned' isn't used at lib/profile.dart:218:7 โ€ข unused_element hint โ€ข Unused import at lib/send_photo.dart:5:8 โ€ข unused_import hint โ€ข Unused import at lib/usersearch.dart:6:8 โ€ข unused_import hint โ€ข Unused import at lib/usersearch.dart:7:8 โ€ข unused_import hint โ€ข This method overrides a method annotated as @mustCallSuper in 'State', but does not invoke the overridden method at lib/usersearch.dart:25:10 โ€ข must_call_super 32 issues found."><pre class="notranslate"><code class="notranslate">Analyzing /Users/matt/code/flutter/kudos... lint โ€ข Don't import implementation files from another package at lib/feed.dart:5:8 โ€ข implementation_imports lint โ€ข Close instances of `dart.core.Sink` at lib/feed.dart:26:26 โ€ข close_sinks lint โ€ข Don't explicitly initialize variables to null at lib/loading_list_view.dart:23:5 โ€ข avoid_init_to_null lint โ€ข Don't import implementation files from another package at lib/post.dart:3:8 โ€ข implementation_imports hint โ€ข Unused import at lib/application.dart:4:8 โ€ข unused_import hint โ€ข Unused import at lib/feed.dart:2:8 โ€ข unused_import hint โ€ข Unused import at lib/feed.dart:5:8 โ€ข unused_import hint โ€ข Unused import at lib/feed.dart:7:8 โ€ข unused_import hint โ€ข Unused import at lib/feed.dart:12:8 โ€ข unused_import hint โ€ข Unused import at lib/feed.dart:13:8 โ€ข unused_import hint โ€ข This method overrides a method annotated as @mustCallSuper in 'State', but does not invoke the overridden method at lib/feed.dart:29:8 โ€ข must_call_super hint โ€ข This method overrides a method annotated as @mustCallSuper in 'State', but does not invoke the overridden method at lib/feed.dart:40:8 โ€ข must_call_super hint โ€ข The type parameter 'widgetAdapter' is annotated with @required but only named parameters without default value can be annotated with it at lib/loading_list_view.dart:23:5 โ€ข invalid_required_param hint โ€ข Unused import at lib/main.dart:6:8 โ€ข unused_import hint โ€ข The value of the field '_counter' isn't used at lib/main.dart:56:7 โ€ข unused_field hint โ€ข This method overrides a method annotated as @mustCallSuper in 'State', but does not invoke the overridden method at lib/main.dart:63:8 โ€ข must_call_super hint โ€ข This method overrides a method annotated as @mustCallSuper in 'State', but does not invoke the overridden method at lib/main.dart:71:8 โ€ข must_call_super hint โ€ข The method '_incrementCounter' isn't used at lib/main.dart:76:8 โ€ข unused_element hint โ€ข Unused import at lib/post.dart:7:8 โ€ข unused_import hint โ€ข This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) at lib/post.dart:10:7 โ€ข must_be_immutable hint โ€ข This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) at lib/post.dart:34:7 โ€ข must_be_immutable hint โ€ข The value of the local variable 'plainText' isn't used at lib/post.dart:71:10 โ€ข unused_local_variable hint โ€ข This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) at lib/post.dart:112:7 โ€ข must_be_immutable hint โ€ข This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) at lib/post.dart:160:7 โ€ข must_be_immutable hint โ€ข This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) at lib/profile.dart:10:7 โ€ข must_be_immutable hint โ€ข This method overrides a method annotated as @mustCallSuper in 'State', but does not invoke the overridden method at lib/profile.dart:27:10 โ€ข must_call_super hint โ€ข This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) at lib/profile.dart:145:7 โ€ข must_be_immutable hint โ€ข The class '_KudosEarned' isn't used at lib/profile.dart:218:7 โ€ข unused_element hint โ€ข Unused import at lib/send_photo.dart:5:8 โ€ข unused_import hint โ€ข Unused import at lib/usersearch.dart:6:8 โ€ข unused_import hint โ€ข Unused import at lib/usersearch.dart:7:8 โ€ข unused_import hint โ€ข This method overrides a method annotated as @mustCallSuper in 'State', but does not invoke the overridden method at lib/usersearch.dart:25:10 โ€ข must_call_super 32 issues found. </code></pre></div> <h2 dir="auto">Flutter Doctor</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[โœ“] Flutter (on Mac OS X 10.12.6 16G29, locale en-US, channel alpha) โ€ข Flutter at /Users/matt/code/flutter/flutter โ€ข Framework revision b156a0f054 (3 weeks ago), 2017-08-11 22:01:40 -0700 โ€ข Engine revision fef7d827d6 โ€ข Tools Dart version 1.25.0-dev.9.0 [โœ“] Android toolchain - develop for Android devices (Android SDK 25.0.3) โ€ข Android SDK at /Users/matt/code/android/android โ€ข Platform android-25, build-tools 25.0.3 โ€ข Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java โ€ข Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06) [โœ“] iOS toolchain - develop for iOS devices (Xcode 8.3.3) โ€ข Xcode at /Applications/Xcode.app/Contents/Developer โ€ข Xcode 8.3.3, Build version 8E3004b โ€ข ios-deploy 1.9.1 โ€ข CocoaPods version 1.3.1 [โœ“] Android Studio (version 2.3) โ€ข Android Studio at /Applications/Android Studio.app/Contents โ€ข Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06) [โœ“] IntelliJ IDEA Ultimate Edition (version 2017.2.2) โ€ข Flutter plugin version 16.0 โ€ข Dart plugin version 172.3757.55 [โœ“] Connected devices โ€ข iPhone 6s โ€ข 3DF999CB-1CD6-4649-8187-DDEFBDB14DFA โ€ข ios โ€ข iOS 10.3 (simulator) "><pre class="notranslate"><code class="notranslate">[โœ“] Flutter (on Mac OS X 10.12.6 16G29, locale en-US, channel alpha) โ€ข Flutter at /Users/matt/code/flutter/flutter โ€ข Framework revision b156a0f054 (3 weeks ago), 2017-08-11 22:01:40 -0700 โ€ข Engine revision fef7d827d6 โ€ข Tools Dart version 1.25.0-dev.9.0 [โœ“] Android toolchain - develop for Android devices (Android SDK 25.0.3) โ€ข Android SDK at /Users/matt/code/android/android โ€ข Platform android-25, build-tools 25.0.3 โ€ข Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java โ€ข Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06) [โœ“] iOS toolchain - develop for iOS devices (Xcode 8.3.3) โ€ข Xcode at /Applications/Xcode.app/Contents/Developer โ€ข Xcode 8.3.3, Build version 8E3004b โ€ข ios-deploy 1.9.1 โ€ข CocoaPods version 1.3.1 [โœ“] Android Studio (version 2.3) โ€ข Android Studio at /Applications/Android Studio.app/Contents โ€ข Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06) [โœ“] IntelliJ IDEA Ultimate Edition (version 2017.2.2) โ€ข Flutter plugin version 16.0 โ€ข Dart plugin version 172.3757.55 [โœ“] Connected devices โ€ข iPhone 6s โ€ข 3DF999CB-1CD6-4649-8187-DDEFBDB14DFA โ€ข ios โ€ข iOS 10.3 (simulator) </code></pre></div> <blockquote> <p dir="auto">For more information about diagnosing and reporting Flutter bugs, please see <a href="https://flutter.io/bug-reports/" rel="nofollow">https://flutter.io/bug-reports/</a>.</p> </blockquote>
1
<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.19018.1] Windows Terminal version (if applicable): 0.6.2951.0 WSL version: 2 WSL distribution: Ubuntu"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.19018.1] Windows Terminal version (if applicable): 0.6.2951.0 WSL version: 2 WSL distribution: Ubuntu </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Copy any text with multiple lines into the WSL terminal tab.<br> Note: this bug does NOT occur in the command line and PowerShell tabs.</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Same amount of lines as in the source and the paste not affecting existing text in unexpected ways.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">I get extra lines in-between regardless of whether the source I copy from is LF or CRLF when I paste it into WSL in the terminal.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/47948375/68528431-512a6080-02fb-11ea-994a-970cf99170ff.png"><img src="https://user-images.githubusercontent.com/47948375/68528431-512a6080-02fb-11ea-994a-970cf99170ff.png" alt="image" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/47948375/68528437-5edfe600-02fb-11ea-87b4-156d58460d64.png"><img src="https://user-images.githubusercontent.com/47948375/68528437-5edfe600-02fb-11ea-87b4-156d58460d64.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Existing text is also affected.</p> <p dir="auto">before:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/47948375/68528480-e2013c00-02fb-11ea-9ab1-1c5239438602.png"><img src="https://user-images.githubusercontent.com/47948375/68528480-e2013c00-02fb-11ea-9ab1-1c5239438602.png" alt="image" style="max-width: 100%;"></a><br> after:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/47948375/68528484-f5aca280-02fb-11ea-9e56-c385bf8a345d.png"><img src="https://user-images.githubusercontent.com/47948375/68528484-f5aca280-02fb-11ea-9e56-c385bf8a345d.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">another example:</p> <p dir="auto">before:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/47948375/68528500-1e349c80-02fc-11ea-9be3-855ae2e2c397.png"><img src="https://user-images.githubusercontent.com/47948375/68528500-1e349c80-02fc-11ea-9be3-855ae2e2c397.png" alt="image" style="max-width: 100%;"></a><br> after:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/47948375/68528508-36a4b700-02fc-11ea-9b79-728b8fe24413.png"><img src="https://user-images.githubusercontent.com/47948375/68528508-36a4b700-02fc-11ea-9b79-728b8fe24413.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Multiline text pasted from the clipboard includes CRLF pairs in all cases; this is inappropriate for "Unix-space" sessions, such as WSL.</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.18362.145] Windows Terminal version (if applicable): 71e19cd82528d66a0a7867cbed85990cfc1685f1"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18362.145] Windows Terminal version (if applicable): 71e19cd82528d66a0a7867cbed85990cfc1685f1 </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Select multiline text in Terminal.<br> Copy it (via right-click, ostensibly)<br> Paste it (again via right-click)</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">When pasting into a Unix-space session -- such as WSL -- pasted text should have a reasonable set of line-ending characters.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">Line endings are "doubled" on text paste to Unix-space sessions.</p>
1
<p dir="auto">[Enter steps to reproduce below:]</p> <ol dir="auto"> <li>Opened .js document.</li> <li>Right-clicked function call.</li> </ol> <p dir="auto"><strong>Atom Version</strong>: 1.0.0<br> <strong>System</strong>: Microsoft Windows 7 Enterprise<br> <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Stack Trace</h3> <p dir="auto">Uncaught Error: Cannot find module './context-menu'<br> Error: Cannot find module './context-menu'<br> at Function.Module._resolveFilename (module.js:328:15)<br> at Function.Module._load (module.js:270:25)<br> at Module.require (module.js:357:17)<br> at require (module.js:376:17)<br> at BrowserWindow. (C:\Users\nickle\AppData\Local\atom\app-1.0.0\resources\app.asar\src\browser\atom-window.js:149:27)<br> at emitOne (events.js:77:13)<br> at BrowserWindow.emit (events.js:166:7)<br> at callFunction (C:\Users\nickle\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)<br> at EventEmitter. (C:\Users\nickle\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:208:14)<br> at emitMany (events.js:108:13)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At C:\Users\nickle\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:77 Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:328:15) at Function.Module._load (module.js:270:25) at Module.require (module.js:357:17) at require (module.js:376:17) at BrowserWindow.&lt;anonymous&gt; (C:\Users\nickle\AppData\Local\atom\app-1.0.0\resources\app.asar\src\browser\atom-window.js:149:27) at emitOne (events.js:77:13) at BrowserWindow.emit (events.js:166:7) at callFunction (C:\Users\nickle\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\nickle\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:208:14) at emitMany (events.js:108:13) at metaToValue (C:\Users\nickle\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\nickle\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\nickle\AppData\Local\atom\app-1.0.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\nickle\AppData\Local\atom\app-1.0.0\resources\app.asar\src\window-event-handler.js:150:33) at HTMLDocument.handler (C:\Users\nickle\AppData\Local\atom\app-1.0.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\nickle\AppData\Local\atom\app-1.0.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\nickle\AppData\Local\atom\app-1.0.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46)"><pre class="notranslate"><code class="notranslate">At C:\Users\nickle\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:77 Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:328:15) at Function.Module._load (module.js:270:25) at Module.require (module.js:357:17) at require (module.js:376:17) at BrowserWindow.&lt;anonymous&gt; (C:\Users\nickle\AppData\Local\atom\app-1.0.0\resources\app.asar\src\browser\atom-window.js:149:27) at emitOne (events.js:77:13) at BrowserWindow.emit (events.js:166:7) at callFunction (C:\Users\nickle\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\nickle\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:208:14) at emitMany (events.js:108:13) at metaToValue (C:\Users\nickle\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\nickle\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\nickle\AppData\Local\atom\app-1.0.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\nickle\AppData\Local\atom\app-1.0.0\resources\app.asar\src\window-event-handler.js:150:33) at HTMLDocument.handler (C:\Users\nickle\AppData\Local\atom\app-1.0.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\nickle\AppData\Local\atom\app-1.0.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\nickle\AppData\Local\atom\app-1.0.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46) </code></pre></div> <h3 dir="auto">Commands</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div> <h3 dir="auto">Config</h3> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;core&quot;: { &quot;themes&quot;: [ &quot;atom-dark-ui&quot;, &quot;atom-dark-syntax&quot; ] }, &quot;editor&quot;: { &quot;invisibles&quot;: {}, &quot;tabLength&quot;: 4 } }"><pre class="notranslate">{ <span class="pl-ent">"core"</span>: { <span class="pl-ent">"themes"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>atom-dark-ui<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>atom-dark-syntax<span class="pl-pds">"</span></span> ] }, <span class="pl-ent">"editor"</span>: { <span class="pl-ent">"invisibles"</span>: {}, <span class="pl-ent">"tabLength"</span>: <span class="pl-c1">4</span> } }</pre></div> <h3 dir="auto">Installed Packages</h3> <div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# User tabs-to-spaces, v0.11.0 # Dev No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span> tabs<span class="pl-k">-</span>to<span class="pl-k">-</span>spaces, v0.<span class="pl-ii">11</span>.<span class="pl-ii">0</span> <span class="pl-c"><span class="pl-c">#</span> Dev</span> <span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div>
<p dir="auto">I right-clicked on a folder in the tree view</p> <p dir="auto"><strong>Atom Version</strong>: 0.194.0<br> <strong>System</strong>: Windows 7 Entreprise<br> <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Stack Trace</h3> <p dir="auto">Uncaught Error: Cannot find module './context-menu'<br> Error: Cannot find module './context-menu'<br> at Function.Module._resolveFilename (module.js:328:15)<br> at Function.Module._load (module.js:270:25)<br> at Module.require (module.js:357:17)<br> at require (module.js:376:17)<br> at BrowserWindow. (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27)<br> at emitOne (events.js:77:13)<br> at BrowserWindow.emit (events.js:166:7)<br> at callFunction (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)<br> at EventEmitter. (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14)<br> at emitMany (events.js:108:13)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77 Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:328:15) at Function.Module._load (module.js:270:25) at Module.require (module.js:357:17) at require (module.js:376:17) at BrowserWindow.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27) at emitOne (events.js:77:13) at BrowserWindow.emit (events.js:166:7) at callFunction (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14) at emitMany (events.js:108:13) at metaToValue (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\window-event-handler.js:149:33) at HTMLDocument.handler (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46) "><pre class="notranslate"><code class="notranslate">At C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77 Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:328:15) at Function.Module._load (module.js:270:25) at Module.require (module.js:357:17) at require (module.js:376:17) at BrowserWindow.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27) at emitOne (events.js:77:13) at BrowserWindow.emit (events.js:166:7) at callFunction (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14) at emitMany (events.js:108:13) at metaToValue (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\window-event-handler.js:149:33) at HTMLDocument.handler (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46) </code></pre></div> <h3 dir="auto">Commands</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" -4:55.5.0 editor:checkout-head-revision (atom-text-editor.editor.is-focused) 2x -3:41.6.0 window:focus-pane-on-right (atom-text-editor.editor) -3:17.5.0 application:add-project-folder (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel) -2:47.4.0 editor:newline (atom-text-editor.editor.is-focused) -2:38.2.0 core:cut (atom-text-editor.editor) -2:36.5.0 core:paste (atom-text-editor.editor.is-focused) -2:26.6.0 core:save (atom-text-editor.editor.is-focused) -2:20.6.0 core:move-down (atom-text-editor.editor) -2:20.4.0 autocomplete-plus:confirm (atom-text-editor.editor) -2:15.8.0 core:save (atom-text-editor.editor) -2:08.7.0 core:copy (atom-text-editor.editor.is-focused) -2:01.2.0 core:paste (atom-text-editor.editor.is-focused) -1:59.7.0 core:save (atom-text-editor.editor.is-focused) -1:52.2.0 core:paste (atom-text-editor.editor.is-focused) -1:51.6.0 core:save (atom-text-editor.editor.is-focused) -1:30.6.0 core:backspace (atom-text-editor.editor)"><pre class="notranslate"><code class="notranslate"> -4:55.5.0 editor:checkout-head-revision (atom-text-editor.editor.is-focused) 2x -3:41.6.0 window:focus-pane-on-right (atom-text-editor.editor) -3:17.5.0 application:add-project-folder (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel) -2:47.4.0 editor:newline (atom-text-editor.editor.is-focused) -2:38.2.0 core:cut (atom-text-editor.editor) -2:36.5.0 core:paste (atom-text-editor.editor.is-focused) -2:26.6.0 core:save (atom-text-editor.editor.is-focused) -2:20.6.0 core:move-down (atom-text-editor.editor) -2:20.4.0 autocomplete-plus:confirm (atom-text-editor.editor) -2:15.8.0 core:save (atom-text-editor.editor) -2:08.7.0 core:copy (atom-text-editor.editor.is-focused) -2:01.2.0 core:paste (atom-text-editor.editor.is-focused) -1:59.7.0 core:save (atom-text-editor.editor.is-focused) -1:52.2.0 core:paste (atom-text-editor.editor.is-focused) -1:51.6.0 core:save (atom-text-editor.editor.is-focused) -1:30.6.0 core:backspace (atom-text-editor.editor) </code></pre></div> <h3 dir="auto">Config</h3> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;core&quot;: { &quot;ignoredNames&quot;: [ &quot;node_modules&quot; ], &quot;themes&quot;: [ &quot;atom-dark-ui&quot;, &quot;seti-syntax&quot; ], &quot;disabledPackages&quot;: [ &quot;Tern&quot; ], &quot;projectHome&quot;: &quot;Y:\\app-tfoumax&quot; }, &quot;editor&quot;: { &quot;invisibles&quot;: {}, &quot;softWrap&quot;: true, &quot;showIndentGuide&quot;: true } }"><pre class="notranslate">{ <span class="pl-ent">"core"</span>: { <span class="pl-ent">"ignoredNames"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>node_modules<span class="pl-pds">"</span></span> ], <span class="pl-ent">"themes"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>atom-dark-ui<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>seti-syntax<span class="pl-pds">"</span></span> ], <span class="pl-ent">"disabledPackages"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>Tern<span class="pl-pds">"</span></span> ], <span class="pl-ent">"projectHome"</span>: <span class="pl-s"><span class="pl-pds">"</span>Y:<span class="pl-cce">\\</span>app-tfoumax<span class="pl-pds">"</span></span> }, <span class="pl-ent">"editor"</span>: { <span class="pl-ent">"invisibles"</span>: {}, <span class="pl-ent">"softWrap"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"showIndentGuide"</span>: <span class="pl-c1">true</span> } }</pre></div> <h3 dir="auto">Installed Packages</h3> <div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# User autocomplete-plus, v2.12.0 autocomplete-snippets, v1.2.0 javascript-snippets, v1.0.0 jshint, v1.3.5 language-ejs, v0.1.0 linter, v0.12.1 pretty-json, v0.3.3 save-session, v0.14.0 Search, v0.4.0 seti-syntax, v0.4.0 # Dev No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span> autocomplete<span class="pl-k">-</span>plus, v2.<span class="pl-ii">12</span>.<span class="pl-ii">0</span> autocomplete<span class="pl-k">-</span>snippets, v1.<span class="pl-ii">2</span>.<span class="pl-ii">0</span> javascript<span class="pl-k">-</span>snippets, v1.<span class="pl-ii">0</span>.<span class="pl-ii">0</span> jshint, v1.<span class="pl-ii">3</span>.<span class="pl-ii">5</span> language<span class="pl-k">-</span>ejs, v0.<span class="pl-ii">1</span>.<span class="pl-ii">0</span> linter, v0.<span class="pl-ii">12</span>.<span class="pl-ii">1</span> pretty<span class="pl-k">-</span>json, v0.<span class="pl-ii">3</span>.<span class="pl-ii">3</span> save<span class="pl-k">-</span>session, v0.<span class="pl-ii">14</span>.<span class="pl-ii">0</span> Search, v0.<span class="pl-ii">4</span>.<span class="pl-ii">0</span> seti<span class="pl-k">-</span>syntax, v0.<span class="pl-ii">4</span>.<span class="pl-ii">0</span> <span class="pl-c"><span class="pl-c">#</span> Dev</span> <span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div>
1
<h2 dir="auto">Bug Report</h2> <p dir="auto"><strong>Current Behavior</strong><br> When using @babel/plugin-transform-async-to-generator and @babel/plugin-transform-parameters together, awaiting a super method call results in a 'Maximum call stack size exceeded' due to a recursive infinite loop getting generated.</p> <p dir="auto"><strong>Input Code</strong><br> <a href="https://babeljs.io/en/repl#?babili=false&amp;browsers=&amp;build=&amp;builtIns=false&amp;spec=false&amp;loose=false&amp;code_lz=MYGwhgzhAEAa0FMAeAXBA7AJjAmgbwChppIBPdYaTAewGVqBbBFACwEt0BzACgEppCxYmADuYNimgQArgAcEAJwB0Nek1YcevANxFoAXwL6gA&amp;debug=false&amp;forceAllTransforms=false&amp;shippedProposals=false&amp;circleciRepo=&amp;evaluate=false&amp;fileSize=false&amp;timeTravel=false&amp;sourceType=module&amp;lineWrap=true&amp;presets=&amp;prettier=false&amp;targets=&amp;version=7.4.5&amp;externalPlugins=%40babel%2Fplugin-transform-async-to-generator%407.4.4%2C%40babel%2Fplugin-transform-parameters%407.4.4" rel="nofollow">https://babeljs.io/en/repl#?babili=false&amp;browsers=&amp;build=&amp;builtIns=false&amp;spec=false&amp;loose=false&amp;code_lz=MYGwhgzhAEAa0FMAeAXBA7AJjAmgbwChppIBPdYaTAewGVqBbBFACwEt0BzACgEppCxYmADuYNimgQArgAcEAJwB0Nek1YcevANxFoAXwL6gA&amp;debug=false&amp;forceAllTransforms=false&amp;shippedProposals=false&amp;circleciRepo=&amp;evaluate=false&amp;fileSize=false&amp;timeTravel=false&amp;sourceType=module&amp;lineWrap=true&amp;presets=&amp;prettier=false&amp;targets=&amp;version=7.4.5&amp;externalPlugins=%40babel%2Fplugin-transform-async-to-generator%407.4.4%2C%40babel%2Fplugin-transform-parameters%407.4.4</a></p> <p dir="auto">Input:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class X extends Y{ async doSomething() { await super.doSomething(); } }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">X</span> <span class="pl-k">extends</span> <span class="pl-v">Y</span><span class="pl-kos">{</span> <span class="pl-k">async</span> <span class="pl-en">doSomething</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-smi">super</span><span class="pl-kos">.</span><span class="pl-en">doSomething</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">Relevant output:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class X extends Y { doSomething() { var _superprop_callDoSomething = function () { return _superprop_callDoSomething(...arguments); }; return _asyncToGenerator(function* () { yield _superprop_callDoSomething(); })(); } }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">X</span> <span class="pl-k">extends</span> <span class="pl-v">Y</span> <span class="pl-kos">{</span> <span class="pl-en">doSomething</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-en">_superprop_callDoSomething</span> <span class="pl-c1">=</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-en">_superprop_callDoSomething</span><span class="pl-kos">(</span>...<span class="pl-smi">arguments</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-en">_asyncToGenerator</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-c1">*</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">yield</span> <span class="pl-en">_superprop_callDoSomething</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">note the recursive <code class="notranslate">_superprop_callDoSomething</code></p> <p dir="auto"><strong>Expected behavior/code</strong><br> No recursive call.</p> <p dir="auto"><strong>Babel Configuration (.babelrc, package.json, cli command)</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;plugins&quot;: [&quot;@babel/transform-async-to-generator&quot;, &quot;@babel/transform-parameters&quot;] }"><pre class="notranslate"><span class="pl-kos">{</span> <span class="pl-s">"plugins"</span>: <span class="pl-kos">[</span><span class="pl-s">"@babel/transform-async-to-generator"</span><span class="pl-kos">,</span> <span class="pl-s">"@babel/transform-parameters"</span><span class="pl-kos">]</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><strong>Environment</strong></p> <ul dir="auto"> <li>Babel version(s): 7.4.5</li> <li>Node/npm version: Node 8/npm 6</li> <li>OS: Mac OS</li> <li>Monorepo: no</li> <li>How you are using Babel: cli, online repl</li> </ul>
<h2 dir="auto">Bug Report</h2> <p dir="auto"><strong>Current Behavior</strong><br> I have error <code class="notranslate">RangeError: Maximum call stack size exceeded</code> when I used a <code class="notranslate">super</code> in my async method</p> <p dir="auto"><strong>Input Code</strong><br> <a href="https://babeljs.io/repl/#?babili=false&amp;browsers=Chrome%20%3E%3D%2060%2C%20Safari%20%3E%3D%2011%2C%20iOS%20%3E%3D%2010.3%2C%20Firefox%20%3E%3D%2055%2C%20Edge%20%3E%3D%2016&amp;build=&amp;builtIns=false&amp;spec=false&amp;loose=false&amp;code_lz=MYGwhgzhAECyCeBhcVoFMAeAXNA7AJjAEKRrKQwDeAUNNJPLsNCAPZj4CiuWAllvAAUASmg06dLAAteEAHQB3NACMI_NNAC89BWH7RpsuWw4B1FWpwiA3LQmH5AJzQAHVo6xyIaLIlYBbFzBcIQdFC3U5YACgkOFbCWgIAFcXNEdjdi4efiF4uwBfagKgA&amp;debug=false&amp;forceAllTransforms=false&amp;shippedProposals=false&amp;circleciRepo=&amp;evaluate=false&amp;fileSize=false&amp;timeTravel=false&amp;sourceType=module&amp;lineWrap=true&amp;presets=env&amp;prettier=false&amp;targets=&amp;version=7.4.4&amp;externalPlugins=" rel="nofollow">REPL</a></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class MyClass extends BaseClass { async loadEntity() { this.website = await this.loadWebsite(); this.report.setCompany(this.website.company); super.loadEntity(); } }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">MyClass</span> <span class="pl-k">extends</span> <span class="pl-v">BaseClass</span> <span class="pl-kos">{</span> <span class="pl-k">async</span> <span class="pl-en">loadEntity</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">website</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">loadWebsite</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">report</span><span class="pl-kos">.</span><span class="pl-en">setCompany</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">website</span><span class="pl-kos">.</span><span class="pl-c1">company</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-smi">super</span><span class="pl-kos">.</span><span class="pl-en">loadEntity</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>Expected behavior/code</strong><br> It should work without looping</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class MyClass extends BaseClass { loadEntity() { var _this = this, _superprop_callLoadEntity = function _superprop_callLoadEntity() { return _superprop_callLoadEntity(...arguments); // &lt;= HERE I HAVE LOOPING :( }; return _asyncToGenerator(function* () { _this.website = yield _this.loadWebsite(); _this.report.setCompany(_this.website.company); _superprop_callLoadEntity(); })(); } }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">MyClass</span> <span class="pl-k">extends</span> <span class="pl-v">BaseClass</span> <span class="pl-kos">{</span> <span class="pl-en">loadEntity</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">_this</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">,</span> <span class="pl-en">_superprop_callLoadEntity</span> <span class="pl-c1">=</span> <span class="pl-k">function</span> <span class="pl-en">_superprop_callLoadEntity</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-en">_superprop_callLoadEntity</span><span class="pl-kos">(</span>...<span class="pl-smi">arguments</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// &lt;= HERE I HAVE LOOPING :(</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-en">_asyncToGenerator</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-c1">*</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">_this</span><span class="pl-kos">.</span><span class="pl-c1">website</span> <span class="pl-c1">=</span> <span class="pl-k">yield</span> <span class="pl-s1">_this</span><span class="pl-kos">.</span><span class="pl-en">loadWebsite</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">_this</span><span class="pl-kos">.</span><span class="pl-c1">report</span><span class="pl-kos">.</span><span class="pl-en">setCompany</span><span class="pl-kos">(</span><span class="pl-s1">_this</span><span class="pl-kos">.</span><span class="pl-c1">website</span><span class="pl-kos">.</span><span class="pl-c1">company</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">_superprop_callLoadEntity</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div>
1
<p dir="auto">Receive following error when running Webpack. This has been working forever, but for some reason, it is now a problem</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR in ./index.js Module build failed: Error: Final loader didn't return a Buffer or String at DependenciesBlock.onModuleBuild (/Users/mikee/Documents/Projects/dev/angular/angular-sandbox/node_modules/webpack-core/lib/NormalModuleMixin.js:299:42) at nextLoader (/Users/mikee/Documents/Projects/dev/angular/angular-sandbox/node_modules/webpack-core/lib/NormalModuleMixin.js:275:25) at /Users/mikee/Documents/Projects/dev/angular/angular-sandbox/node_modules/webpack-core/lib/NormalModuleMixin.js:292:15 at runSyncOrAsync (/Users/mikee/Documents/Projects/dev/angular/angular-sandbox/node_modules/webpack-core/lib/NormalModuleMixin.js:160:12) at nextLoader (/Users/mikee/Documents/Projects/dev/angular/angular-sandbox/node_modules/webpack-core/lib/NormalModuleMixin.js:290:3) at /Users/mikee/Documents/Projects/dev/angular/angular-sandbox/node_modules/webpack-core/lib/NormalModuleMixin.js:292:15 at Object.context.callback (/Users/mikee/Documents/Projects/dev/angular/angular-sandbox/node_modules/webpack-core/lib/NormalModuleMixin.js:148:14) at Object.module.exports (/Users/mikee/Documents/Projects/dev/angular/angular-sandbox/node_modules/babel-loader/index.js:89:8)"><pre class="notranslate"><code class="notranslate">ERROR in ./index.js Module build failed: Error: Final loader didn't return a Buffer or String at DependenciesBlock.onModuleBuild (/Users/mikee/Documents/Projects/dev/angular/angular-sandbox/node_modules/webpack-core/lib/NormalModuleMixin.js:299:42) at nextLoader (/Users/mikee/Documents/Projects/dev/angular/angular-sandbox/node_modules/webpack-core/lib/NormalModuleMixin.js:275:25) at /Users/mikee/Documents/Projects/dev/angular/angular-sandbox/node_modules/webpack-core/lib/NormalModuleMixin.js:292:15 at runSyncOrAsync (/Users/mikee/Documents/Projects/dev/angular/angular-sandbox/node_modules/webpack-core/lib/NormalModuleMixin.js:160:12) at nextLoader (/Users/mikee/Documents/Projects/dev/angular/angular-sandbox/node_modules/webpack-core/lib/NormalModuleMixin.js:290:3) at /Users/mikee/Documents/Projects/dev/angular/angular-sandbox/node_modules/webpack-core/lib/NormalModuleMixin.js:292:15 at Object.context.callback (/Users/mikee/Documents/Projects/dev/angular/angular-sandbox/node_modules/webpack-core/lib/NormalModuleMixin.js:148:14) at Object.module.exports (/Users/mikee/Documents/Projects/dev/angular/angular-sandbox/node_modules/babel-loader/index.js:89:8) </code></pre></div>
<h2 dir="auto">Feature request</h2> <p dir="auto">Hi currently In our projects, we plan to do Front End Micro, divide an App to multiple repositories.</p> <ul dir="auto"> <li> <p dir="auto">Repo 1: App1</p> </li> <li> <p dir="auto">Repo 2: App2</p> </li> <li> <p dir="auto">Repo 3: App3</p> </li> <li> <p dir="auto">Repo 4: A Shell</p> </li> <li> <p dir="auto">When user navigate to /app1 we will get the script of App1 storing in CDN for example: <code class="notranslate">http://cdn.company/app1,bundle.js</code>. It looks like a <a href="https://webpack.js.org/guides/lazy-loading/" rel="nofollow">Lazy Load Pattern</a></p> </li> <li> <p dir="auto">Can we support the import('<a href="http://cdn.company/app1.bundle.js" rel="nofollow">http://cdn.company/app1.bundle.js</a>') at runtime ?</p> </li> </ul> <p dir="auto"><strong>What is the expected behavior?</strong></p> <ul dir="auto"> <li>It should map the module export from prebuilt bundle at runtime</li> </ul> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import('http://cdn.company/app1.bundle.js').then(module =&gt; { this.setState({ loadedComponent: module.default }) });"><pre class="notranslate"><span class="pl-k">import</span><span class="pl-kos">(</span><span class="pl-s">'http://cdn.company/app1.bundle.js'</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">module</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-en">setState</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">loadedComponent</span>: <span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-c1">default</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>What is motivation or use case for adding/changing the behavior?</strong></p> <ul dir="auto"> <li>Front End Micro Architecture</li> </ul> <p dir="auto"><strong>How should this be implemented in your opinion?</strong></p> <ul dir="auto"> <li>Make it simple like</li> </ul> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import('http://cdn.company/app1,bundle.js').then(module =&gt; { this.setState({ loadedComponent: module.default }) });"><pre class="notranslate"><span class="pl-k">import</span><span class="pl-kos">(</span><span class="pl-s">'http://cdn.company/app1,bundle.js'</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">module</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-en">setState</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">loadedComponent</span>: <span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-c1">default</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>Are you willing to work on this yourself?</strong><br> yes but don't know how to do it ๐Ÿ˜„</p>
0
<p dir="auto">About 60-80% of the time I debug on VSC on iOS it will launch to a white screen and then fail with no error message.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Launching lib/main.dart on Luke's iPhone in debug mode... Automatically signing iOS for device deployment using specified development team in Xcode project: TA8U33SGB8 Xcode build done. 13.9s 5.4.0 - [Firebase/Core][I-COR000003] The default Firebase app has not yet been configured. Add `[FIRApp configure];` (`FirebaseApp.configure()` in Swift) to your application initialization. Read more: https://goo.gl/ctyzm8. 5.4.0 - [Firebase/Analytics][I-ACS023007] Firebase Analytics v.50001000 started 5.4.0 - [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r) 5.4.0 - [Firebase/Messaging][I-FCM001000] FIRMessaging Remote Notifications proxy enabled, will swizzle remote notification receiver handlers. If you'd prefer to manually integrate Firebase Messaging, add &quot;FirebaseAppDelegateProxyEnabled&quot; to your Info.plist, and set it to NO. Follow the instructions at: https://firebase.google.com/docs/cloud-messaging/ios/client#method_swizzling_in_firebase_messaging to ensure proper integration. Exited (sigterm)"><pre class="notranslate"><code class="notranslate">Launching lib/main.dart on Luke's iPhone in debug mode... Automatically signing iOS for device deployment using specified development team in Xcode project: TA8U33SGB8 Xcode build done. 13.9s 5.4.0 - [Firebase/Core][I-COR000003] The default Firebase app has not yet been configured. Add `[FIRApp configure];` (`FirebaseApp.configure()` in Swift) to your application initialization. Read more: https://goo.gl/ctyzm8. 5.4.0 - [Firebase/Analytics][I-ACS023007] Firebase Analytics v.50001000 started 5.4.0 - [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r) 5.4.0 - [Firebase/Messaging][I-FCM001000] FIRMessaging Remote Notifications proxy enabled, will swizzle remote notification receiver handlers. If you'd prefer to manually integrate Firebase Messaging, add "FirebaseAppDelegateProxyEnabled" to your Info.plist, and set it to NO. Follow the instructions at: https://firebase.google.com/docs/cloud-messaging/ios/client#method_swizzling_in_firebase_messaging to ensure proper integration. Exited (sigterm) </code></pre></div> <p dir="auto">When I run <code class="notranslate">flutter run --verbose</code> this is the tail</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[+1537 ms] Updating files [ +116 ms] DevFS sync failed. Lost connection to device: SocketException: OS Error: Connection reset by peer, errno = 54, address = 127.0.0.1, port = 57043 [ ] Syncing files to device Luke's iPhone... (completed) [ +1 ms] &quot;flutter run&quot; took 34,940ms. #0 throwToolExit (package:flutter_tools/src/base/common.dart:26:3) #1 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:384:7) &lt;asynchronous suspension&gt; #2 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:526:18) #3 _asyncThenWrapperHelper.&lt;anonymous closure&gt; (dart:async/runtime/libasync_patch.dart:77:64) #4 _rootRunUnary (dart:async/zone.dart:1132:38) #5 _CustomZone.runUnary (dart:async/zone.dart:1029:19) #6 _FutureListener.handleValue (dart:async/future_impl.dart:129:18) #7 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:642:45) #8 Future._propagateToListeners (dart:async/future_impl.dart:671:32) #9 Future._complete (dart:async/future_impl.dart:476:7) #10 _SyncCompleter.complete (dart:async/future_impl.dart:51:12) #11 _AsyncAwaitCompleter.complete (dart:async/runtime/libasync_patch.dart:28:18) #12 _completeOnAsyncReturn (dart:async/runtime/libasync_patch.dart:295:13) #13 RunCommand.usageValues (package:flutter_tools/src/commands/run.dart) #14 _asyncThenWrapperHelper.&lt;anonymous closure&gt; (dart:async/runtime/libasync_patch.dart:77:64) #15 _rootRunUnary (dart:async/zone.dart:1132:38) #16 _CustomZone.runUnary (dart:async/zone.dart:1029:19) #17 _FutureListener.handleValue (dart:async/future_impl.dart:129:18) #18 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:642:45) #19 Future._propagateToListeners (dart:async/future_impl.dart:671:32) #20 Future._complete (dart:async/future_impl.dart:476:7) #21 _SyncCompleter.complete (dart:async/future_impl.dart:51:12) #22 _AsyncAwaitCompleter.complete.&lt;anonymous closure&gt; (dart:async/runtime/libasync_patch.dart:33:20) #23 _rootRun (dart:async/zone.dart:1124:13) #24 _CustomZone.run (dart:async/zone.dart:1021:19) #25 _CustomZone.bindCallback.&lt;anonymous closure&gt; (dart:async/zone.dart:947:23) #26 _microtaskLoop (dart:async/schedule_microtask.dart:41:21) #27 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5) #28 _runPendingImmediateCallback (dart:isolate/runtime/libisolate_patch.dart:115:13) #29 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:172:5)"><pre class="notranslate"><code class="notranslate">[+1537 ms] Updating files [ +116 ms] DevFS sync failed. Lost connection to device: SocketException: OS Error: Connection reset by peer, errno = 54, address = 127.0.0.1, port = 57043 [ ] Syncing files to device Luke's iPhone... (completed) [ +1 ms] "flutter run" took 34,940ms. #0 throwToolExit (package:flutter_tools/src/base/common.dart:26:3) #1 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:384:7) &lt;asynchronous suspension&gt; #2 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:526:18) #3 _asyncThenWrapperHelper.&lt;anonymous closure&gt; (dart:async/runtime/libasync_patch.dart:77:64) #4 _rootRunUnary (dart:async/zone.dart:1132:38) #5 _CustomZone.runUnary (dart:async/zone.dart:1029:19) #6 _FutureListener.handleValue (dart:async/future_impl.dart:129:18) #7 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:642:45) #8 Future._propagateToListeners (dart:async/future_impl.dart:671:32) #9 Future._complete (dart:async/future_impl.dart:476:7) #10 _SyncCompleter.complete (dart:async/future_impl.dart:51:12) #11 _AsyncAwaitCompleter.complete (dart:async/runtime/libasync_patch.dart:28:18) #12 _completeOnAsyncReturn (dart:async/runtime/libasync_patch.dart:295:13) #13 RunCommand.usageValues (package:flutter_tools/src/commands/run.dart) #14 _asyncThenWrapperHelper.&lt;anonymous closure&gt; (dart:async/runtime/libasync_patch.dart:77:64) #15 _rootRunUnary (dart:async/zone.dart:1132:38) #16 _CustomZone.runUnary (dart:async/zone.dart:1029:19) #17 _FutureListener.handleValue (dart:async/future_impl.dart:129:18) #18 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:642:45) #19 Future._propagateToListeners (dart:async/future_impl.dart:671:32) #20 Future._complete (dart:async/future_impl.dart:476:7) #21 _SyncCompleter.complete (dart:async/future_impl.dart:51:12) #22 _AsyncAwaitCompleter.complete.&lt;anonymous closure&gt; (dart:async/runtime/libasync_patch.dart:33:20) #23 _rootRun (dart:async/zone.dart:1124:13) #24 _CustomZone.run (dart:async/zone.dart:1021:19) #25 _CustomZone.bindCallback.&lt;anonymous closure&gt; (dart:async/zone.dart:947:23) #26 _microtaskLoop (dart:async/schedule_microtask.dart:41:21) #27 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5) #28 _runPendingImmediateCallback (dart:isolate/runtime/libisolate_patch.dart:115:13) #29 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:172:5) </code></pre></div> <p dir="auto">Here is <code class="notranslate">flutter doctor</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Doctor summary (to see all details, run flutter doctor -v): [โœ“] Flutter (Channel dev, v1.1.4, on Mac OS X 10.13.6 17G4015, locale en-US) [โœ“] Android toolchain - develop for Android devices (Android SDK version 28.0.3) [โœ“] iOS toolchain - develop for iOS devices (Xcode 10.1) [โœ“] Android Studio (version 3.1) [โœ“] VS Code (version 1.30.1) [โœ“] Connected device (1 available) โ€ข No issues found!"><pre class="notranslate"><code class="notranslate">Doctor summary (to see all details, run flutter doctor -v): [โœ“] Flutter (Channel dev, v1.1.4, on Mac OS X 10.13.6 17G4015, locale en-US) [โœ“] Android toolchain - develop for Android devices (Android SDK version 28.0.3) [โœ“] iOS toolchain - develop for iOS devices (Xcode 10.1) [โœ“] Android Studio (version 3.1) [โœ“] VS Code (version 1.30.1) [โœ“] Connected device (1 available) โ€ข No issues found! </code></pre></div>
<h2 dir="auto">Steps to Reproduce</h2> <p dir="auto">Don't really know - was just writing my app at the time. I see a lot of these kinds of issues open, but not really sure whether mine is unique or not.</p> <h2 dir="auto">Logs</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="I/flutter (21656): โ•โ•โ•ก EXCEPTION CAUGHT BY GESTURE โ•žโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• I/flutter (21656): The following assertion was thrown while handling a gesture: I/flutter (21656): 'package:flutter/src/material/ink_well.dart': Failed assertion: line 41 pos 15: 'controller != I/flutter (21656): null': is not true. I/flutter (21656): I/flutter (21656): Either the assertion indicates an error in the framework itself, or we should provide substantially I/flutter (21656): more information in this error message to help you determine and fix the underlying cause. I/flutter (21656): In either case, please report this assertion by filing a bug on GitHub: I/flutter (21656): https://github.com/flutter/flutter/issues/new I/flutter (21656): I/flutter (21656): When the exception was thrown, this was the stack: I/flutter (21656): #2 new InteractiveInkFeature (package:flutter/src/material/ink_well.dart:41:15) I/flutter (21656): #3 new InkSplash (package:flutter/src/material/ink_splash.dart:130:8) I/flutter (21656): #4 _InkSplashFactory.create (package:flutter/src/material/ink_splash.dart:61:16) I/flutter (21656): #5 _TextFieldState._createInkFeature (package:flutter/src/material/text_field.dart:366:46) I/flutter (21656): #6 _TextFieldState._startSplash (package:flutter/src/material/text_field.dart:405:42) I/flutter (21656): #7 _TextFieldState._handleTapDown (package:flutter/src/material/text_field.dart:384:5) I/flutter (21656): #8 TapGestureRecognizer._checkDown.&lt;anonymous closure&gt; (package:flutter/src/gestures/tap.dart:142:57) I/flutter (21656): #9 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:102:24) I/flutter (21656): #10 TapGestureRecognizer._checkDown (package:flutter/src/gestures/tap.dart:142:9) I/flutter (21656): #11 TapGestureRecognizer.acceptGesture (package:flutter/src/gestures/tap.dart:121:7) I/flutter (21656): #12 GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:156:27) I/flutter (21656): #13 BindingBase&amp;GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:147:20) I/flutter (21656): #14 BindingBase&amp;GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:121:22) I/flutter (21656): #15 BindingBase&amp;GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:101:7) I/flutter (21656): #16 BindingBase&amp;GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:64:7) I/flutter (21656): #17 BindingBase&amp;GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:48:7) I/flutter (21656): #18 _invoke1 (file:///b/build/slave/Linux_Engine/build/src/flutter/lib/ui/hooks.dart:134) I/flutter (21656): #19 _dispatchPointerDataPacket (file:///b/build/slave/Linux_Engine/build/src/flutter/lib/ui/hooks.dart:91) I/flutter (21656): (elided 2 frames from class _AssertionError) I/flutter (21656): I/flutter (21656): Handler: onTapDown I/flutter (21656): Recognizer: I/flutter (21656): TapGestureRecognizer#cf498(debugOwner: GestureDetector, state: ready, finalPosition: Offset(111.6, I/flutter (21656): 333.0)) I/flutter (21656): โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•"><pre class="notranslate"><code class="notranslate">I/flutter (21656): โ•โ•โ•ก EXCEPTION CAUGHT BY GESTURE โ•žโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• I/flutter (21656): The following assertion was thrown while handling a gesture: I/flutter (21656): 'package:flutter/src/material/ink_well.dart': Failed assertion: line 41 pos 15: 'controller != I/flutter (21656): null': is not true. I/flutter (21656): I/flutter (21656): Either the assertion indicates an error in the framework itself, or we should provide substantially I/flutter (21656): more information in this error message to help you determine and fix the underlying cause. I/flutter (21656): In either case, please report this assertion by filing a bug on GitHub: I/flutter (21656): https://github.com/flutter/flutter/issues/new I/flutter (21656): I/flutter (21656): When the exception was thrown, this was the stack: I/flutter (21656): #2 new InteractiveInkFeature (package:flutter/src/material/ink_well.dart:41:15) I/flutter (21656): #3 new InkSplash (package:flutter/src/material/ink_splash.dart:130:8) I/flutter (21656): #4 _InkSplashFactory.create (package:flutter/src/material/ink_splash.dart:61:16) I/flutter (21656): #5 _TextFieldState._createInkFeature (package:flutter/src/material/text_field.dart:366:46) I/flutter (21656): #6 _TextFieldState._startSplash (package:flutter/src/material/text_field.dart:405:42) I/flutter (21656): #7 _TextFieldState._handleTapDown (package:flutter/src/material/text_field.dart:384:5) I/flutter (21656): #8 TapGestureRecognizer._checkDown.&lt;anonymous closure&gt; (package:flutter/src/gestures/tap.dart:142:57) I/flutter (21656): #9 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:102:24) I/flutter (21656): #10 TapGestureRecognizer._checkDown (package:flutter/src/gestures/tap.dart:142:9) I/flutter (21656): #11 TapGestureRecognizer.acceptGesture (package:flutter/src/gestures/tap.dart:121:7) I/flutter (21656): #12 GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:156:27) I/flutter (21656): #13 BindingBase&amp;GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:147:20) I/flutter (21656): #14 BindingBase&amp;GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:121:22) I/flutter (21656): #15 BindingBase&amp;GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:101:7) I/flutter (21656): #16 BindingBase&amp;GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:64:7) I/flutter (21656): #17 BindingBase&amp;GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:48:7) I/flutter (21656): #18 _invoke1 (file:///b/build/slave/Linux_Engine/build/src/flutter/lib/ui/hooks.dart:134) I/flutter (21656): #19 _dispatchPointerDataPacket (file:///b/build/slave/Linux_Engine/build/src/flutter/lib/ui/hooks.dart:91) I/flutter (21656): (elided 2 frames from class _AssertionError) I/flutter (21656): I/flutter (21656): Handler: onTapDown I/flutter (21656): Recognizer: I/flutter (21656): TapGestureRecognizer#cf498(debugOwner: GestureDetector, state: ready, finalPosition: Offset(111.6, I/flutter (21656): 333.0)) I/flutter (21656): โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• </code></pre></div> <h2 dir="auto">Flutter Doctor</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[โˆš] Flutter (on Microsoft Windows [Version 10.0.16299.192], locale en-AU, channel master) โ€ข Flutter version 0.0.21-pre.299 at C:\Users\kent\Repository\flutter โ€ข Framework revision 84580b545a (6 days ago), 2018-01-24 13:16:23 -0800 โ€ข Engine revision d715860925 โ€ข Tools Dart version 2.0.0-dev.16.0 โ€ข Engine Dart version 2.0.0-edge.8d9d68751a505426eb5f59a9d29f103fde6bd474 [โˆš] Android toolchain - develop for Android devices (Android SDK 27.0.3) โ€ข Android SDK at C:\Android\android-sdk โ€ข Android NDK location not configured (optional; useful for native profiling support) โ€ข Platform android-27, build-tools 27.0.3 โ€ข ANDROID_HOME = C:\Android\android-sdk โ€ข 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) [โˆš] 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 Community Edition (version 2017.3) โ€ข Flutter plugin version 20.0.3 โ€ข Dart plugin version 173.4127.31 [โˆš] Connected devices โ€ข Pixel โ€ข FA6AF0303979 โ€ข android-arm โ€ข Android 8.1.0 (API 27)"><pre class="notranslate"><code class="notranslate">[โˆš] Flutter (on Microsoft Windows [Version 10.0.16299.192], locale en-AU, channel master) โ€ข Flutter version 0.0.21-pre.299 at C:\Users\kent\Repository\flutter โ€ข Framework revision 84580b545a (6 days ago), 2018-01-24 13:16:23 -0800 โ€ข Engine revision d715860925 โ€ข Tools Dart version 2.0.0-dev.16.0 โ€ข Engine Dart version 2.0.0-edge.8d9d68751a505426eb5f59a9d29f103fde6bd474 [โˆš] Android toolchain - develop for Android devices (Android SDK 27.0.3) โ€ข Android SDK at C:\Android\android-sdk โ€ข Android NDK location not configured (optional; useful for native profiling support) โ€ข Platform android-27, build-tools 27.0.3 โ€ข ANDROID_HOME = C:\Android\android-sdk โ€ข 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) [โˆš] 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 Community Edition (version 2017.3) โ€ข Flutter plugin version 20.0.3 โ€ข Dart plugin version 173.4127.31 [โˆš] Connected devices โ€ข Pixel โ€ข FA6AF0303979 โ€ข android-arm โ€ข Android 8.1.0 (API 27) </code></pre></div>
0
<p dir="auto">I want to open all my text files with Atom, but I couldn't find a good way to do that, that's not breaking with every Atom update, and I don't get Atom icons.</p> <p dir="auto">Did I do something wrong? Is there a way to make the existing "Open with Atom" right-click menu entry "stick"?<br> Please tell me there's a more streamlined way to achieve correct file associations on Windows!</p> <p dir="auto">Expected behaviour:<br> Either Atom offers on installation to associate with files typically edited with a text editor, or offers a setting where you can do that post-installation.<br> Failing that, the user is given a clear method of associating desired file types with Atom, e.g. using the "open with" dialog like other editors allow.</p> <p dir="auto">Observed behaviour:</p> <ol dir="auto"> <li>Atom is not associated with any files, and there's no setting to change that. There is a context menu entry, but that requires constant right-clicking for every file you want to open in Atom, so is not really desirable.</li> <li>OK, so I thought I'd manually change the "open With" choice for every file type to a new default setting. (Right click a txt file - open with - set new default application)<br> Puzzlingly, Atom is not in the list of proposed applications. O_o</li> <li>Nevermind, let's hit "further applications" and select from there. Huh, Atom is not in C:\Program Files, either, so that didn't work.</li> <li>OK, then let's select the installed desktop link (or start menu entry). Hooray, I could select it. Oh, it just flickers a terminal at you for a split second. Turns out, this just calls some update.exe, and something gets messed up (probably command args?).</li> <li>After some googling, I found out that Atom gets installed in AppData somewhere, so let's search the exe there. Erm, the exe is in a version-specific folder, so I'd have to re-associate all my file bindings after every update. No, thank you :-(</li> <li>the cmd file in the bin directory is an option, but to select that you have to <ul dir="auto"> <li>go to the location in a separate Explorer window (to display hidden items to be able to see AppData, which you can't do in the file selection dialog)</li> <li>copy the path to bin</li> <li>navigate the open with dialog until you get to the point where you can select arbitrary files</li> <li>paste the path</li> <li>select atom.cmd</li> </ul> </li> <li>Hooray, now I can open files with Atom all the time, but: <ul dir="auto"> <li>I got no way to select the Atom icon, I got an empty white rectangle.</li> <li>It flickers the terminal for a split second, which interestingly does not happen when starting atom via the start menu. Annoying, but not vital.</li> <li>It says "atom.cmd" in the relevant dialogs/menus, which is not exactly beautiful/elegant.</li> <li>I can't imagine a normal user to go through this dance to do this, compared to the experience in other editors like Notepad++.</li> </ul> </li> </ol> <p dir="auto">Versions: Windows 8.1, Atom 198; dialog strings translated from German, so may not be identical to an english windows.</p>
<p dir="auto">Currently it is not so easy to assign atom as default editor on windows eg for all .css files</p> <p dir="auto">the path to atom.exe is changed with every update.</p> <p dir="auto">no exe in C:\Users\hebbet\AppData\Local\atom<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1423115/5648585/df87f05a-968f-11e4-87bc-ae2b5b6f9280.png"><img src="https://cloud.githubusercontent.com/assets/1423115/5648585/df87f05a-968f-11e4-87bc-ae2b5b6f9280.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Chrome has eg an chrome.exe in:<br> C:\Users\username\AppData\Local\Google\Chrome SxS\Application which starts chrome with the currect folder.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1423115/5648575/c9bdcde4-968f-11e4-9f63-42fc08e3f0b5.png"><img src="https://cloud.githubusercontent.com/assets/1423115/5648575/c9bdcde4-968f-11e4-9f63-42fc08e3f0b5.png" alt="image" style="max-width: 100%;"></a></p>
1
<p dir="auto">If you click once, and all checks pass green, then it should auto submit. As it is, you're clicking once to check all tasks, clicking again to initiate the submit window, waiting for the popup animation, then clicking "Submit", waiting for animations, then loading to next lesson. 3 clicks and a 4-6 second delay between each lesson. On the HTML section, that's 4.6-6.9 minutes of completely dead time, and 207 mouse clicks instead of 69. I suppose I could try to fix it myself, but I just started the course :P.</p>
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-use-css-selectors-to-style-elements" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-use-css-selectors-to-style-elements</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p> <ol dir="auto"> <li>Load the page (it should have the previous lesson's code still in it)</li> <li>Delete the style from the h2 element</li> <li>Add the style block</li> <li>Add h2 { color: red; }</li> <li>Click either run or Ctrl + Enter</li> </ol> <p dir="auto">It will show you have completed it correctly, but the pop-up does not show to allow you to progress to the next lesson.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/4142474/9560040/2123680c-4dc7-11e5-9a93-61c26e477d04.png"><img src="https://cloud.githubusercontent.com/assets/4142474/9560040/2123680c-4dc7-11e5-9a93-61c26e477d04.png" alt="image" style="max-width: 100%;"></a></p>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> 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: windows10</li> <li>Java version: 1.8<br> ๆˆ‘ไฝฟ็”จ็š„ๆ˜ฏdubbo็š„ๆณจ่งฃ@DubboComponentScan(basePackages = "com.td.service")๏ผŒๅœจspringbootไธญไฝฟ็”จ<br> ๆˆ‘ๅฐ†dubboไปŽ2.7.3ๅ‡็บงๅˆฐ2.7.6๏ผŒไปปไฝ•ไปฃ็ ้ƒฝไธไฟฎๆ”น็š„ๆƒ…ๅ†ตไธ‹๏ผŒ2.7.3่ƒฝๆญฃๅธธๅฏๅŠจไฝฟ็”จ๏ผŒ2.7.6ไผšๆŠฅไปฅไธ‹ๅผ‚ๅธธ<br> org.springframework.beans.factory.support.BeanDefinitionOverrideException: Invalid bean definition with name 'dubboBootstrapApplicationListener' defined in null: Cannot register bean definition [Generic bean: class [org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] for bean 'dubboBootstrapApplicationListener': There is already [Root bean: class [org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] bound.<br> at org.springframework.beans.factory.support.DefaultListableBeanFactory.registerBeanDefinition(DefaultListableBeanFactory.java:891) ~[spring-beans-5.1.7.RELEASE.jar:5.1.7.RELEASE]<br> at org.springframework.beans.factory.support.BeanDefinitionReaderUtils.registerBeanDefinition(BeanDefinitionReaderUtils.java:166) ~[spring-beans-5.1.7.RELEASE.jar:5.1.7.RELEASE]<br> at org.springframework.context.annotation.AnnotatedBeanDefinitionReader.doRegisterBean(AnnotatedBeanDefinitionReader.java:246) ~[spring-context-5.1.7.RELEASE.jar:5.1.7.RELEASE]<br> at org.springframework.context.annotation.AnnotatedBeanDefinitionReader.registerBean(AnnotatedBeanDefinitionReader.java:145) ~[spring-context-5.1.7.RELEASE.jar:5.1.7.RELEASE]<br> at org.springframework.context.annotation.AnnotatedBeanDefinitionReader.register(AnnotatedBeanDefinitionReader.java:135) ~[spring-context-5.1.7.RELEASE.jar:5.1.7.RELEASE]<br> at com.alibaba.spring.util.AnnotatedBeanDefinitionRegistryUtils.registerBeans(AnnotatedBeanDefinitionRegistryUtils.java:112) ~[spring-context-support-1.0.6.jar:na]<br> at org.apache.dubbo.config.spring.beans.factory.annotation.ServiceAnnotationBeanPostProcessor.postProcessBeanDefinitionRegistry(ServiceAnnotationBeanPostProcessor.java:113) ~[dubbo-2.7.6.jar:2.7.6]<br> at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:275) ~[spring-context-5.1.7.RELEASE.jar:5.1.7.RELEASE]<br> at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:125) ~[spring-context-5.1.7.RELEASE.jar:5.1.7.RELEASE]<br> at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:705) ~[spring-context-5.1.7.RELEASE.jar:5.1.7.RELEASE]<br> at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:531) ~[spring-context-5.1.7.RELEASE.jar:5.1.7.RELEASE]<br> at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775) ~[spring-boot-2.1.5.RELEASE.jar:2.1.5.RELEASE]<br> at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) ~[spring-boot-2.1.5.RELEASE.jar:2.1.5.RELEASE]<br> at org.springframework.boot.SpringApplication.run(SpringApplication.java:316) ~[spring-boot-2.1.5.RELEASE.jar:2.1.5.RELEASE]<br> at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260) ~[spring-boot-2.1.5.RELEASE.jar:2.1.5.RELEASE]<br> at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248) ~[spring-boot-2.1.5.RELEASE.jar:2.1.5.RELEASE]<br> at com.td.DZPKLauncher.main(DZPKLauncher.java:30) ~[classes/:na]</li> </ul> <p dir="auto">้œ€่ฆๆˆ‘ๆทปๅŠ ๅ…่ฎธ้‡ๅคๅฎšไน‰่ฆ†็›–็š„้…็ฝฎ๏ผš<br> spring:<br> main:<br> allow-bean-definition-overriding: true<br> ๆ‰่ƒฝๅฏๅŠจ</p>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.3</li> <li>Operating System version: mac</li> <li>Java version: jdk8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li> <p dir="auto">Configure the nacos endpoint address: dev.nacos.com:8080</p> </li> <li> <p dir="auto">The dubbo configuration resolves the port error. No port number is parsed and passed to nacos for initialization.</p> </li> <li> <p dir="auto">้…็ฝฎnacos endpointๅœฐๅ€๏ผšdev.nacos.com:8080</p> </li> <li> <p dir="auto">dubbo ้…็ฝฎ่งฃๆž็ซฏๅฃ้”™่ฏฏใ€‚ๆฒกๆœ‰ๆœ‰็ซฏๅฃๅท่งฃๆžๅ‡บๆฅไผ ็ป™nacos่ฟ›่กŒๅˆๅง‹ๅŒ–</p> </li> </ol> <p dir="auto">code๏ผš<br> </p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/apache/dubbo/blob/7d564e75fe776681e9e3c0a6f6bd1c4ad1ea51af/dubbo-registry/dubbo-registry-nacos/src/main/java/org/apache/dubbo/registry/nacos/NacosRegistryFactory.java#L95">dubbo/dubbo-registry/dubbo-registry-nacos/src/main/java/org/apache/dubbo/registry/nacos/NacosRegistryFactory.java</a> </p> <p class="mb-0 color-fg-muted"> Line 95 in <a data-pjax="true" class="commit-tease-sha" href="/apache/dubbo/commit/7d564e75fe776681e9e3c0a6f6bd1c4ad1ea51af">7d564e7</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="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-en">putPropertyIfAbsent</span>(<span class="pl-s1">url</span>, <span class="pl-s1">properties</span>, <span class="pl-c1">ENDPOINT</span>); </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">Normal resolution endpoint port</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">Failed to parse endpoint port</p>
0