text1
stringlengths 0
536k
| text2
stringlengths 0
536k
| label
int64 0
1
|
---|---|---|
<p dir="auto">After i next build and next start on my server, no problem if i open by IP server to show website, but i open by web url have this error.</p>
<p dir="auto">Sory if a duplicated issues. I can't to fixed.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Uncaught TypeError: c.default.oneOfType is not a function
at Object.<anonymous> (app.js:1)
at n (app.js:1)
at Object.<anonymous> (app.js:7)
at n (app.js:1)
at Object.<anonymous> (app.js:9)
at n (app.js:1)
at Object.<anonymous> (app.js:154)
at n (app.js:1)
at Object.<anonymous> (app.js:66)
at n (app.js:1)"><pre class="notranslate"><code class="notranslate">Uncaught TypeError: c.default.oneOfType is not a function
at Object.<anonymous> (app.js:1)
at n (app.js:1)
at Object.<anonymous> (app.js:7)
at n (app.js:1)
at Object.<anonymous> (app.js:9)
at n (app.js:1)
at Object.<anonymous> (app.js:154)
at n (app.js:1)
at Object.<anonymous> (app.js:66)
at n (app.js:1)
</code></pre></div>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>next</td>
<td>3.0.2</td>
</tr>
<tr>
<td>node</td>
<td>8.1.1</td>
</tr>
<tr>
<td>OS</td>
<td>macOS</td>
</tr>
<tr>
<td>browser</td>
<td>Chrome</td>
</tr>
</tbody>
</table> | <h1 dir="auto">Feature Request</h1>
<h2 dir="auto">Describe the use case</h2>
<p dir="auto">I have a use case where I need all of the following requests to go to the same function:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="POST pages/api/users
PATCH pages/api/users/1
DELETE pages/api/users/1"><pre class="notranslate"><code class="notranslate">POST pages/api/users
PATCH pages/api/users/1
DELETE pages/api/users/1
</code></pre></div>
<p dir="auto">After reading the docs, I was sure I could catch all of those using this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pages/api/users/[...slug].js"><pre class="notranslate"><code class="notranslate">pages/api/users/[...slug].js
</code></pre></div>
<p dir="auto">However, this does not catch <code class="notranslate">POST pages/api/users</code> without an explicit <code class="notranslate">/index.js</code>.</p>
<h2 dir="auto">To Reproduce</h2>
<p dir="auto">Try the above scenario (even with GET requests)</p>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">This route:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pages/api/users/[...slug].js"><pre class="notranslate"><code class="notranslate">pages/api/users/[...slug].js
</code></pre></div>
<p dir="auto">Catches all of these:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="POST pages/api/users
PATCH pages/api/users/1
DELETE pages/api/users/1"><pre class="notranslate"><code class="notranslate">POST pages/api/users
PATCH pages/api/users/1
DELETE pages/api/users/1
</code></pre></div>
<h2 dir="auto">Screenshots</h2>
<p dir="auto">N/A</p>
<h2 dir="auto">System information</h2>
<p dir="auto">N/A</p>
<h2 dir="auto">Additional context</h2>
<p dir="auto">Next.js 9.2.2-canary.15</p> | 0 |
<h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV => 4.1.1</li>
<li>Operating System / Platform => Android/ Lenovo Z5</li>
<li>Compiler => Cmake</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">I have a caffe model of mtcnn and a caffe model of sphereface. I have built a pipeline that takes an image and produces an embedding of the face. Pipeline is written in c++. On my CPU i5 processor opencv dnn is loading the models and is taking 100 milliseconds for processing. Exactly same code when i deploy on android takes around 20 times more time for execution. I have tried compiling opencv on android using MKL and openblas but i found no different at all in processing speed. Here is my cmake configuration:</p>
<p dir="auto">"-DBUILD_opencv_world=ON -DBUILD_opencv_gapi=OFF -DWITH_NVCUVID=OFF " +<br>
"-DWITH_CUBLAS=ON -DWITH_MKL=ON -DMKL_USE_MULTITHREAD=ON -DMKL_WITH_TBB=ON -DWITH_TBB=ON " +<br>
"-DINSTALL_TESTS=ON -DINSTALL_C_EXAMPLES=ON -DBUILD_EXAMPLES=ON -DWITH_OPENGL=ON" +<br>
"-DOPENCV_ENABLE_NONFREE=ON -DWITH_NVCUVID=ON -DWITH_MFX=ON"</p>
<h5 dir="auto">Steps to reproduce</h5>
<p dir="auto">Simply take any caffe model and run it on CPU and then use the same code android. Android processing will be a lot slower. I am expecting this to be slow on android but it is absurdly slower in my case. I can expect 4 to 5 times slower performance but 20 times is just not acceptable.</p> | <h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV => 4.2.0</li>
<li>Operating System / Platform => windows 10</li>
<li>Compiler => MSVC</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">I am totally new to OpenCV and I've learnt C++ just to start messing with OpenCV, even though I'm new to the language and the library I've done my reading and think I have a handle on the language, the library however is a different story. Anyways, on trying out the tutorial code from the website I noticed a ton of warnings in visual studio over simple image I/O. I was wondering if this is a normal occurrence and sought an answer on stackoverflow, the general consensus was to raise the issues here.</p>
<h5 dir="auto">Steps to reproduce</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#include<opencv2/opencv.hpp>
#include<iostream>
int main() {
std::string image_name("images/Screenshot_296.png");
cv::Mat image = cv::imread(image_name, cv::IMREAD_COLOR);
cv::namedWindow("Window", cv::WINDOW_AUTOSIZE);
cv::imshow("Window", image);
cv::waitKey(0);
return 0;
}"><pre class="notranslate"><code class="notranslate">#include<opencv2/opencv.hpp>
#include<iostream>
int main() {
std::string image_name("images/Screenshot_296.png");
cv::Mat image = cv::imread(image_name, cv::IMREAD_COLOR);
cv::namedWindow("Window", cv::WINDOW_AUTOSIZE);
cv::imshow("Window", image);
cv::waitKey(0);
return 0;
}
</code></pre></div>
<p dir="auto">Errors in MSVC:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Severity Code Description Project File Line Suppression State
Warning C6385 Reading invalid data from 'this->val': the readable size is '24' bytes, but 'i' bytes may be read. OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\matx.hpp 1124
Warning C6385 Reading invalid data from 'this->val': the readable size is '12' bytes, but 'i' bytes may be read. OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\matx.hpp 1124
Warning C6385 Reading invalid data from 'this->val': the readable size is '16' bytes, but 'i' bytes may be read. OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\matx.hpp 1124
Warning C6385 Reading invalid data from 'this->val': the readable size is '32' bytes, but 'i' bytes may be read. OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\matx.hpp 1124
Warning C6385 Reading invalid data from 'this->val': the readable size is '8' bytes, but 'i' bytes may be read. OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\matx.hpp 1124
Warning C6297 Arithmetic overflow: 32-bit value is shifted, then cast to 64-bit value. Results might not be an expected value. OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\cuda.inl.hpp 301
Warning C6297 Arithmetic overflow: 32-bit value is shifted, then cast to 64-bit value. Results might not be an expected value. OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\cuda.inl.hpp 482
Warning C6297 Arithmetic overflow: 32-bit value is shifted, then cast to 64-bit value. Results might not be an expected value. OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\mat.inl.hpp 581
Warning C6297 Arithmetic overflow: 32-bit value is shifted, then cast to 64-bit value. Results might not be an expected value. OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\mat.inl.hpp 610
Warning C6297 Arithmetic overflow: 32-bit value is shifted, then cast to 64-bit value. Results might not be an expected value. OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\mat.inl.hpp 2245
Warning C6297 Arithmetic overflow: 32-bit value is shifted, then cast to 64-bit value. Results might not be an expected value. OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\utility.hpp 575
Warning C6294 Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed. OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\matx.hpp 559
Warning C6294 Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed. OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\matx.hpp 567
Warning C6294 Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed. OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\matx.hpp 575
Warning C6269 Possibly incorrect order of operations: dereference ignored. OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\flann\any.h 97
Warning C6201 Index '2' is out of valid index range '0' to '1' for possibly stack allocated buffer 'this->val'. OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\matx.hpp 559
Warning C6201 Index '3' is out of valid index range '0' to '2' for possibly stack allocated buffer 'this->val'. OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\matx.hpp 567
Warning C6201 Index '4' is out of valid index range '0' to '3' for possibly stack allocated buffer 'this->val'. OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\matx.hpp 575
Warning C6011 Dereferencing NULL pointer 'data+step.p[0]*i0'. OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\mat.inl.hpp 1181
Warning C6011 Dereferencing NULL pointer 'this->data+this->step.p[0]*i0'. OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\mat.inl.hpp 1943
Warning C6011 Dereferencing NULL pointer 'm'. See line 2686 for an earlier location where this can occur OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\mat.inl.hpp 2689
Warning C6011 Dereferencing NULL pointer 'm'. See line 2700 for an earlier location where this can occur OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\mat.inl.hpp 2703
Warning C26812 The enum type 'cv::cuda::HostMem::AllocType' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\cuda.inl.hpp 385
Warning C26812 The enum type 'cv::cuda::FeatureSet' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\cuda.inl.hpp 605
Warning C26812 The enum type 'cv::UMatUsageFlags' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\mat.inl.hpp 3648
Warning C26812 The enum type 'cvflann::flann_algorithm_t' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\flann\kdtree_index.h 59
Warning C26812 The enum type 'cvflann::flann_centers_init_t' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\flann\kmeans_index.h 59
Warning C26812 The enum type 'cvflann::lsh::LshTable<unsigned char>::SpeedLevel' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\flann\lsh_table.h 279
Warning C26812 The enum type 'cvflann::flann_datatype_t' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\flann\saving.h 51
Warning C26812 The enum type 'cv::DetectionBasedTracker::ObjectStatus' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\objdetect\detection_based_tracker.hpp 154
Warning C26812 The enum type 'cv::detail::WaveCorrectKind' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\stitching.hpp 192
Warning C26812 The enum type 'cv::detail::DpSeamFinder::CostFunction' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\stitching\detail\seam_finders.hpp 125
Warning C26812 The enum type 'cv::videostab::MotionModel' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\videostab\motion_core.hpp 102
Warning C26495 Variable 'cv::float16_t::w' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\cvdef.h 741
Warning C26495 Variable 'cv::debug_build_guard::_InputArray::flags' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\mat.inl.hpp 116
Warning C26495 Variable 'cv::debug_build_guard::_InputArray::obj' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\mat.inl.hpp 116
Warning C26495 Variable 'cv::MatStep::buf' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\mat.inl.hpp 1554
Warning C26495 Variable 'cv::MatStep::buf' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\mat.inl.hpp 1560
Warning C26495 Variable 'cv::Matx<double,3,1>::val' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\matx.hpp 542
Warning C26495 Variable 'cv::Matx<double,4,1>::val' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\matx.hpp 542
Warning C26495 Variable 'cv::Matx<float,3,1>::val' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\matx.hpp 542
Warning C26495 Variable 'cv::Matx<double,3,1>::val' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\matx.hpp 668
Warning C26495 Variable 'cv::Matx<double,4,1>::val' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\matx.hpp 668
Warning C26495 Variable 'cv::Matx<float,3,1>::val' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\matx.hpp 668
Warning C26495 Variable 'cv::Matx<double,4,1>::val' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\matx.hpp 858
Warning C26495 Variable 'cv::AutoBuffer<__int64,1>::buf' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\utility.hpp 974
Warning C26495 Variable 'cv::AutoBuffer<__int64,1>::ptr' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\utility.hpp 974
Warning C26495 Variable 'cv::AutoBuffer<double,1>::buf' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\utility.hpp 974
Warning C26495 Variable 'cv::AutoBuffer<double,1>::ptr' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\utility.hpp 974
Warning C26495 Variable 'cv::dnn::experimental_dnn_34_v15::DictValue::<unnamed-tag>::pd' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\dnn\dnn.inl.hpp 239
Warning C26495 Variable 'cv::dnn::experimental_dnn_34_v15::DictValue::<unnamed-tag>::pi' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\dnn\dnn.inl.hpp 239
Warning C26495 Variable 'cv::dnn::experimental_dnn_34_v15::DictValue::<unnamed-tag>::ps' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\dnn\dnn.inl.hpp 239
Warning C26495 Variable 'cv::dnn::experimental_dnn_34_v15::DictValue::<unnamed-tag>::pv' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\dnn\dnn.inl.hpp 239
Warning C26495 Variable 'cvflann::lsh::LshStats::bucket_size_max_' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\flann\lsh_table.h 96
Warning C26495 Variable 'cvflann::lsh::LshStats::bucket_size_mean_' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\flann\lsh_table.h 96
Warning C26495 Variable 'cvflann::lsh::LshStats::bucket_size_median_' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\flann\lsh_table.h 96
Warning C26495 Variable 'cvflann::lsh::LshStats::bucket_size_min_' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\flann\lsh_table.h 96
Warning C26495 Variable 'cvflann::lsh::LshStats::bucket_size_std_dev' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\flann\lsh_table.h 96
Warning C26495 Variable 'cvflann::lsh::LshStats::n_buckets_' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\flann\lsh_table.h 96
Warning C26495 Variable 'cvflann::UntypedMatrix::type' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\flann\matrix.h 97
Warning C26495 Variable 'cv::detail::RotationWarperBase<cv::detail::CompressedRectilinearPortraitProjector>::projector_' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\stitching\detail\warpers.hpp 169
Warning C26495 Variable 'cv::detail::RotationWarperBase<cv::detail::CompressedRectilinearProjector>::projector_' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\stitching\detail\warpers.hpp 169
Warning C26495 Variable 'cv::detail::RotationWarperBase<cv::detail::PaniniPortraitProjector>::projector_' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\stitching\detail\warpers.hpp 169
Warning C26495 Variable 'cv::detail::RotationWarperBase<cv::detail::PaniniProjector>::projector_' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\stitching\detail\warpers.hpp 169
Warning C26451 Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\cuda.inl.hpp 301
Warning C26451 Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\cuda.inl.hpp 301
Warning C26451 Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\cuda.inl.hpp 482
Warning C26451 Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\cuda.inl.hpp 482
Warning C26451 Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\mat.inl.hpp 581
Warning C26451 Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\mat.inl.hpp 581
Warning C26451 Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\mat.inl.hpp 610
Warning C26451 Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\mat.inl.hpp 610
Warning C26451 Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\mat.inl.hpp 2245
Warning C26451 Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\mat.inl.hpp 2245
Warning C26451 Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\utility.hpp 575
Warning C26451 Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\utility.hpp 575
Warning C26451 Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\flann\lsh_table.h 359
Warning C26451 Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\flann\lsh_table.h 360
Warning C26451 Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\imgproc.hpp 4908
Warning C26451 Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\imgproc.hpp 4925
Warning C26451 Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\objdetect.hpp 127
Warning C26439 This kind of function may not throw. Declare it 'noexcept' (f.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\async.hpp 73
Warning C26439 This kind of function may not throw. Declare it 'noexcept' (f.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\mat.inl.hpp 1419
Warning C26439 This kind of function may not throw. Declare it 'noexcept' (f.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\mat.inl.hpp 1444
Warning C26439 This kind of function may not throw. Declare it 'noexcept' (f.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\mat.inl.hpp 3937
Warning C26439 This kind of function may not throw. Declare it 'noexcept' (f.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\mat.inl.hpp 3961
Warning C26439 This kind of function may not throw. Declare it 'noexcept' (f.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\ptr.inl.hpp 258"><pre class="notranslate"><code class="notranslate">Severity Code Description Project File Line Suppression State
Warning C6385 Reading invalid data from 'this->val': the readable size is '24' bytes, but 'i' bytes may be read. OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\matx.hpp 1124
Warning C6385 Reading invalid data from 'this->val': the readable size is '12' bytes, but 'i' bytes may be read. OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\matx.hpp 1124
Warning C6385 Reading invalid data from 'this->val': the readable size is '16' bytes, but 'i' bytes may be read. OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\matx.hpp 1124
Warning C6385 Reading invalid data from 'this->val': the readable size is '32' bytes, but 'i' bytes may be read. OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\matx.hpp 1124
Warning C6385 Reading invalid data from 'this->val': the readable size is '8' bytes, but 'i' bytes may be read. OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\matx.hpp 1124
Warning C6297 Arithmetic overflow: 32-bit value is shifted, then cast to 64-bit value. Results might not be an expected value. OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\cuda.inl.hpp 301
Warning C6297 Arithmetic overflow: 32-bit value is shifted, then cast to 64-bit value. Results might not be an expected value. OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\cuda.inl.hpp 482
Warning C6297 Arithmetic overflow: 32-bit value is shifted, then cast to 64-bit value. Results might not be an expected value. OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\mat.inl.hpp 581
Warning C6297 Arithmetic overflow: 32-bit value is shifted, then cast to 64-bit value. Results might not be an expected value. OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\mat.inl.hpp 610
Warning C6297 Arithmetic overflow: 32-bit value is shifted, then cast to 64-bit value. Results might not be an expected value. OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\mat.inl.hpp 2245
Warning C6297 Arithmetic overflow: 32-bit value is shifted, then cast to 64-bit value. Results might not be an expected value. OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\utility.hpp 575
Warning C6294 Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed. OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\matx.hpp 559
Warning C6294 Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed. OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\matx.hpp 567
Warning C6294 Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed. OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\matx.hpp 575
Warning C6269 Possibly incorrect order of operations: dereference ignored. OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\flann\any.h 97
Warning C6201 Index '2' is out of valid index range '0' to '1' for possibly stack allocated buffer 'this->val'. OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\matx.hpp 559
Warning C6201 Index '3' is out of valid index range '0' to '2' for possibly stack allocated buffer 'this->val'. OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\matx.hpp 567
Warning C6201 Index '4' is out of valid index range '0' to '3' for possibly stack allocated buffer 'this->val'. OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\matx.hpp 575
Warning C6011 Dereferencing NULL pointer 'data+step.p[0]*i0'. OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\mat.inl.hpp 1181
Warning C6011 Dereferencing NULL pointer 'this->data+this->step.p[0]*i0'. OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\mat.inl.hpp 1943
Warning C6011 Dereferencing NULL pointer 'm'. See line 2686 for an earlier location where this can occur OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\mat.inl.hpp 2689
Warning C6011 Dereferencing NULL pointer 'm'. See line 2700 for an earlier location where this can occur OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\mat.inl.hpp 2703
Warning C26812 The enum type 'cv::cuda::HostMem::AllocType' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\cuda.inl.hpp 385
Warning C26812 The enum type 'cv::cuda::FeatureSet' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\cuda.inl.hpp 605
Warning C26812 The enum type 'cv::UMatUsageFlags' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\mat.inl.hpp 3648
Warning C26812 The enum type 'cvflann::flann_algorithm_t' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\flann\kdtree_index.h 59
Warning C26812 The enum type 'cvflann::flann_centers_init_t' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\flann\kmeans_index.h 59
Warning C26812 The enum type 'cvflann::lsh::LshTable<unsigned char>::SpeedLevel' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\flann\lsh_table.h 279
Warning C26812 The enum type 'cvflann::flann_datatype_t' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\flann\saving.h 51
Warning C26812 The enum type 'cv::DetectionBasedTracker::ObjectStatus' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\objdetect\detection_based_tracker.hpp 154
Warning C26812 The enum type 'cv::detail::WaveCorrectKind' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\stitching.hpp 192
Warning C26812 The enum type 'cv::detail::DpSeamFinder::CostFunction' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\stitching\detail\seam_finders.hpp 125
Warning C26812 The enum type 'cv::videostab::MotionModel' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\videostab\motion_core.hpp 102
Warning C26495 Variable 'cv::float16_t::w' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\cvdef.h 741
Warning C26495 Variable 'cv::debug_build_guard::_InputArray::flags' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\mat.inl.hpp 116
Warning C26495 Variable 'cv::debug_build_guard::_InputArray::obj' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\mat.inl.hpp 116
Warning C26495 Variable 'cv::MatStep::buf' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\mat.inl.hpp 1554
Warning C26495 Variable 'cv::MatStep::buf' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\mat.inl.hpp 1560
Warning C26495 Variable 'cv::Matx<double,3,1>::val' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\matx.hpp 542
Warning C26495 Variable 'cv::Matx<double,4,1>::val' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\matx.hpp 542
Warning C26495 Variable 'cv::Matx<float,3,1>::val' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\matx.hpp 542
Warning C26495 Variable 'cv::Matx<double,3,1>::val' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\matx.hpp 668
Warning C26495 Variable 'cv::Matx<double,4,1>::val' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\matx.hpp 668
Warning C26495 Variable 'cv::Matx<float,3,1>::val' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\matx.hpp 668
Warning C26495 Variable 'cv::Matx<double,4,1>::val' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\matx.hpp 858
Warning C26495 Variable 'cv::AutoBuffer<__int64,1>::buf' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\utility.hpp 974
Warning C26495 Variable 'cv::AutoBuffer<__int64,1>::ptr' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\utility.hpp 974
Warning C26495 Variable 'cv::AutoBuffer<double,1>::buf' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\utility.hpp 974
Warning C26495 Variable 'cv::AutoBuffer<double,1>::ptr' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\utility.hpp 974
Warning C26495 Variable 'cv::dnn::experimental_dnn_34_v15::DictValue::<unnamed-tag>::pd' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\dnn\dnn.inl.hpp 239
Warning C26495 Variable 'cv::dnn::experimental_dnn_34_v15::DictValue::<unnamed-tag>::pi' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\dnn\dnn.inl.hpp 239
Warning C26495 Variable 'cv::dnn::experimental_dnn_34_v15::DictValue::<unnamed-tag>::ps' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\dnn\dnn.inl.hpp 239
Warning C26495 Variable 'cv::dnn::experimental_dnn_34_v15::DictValue::<unnamed-tag>::pv' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\dnn\dnn.inl.hpp 239
Warning C26495 Variable 'cvflann::lsh::LshStats::bucket_size_max_' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\flann\lsh_table.h 96
Warning C26495 Variable 'cvflann::lsh::LshStats::bucket_size_mean_' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\flann\lsh_table.h 96
Warning C26495 Variable 'cvflann::lsh::LshStats::bucket_size_median_' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\flann\lsh_table.h 96
Warning C26495 Variable 'cvflann::lsh::LshStats::bucket_size_min_' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\flann\lsh_table.h 96
Warning C26495 Variable 'cvflann::lsh::LshStats::bucket_size_std_dev' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\flann\lsh_table.h 96
Warning C26495 Variable 'cvflann::lsh::LshStats::n_buckets_' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\flann\lsh_table.h 96
Warning C26495 Variable 'cvflann::UntypedMatrix::type' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\flann\matrix.h 97
Warning C26495 Variable 'cv::detail::RotationWarperBase<cv::detail::CompressedRectilinearPortraitProjector>::projector_' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\stitching\detail\warpers.hpp 169
Warning C26495 Variable 'cv::detail::RotationWarperBase<cv::detail::CompressedRectilinearProjector>::projector_' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\stitching\detail\warpers.hpp 169
Warning C26495 Variable 'cv::detail::RotationWarperBase<cv::detail::PaniniPortraitProjector>::projector_' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\stitching\detail\warpers.hpp 169
Warning C26495 Variable 'cv::detail::RotationWarperBase<cv::detail::PaniniProjector>::projector_' is uninitialized. Always initialize a member variable (type.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\stitching\detail\warpers.hpp 169
Warning C26451 Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\cuda.inl.hpp 301
Warning C26451 Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\cuda.inl.hpp 301
Warning C26451 Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\cuda.inl.hpp 482
Warning C26451 Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\cuda.inl.hpp 482
Warning C26451 Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\mat.inl.hpp 581
Warning C26451 Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\mat.inl.hpp 581
Warning C26451 Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\mat.inl.hpp 610
Warning C26451 Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\mat.inl.hpp 610
Warning C26451 Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\mat.inl.hpp 2245
Warning C26451 Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\mat.inl.hpp 2245
Warning C26451 Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\utility.hpp 575
Warning C26451 Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\utility.hpp 575
Warning C26451 Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\flann\lsh_table.h 359
Warning C26451 Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\flann\lsh_table.h 360
Warning C26451 Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\imgproc.hpp 4908
Warning C26451 Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\imgproc.hpp 4925
Warning C26451 Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\objdetect.hpp 127
Warning C26439 This kind of function may not throw. Declare it 'noexcept' (f.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\async.hpp 73
Warning C26439 This kind of function may not throw. Declare it 'noexcept' (f.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\mat.inl.hpp 1419
Warning C26439 This kind of function may not throw. Declare it 'noexcept' (f.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\mat.inl.hpp 1444
Warning C26439 This kind of function may not throw. Declare it 'noexcept' (f.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\mat.inl.hpp 3937
Warning C26439 This kind of function may not throw. Declare it 'noexcept' (f.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\mat.inl.hpp 3961
Warning C26439 This kind of function may not throw. Declare it 'noexcept' (f.6). OpenCV_Tutorials C:\Users\nayja\Desktop\OpenCV Projects\opencv\build\include\opencv2\core\ptr.inl.hpp 258
</code></pre></div> | 0 |
<p dir="auto"><code class="notranslate">assert.strictEqual(false, anyArgument)</code> triggers unreachable code error for any code below <strong>after the recent @types/node update</strong>. This <strong>only</strong> reproduces with <code class="notranslate">@types/node</code> 10.17.24, 12.12.41, 13.13.8 (published recently).</p>
<p dir="auto">Note that it only reproduces with <code class="notranslate">false</code> as a value being checked. Replace it with anything else and it will compile.</p>
<p dir="auto">This looks to me like a <code class="notranslate">tsc</code> problem rather than types problem (I reported it in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="622163026" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/38699" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/38699/hovercard" href="https://github.com/microsoft/TypeScript/issues/38699">microsoft/TypeScript#38699</a>) but the fastest fix would be rolling back the <code class="notranslate">@types/node</code> changes, so I'm duplicating the issue here as well.</p>
<p dir="auto"><strong>TypeScript Version:</strong> 3.9.3, also reproduces on 3.8.x</p>
<p dir="auto"><strong>Code</strong></p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import * as assert from 'assert';
const b = false;
assert.strictEqual(false, b);
console.log('really unreachable?');"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-c1">*</span> <span class="pl-k">as</span> <span class="pl-s1">assert</span> <span class="pl-k">from</span> <span class="pl-s">'assert'</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">b</span> <span class="pl-c1">=</span> <span class="pl-c1">false</span><span class="pl-kos">;</span>
<span class="pl-s1">assert</span><span class="pl-kos">.</span><span class="pl-en">strictEqual</span><span class="pl-kos">(</span><span class="pl-c1">false</span><span class="pl-kos">,</span> <span class="pl-s1">b</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'really unreachable?'</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Expected behavior:</strong> should compile with <code class="notranslate">--allowUnreachableCode false</code>.</p>
<p dir="auto"><strong>Actual behavior:</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ npx tsc --allowUnreachableCode false src/index.ts
src/index.ts:5:1 - error TS7027: Unreachable code detected.
5 console.log('really unreachable?');
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Found 1 error."><pre class="notranslate"><code class="notranslate">$ npx tsc --allowUnreachableCode false src/index.ts
src/index.ts:5:1 - error TS7027: Unreachable code detected.
5 console.log('really unreachable?');
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Found 1 error.
</code></pre></div>
<p dir="auto">This looks to be directly caused by recent releases of <code class="notranslate">@types/node</code> with this commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/DefinitelyTyped/DefinitelyTyped/commit/e9103792668257b6cc86cd21d6c455ecb5fae1ea/hovercard" href="https://github.com/DefinitelyTyped/DefinitelyTyped/commit/e9103792668257b6cc86cd21d6c455ecb5fae1ea"><tt>e910379</tt></a> included.</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the <code class="notranslate">@types/xxxx</code> package and had problems.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the latest stable version of tsc. <a href="https://www.npmjs.com/package/typescript" rel="nofollow">https://www.npmjs.com/package/typescript</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have a question that is inappropriate for <a href="https://stackoverflow.com/" rel="nofollow">StackOverflow</a>. (Please ask any appropriate questions there).</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/blog/821-mention-somebody-they-re-notified">Mention</a> the authors (see <code class="notranslate">Definitions by:</code> in <code class="notranslate">index.d.ts</code>) so they can respond.
<ul dir="auto">
<li>Authors: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/G-Rath/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/G-Rath">@G-Rath</a> as a commit author</li>
</ul>
</li>
</ul> | <p dir="auto">Currently, in a team project, a team member of mine is wanting to use the "SliderObject" interface as a type for certain instance variables and method return types. When I export the interface it works (when I don't already have jQuery being imported in my build). If I already have jQuery being imported, I get duplicate jQuery identifier errors.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/19267619/40274307-6ee5f092-5ba1-11e8-9493-1382e140a45e.png"><img src="https://user-images.githubusercontent.com/19267619/40274307-6ee5f092-5ba1-11e8-9493-1382e140a45e.png" alt="image" style="max-width: 100%;"></a>.</p>
<p dir="auto">What are we doing wrong?</p>
<p dir="auto">FYI, of course changing the type to any will allow the build to work but this does not allow the next developer to understand what type the previous developer was truly working with.</p> | 0 |
<p dir="auto">I notice decision tree only supports dense matrix.is there a reason it doesn't support sparse matrix.</p> | <p dir="auto">Currently rfc only support array like input , thus it can not apply to huge dataset. If the sparse matrix could be supported in the near future, would Be Greatly Appreciated!</p> | 1 |
<h1 dir="auto">Bug report</h1>
<p dir="auto">The dynamic routing solution doesn't work at all</p>
<h2 dir="auto">To Reproduce</h2>
<p dir="auto">I have this code using <code class="notranslate">material-ui</code><br>
I have this button</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<Link
href='/r/[id]'
as={`/r/${selected.id}`}
passHref>
<Button component="a" variant="outlined" size="small">View Menu</Button>
</Link>"><pre class="notranslate"><code class="notranslate"><Link
href='/r/[id]'
as={`/r/${selected.id}`}
passHref>
<Button component="a" variant="outlined" size="small">View Menu</Button>
</Link>
</code></pre></div>
<p dir="auto">on the other page</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import { useRouter } from 'next/router';
const Index = () => {
const router = useRouter()
console.log(router.query.id)
return (
)
}"><pre class="notranslate"><code class="notranslate">import { useRouter } from 'next/router';
const Index = () => {
const router = useRouter()
console.log(router.query.id)
return (
)
}
</code></pre></div>
<p dir="auto">The <code class="notranslate">next.config.js</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const withOffline = require('next-offline');
const withCSS = require('@zeit/next-css')
const nextConfig = {
target: 'serverless',
transformManifest: manifest => ['/'].concat(manifest),
workboxOpts: {
swDest: 'static/service-worker.js',
runtimeCaching: [
{
urlPattern: /^https?.*/,
handler: 'NetworkFirst',
options: {
cacheName: 'https-calls',
networkTimeoutSeconds: 15,
expiration: {
maxEntries: 150,
maxAgeSeconds: 30 * 24 * 60 * 60, // 1 month
},
cacheableResponse: {
statuses: [0, 200],
},
},
},
],
maximumFileSizeToCacheInBytes: 5 * 1024 * 1024
},
};
module.exports = withOffline(withCSS(nextConfig));"><pre class="notranslate"><code class="notranslate">const withOffline = require('next-offline');
const withCSS = require('@zeit/next-css')
const nextConfig = {
target: 'serverless',
transformManifest: manifest => ['/'].concat(manifest),
workboxOpts: {
swDest: 'static/service-worker.js',
runtimeCaching: [
{
urlPattern: /^https?.*/,
handler: 'NetworkFirst',
options: {
cacheName: 'https-calls',
networkTimeoutSeconds: 15,
expiration: {
maxEntries: 150,
maxAgeSeconds: 30 * 24 * 60 * 60, // 1 month
},
cacheableResponse: {
statuses: [0, 200],
},
},
},
],
maximumFileSizeToCacheInBytes: 5 * 1024 * 1024
},
};
module.exports = withOffline(withCSS(nextConfig));
</code></pre></div>
<p dir="auto">and the<code class="notranslate"> now.json</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
"version": 2,
"routes": [
{
"src": "^/service-worker.js$",
"dest": "/_next/static/service-worker.js",
"headers": {
"cache-control": "public, max-age=43200, immutable",
"Service-Worker-Allowed": "/"
}
}
],
"builds": [
{
"src": "next.config.js",
"use": "@now/next"
}
]
}"><pre class="notranslate"><code class="notranslate">{
"version": 2,
"routes": [
{
"src": "^/service-worker.js$",
"dest": "/_next/static/service-worker.js",
"headers": {
"cache-control": "public, max-age=43200, immutable",
"Service-Worker-Allowed": "/"
}
}
],
"builds": [
{
"src": "next.config.js",
"use": "@now/next"
}
]
}
</code></pre></div>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">Expect to move to a new route but nothing happens</p>
<h2 dir="auto">System information</h2>
<ul dir="auto">
<li>OS: Windows</li>
<li>Browser : chrome</li>
<li>Version of Next.js: [e.g. 9.0.6]</li>
</ul> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<p dir="auto">As stated in the title, for dynamic pages defined in the <code class="notranslate">exportPathMap</code> there are no generated <code class="notranslate">index.js</code> files. This brakes the <a class="issue-link js-issue-link notranslate" rel="noopener noreferrer nofollow" href="https://linear.app/vercel/issue/NEXT-router">next-router</a>.<br>
For example <code class="notranslate">http://blog.schoenwald.media/_next/a7725bcd-89fa-4f04-950c-54d296a9e9d9/page/tag/css/index.js</code></p>
<p dir="auto">As you can see here:</p>
<ul dir="auto">
<li><a href="https://issue-3091.schoenwald-media.de" rel="nofollow">https://issue-3091.schoenwald-media.de</a></li>
<li><a href="https://github.com/schoenwaldnils/blog/tree/issue-3091">https://github.com/schoenwaldnils/blog/tree/issue-3091</a></li>
<li><a href="https://github.com/schoenwaldnils/blog/blob/issue-3091/next.config.js">next.config.js</a></li>
<li><a href="https://travis-ci.org/schoenwaldnils/blog/builds/287982634" rel="nofollow">Travis build (see line 4069 and following)</a></li>
<li>the generated files on gh-pages: <a href="https://github.com/schoenwaldnils/blog/tree/gh-pages">https://github.com/schoenwaldnils/blog/tree/gh-pages</a></li>
</ul>
<p dir="auto">the generated pathMap:</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"/": {
"page": "/",
"query": {
"posts": [{
"id": "6uzkBYXsME0CiSwMI8isSY",
"url": "/sticky-footer-with-flexbox"
}, {
"id": "4iJ3AOLOmIqykMw4qAKw4Y",
"url": "/hello-world"
}]
}
},
"/imprint": {
"page": "/page",
"query": {
"id": "5Wa2mgh3zOuku4GqOQEuAG"
}
},
"/about": {
"page": "/page",
"query": {
"id": "yBv8udv1XqwkEMmew0Wwi"
}
},
"/sticky-footer-with-flexbox": {
"page": "/page",
"query": {
"id": "6uzkBYXsME0CiSwMI8isSY"
}
},
"/hello-world": {
"page": "/page",
"query": {
"id": "4iJ3AOLOmIqykMw4qAKw4Y"
}
},
"/tag/css": {
"page": "/tag",
"query": {
"tag": "css",
"tags": ["css", "flexbox", "footer", "Hello", "world"],
"posts": [{
"id": "6uzkBYXsME0CiSwMI8isSY",
"url": "/sticky-footer-with-flexbox"
}]
}
},
"/tag/Hello": {
"page": "/tag",
"query": {
"tag": "Hello",
"tags": ["css", "flexbox", "footer", "Hello", "world"],
"posts": [{
"id": "4iJ3AOLOmIqykMw4qAKw4Y",
"url": "/hello-world"
}]
}
},
"/tag/world": {
"page": "/tag",
"query": {
"tag": "world",
"tags": ["css", "flexbox", "footer", "Hello", "world"],
"posts": [{
"id": "4iJ3AOLOmIqykMw4qAKw4Y",
"url": "/hello-world"
}]
}
},
"/tag/footer": {
"page": "/tag",
"query": {
"tag": "footer",
"tags": ["css", "flexbox", "footer", "Hello", "world"],
"posts": [{
"id": "6uzkBYXsME0CiSwMI8isSY",
"url": "/sticky-footer-with-flexbox"
}]
}
},
"/tag/flexbox": {
"page": "/tag",
"query": {
"tag": "flexbox",
"tags": ["css", "flexbox", "footer", "Hello", "world"],
"posts": [{
"id": "6uzkBYXsME0CiSwMI8isSY",
"url": "/sticky-footer-with-flexbox"
}]
}
}
}"><pre class="notranslate">{
<span class="pl-ent">"/"</span>: {
<span class="pl-ent">"page"</span>: <span class="pl-s"><span class="pl-pds">"</span>/<span class="pl-pds">"</span></span>,
<span class="pl-ent">"query"</span>: {
<span class="pl-ent">"posts"</span>: [{
<span class="pl-ent">"id"</span>: <span class="pl-s"><span class="pl-pds">"</span>6uzkBYXsME0CiSwMI8isSY<span class="pl-pds">"</span></span>,
<span class="pl-ent">"url"</span>: <span class="pl-s"><span class="pl-pds">"</span>/sticky-footer-with-flexbox<span class="pl-pds">"</span></span>
}, {
<span class="pl-ent">"id"</span>: <span class="pl-s"><span class="pl-pds">"</span>4iJ3AOLOmIqykMw4qAKw4Y<span class="pl-pds">"</span></span>,
<span class="pl-ent">"url"</span>: <span class="pl-s"><span class="pl-pds">"</span>/hello-world<span class="pl-pds">"</span></span>
}]
}
},
<span class="pl-ent">"/imprint"</span>: {
<span class="pl-ent">"page"</span>: <span class="pl-s"><span class="pl-pds">"</span>/page<span class="pl-pds">"</span></span>,
<span class="pl-ent">"query"</span>: {
<span class="pl-ent">"id"</span>: <span class="pl-s"><span class="pl-pds">"</span>5Wa2mgh3zOuku4GqOQEuAG<span class="pl-pds">"</span></span>
}
},
<span class="pl-ent">"/about"</span>: {
<span class="pl-ent">"page"</span>: <span class="pl-s"><span class="pl-pds">"</span>/page<span class="pl-pds">"</span></span>,
<span class="pl-ent">"query"</span>: {
<span class="pl-ent">"id"</span>: <span class="pl-s"><span class="pl-pds">"</span>yBv8udv1XqwkEMmew0Wwi<span class="pl-pds">"</span></span>
}
},
<span class="pl-ent">"/sticky-footer-with-flexbox"</span>: {
<span class="pl-ent">"page"</span>: <span class="pl-s"><span class="pl-pds">"</span>/page<span class="pl-pds">"</span></span>,
<span class="pl-ent">"query"</span>: {
<span class="pl-ent">"id"</span>: <span class="pl-s"><span class="pl-pds">"</span>6uzkBYXsME0CiSwMI8isSY<span class="pl-pds">"</span></span>
}
},
<span class="pl-ent">"/hello-world"</span>: {
<span class="pl-ent">"page"</span>: <span class="pl-s"><span class="pl-pds">"</span>/page<span class="pl-pds">"</span></span>,
<span class="pl-ent">"query"</span>: {
<span class="pl-ent">"id"</span>: <span class="pl-s"><span class="pl-pds">"</span>4iJ3AOLOmIqykMw4qAKw4Y<span class="pl-pds">"</span></span>
}
},
<span class="pl-ent">"/tag/css"</span>: {
<span class="pl-ent">"page"</span>: <span class="pl-s"><span class="pl-pds">"</span>/tag<span class="pl-pds">"</span></span>,
<span class="pl-ent">"query"</span>: {
<span class="pl-ent">"tag"</span>: <span class="pl-s"><span class="pl-pds">"</span>css<span class="pl-pds">"</span></span>,
<span class="pl-ent">"tags"</span>: [<span class="pl-s"><span class="pl-pds">"</span>css<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>flexbox<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>footer<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>Hello<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>world<span class="pl-pds">"</span></span>],
<span class="pl-ent">"posts"</span>: [{
<span class="pl-ent">"id"</span>: <span class="pl-s"><span class="pl-pds">"</span>6uzkBYXsME0CiSwMI8isSY<span class="pl-pds">"</span></span>,
<span class="pl-ent">"url"</span>: <span class="pl-s"><span class="pl-pds">"</span>/sticky-footer-with-flexbox<span class="pl-pds">"</span></span>
}]
}
},
<span class="pl-ent">"/tag/Hello"</span>: {
<span class="pl-ent">"page"</span>: <span class="pl-s"><span class="pl-pds">"</span>/tag<span class="pl-pds">"</span></span>,
<span class="pl-ent">"query"</span>: {
<span class="pl-ent">"tag"</span>: <span class="pl-s"><span class="pl-pds">"</span>Hello<span class="pl-pds">"</span></span>,
<span class="pl-ent">"tags"</span>: [<span class="pl-s"><span class="pl-pds">"</span>css<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>flexbox<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>footer<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>Hello<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>world<span class="pl-pds">"</span></span>],
<span class="pl-ent">"posts"</span>: [{
<span class="pl-ent">"id"</span>: <span class="pl-s"><span class="pl-pds">"</span>4iJ3AOLOmIqykMw4qAKw4Y<span class="pl-pds">"</span></span>,
<span class="pl-ent">"url"</span>: <span class="pl-s"><span class="pl-pds">"</span>/hello-world<span class="pl-pds">"</span></span>
}]
}
},
<span class="pl-ent">"/tag/world"</span>: {
<span class="pl-ent">"page"</span>: <span class="pl-s"><span class="pl-pds">"</span>/tag<span class="pl-pds">"</span></span>,
<span class="pl-ent">"query"</span>: {
<span class="pl-ent">"tag"</span>: <span class="pl-s"><span class="pl-pds">"</span>world<span class="pl-pds">"</span></span>,
<span class="pl-ent">"tags"</span>: [<span class="pl-s"><span class="pl-pds">"</span>css<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>flexbox<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>footer<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>Hello<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>world<span class="pl-pds">"</span></span>],
<span class="pl-ent">"posts"</span>: [{
<span class="pl-ent">"id"</span>: <span class="pl-s"><span class="pl-pds">"</span>4iJ3AOLOmIqykMw4qAKw4Y<span class="pl-pds">"</span></span>,
<span class="pl-ent">"url"</span>: <span class="pl-s"><span class="pl-pds">"</span>/hello-world<span class="pl-pds">"</span></span>
}]
}
},
<span class="pl-ent">"/tag/footer"</span>: {
<span class="pl-ent">"page"</span>: <span class="pl-s"><span class="pl-pds">"</span>/tag<span class="pl-pds">"</span></span>,
<span class="pl-ent">"query"</span>: {
<span class="pl-ent">"tag"</span>: <span class="pl-s"><span class="pl-pds">"</span>footer<span class="pl-pds">"</span></span>,
<span class="pl-ent">"tags"</span>: [<span class="pl-s"><span class="pl-pds">"</span>css<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>flexbox<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>footer<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>Hello<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>world<span class="pl-pds">"</span></span>],
<span class="pl-ent">"posts"</span>: [{
<span class="pl-ent">"id"</span>: <span class="pl-s"><span class="pl-pds">"</span>6uzkBYXsME0CiSwMI8isSY<span class="pl-pds">"</span></span>,
<span class="pl-ent">"url"</span>: <span class="pl-s"><span class="pl-pds">"</span>/sticky-footer-with-flexbox<span class="pl-pds">"</span></span>
}]
}
},
<span class="pl-ent">"/tag/flexbox"</span>: {
<span class="pl-ent">"page"</span>: <span class="pl-s"><span class="pl-pds">"</span>/tag<span class="pl-pds">"</span></span>,
<span class="pl-ent">"query"</span>: {
<span class="pl-ent">"tag"</span>: <span class="pl-s"><span class="pl-pds">"</span>flexbox<span class="pl-pds">"</span></span>,
<span class="pl-ent">"tags"</span>: [<span class="pl-s"><span class="pl-pds">"</span>css<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>flexbox<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>footer<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>Hello<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>world<span class="pl-pds">"</span></span>],
<span class="pl-ent">"posts"</span>: [{
<span class="pl-ent">"id"</span>: <span class="pl-s"><span class="pl-pds">"</span>6uzkBYXsME0CiSwMI8isSY<span class="pl-pds">"</span></span>,
<span class="pl-ent">"url"</span>: <span class="pl-s"><span class="pl-pds">"</span>/sticky-footer-with-flexbox<span class="pl-pds">"</span></span>
}]
}
}
}</pre></div>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>next</td>
<td>~4.0.3</td>
</tr>
<tr>
<td>node</td>
<td>8.4.0</td>
</tr>
</tbody>
</table> | 0 |
<h2 dir="auto">Bug Report</h2>
<p dir="auto"><strong>Current Behavior</strong></p>
<p dir="auto">if a normal <code class="notranslate">import</code> statetement is used before a <code class="notranslate">export * from 'somwhere'</code> statement, the latter gets pushed to the top. This causes all code in <code class="notranslate">'somwhere'</code> to be executed before the code from the import.</p>
<p dir="auto"><strong>Input Code</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import 'first';
export * from 'second';"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s">'first'</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-c1">*</span> <span class="pl-k">from</span> <span class="pl-s">'second'</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">becomes</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _second = require('second');
Object.keys(_second).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _second[key];
}
});
});
require('first');"><pre class="notranslate"><span class="pl-s">'use strict'</span><span class="pl-kos">;</span>
<span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">defineProperty</span><span class="pl-kos">(</span><span class="pl-s1">exports</span><span class="pl-kos">,</span> <span class="pl-s">"__esModule"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>
<span class="pl-c1">value</span>: <span class="pl-c1">true</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">_second</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'second'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">keys</span><span class="pl-kos">(</span><span class="pl-s1">_second</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">forEach</span><span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">key</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">key</span> <span class="pl-c1">===</span> <span class="pl-s">"default"</span> <span class="pl-c1">||</span> <span class="pl-s1">key</span> <span class="pl-c1">===</span> <span class="pl-s">"__esModule"</span><span class="pl-kos">)</span> <span class="pl-k">return</span><span class="pl-kos">;</span>
<span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">defineProperty</span><span class="pl-kos">(</span><span class="pl-s1">exports</span><span class="pl-kos">,</span> <span class="pl-s1">key</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>
<span class="pl-c1">enumerable</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-en">get</span>: <span class="pl-k">function</span> <span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-s1">_second</span><span class="pl-kos">[</span><span class="pl-s1">key</span><span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-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">require</span><span class="pl-kos">(</span><span class="pl-s">'first'</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Expected behavior/code</strong></p>
<p dir="auto">I expect the second statement to happen second.</p>
<p dir="auto"><strong>Babel Configuration (.babelrc, package.json, cli command)</strong></p>
<p dir="auto">'try it out' section on babeljs.io</p>
<p dir="auto"><strong>Possible Solution</strong></p>
<p dir="auto">The generated <code class="notranslate">export *</code> code does look like it might be possible to just move it at the right position. I think it is not allowed to export the same name twice in es2015, so no name could be overridden in the <code class="notranslate">exports</code> object.</p>
<p dir="auto"><strong>Additional context/Screenshots</strong></p> | <blockquote>
<p dir="auto">Issue originally made by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/loganfsmyth/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/loganfsmyth">@loganfsmyth</a></p>
</blockquote>
<h3 dir="auto">Input code</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import 'foo';
export {foo} from 'bar';"><pre class="notranslate"><code class="notranslate">import 'foo';
export {foo} from 'bar';
</code></pre></div>
<h3 dir="auto">Description</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.foo = undefined;
var _bar = require('bar');
Object.defineProperty(exports, 'foo', {
enumerable: true,
get: function get() {
return _bar.foo;
}
});
require('foo');"><pre class="notranslate"><code class="notranslate">'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.foo = undefined;
var _bar = require('bar');
Object.defineProperty(exports, 'foo', {
enumerable: true,
get: function get() {
return _bar.foo;
}
});
require('foo');
</code></pre></div>
<p dir="auto">Note that <code class="notranslate">foo</code> loads after <code class="notranslate">bar</code>.</p> | 1 |
<h3 dir="auto">Apache Airflow version</h3>
<p dir="auto">Other Airflow 2 version (please specify below)</p>
<h3 dir="auto">What happened</h3>
<p dir="auto">airflow 2.4.1</p>
<p dir="auto">a existing user only have the role Viewer<br>
I add with the UI the role Admin<br>
click on button save</p>
<p dir="auto">then error -></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
[03/Nov/2022:01:28:08 +0000] "POST /XXXXXXXX/users/edit/2 HTTP/1.1" 302 307 "https://XXXXXXXXXXXXX.net/XXXXXXXX/users/edit/2" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:106.0) Gecko/20100101 Firefox/106.0"
[2022-11-03T01:28:09.014+0000] {app.py:1742} ERROR - Exception on /users/show/1 [GET]
Traceback (most recent call last):
File "/home/airflow/.local/lib/python3.7/site-packages/flask/app.py", line 2525, in wsgi_app
response = self.full_dispatch_request()
File "/home/airflow/.local/lib/python3.7/site-packages/flask/app.py", line 1822, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/airflow/.local/lib/python3.7/site-packages/flask/app.py", line 1820, in full_dispatch_request
rv = self.dispatch_request()
File "/home/airflow/.local/lib/python3.7/site-packages/flask/app.py", line 1796, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "/home/airflow/.local/lib/python3.7/site-packages/flask_appbuilder/security/decorators.py", line 133, in wraps
return f(self, *args, **kwargs)
File "/home/airflow/.local/lib/python3.7/site-packages/airflow/www/fab_security/views.py", line 222, in show
widgets['show'].template_args['actions'].pop('userinfoedit')
KeyError: 'userinfoedit'"><pre lang="log" class="notranslate"><code class="notranslate">
[03/Nov/2022:01:28:08 +0000] "POST /XXXXXXXX/users/edit/2 HTTP/1.1" 302 307 "https://XXXXXXXXXXXXX.net/XXXXXXXX/users/edit/2" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:106.0) Gecko/20100101 Firefox/106.0"
[2022-11-03T01:28:09.014+0000] {app.py:1742} ERROR - Exception on /users/show/1 [GET]
Traceback (most recent call last):
File "/home/airflow/.local/lib/python3.7/site-packages/flask/app.py", line 2525, in wsgi_app
response = self.full_dispatch_request()
File "/home/airflow/.local/lib/python3.7/site-packages/flask/app.py", line 1822, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/airflow/.local/lib/python3.7/site-packages/flask/app.py", line 1820, in full_dispatch_request
rv = self.dispatch_request()
File "/home/airflow/.local/lib/python3.7/site-packages/flask/app.py", line 1796, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "/home/airflow/.local/lib/python3.7/site-packages/flask_appbuilder/security/decorators.py", line 133, in wraps
return f(self, *args, **kwargs)
File "/home/airflow/.local/lib/python3.7/site-packages/airflow/www/fab_security/views.py", line 222, in show
widgets['show'].template_args['actions'].pop('userinfoedit')
KeyError: 'userinfoedit'
</code></pre></div>
<h3 dir="auto">What you think should happen instead</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">How to reproduce</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Operating System</h3>
<p dir="auto">Ubuntu 20.04.4 LTS</p>
<h3 dir="auto">Versions of Apache Airflow Providers</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Deployment</h3>
<p dir="auto">Official Apache Airflow Helm Chart</p>
<h3 dir="auto">Deployment details</h3>
<p dir="auto">1.7.0</p>
<h3 dir="auto">Anything else</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Are you willing to submit PR?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li>
</ul>
<h3 dir="auto">Code of Conduct</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li>
</ul> | <h3 dir="auto">Apache Airflow version</h3>
<p dir="auto">2.2.2</p>
<h3 dir="auto">What happened</h3>
<p dir="auto">Under Security Tab> List users, when show record button for an user is clicked, an error page with some exception - "KeyError: 'userinfoedit'" is returned.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/95294875/156978032-459254a2-988f-448b-84a4-d228baf834d5.png"><img src="https://user-images.githubusercontent.com/95294875/156978032-459254a2-988f-448b-84a4-d228baf834d5.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/95294875/156977666-309d1252-5a77-409e-8c56-cdc650050ccb.png"><img src="https://user-images.githubusercontent.com/95294875/156977666-309d1252-5a77-409e-8c56-cdc650050ccb.png" alt="image" style="max-width: 100%;"></a></p>
<h3 dir="auto">What you expected to happen</h3>
<p dir="auto">Expected page to show the User Info on clicking the show records icon.</p>
<h3 dir="auto">How to reproduce</h3>
<p dir="auto">Click on show records for any user under list users in security tab.</p>
<h3 dir="auto">Operating System</h3>
<p dir="auto">Ubuntu 20 LTS</p>
<h3 dir="auto">Versions of Apache Airflow Providers</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Deployment</h3>
<p dir="auto">Virtualenv installation</p>
<h3 dir="auto">Deployment details</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Anything else</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Are you willing to submit PR?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li>
</ul>
<h3 dir="auto">Code of Conduct</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li>
</ul> | 1 |
<p dir="auto">I found some error when running nn.MaxUnpool1d example in <a href="https://pytorch.org/docs/stable/nn.html?highlight=maxunpool1d#torch.nn.MaxUnpool1d" rel="nofollow">doc</a>.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import torch
import torch.nn as nn
pool = nn.MaxPool1d(2, stride=2, return_indices=True)
unpool = nn.MaxUnpool1d(2, stride=2)
# Example showcasing the use of output_size
input = torch.tensor([[[1., 2, 3, 4, 5, 6, 7, 8, 9]]])
output, indices = pool(input)
unpool(output, indices, output_size=input.size())"><pre class="notranslate"><code class="notranslate">import torch
import torch.nn as nn
pool = nn.MaxPool1d(2, stride=2, return_indices=True)
unpool = nn.MaxUnpool1d(2, stride=2)
# Example showcasing the use of output_size
input = torch.tensor([[[1., 2, 3, 4, 5, 6, 7, 8, 9]]])
output, indices = pool(input)
unpool(output, indices, output_size=input.size())
</code></pre></div>
<p dir="auto">The output is shown below.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/35796307/52639687-c3f2e080-2f0f-11e9-8f47-e1fdd3917217.jpg"><img src="https://user-images.githubusercontent.com/35796307/52639687-c3f2e080-2f0f-11e9-8f47-e1fdd3917217.jpg" alt="1" style="max-width: 100%;"></a></p> | <h2 dir="auto">🐛 Bug</h2>
<p dir="auto">I am getting a <code class="notranslate">TypeError: can only concatenate tuple (not "list") to tuple</code> when specifying the <code class="notranslate">output_shape</code> in <code class="notranslate">nn.MaxUnpool1d()</code></p>
<h2 dir="auto">To Reproduce</h2>
<p dir="auto">Steps to reproduce the behavior:</p>
<p dir="auto">Using the example on <a href="https://pytorch.org/docs/stable/nn.html#torch.nn.MaxUnpool1d" rel="nofollow">https://pytorch.org/docs/stable/nn.html#torch.nn.MaxUnpool1d</a>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import torch.nn as nn
pool = nn.MaxPool1d(2, stride=2, return_indices=True)
unpool = nn.MaxUnpool1d(2, stride=2)
# Example showcasing the use of output_size
input = torch.tensor([[[1., 2, 3, 4, 5, 6, 7, 8, 9]]])
output, indices = pool(input)
unpool(output, indices, output_size=input.size())"><pre class="notranslate"><code class="notranslate">import torch.nn as nn
pool = nn.MaxPool1d(2, stride=2, return_indices=True)
unpool = nn.MaxUnpool1d(2, stride=2)
# Example showcasing the use of output_size
input = torch.tensor([[[1., 2, 3, 4, 5, 6, 7, 8, 9]]])
output, indices = pool(input)
unpool(output, indices, output_size=input.size())
</code></pre></div>
<h2 dir="auto">Stack Trace</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-13-ac9f59d350ad> in <module>
7 input = torch.tensor([[[1., 2, 3, 4, 5, 6, 7, 8, 9]]])
8 output, indices = pool(input)
----> 9 unpool(output, indices, output_size=input.size())
~/src/checkout/miniconda3/lib/python3.7/site-packages/torch/nn/modules/module.py in __call__(self, *input, **kwargs)
487 result = self._slow_forward(*input, **kwargs)
488 else:
--> 489 result = self.forward(*input, **kwargs)
490 for hook in self._forward_hooks.values():
491 hook_result = hook(self, input, result)
~/src/checkout/miniconda3/lib/python3.7/site-packages/torch/nn/modules/pooling.py in forward(self, input, indices, output_size)
292 def forward(self, input, indices, output_size=None):
293 return F.max_unpool1d(input, indices, self.kernel_size, self.stride,
--> 294 self.padding, output_size)
295
296
~/src/checkout/miniconda3/lib/python3.7/site-packages/torch/nn/functional.py in max_unpool1d(input, indices, kernel_size, stride, padding, output_size)
512 output_size = _unpool_output_size(input, kernel_size, _stride, padding,
513 output_size)
--> 514 return torch._C._nn.max_unpool2d(input.unsqueeze(3), indices.unsqueeze(3), output_size + [1]).squeeze(3)
515
516
TypeError: can only concatenate tuple (not "list") to tuple"><pre class="notranslate"><code class="notranslate">---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-13-ac9f59d350ad> in <module>
7 input = torch.tensor([[[1., 2, 3, 4, 5, 6, 7, 8, 9]]])
8 output, indices = pool(input)
----> 9 unpool(output, indices, output_size=input.size())
~/src/checkout/miniconda3/lib/python3.7/site-packages/torch/nn/modules/module.py in __call__(self, *input, **kwargs)
487 result = self._slow_forward(*input, **kwargs)
488 else:
--> 489 result = self.forward(*input, **kwargs)
490 for hook in self._forward_hooks.values():
491 hook_result = hook(self, input, result)
~/src/checkout/miniconda3/lib/python3.7/site-packages/torch/nn/modules/pooling.py in forward(self, input, indices, output_size)
292 def forward(self, input, indices, output_size=None):
293 return F.max_unpool1d(input, indices, self.kernel_size, self.stride,
--> 294 self.padding, output_size)
295
296
~/src/checkout/miniconda3/lib/python3.7/site-packages/torch/nn/functional.py in max_unpool1d(input, indices, kernel_size, stride, padding, output_size)
512 output_size = _unpool_output_size(input, kernel_size, _stride, padding,
513 output_size)
--> 514 return torch._C._nn.max_unpool2d(input.unsqueeze(3), indices.unsqueeze(3), output_size + [1]).squeeze(3)
515
516
TypeError: can only concatenate tuple (not "list") to tuple
</code></pre></div>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">When I do not specify <code class="notranslate">output_shape</code> in <code class="notranslate">unpool</code>, everything is fine:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=">>> tensor([[[0., 2., 0., 4., 0., 6., 0., 8.]]])"><pre class="notranslate"><code class="notranslate">>>> tensor([[[0., 2., 0., 4., 0., 6., 0., 8.]]])
</code></pre></div>
<h2 dir="auto">Environment</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PyTorch version: 1.0.0a0+e9db959
Is debug build: No
CUDA used to build PyTorch: None
OS: Mac OSX 10.14
GCC version: Could not collect
CMake version: version 3.12.2
Python version: 3.7
Is CUDA available: No
CUDA runtime version: No CUDA
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
Versions of relevant libraries:
[pip] Could not collect
[conda] blas 1.0 mkl
[conda] mkl 2019.1 144
[conda] mkl-include 2019.1 144
[conda] mkl_fft 1.0.6 py37h27c97d8_0
[conda] mkl_random 1.0.2 py37h27c97d8_0
[conda] pytorch-nightly 1.0.0.dev20181117 py3.7_0 pytorch
[conda] pytorch-sphinx-theme 0.0.19 <pip>
[conda] torch 0.4.1 <pip>
[conda] torch 1.0.0a0+1d11185 <pip>
[conda] torch 1.0.0a0+e9db959 <pip>
[conda] torchtext 0.3.1 <pip>
[conda] torchvision 0.2.1 <pip>"><pre class="notranslate"><code class="notranslate">PyTorch version: 1.0.0a0+e9db959
Is debug build: No
CUDA used to build PyTorch: None
OS: Mac OSX 10.14
GCC version: Could not collect
CMake version: version 3.12.2
Python version: 3.7
Is CUDA available: No
CUDA runtime version: No CUDA
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
Versions of relevant libraries:
[pip] Could not collect
[conda] blas 1.0 mkl
[conda] mkl 2019.1 144
[conda] mkl-include 2019.1 144
[conda] mkl_fft 1.0.6 py37h27c97d8_0
[conda] mkl_random 1.0.2 py37h27c97d8_0
[conda] pytorch-nightly 1.0.0.dev20181117 py3.7_0 pytorch
[conda] pytorch-sphinx-theme 0.0.19 <pip>
[conda] torch 0.4.1 <pip>
[conda] torch 1.0.0a0+1d11185 <pip>
[conda] torch 1.0.0a0+e9db959 <pip>
[conda] torchtext 0.3.1 <pip>
[conda] torchvision 0.2.1 <pip>
</code></pre></div>
<h2 dir="auto">Additional context</h2>
<p dir="auto">My use case is a fully convolutional network for 1D data, where I would like the model to learn the weights associated with unpooling.</p>
<p dir="auto">Edit: using the example from docs.</p> | 1 |
<p dir="auto">I am trying to send a csv file as a base64 encoded string in the body of a post request to a flask server. It works find for small files. But when I try to post a file above ~150k the server does not respond and there is no error message. It seems to get hung up on <code class="notranslate">body = request.get_json()</code>. This non-responsiveness happens through postman and node. To throw a wrench into the problem, I can submit the file fine using pythons requests library. I am not sure what is causing this or what the difference between the three requests. The headers all look really similar and are included in the repo. I have included the minimal server (server.py), working python request (test.py), the not working node request (jstest.js) and the not working postman collection. Thanks for any help.</p>
<p dir="auto">Here is a simple reproduction MCVE <a href="https://github.com/mdemin914/flask-largeish-csv-file-error-reproduction">https://github.com/mdemin914/flask-largeish-csv-file-error-reproduction</a></p>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Python version: 2.7.13</li>
<li>Flask version: 0.12.2</li>
<li>Werkzeug version: 0.14.1</li>
</ul> | <p dir="auto">from app.controllers.dashboard.admin import dashboard1<br>
from app.controllers.dashboard.supply import dashboard2</p>
<p dir="auto">app.register_blueprint(dashboard1, subdomain='admin')<br>
app.register_blueprint(dashboard2, subdomain='supply')</p>
<p dir="auto">but</p>
<p dir="auto">@dashboard2.route('/')<br>
def index():<br>
return url_for('company.index')<br>
is always appear that "<a href="http://admin.domain.com:5000/company" rel="nofollow">http://admin.domain.com:5000/company</a>"</p> | 0 |
<p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gci-gke-slow-release-1.4/600/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gci-gke-slow-release-1.4/600/</a></p>
<p dir="auto">Failed: [k8s.io] Pod Disks should schedule a pod w/ a RW PD shared between multiple containers, write to PD, delete pod, verify contents, and repeat in rapid succession [Slow] {Kubernetes e2e suite}</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/pd.go:360
Expected
<string>:
to equal
<string>: 2119336402161049634
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/pd.go:458"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/pd.go:360
Expected
<string>:
to equal
<string>: 2119336402161049634
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/pd.go:458
</code></pre></div>
<p dir="auto">Previous issues for this test: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="162101194" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28010" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28010/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28010">#28010</a></p> | <p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gke-slow/6057/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gke-slow/6057/</a></p>
<p dir="auto">Failed: [k8s.io] Pod Disks should schedule a pod w/ a RW PD shared between multiple containers, write to PD, delete pod, verify contents, and repeat in rapid succession [Slow] {Kubernetes e2e suite}</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/pd.go:341
Expected
<string>:
to equal
<string>: 8855151317391201669"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/pd.go:341
Expected
<string>:
to equal
<string>: 8855151317391201669
</code></pre></div>
<p dir="auto">Previous issues for this test: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="162101194" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28010" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28010/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28010">#28010</a></p> | 1 |
PowerToys is not for 32 bit Windows. I have a 32 bit PC so this is upsetting. Please make a 32 bit version!
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: [run "ver" at a command prompt]
PowerToys version:
PowerToy module for which you are reporting the bug (if applicable):"><pre class="notranslate"><code class="notranslate">Windows build number: [run "ver" at a command prompt]
PowerToys version:
PowerToy module for which you are reporting the bug (if applicable):
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<h1 dir="auto">Expected behavior</h1>
<h1 dir="auto">Actual behavior</h1>
<h1 dir="auto">Screenshots</h1> | <h1 dir="auto">Summary of the new feature/enhancement</h1>
<p dir="auto">I propose a different way of thinking of FancyZones new/experimental snapping function. I appologize if this is a duplicate; I couldn't find in issue search.<br>
The new 0.18 approach of being able to snap together zones is nice. It adds enormous flexibility in use. However, when I went to reshuffle my zone layout to take advantage of it, it became cumbersome to manage the many smaller zones I created to be able to snap together.<br>
That also highlighted to me the current Destop Window Manager's snap-to functions (corner, left, right etc) was counter to how FancyZones works.<br>
The DWM subdivides desktops; FancyZones combines zones.<br>
I propose a different approach: Make fewer zones in layout setup, then subdivide them at use time. Exactly the same way DWM subdivides a desktop.</p>
<h1 dir="auto">Proposed technical implementation details (optional)</h1>
<p dir="auto">Example use:<br>
FancyZones Layout: 4K monitor subdivided to 3 columns.<br>
FancyZones User input: Drag window near top-right corner of middle column.<br>
FancyZones Response: Snaps window to top-right quadrant of middle column.</p> | 0 |
<p dir="auto">I believe there is no reason why using layer interface user should not be able to specify this. Output shape is not obvious for some cases (as stated here: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="151235937" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/2118" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/2118/hovercard" href="https://github.com/tensorflow/tensorflow/issues/2118">#2118</a>) and without accepting output_shape argument one cannot match desired output. Potential use case is trying to build autoencoder for 2d images in form of (conv1->conv2->conv3->deconv1->deconv2->deconv3). With stride >1 there is no way for doing this with layers interface right now.</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>: yes</li>
<li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: Windows 10</li>
<li><strong>TensorFlow installed from (source or binary)</strong>: source</li>
<li><strong>TensorFlow version (use command below)</strong>: v1.7.1</li>
<li><strong>Python version</strong>: 3.6</li>
<li><strong>Bazel version (if compiling from source)</strong>: Not used</li>
<li><strong>GCC/Compiler version (if compiling from source)</strong>: Visual Studio 2015 (MSBuild.exe)</li>
<li><strong>CUDA/cuDNN version</strong>: CUDA 9.1, cuDNN 7.0.5</li>
<li><strong>GPU model and memory</strong>: NVIDIA GeForce GTX 1070</li>
<li><strong>Exact command to reproduce</strong>:</li>
</ul>
<ol dir="auto">
<li>Open cmd</li>
<li>Go to the directory where a saved model is stored.</li>
<li>Run the following command<br>
PATH\TO\tensorflow-1.7.1\tensorflow\contrib\cmake\build_cuda_v9.1\Release\transform_graph --in_graph=saved_model.pb --out_graph=saved_model_2.pb --inputs="image:0" --outputs="probability:0" --transforms="obfuscate_names"</li>
</ol>
<h3 dir="auto">Describe the problem</h3>
<p dir="auto">I had the following error after running the command.</p>
<p dir="auto">[libprotobuf ERROR D:\workspace_tensorflow_source\tensorflow-1.7.1\tensorflow\contrib\cmake\build_cuda_v9.1\protobuf\src\protobuf\src\google\protobuf\text_format.cc:288] Error parsing text-format tensorflow.GraphDef: 1:1: Invalid control characters encountered in text.<br>
[libprotobuf ERROR D:\workspace_tensorflow_source\tensorflow-1.7.1\tensorflow\contrib\cmake\build_cuda_v9.1\protobuf\src\protobuf\src\google\protobuf\text_format.cc:288] Error parsing text-format tensorflow.GraphDef: 1:4: Interpreting non ascii codepoint 192.<br>
[libprotobuf ERROR D:\workspace_tensorflow_source\tensorflow-1.7.1\tensorflow\contrib\cmake\build_cuda_v9.1\protobuf\src\protobuf\src\google\protobuf\text_format.cc:288] Error parsing text-format tensorflow.GraphDef: 1:4: Expected identifier, got: └<br>
2018-05-22 13:39:08.760764: E D:\workspace_tensorflow_source\tensorflow-1.7.1\tensorflow\tools\graph_transforms\transform_graph.cc:200] Loading graph 'saved_model.pb' failed with Can't parse saved_model.pb as binary proto<br>
(both text and binary parsing failed for file saved_model.pb)<br>
2018-05-22 13:39:08.767541: E D:\workspace_tensorflow_source\tensorflow-1.7.1\tensorflow\tools\graph_transforms\transform_graph.cc:202] usage: D:\workspace_tensorflow_source\tensorflow-1.7.1\tensorflow\contrib\cmake\build_cuda_v9.1\Release\transform_graph<br>
Flags:<br>
--in_graph="" string input graph file name<br>
--out_graph="" string output graph file name<br>
--inputs="" string inputs<br>
--outputs="" string outputs<br>
--transforms="" string list of transforms<br>
--output_as_text=false bool whether to write the graph in text protobuf format</p>
<p dir="auto">Transforms are:<br>
add_default_attributes<br>
backport_concatv2<br>
backport_tensor_array_v3<br>
flatten_atrous_conv<br>
fold_batch_norms<br>
fold_constants<br>
fold_old_batch_norms<br>
freeze_requantization_ranges<br>
fuse_pad_and_conv<br>
fuse_resize_and_conv<br>
fuse_resize_pad_and_conv<br>
insert_logging<br>
merge_duplicate_nodes<br>
obfuscate_names<br>
quantize_nodes<br>
quantize_weights<br>
remove_attribute<br>
remove_control_dependencies<br>
remove_device<br>
remove_nodes<br>
rename_attribute<br>
rename_op<br>
round_weights<br>
set_device<br>
sort_by_execution_order<br>
sparsify_gather<br>
strip_unused_nodes</p>
<h3 dir="auto">Source code / logs</h3>
<p dir="auto">I created a saved model using Estimator. The following shows how I create a saved model.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" # Get warm start settings
wss = self._get_warm_start_settings()
# Create a estimator w/ or w/o warm start
estimator = tf.estimator.Estimator(
model_fn=NetTrainer.model_fn,
model_dir=self.model_path,
params={
'net_id': str(self.net_id)
},
config=tf.estimator.RunConfig(
save_checkpoints_steps=training_config.CHECKPOINTS_STEPS,
save_summary_steps=training_config.SUMMARY_STEPS,
keep_checkpoint_max=training_config.KEEP_CHENCKPOINT_MAX
),
warm_start_from=wss)
for lp in list(range(0, training_config.NUM_TRAINING_EVALUATION_CYCLES)):
# Train the model
estimator.train(
input_fn=lambda:self.train_input_fn(training_db_reader_state),
steps=training_config.TRAINING_STEPS,
max_steps=None)
# Evaluate the model
eval_result = estimator.evaluate(
input_fn=lambda:self.eval_input_fn(evaluation_db_reader_state))
tf.logging.info('training-evaluation cycle: {:d}'.format(lp))
tf.logging.info('global_step: {global_step:d}'.format(**eval_result))
tf.logging.info('Test set accuracy: {accuracy:0.3f}'.format(**eval_result))
# Export the model
image_shape = self._get_image_shape(include_batch=True, batch_size=1);
feature_spec = {config.IMAGE_KEY: tf.placeholder(tf.float32, shape=image_shape, name=config.IMAGE_KEY)}
serving_input_receiver_fn = tf.estimator.export.build_raw_serving_input_receiver_fn(feature_spec, default_batch_size=1)
estimator.export_savedmodel(
export_dir_base=self.saved_model_path,
serving_input_receiver_fn=serving_input_receiver_fn,
strip_default_attrs=True)"><pre class="notranslate"><code class="notranslate"> # Get warm start settings
wss = self._get_warm_start_settings()
# Create a estimator w/ or w/o warm start
estimator = tf.estimator.Estimator(
model_fn=NetTrainer.model_fn,
model_dir=self.model_path,
params={
'net_id': str(self.net_id)
},
config=tf.estimator.RunConfig(
save_checkpoints_steps=training_config.CHECKPOINTS_STEPS,
save_summary_steps=training_config.SUMMARY_STEPS,
keep_checkpoint_max=training_config.KEEP_CHENCKPOINT_MAX
),
warm_start_from=wss)
for lp in list(range(0, training_config.NUM_TRAINING_EVALUATION_CYCLES)):
# Train the model
estimator.train(
input_fn=lambda:self.train_input_fn(training_db_reader_state),
steps=training_config.TRAINING_STEPS,
max_steps=None)
# Evaluate the model
eval_result = estimator.evaluate(
input_fn=lambda:self.eval_input_fn(evaluation_db_reader_state))
tf.logging.info('training-evaluation cycle: {:d}'.format(lp))
tf.logging.info('global_step: {global_step:d}'.format(**eval_result))
tf.logging.info('Test set accuracy: {accuracy:0.3f}'.format(**eval_result))
# Export the model
image_shape = self._get_image_shape(include_batch=True, batch_size=1);
feature_spec = {config.IMAGE_KEY: tf.placeholder(tf.float32, shape=image_shape, name=config.IMAGE_KEY)}
serving_input_receiver_fn = tf.estimator.export.build_raw_serving_input_receiver_fn(feature_spec, default_batch_size=1)
estimator.export_savedmodel(
export_dir_base=self.saved_model_path,
serving_input_receiver_fn=serving_input_receiver_fn,
strip_default_attrs=True)
</code></pre></div> | 0 |
<p dir="auto">if <code class="notranslate">druid.server.maxSize</code> is set smaller than the size of <code class="notranslate">druid.segmentCache.locations</code>, then the druid console gets really confused when at capacity, and claims that the server has negative bytes remaining.</p> | <p dir="auto">The rules for determining available space on a historical node for a segment seem to include both druid.server.maxSize and druid.segmentCache.locations:maxSize.</p>
<p dir="auto">However, the Coordinator Console shows the Max Size and Percent Used based only on druid.server.maxSize.</p>
<p dir="auto">It would be useful if the console showed both values to help diagnose "segment too large" errors thrown by the OmniSegmentLoader (when people accidentally set them to different values).</p>
<p dir="auto">See <a href="https://groups.google.com/forum/#!searchin/druid-development/segment$20too$20large/druid-development/w8Q65ZRusi4/kN0JybUtUfAJ" rel="nofollow">https://groups.google.com/forum/#!searchin/druid-development/segment$20too$20large/druid-development/w8Q65ZRusi4/kN0JybUtUfAJ</a></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">Deletes git repository.<br>
(Removed <code class="notranslate">.git</code> and tracked files)</p>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">Install without error</p>
<h3 dir="auto">Steps To Reproduce</h3>
<ol dir="auto">
<li>Clone <a href="https://github.com/kdy1/swc.git">https://github.com/kdy1/swc.git</a></li>
<li>Checkout <code class="notranslate">resolver</code> branch</li>
<li>npm i</li>
<li>npm run build:dev</li>
<li>npm link</li>
<li>npm i -g @swc/cli</li>
</ol>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>OS: macOS Big Sur</li>
<li>Node:</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="➜ swc-bugs node -v
v14.16.1"><pre class="notranslate"><code class="notranslate">➜ swc-bugs node -v
v14.16.1
</code></pre></div>
<p dir="auto">Note: I installed latest version of node js because of stack trace issue on github actions.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="➜ swc-bugs brew info node
node: stable 16.3.0 (bottled), HEAD
Platform built on V8 to build network applications
https://nodejs.org/
/usr/local/Cellar/node/14.4.0 (107 files, 650KB)
Built from source
/usr/local/Cellar/node/15.12.0 (3,268 files, 55.5MB)
Poured from bottle on 2021-03-31 at 15:11:58
/usr/local/Cellar/node/16.2.0 (2,784 files, 49MB) *
Poured from bottle on 2021-05-30 at 20:06:55
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/node.rb
License: MIT
==> Dependencies
Build: pkg-config ✔, [email protected] ✔
Required: brotli ✔, c-ares ✔, icu4c ✔, libuv ✔, nghttp2 ✔, [email protected] ✔
==> Options
--HEAD
Install HEAD version
==> Analytics
install: 323,426 (30 days), 1,082,930 (90 days), 4,400,808 (365 days)
install-on-request: 254,200 (30 days), 847,506 (90 days), 3,304,651 (365 days)
build-error: 0 (30 days)"><pre class="notranslate"><code class="notranslate">➜ swc-bugs brew info node
node: stable 16.3.0 (bottled), HEAD
Platform built on V8 to build network applications
https://nodejs.org/
/usr/local/Cellar/node/14.4.0 (107 files, 650KB)
Built from source
/usr/local/Cellar/node/15.12.0 (3,268 files, 55.5MB)
Poured from bottle on 2021-03-31 at 15:11:58
/usr/local/Cellar/node/16.2.0 (2,784 files, 49MB) *
Poured from bottle on 2021-05-30 at 20:06:55
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/node.rb
License: MIT
==> Dependencies
Build: pkg-config ✔, [email protected] ✔
Required: brotli ✔, c-ares ✔, icu4c ✔, libuv ✔, nghttp2 ✔, [email protected] ✔
==> Options
--HEAD
Install HEAD version
==> Analytics
install: 323,426 (30 days), 1,082,930 (90 days), 4,400,808 (365 days)
install-on-request: 254,200 (30 days), 847,506 (90 days), 3,304,651 (365 days)
build-error: 0 (30 days)
</code></pre></div>
<ul dir="auto">
<li>npm:</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[email protected] /Users/kdy1/.nvm/versions/node/v14.16.1/lib/node_modules/npm"><pre class="notranslate"><code class="notranslate">[email protected] /Users/kdy1/.nvm/versions/node/v14.16.1/lib/node_modules/npm
</code></pre></div> | <p dir="auto">Note that this same issue was reported back in 2017 on the now-archived repo: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="208071714" data-permission-text="Title is private" data-url="https://github.com/npm/npm/issues/15783" data-hovercard-type="issue" data-hovercard-url="/npm/npm/issues/15783/hovercard" href="https://github.com/npm/npm/issues/15783">npm/npm#15783</a></p>
<h3 dir="auto">Current Behavior:</h3>
<p dir="auto">I am using <code class="notranslate">npm link</code> to try to test changes I am making to an upstream dependency within my own project. In the dependency directory I run <code class="notranslate">npm link</code>. Then in my own project I run <code class="notranslate">npm link ffmpeg-stream</code>.</p>
<p dir="auto">NPM gives the following error message when running the second link command:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm ERR! code 1
npm ERR! path D:\git\node-ffmpeg-stream
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c "tsc"
npm ERR! Version 3.9.7
npm ERR! Syntax: tsc [options] [file...]"><pre class="notranslate"><code class="notranslate">npm ERR! code 1
npm ERR! path D:\git\node-ffmpeg-stream
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c "tsc"
npm ERR! Version 3.9.7
npm ERR! Syntax: tsc [options] [file...]
</code></pre></div>
<p dir="auto">Afterwards, the directory of the upstream dependency is empty. Even the <code class="notranslate">.git</code> directory is deleted, so tough luck if you haven't pushed recently.</p>
<h3 dir="auto">Expected Behavior:</h3>
<p dir="auto">NPM link should link the package without issue. If an error is encountered, NPM should not delete the entire folder contents.</p>
<h3 dir="auto">Steps To Reproduce:</h3>
<ol dir="auto">
<li>
<p dir="auto">Clone <code class="notranslate">https://github.com/JoshuaWalsh/node-ffmpeg-stream/</code></p>
</li>
<li>
<p dir="auto">Clone <code class="notranslate">https://github.com/JoshuaWalsh/subtitle-indexer</code></p>
</li>
<li>
<p dir="auto">In <code class="notranslate">node-ffmpeg-stream</code>, run <code class="notranslate">npm ci --include=prod</code></p>
</li>
<li>
<p dir="auto">In <code class="notranslate">node-ffmpeg-stream</code>, run <code class="notranslate">npm link</code></p>
</li>
<li>
<p dir="auto">In <code class="notranslate">subtitle-indexer</code>, run <code class="notranslate">npm link ffmpeg-stream</code></p>
</li>
<li>
<p dir="auto">Observe that the <code class="notranslate">node-ffmpeg-stream</code> directory is now empty. (A small number of files may remain if they were in use at the time and couldn't be deleted)</p>
</li>
</ol>
<h3 dir="auto">Environment:</h3>
<ul dir="auto">
<li>OS: Windows 10 Pro 10.0.19042</li>
<li>Node: 15.0.1</li>
<li>npm: 7.0.3</li>
</ul>
<p dir="auto">I am using <code class="notranslate">nvm-windows</code> to manage NodeJS, but currently only have one version installed.</p> | 1 |
<h2 dir="auto"><g-emoji class="g-emoji" alias="information_source" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2139.png">ℹ</g-emoji> Computer information</h2>
<ul dir="auto">
<li>PowerToys version: 0.23.0</li>
<li>PowerToy Utility: Installer</li>
<li>Running PowerToys as Admin: -</li>
<li>Windows build number: [run "winver"] 19041.508</li>
</ul>
<h2 dir="auto">📝 Provide detailed reproduction steps (if any)</h2>
<ol dir="auto">
<li>Have a (relatively) new windows, where powertoys was never installed before</li>
<li>Download exe from github</li>
<li>Click install as normal user</li>
<li>Wait very, very long - the install never finishes.</li>
</ol>
<h3 dir="auto"><g-emoji class="g-emoji" alias="heavy_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2714.png">✔️</g-emoji> Expected result</h3>
<p dir="auto">Have a quick install experience, with powertoys being available after the install.</p>
<h3 dir="auto"><g-emoji class="g-emoji" alias="x" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/274c.png">❌</g-emoji> Actual result</h3>
<p dir="auto">A very slow install notification in the message pane (or whatever its called), which finally will stall at 99%.</p>
<h2 dir="auto">Workaround</h2>
<p dir="auto">Fix this by installing 0.21.1 first, and then upgrade from there</p> | <h2 dir="auto"><g-emoji class="g-emoji" alias="information_source" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2139.png">ℹ</g-emoji> Computer information</h2>
<ul dir="auto">
<li>Windows build number: Microsoft Windows [versão 10.0.18363.959]</li>
<li>PowerToys version: 0.20.0</li>
<li>PowerToy module: Installer</li>
</ul>
<h2 dir="auto"><g-emoji class="g-emoji" alias="memo" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4dd.png">📝</g-emoji> Provide detailed reproduction steps (if any)</h2>
<ol dir="auto">
<li>Download v0.20 Installer</li>
<li>Install</li>
</ol>
<h3 dir="auto"><g-emoji class="g-emoji" alias="heavy_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2714.png">✔️</g-emoji> Expected result</h3>
<p dir="auto">Instalation done successfully</p>
<h3 dir="auto">❌ Actual result</h3>
<p dir="auto">The instalation gets stuck in 75%. Tried the mentioned in theses answers, but didn't work: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="670280759" data-permission-text="Title is private" data-url="https://github.com/microsoft/PowerToys/issues/5397" data-hovercard-type="issue" data-hovercard-url="/microsoft/PowerToys/issues/5397/hovercard?comment_id=667730455&comment_type=issue_comment" href="https://github.com/microsoft/PowerToys/issues/5397#issuecomment-667730455">#5397 (comment)</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="670280759" data-permission-text="Title is private" data-url="https://github.com/microsoft/PowerToys/issues/5397" data-hovercard-type="issue" data-hovercard-url="/microsoft/PowerToys/issues/5397/hovercard?comment_id=667996517&comment_type=issue_comment" href="https://github.com/microsoft/PowerToys/issues/5397#issuecomment-667996517">#5397 (comment)</a></p>
<h2 dir="auto"><g-emoji class="g-emoji" alias="camera" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4f7.png">📷</g-emoji> Screenshots</h2>
<p dir="auto"><em>Are there any useful screenshots? WinKey+Shift+S and then just paste them directly into the form</em></p> | 1 |
<ul dir="auto">
<li>Electron version: 3.0.0-beta.1 to 10</li>
<li>Operating System: Windows</li>
</ul>
<p dir="auto"><strong>Expected Behavior</strong><br>
Shortcuts should be properly displayed in the the app menu.</p>
<p dir="auto"><strong>Actual behavior</strong><br>
Using <code class="notranslate">CommandOrControl+Shift+O</code> shortcut, the menu entry shortcut should be shown as 'Ctrl+Shift+O', but "Ctrl+O" is displayed instead. The shortcut works fine though.</p>
<p dir="auto">Same problem with roles. For instance <code class="notranslate">forcereload</code> will show Ctrl+R instead of Ctrl+Shift+R. Again, the shortcut works fine here.</p>
<p dir="auto"><strong>To Reproduce</strong><br>
Simply change a shortcut or a role in the electron-quick-start menu.</p>
<p dir="auto"><strong>Additional Information</strong><br>
Was working fine with latest 2.x version of electronjs.</p> | <h3 dir="auto">Preflight Checklist</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Issue Details</h3>
<p dir="auto">Current master<br>
dynamic import is not supported while it is supported in NodeJS Modules and CJS</p>
<ul dir="auto">
<li><strong>Electron Version:</strong>
<ul dir="auto">
<li>
</li>
</ul>
</li>
<li><strong>Operating System:</strong>
<ul dir="auto">
<li>
</li>
</ul>
</li>
<li><strong>Last Known Working Electron version:</strong>
<ul dir="auto">
<li>
</li>
</ul>
</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">import('') loads ESM and CJS</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">Does Error when loading ESM and CJS</p>
<h3 dir="auto">To Reproduce</h3>
<p dir="auto">use import('./your-url.js')</p>
<h3 dir="auto">Screenshots</h3>
<h3 dir="auto">Additional Information</h3> | 0 |
<p dir="auto">I get these errors pretty frequently:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Uncaught RangeError: Maximum call stack size exceeded /Applications/Atom.app/Contents/Resources/app/node_modules/emissary/lib/behavior.js:44"><pre class="notranslate"><code class="notranslate">Uncaught RangeError: Maximum call stack size exceeded /Applications/Atom.app/Contents/Resources/app/node_modules/emissary/lib/behavior.js:44
</code></pre></div>
<p dir="auto">EDIT: Restarting atom fixes this, of course. Thankfully, I'm still able to save my files too. I just can't really move the cursor or select text anymore.</p> | <p dir="auto">I learned this method when i was playing with DSL ages ago<br>
you can highlight text then middle click to paste under linux (yes i get ticked every time i try this on MS Windows and get nothing)<br>
anyway i have only had this issue in 2 places on linux, this application and firefox's scratchpad</p> | 0 |
<p dir="auto">Is there a way to register additional "resultDataContents" values? Or would it be possible to create such a mechanism?</p>
<p dir="auto">I want to use the transactional endpoint, but return additional data (specifically the ID, labels/type - like the "graph" resultDataContents) in the tabular/structured form of the "rows" type.</p> | <p dir="auto">I've currently got an ugly workaround in place to get the labels for a node returned in the transactional HTTP endpoint REST format that calls the URI for labels. It would be awesome if there were a format that had (all in one response):</p>
<ol dir="auto">
<li>node id</li>
<li>labels--one big list</li>
<li>properties</li>
<li>nothing else; no bloat!</li>
</ol> | 1 |
<h3 dir="auto">Preflight Checklist</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li>[] I have searched the issue tracker for an issue that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Issue Details</h3>
<p dir="auto">Electron version: v5.0.1<br>
Operating system: MaxOS 10.14.4</p>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">As doc <a href="https://electronjs.org/docs/api/shell#shellopenexternalurl-options" rel="nofollow">https://electronjs.org/docs/api/shell#shellopenexternalurl-options</a></p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">Link opened in the browser, but the browser is not brought to the foreground.</p>
<h3 dir="auto">To Reproduce</h3>
<p dir="auto">Upgrade electron to v5.0.1 in <a href="https://github.com/electron/electron-api-demos">https://github.com/electron/electron-api-demos</a></p>
<p dir="auto">And try "open external links" demo</p> | <ul dir="auto">
<li>Electron version: 1.4.7</li>
<li>Operating system: Mac OS 10.11.6 & Ubuntu 14.04</li>
</ul>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">Garbage collector should clean memory.</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">Memory usage increases rapidly in Main process. Eventually app performance will degrade until unusable.</p>
<h3 dir="auto">How to reproduce</h3>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const path = require('path');
const {app, BrowserWindow} = require('electron');
app.disableHardwareAcceleration();
app.once('ready', () => {
const win = new BrowserWindow({
width: 4096,
height: 3072,
useContentSize: true,
enableLargerThanScreen: true,
show: false,
frame: false,
hasShadow: false,
transparent: true,
webPreferences: {
devTools: false,
webSecurity: false,
textAreasAreResizable: false,
defaultEncoding: 'utf8',
backgroundThrottling: false,
offscreen: true,
zoomFactor: 1,
experimentalFeatures: false,
experimentalCanvasFeatures: false
}
});
let index = 0;
const sizes = [
{width: 1024, height: 768},
{width: 2048, height: 1536},
{width: 4096, height: 3072}
];
win.loadURL('https://www.apple.com');
win.webContents.setFrameRate(60);
win.webContents.once('dom-ready', () => {
setInterval(() => {
if (index === sizes.length) {
index = 0;
}
const size = sizes[index++];
// changing the window size causes the memory leak
win.setSize(size.width, size.height, false);
}, 100);
})
});
"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">path</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'path'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-kos">{</span>app<span class="pl-kos">,</span> BrowserWindow<span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'electron'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">disableHardwareAcceleration</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">once</span><span class="pl-kos">(</span><span class="pl-s">'ready'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">const</span> <span class="pl-s1">win</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">BrowserWindow</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">width</span>: <span class="pl-c1">4096</span><span class="pl-kos">,</span>
<span class="pl-c1">height</span>: <span class="pl-c1">3072</span><span class="pl-kos">,</span>
<span class="pl-c1">useContentSize</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">enableLargerThanScreen</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">show</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c1">frame</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c1">hasShadow</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c1">transparent</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">webPreferences</span>: <span class="pl-kos">{</span>
<span class="pl-c1">devTools</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c1">webSecurity</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c1">textAreasAreResizable</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c1">defaultEncoding</span>: <span class="pl-s">'utf8'</span><span class="pl-kos">,</span>
<span class="pl-c1">backgroundThrottling</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c1">offscreen</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">zoomFactor</span>: <span class="pl-c1">1</span><span class="pl-kos">,</span>
<span class="pl-c1">experimentalFeatures</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c1">experimentalCanvasFeatures</span>: <span class="pl-c1">false</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> <span class="pl-s1">index</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">sizes</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span>
<span class="pl-kos">{</span><span class="pl-c1">width</span>: <span class="pl-c1">1024</span><span class="pl-kos">,</span> <span class="pl-c1">height</span>: <span class="pl-c1">768</span><span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span><span class="pl-c1">width</span>: <span class="pl-c1">2048</span><span class="pl-kos">,</span> <span class="pl-c1">height</span>: <span class="pl-c1">1536</span><span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span><span class="pl-c1">width</span>: <span class="pl-c1">4096</span><span class="pl-kos">,</span> <span class="pl-c1">height</span>: <span class="pl-c1">3072</span><span class="pl-kos">}</span>
<span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-s1">win</span><span class="pl-kos">.</span><span class="pl-en">loadURL</span><span class="pl-kos">(</span><span class="pl-s">'https://www.apple.com'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">win</span><span class="pl-kos">.</span><span class="pl-c1">webContents</span><span class="pl-kos">.</span><span class="pl-en">setFrameRate</span><span class="pl-kos">(</span><span class="pl-c1">60</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">win</span><span class="pl-kos">.</span><span class="pl-c1">webContents</span><span class="pl-kos">.</span><span class="pl-en">once</span><span class="pl-kos">(</span><span class="pl-s">'dom-ready'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-en">setInterval</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">index</span> <span class="pl-c1">===</span> <span class="pl-s1">sizes</span><span class="pl-kos">.</span><span class="pl-c1">length</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">index</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">const</span> <span class="pl-s1">size</span> <span class="pl-c1">=</span> <span class="pl-s1">sizes</span><span class="pl-kos">[</span><span class="pl-s1">index</span><span class="pl-c1">++</span><span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-c">// changing the window size causes the memory leak</span>
<span class="pl-s1">win</span><span class="pl-kos">.</span><span class="pl-en">setSize</span><span class="pl-kos">(</span><span class="pl-s1">size</span><span class="pl-kos">.</span><span class="pl-c1">width</span><span class="pl-kos">,</span> <span class="pl-s1">size</span><span class="pl-kos">.</span><span class="pl-c1">height</span><span class="pl-kos">,</span> <span class="pl-c1">false</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">100</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> | 0 |
<p dir="auto">Trying to define an empty trait:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="trait Foo {}"><pre class="notranslate"><span class="pl-k">trait</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span><span class="pl-kos">}</span></pre></div>
<p dir="auto">produces a confusing message about <code class="notranslate">Self</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="unnamed.rs:1:1: 1:13 error: parameter `Self` is never used
unnamed.rs:1 trait Foo {}
^~~~~~~~~~~~
unnamed.rs:1:13: 1:13 help: consider removing `Self` or using a marker such as `core::marker::PhantomFn`
error: aborting due to previous error"><pre class="notranslate"><code class="notranslate">unnamed.rs:1:1: 1:13 error: parameter `Self` is never used
unnamed.rs:1 trait Foo {}
^~~~~~~~~~~~
unnamed.rs:1:13: 1:13 help: consider removing `Self` or using a marker such as `core::marker::PhantomFn`
error: aborting due to previous error
</code></pre></div>
<p dir="auto">It appears that the compiler is internally treating the trait as though it had a type parameter defined called <code class="notranslate">Self</code>, and then complaining about the parameter being unused. But from the user's perspective there is no such parameter, and the suggestion to remove it is nonsense. The error message should be adjusted to recognize when it's complaining about <code class="notranslate">Self</code> and to explain itself better.</p> | <p dir="auto"><a href="http://is.gd/GmxfTA" rel="nofollow">Given the input</a></p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="trait T {}"><pre class="notranslate"><span class="pl-k">trait</span> <span class="pl-smi">T</span> <span class="pl-kos">{</span><span class="pl-kos">}</span></pre></div>
<p dir="auto">rustc will complain:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<anon>:2:1: 2:11 error: parameter `Self` is never used
<anon>:2 trait T {}
^~~~~~~~~~
<anon>:2:1: 2:11 help: consider removing `Self` or using a marker such as `core::marker::PhantomFn`
<anon>:2 trait T {}
^~~~~~~~~~"><pre class="notranslate"><code class="notranslate"><anon>:2:1: 2:11 error: parameter `Self` is never used
<anon>:2 trait T {}
^~~~~~~~~~
<anon>:2:1: 2:11 help: consider removing `Self` or using a marker such as `core::marker::PhantomFn`
<anon>:2 trait T {}
^~~~~~~~~~
</code></pre></div>
<p dir="auto">This may just be a diagnostics issue, but I'll let someone more familiar with Rust make that judgement.</p> | 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>2.8.*</td>
</tr>
</tbody>
</table>
<p dir="auto">No validation violation occurs on invalid values in EntityType.</p>
<p dir="auto">This seems to be because EntityType uses ORMQueryBuilderLoader, and it's getEntitiesByIds does not validate that the number of inputs matches the number of outputs. It only does an SQL WHERE IN (provided IDs) query to get whatever values are valid.</p>
<p dir="auto">To replicate - add an entity in the form type on the form, then either manually delete the entity in the database before submitting, or manipulate the request (POST) data to have invalid values on submit. The invalid values just drop, the valid values remain, and no validation error is raised.</p>
<p dir="auto">I'm breaking this out from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="128108229" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/17488" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/17488/hovercard" href="https://github.com/symfony/symfony/issues/17488">#17488</a> as that ticket is specifically addressing that it causes exceptions when using PostgreSQL; however, the bigger issue is that invalid values don't raise any validation.</p>
<p dir="auto">This is not easy to workaround because $queryBuilder in ORMQueryBuilderLoader is private rather than protected, so the variable and every method in the class needs to be duplicated.</p> | <p dir="auto">Working through some tests using the bundled Security functionality, and we have noticed that on a logout action we are getting in our server logs:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[Mon Oct 29 16:43:14 2012] [error] [client xxx.xxx.xxx.xxx] PHP Fatal error: Uncaught exception 'ErrorException' with message 'Warning: SessionHandler::write(): Parent session handler is not open in /web_dir/app/cache/dev/classes.php line 558' in /web_dir/app/cache/dev/classes.php:558\nStack trace:\n#0 [internal function]: Symfony\\Component\\HttpKernel\\Debug\\ErrorHandler->handle(2, 'SessionHandler:...', '/web_dir...', 558, Array)\n#1 /web_dir/app/cache/dev/classes.php(558): SessionHandler->write('e0ua5bnj0vneq97...', '_sf2_attributes...')\n#2 [internal function]: Symfony\\Component\\HttpFoundation\\Session\\Storage\\Proxy\\SessionHandlerProxy->write('e0ua5bnj0vneq97...', '_sf2_attributes...')\n#3 [internal function]: session_write_close()\n#4 {main}\n thrown in /web_dir/app/cache/dev/classes.php on line 558"><pre class="notranslate"><code class="notranslate">[Mon Oct 29 16:43:14 2012] [error] [client xxx.xxx.xxx.xxx] PHP Fatal error: Uncaught exception 'ErrorException' with message 'Warning: SessionHandler::write(): Parent session handler is not open in /web_dir/app/cache/dev/classes.php line 558' in /web_dir/app/cache/dev/classes.php:558\nStack trace:\n#0 [internal function]: Symfony\\Component\\HttpKernel\\Debug\\ErrorHandler->handle(2, 'SessionHandler:...', '/web_dir...', 558, Array)\n#1 /web_dir/app/cache/dev/classes.php(558): SessionHandler->write('e0ua5bnj0vneq97...', '_sf2_attributes...')\n#2 [internal function]: Symfony\\Component\\HttpFoundation\\Session\\Storage\\Proxy\\SessionHandlerProxy->write('e0ua5bnj0vneq97...', '_sf2_attributes...')\n#3 [internal function]: session_write_close()\n#4 {main}\n thrown in /web_dir/app/cache/dev/classes.php on line 558
</code></pre></div>
<p dir="auto">It seems this issue isn't unique to us as seen at:</p>
<p dir="auto"><a href="https://groups.google.com/forum/?fromgroups=#!topic/symfony-devs/Q-f0lKT7OZ8" rel="nofollow">https://groups.google.com/forum/?fromgroups=#!topic/symfony-devs/Q-f0lKT7OZ8</a></p>
<p dir="auto">We are running a centos 6 machine running <strong>PHP v5.4.7</strong> and <strong>Apache/2.2.15</strong>.</p>
<p dir="auto">Anyone have any suggestions as to what is causing this and how we can eliminate this message on every log out?</p> | 0 |
<h3 dir="auto">Version</h3>
<p dir="auto">2.5.16</p>
<h3 dir="auto">Reproduction link</h3>
<p dir="auto"><a href="https://jsfiddle.net/50wL7mdz/337120/" rel="nofollow">https://jsfiddle.net/50wL7mdz/337120/</a></p>
<h3 dir="auto">Steps to reproduce</h3>
<ol dir="auto">
<li>open console</li>
<li>click todo item</li>
<li>you will see <code class="notranslate">destroyed</code> and <code class="notranslate">updated</code></li>
</ol>
<h3 dir="auto">What is expected?</h3>
<p dir="auto">only <code class="notranslate">destroyed</code> is printed.</p>
<p dir="auto"><code class="notranslate">updated</code> life cycle should not be invoked after component has been destroyed.</p>
<h3 dir="auto">What is actually happening?</h3>
<p dir="auto"><code class="notranslate">updated</code> life cycle invoked after component has been destroyed.</p> | <h3 dir="auto">What problem does this feature solve?</h3>
<p dir="auto">Consider the <code class="notranslate"><input></code> element. It maintains its own internal state for its value (by the browser) irrespective of whether or not it is being driven by <code class="notranslate">v-model</code>.</p>
<p dir="auto">After looking at some Vue component libraries, most of the components externalize their state through props, meaning that the parent component must define the value for that component in its data and use <code class="notranslate">v-model</code> to wire it up -- the component cannot be used without <code class="notranslate">v-model</code> because it doesn't maintain the state internally to the component.</p>
<p dir="auto">Ideally I'd like to author input components that satisfy the following requirements:</p>
<ul dir="auto">
<li>Can be used without <code class="notranslate">v-model</code> (the component maintains the state itself)</li>
<li>Can be used with <code class="notranslate">v-model</code> (the state is driven entirely by the prop emitting <code class="notranslate">input</code> events)</li>
</ul>
<p dir="auto">This results in somewhat messy code like <a href="http://jsfiddle.net/df4Lnuw6/179/" rel="nofollow">this</a>:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Vue.component('checkbox', {
template: '<div class="checkbox" @click="toggle">{{ internalValue ? "Checked" : "Unchecked" }}</div>',
props: {
value: {
type: Boolean,
default: false,
},
},
data() {
return {
internalValue: false,
};
},
watch: {
value: {
immediate: true,
handler(value) {
this.internalValue = value;
},
},
internalValue(internalValue) {
this.$emit('input', internalValue);
},
},
methods: {
toggle() {
this.internalValue = !this.internalValue;
},
},
});"><pre class="notranslate"><span class="pl-v">Vue</span><span class="pl-kos">.</span><span class="pl-en">component</span><span class="pl-kos">(</span><span class="pl-s">'checkbox'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>
<span class="pl-c1">template</span>: <span class="pl-s">'<div class="checkbox" @click="toggle">{{ internalValue ? "Checked" : "Unchecked" }}</div>'</span><span class="pl-kos">,</span>
<span class="pl-c1">props</span>: <span class="pl-kos">{</span>
<span class="pl-c1">value</span>: <span class="pl-kos">{</span>
<span class="pl-c1">type</span>: <span class="pl-v">Boolean</span><span class="pl-kos">,</span>
<span class="pl-c1">default</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-en">data</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-kos">{</span>
<span class="pl-c1">internalValue</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-c1">watch</span>: <span class="pl-kos">{</span>
<span class="pl-c1">value</span>: <span class="pl-kos">{</span>
<span class="pl-c1">immediate</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-en">handler</span><span class="pl-kos">(</span><span class="pl-s1">value</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">internalValue</span> <span class="pl-c1">=</span> <span class="pl-s1">value</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-en">internalValue</span><span class="pl-kos">(</span><span class="pl-s1">internalValue</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">$emit</span><span class="pl-kos">(</span><span class="pl-s">'input'</span><span class="pl-kos">,</span> <span class="pl-s1">internalValue</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">methods</span>: <span class="pl-kos">{</span>
<span class="pl-en">toggle</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">internalValue</span> <span class="pl-c1">=</span> <span class="pl-c1">!</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">internalValue</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">In order to distinguish between the prop and the data, I've used <code class="notranslate">value</code> and <code class="notranslate">internalValue</code> respectively. The problem is that <code class="notranslate">value</code> is rarely used in the code (it's only used in the watcher) and I have to remember to use <code class="notranslate">internalValue</code> throughout the component's code and template instead of <code class="notranslate">value</code> (since <code class="notranslate">internalValue</code> is the mutable source of truth).</p>
<p dir="auto">To avoid this, I could instead name the prop <code class="notranslate">externalValue</code> and the data <code class="notranslate">value</code>, but now I would have to use <code class="notranslate"><checkbox :external-value="x"></code> which is not ideal (the external prop should be called simply "value").</p>
<p dir="auto">I'm proposing a feature in which you can specify what internal name a prop should be exposed as within the component without changing the external name of that prop in templates (kind of like how method arguments work in objective-c).</p>
<h3 dir="auto">What does the proposed API look like?</h3>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Vue.component('foo', {
props: {
value: {
internalName: 'valueProp',
},
},
template: '<div>{{ valueProp }}</div>',
});"><pre class="notranslate"><span class="pl-v">Vue</span><span class="pl-kos">.</span><span class="pl-en">component</span><span class="pl-kos">(</span><span class="pl-s">'foo'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>
<span class="pl-c1">props</span>: <span class="pl-kos">{</span>
<span class="pl-c1">value</span>: <span class="pl-kos">{</span>
<span class="pl-c1">internalName</span>: <span class="pl-s">'valueProp'</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">template</span>: <span class="pl-s">'<div>{{ valueProp }}</div>'</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<foo value="bar">"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">foo</span> <span class="pl-c1">value</span>="<span class="pl-s">bar</span>"<span class="pl-kos">></span></pre></div> | 0 |
<p dir="auto">Challenge <a href="https://www.freecodecamp.com/en/challenges/html5-and-css/change-the-color-of-text" rel="nofollow">change-the-color-of-text</a> has an issue.<br>
User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 6.1; WOW64; rv:48.0) Gecko/20100101 Firefox/48.0</code>.<br>
Please describe how to reproduce this issue, and include links to screenshots if possible.</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
<h2 style="color: red">CatPhotoApp</h2>
<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">h2</span> <span class="pl-c1">style</span>="<span class="pl-s">color: red</span>"<span class="pl-kos">></span>CatPhotoApp<span class="pl-kos"></</span><span class="pl-ent">h2</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">p</span><span class="pl-kos">></span>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.<span class="pl-kos"></</span><span class="pl-ent">p</span><span class="pl-kos">></span></pre></div> | <p dir="auto">Challenge <a href="https://www.freecodecamp.com/en/challenges/html5-and-css/change-the-color-of-text" rel="nofollow">change-the-color-of-text</a> has an issue.<br>
User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 10.0; WOW64; rv:48.0) Gecko/20100101 Firefox/48.0</code>.<br>
Please describe how to reproduce this issue, and include links to screenshots if possible.</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
<h2>CatPhotoApp</h2>
<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<h2>CatPhotoApp</h2>
<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">h2</span><span class="pl-kos">></span>CatPhotoApp<span class="pl-kos"></</span><span class="pl-ent">h2</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">p</span><span class="pl-kos">></span>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.<span class="pl-kos"></</span><span class="pl-ent">p</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">h2</span><span class="pl-kos">></span>CatPhotoApp<span class="pl-kos"></</span><span class="pl-ent">h2</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">p</span><span class="pl-kos">></span>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.<span class="pl-kos"></</span><span class="pl-ent">p</span><span class="pl-kos">></span></pre></div>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
<h2 style="colr:red;">CatPhotoApp</h2>
<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<h2 style="colr:red;">CatPhotoApp</h2>
<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">h2</span> <span class="pl-c1">style</span>="<span class="pl-s">colr:red;</span>"<span class="pl-kos">></span>CatPhotoApp<span class="pl-kos"></</span><span class="pl-ent">h2</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">p</span><span class="pl-kos">></span>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.<span class="pl-kos"></</span><span class="pl-ent">p</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">h2</span> <span class="pl-c1">style</span>="<span class="pl-s">colr:red;</span>"<span class="pl-kos">></span>CatPhotoApp<span class="pl-kos"></</span><span class="pl-ent">h2</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">p</span><span class="pl-kos">></span>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.<span class="pl-kos"></</span><span class="pl-ent">p</span><span class="pl-kos">></span>
</pre></div>
<p dir="auto">This had previously passed. Resubmitted now its failing. Cleared my code and tried to reenter now it doesnt accept the code at all. It resents and clears my text inputed when I click run code.</p> | 1 |
<p dir="auto">Could we get Swift's dot notation for enum values?</p>
<p dir="auto">It is very cumbersome to import an enum declaration and having to write them in function calls:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// ABC.ts
export const enum ABC {
A,
B,
C,
}
export function testABC(abc: ABC) {
}
// test.ts
import { ABC } from './ABC';
import { testABC } from './ABC';
// it is very cumbersome to import ABC and type ABC.
testABC(ABC.A);"><pre class="notranslate"><span class="pl-c">// ABC.ts</span>
<span class="pl-k">export</span> <span class="pl-k">const</span> <span class="pl-k">enum</span> <span class="pl-smi">ABC</span> <span class="pl-kos">{</span>
<span class="pl-c1">A</span><span class="pl-kos">,</span>
<span class="pl-c1">B</span><span class="pl-kos">,</span>
<span class="pl-c1">C</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span>
<span class="pl-k">export</span> <span class="pl-k">function</span> <span class="pl-en">testABC</span><span class="pl-kos">(</span><span class="pl-s1">abc</span>: <span class="pl-smi">ABC</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-kos">}</span>
<span class="pl-c">// test.ts</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">ABC</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'./ABC'</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">testABC</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'./ABC'</span><span class="pl-kos">;</span>
<span class="pl-c">// it is very cumbersome to import ABC and type ABC.</span>
<span class="pl-en">testABC</span><span class="pl-kos">(</span><span class="pl-smi">ABC</span><span class="pl-kos">.</span><span class="pl-c1">A</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Swift introduced the most laziest way to write them. It would be good if TS could support it also.</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// test.ts
import { testABC } from './ABC';
testABC(.A);"><pre class="notranslate"><span class="pl-c">// test.ts</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">testABC</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'./ABC'</span><span class="pl-kos">;</span>
<span class="pl-en">testABC</span><span class="pl-kos">(</span><span class="pl-kos">.</span><span class="pl-smi">A</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Here is an another example with a switch statement, where you don't need to write <code class="notranslate">ABC</code> on every case:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { ABC } from './ABC';
let abc: ABC;
switch (abc) {
case .A:
break;
case .B:
break;
case .C:
break;
}"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">ABC</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'./ABC'</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> <span class="pl-s1">abc</span>: <span class="pl-smi">ABC</span><span class="pl-kos">;</span>
<span class="pl-k">switch</span> <span class="pl-kos">(</span><span class="pl-s1">abc</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">case</span> <span class="pl-kos">.</span><span class="pl-smi">A</span>:
<span class="pl-k">break</span><span class="pl-kos">;</span>
<span class="pl-k">case</span> <span class="pl-kos">.</span><span class="pl-smi">B</span>:
<span class="pl-k">break</span><span class="pl-kos">;</span>
<span class="pl-k">case</span> <span class="pl-kos">.</span><span class="pl-smi">C</span>:
<span class="pl-k">break</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div> | <p dir="auto">Porting over this issue from:<a href="http://typescript.codeplex.com/workitem/260" rel="nofollow">http://typescript.codeplex.com/workitem/260</a>.</p>
<p dir="auto">This is a request to add support for get/set accessors in interfaces. This would allow the interface to define the ability of the interface. For example, in the case where the property is read-only, "get" keyword in the interface would indicate that the property is read-only.</p> | 0 |
<p dir="auto">Stacktrace here:<br>
<a href="https://gist.github.com/ssfrr/248bd3f34a31456acea457756ce4feb6">https://gist.github.com/ssfrr/248bd3f34a31456acea457756ce4feb6</a></p>
<p dir="auto">I can reproduce reliably with <a href="https://github.com/JuliaAudio/LibSndFile.jl">LibSndFile</a> master on Win64.</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="using LibSndFile
buf = LibSndFile.load("C:\\Users\\sfr\\Dropbox\\chris_mann.wav") # use your own wav file here"><pre class="notranslate"><span class="pl-k">using</span> LibSndFile
buf <span class="pl-k">=</span> LibSndFile<span class="pl-k">.</span><span class="pl-c1">load</span>(<span class="pl-s"><span class="pl-pds">"</span>C:<span class="pl-cce">\\</span>Users<span class="pl-cce">\\</span>sfr<span class="pl-cce">\\</span>Dropbox<span class="pl-cce">\\</span>chris_mann.wav<span class="pl-pds">"</span></span>) <span class="pl-c"><span class="pl-c">#</span> use your own wav file here</span></pre></div>
<p dir="auto">Versioninfo:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Julia Version 0.7.0-rc2.0
Commit 78540cba4c (2018-08-02 19:14 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-6.0.0 (ORCJIT, skylake)
Environment:
JULIA_NUM_THREADS = 2"><pre class="notranslate"><code class="notranslate">Julia Version 0.7.0-rc2.0
Commit 78540cba4c (2018-08-02 19:14 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-6.0.0 (ORCJIT, skylake)
Environment:
JULIA_NUM_THREADS = 2
</code></pre></div> | <p dir="auto">This script works fine on 0.6, but segfaults on master:</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="using Base.LinAlg
using Base.LinAlg.BLAS: libblas, BlasInt, @blasfunc
function gemm!(transA::Char, transB::Char, M::Int, N::Int, K::Int, alpha::(Float64), A::Ptr{Float64}, B::Ptr{Float64}, beta::(Float64), C::Ptr{Float64})
if transA=='N'; lda=M; else; lda=K; end
if transB=='N'; ldb=K; else; ldb=N; end
ldc = M;
ccall((@blasfunc(dgemm_), libblas), Void,
(Ptr{UInt8}, Ptr{UInt8}, Ptr{BlasInt}, Ptr{BlasInt},
Ptr{BlasInt}, Ptr{Float64}, Ptr{Float64}, Ptr{BlasInt},
Ptr{Float64}, Ptr{BlasInt}, Ptr{Float64}, Ptr{Float64},
Ptr{BlasInt}),
&transA, &transB, &M, &N, &K,
&alpha, A, &lda, B, &ldb, &beta, C, &ldc)
end
x = zeros(12, 4)
w = zeros(2, 2, 1, 1)
y = zeros(4, 3, 1, 1)
gemm!('N','N',12,1,4,1.0,pointer(x),pointer(w),0.,pointer(y))"><pre class="notranslate"><span class="pl-k">using</span> Base<span class="pl-k">.</span>LinAlg
<span class="pl-k">using</span> Base<span class="pl-k">.</span>LinAlg<span class="pl-k">.</span>BLAS<span class="pl-k">:</span> libblas, BlasInt, <span class="pl-c1">@blasfunc</span>
<span class="pl-k">function</span> <span class="pl-en">gemm!</span>(transA<span class="pl-k">::</span><span class="pl-c1">Char</span>, transB<span class="pl-k">::</span><span class="pl-c1">Char</span>, M<span class="pl-k">::</span><span class="pl-c1">Int</span>, N<span class="pl-k">::</span><span class="pl-c1">Int</span>, K<span class="pl-k">::</span><span class="pl-c1">Int</span>, alpha<span class="pl-k">::</span><span class="pl-c1">(Float64)</span>, A<span class="pl-k">::</span><span class="pl-c1">Ptr{Float64}</span>, B<span class="pl-k">::</span><span class="pl-c1">Ptr{Float64}</span>, beta<span class="pl-k">::</span><span class="pl-c1">(Float64)</span>, C<span class="pl-k">::</span><span class="pl-c1">Ptr{Float64}</span>)
<span class="pl-k">if</span> transA<span class="pl-k">==</span><span class="pl-s"><span class="pl-pds">'</span>N<span class="pl-pds">'</span></span>; lda<span class="pl-k">=</span>M; <span class="pl-k">else</span>; lda<span class="pl-k">=</span>K; <span class="pl-k">end</span>
<span class="pl-k">if</span> transB<span class="pl-k">==</span><span class="pl-s"><span class="pl-pds">'</span>N<span class="pl-pds">'</span></span>; ldb<span class="pl-k">=</span>K; <span class="pl-k">else</span>; ldb<span class="pl-k">=</span>N; <span class="pl-k">end</span>
ldc <span class="pl-k">=</span> M;
<span class="pl-c1">ccall</span>((<span class="pl-c1">@blasfunc</span>(dgemm_), libblas), Void,
(Ptr{UInt8}, Ptr{UInt8}, Ptr{BlasInt}, Ptr{BlasInt},
Ptr{BlasInt}, Ptr{Float64}, Ptr{Float64}, Ptr{BlasInt},
Ptr{Float64}, Ptr{BlasInt}, Ptr{Float64}, Ptr{Float64},
Ptr{BlasInt}),
<span class="pl-k">&</span>transA, <span class="pl-k">&</span>transB, <span class="pl-k">&</span>M, <span class="pl-k">&</span>N, <span class="pl-k">&</span>K,
<span class="pl-k">&</span>alpha, A, <span class="pl-k">&</span>lda, B, <span class="pl-k">&</span>ldb, <span class="pl-k">&</span>beta, C, <span class="pl-k">&</span>ldc)
<span class="pl-k">end</span>
x <span class="pl-k">=</span> <span class="pl-c1">zeros</span>(<span class="pl-c1">12</span>, <span class="pl-c1">4</span>)
w <span class="pl-k">=</span> <span class="pl-c1">zeros</span>(<span class="pl-c1">2</span>, <span class="pl-c1">2</span>, <span class="pl-c1">1</span>, <span class="pl-c1">1</span>)
y <span class="pl-k">=</span> <span class="pl-c1">zeros</span>(<span class="pl-c1">4</span>, <span class="pl-c1">3</span>, <span class="pl-c1">1</span>, <span class="pl-c1">1</span>)
<span class="pl-c1">gemm!</span>(<span class="pl-s"><span class="pl-pds">'</span>N<span class="pl-pds">'</span></span>,<span class="pl-s"><span class="pl-pds">'</span>N<span class="pl-pds">'</span></span>,<span class="pl-c1">12</span>,<span class="pl-c1">1</span>,<span class="pl-c1">4</span>,<span class="pl-c1">1.0</span>,<span class="pl-c1">pointer</span>(x),<span class="pl-c1">pointer</span>(w),<span class="pl-c1">0.</span>,<span class="pl-c1">pointer</span>(y))</pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="➜ NNlib.jl git:(julia-0.7) ✗ j --depwarn=no test.jl
signal (11): Segmentation fault
in expression starting at /home/mike/projects/flux/NNlib.jl/test.jl:21
_ZNK4llvm5Value16DoPHITranslationEPKNS_10BasicBlockES3_ at /home/mike/projects/julia/usr/bin/../lib/libLLVM-6.0.so (unknown line)
Allocations: 341387 (Pool: 341240; Big: 147); GC: 0
[1] 3837 segmentation fault (core dumped) j --depwarn=no test.jl"><pre class="notranslate"><code class="notranslate">➜ NNlib.jl git:(julia-0.7) ✗ j --depwarn=no test.jl
signal (11): Segmentation fault
in expression starting at /home/mike/projects/flux/NNlib.jl/test.jl:21
_ZNK4llvm5Value16DoPHITranslationEPKNS_10BasicBlockES3_ at /home/mike/projects/julia/usr/bin/../lib/libLLVM-6.0.so (unknown line)
Allocations: 341387 (Pool: 341240; Big: 147); GC: 0
[1] 3837 segmentation fault (core dumped) j --depwarn=no test.jl
</code></pre></div>
<p dir="auto">Tried some older versions and it doesn't seem to be recent (e.g. newoptimizer related).</p> | 1 |
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-link-to-external-pages-with-anchor-elements" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-link-to-external-pages-with-anchor-elements</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p>
<p dir="auto">When attempting to Run a test, the checklist below the button disappeared, and will not re-appear when trying to Reset. It does, however, re-appear when refreshing the browser page.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/12400009/9750049/bf880f56-5647-11e5-89e8-1b09e25c7a1c.png"><img src="https://cloud.githubusercontent.com/assets/12400009/9750049/bf880f56-5647-11e5-89e8-1b09e25c7a1c.png" alt="screen shot 2015-09-08 at 4 33 34 pm" style="max-width: 100%;"></a></p> | <p dir="auto">Waypoint hints do not always appear after the page has loaded. Refreshing the page does not always seem to work. Closed & reopened browser does not seem to change behaviour. Issue is not specific to certain waypoints but started to occur in the jQuery section.</p>
<p dir="auto">Issue experienced on Chrome 44.0.2403.55 on Windows 8.1. Attached screenshot for clarity.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/14047456/9572289/72b58b36-4f7b-11e5-98ed-a44133dd9331.png"><img src="https://cloud.githubusercontent.com/assets/14047456/9572289/72b58b36-4f7b-11e5-98ed-a44133dd9331.png" alt="image" style="max-width: 100%;"></a></p> | 1 |
<p dir="auto">Sublime Text has the option:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" // Set to "none" to turn off drawing white space, "selection" to draw only the
// white space within the selection, and "all" to draw all white space
"draw_white_space": "selection","><pre class="notranslate"><code class="notranslate"> // Set to "none" to turn off drawing white space, "selection" to draw only the
// white space within the selection, and "all" to draw all white space
"draw_white_space": "selection",
</code></pre></div>
<p dir="auto">I would like to see <code class="notranslate">selection</code> added to list of possible values for <code class="notranslate">editor.renderWhitespace</code>. I find it incredibly useful.</p>
<p dir="auto">While writing code, I prefer to not show whitespace. However, when I copy-paste code snippets, I like to know the whitespace matches the target document by simply selecting it (usually via <code class="notranslate">Ctrl+A</code>), not using the arrow keys or toggling a setting.</p>
<p dir="auto">Thanks</p> | <p dir="auto">Hey,</p>
<p dir="auto">methods in POJOs don't autocomplete like here:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var foo = {
bar() {
}
baz() {
this.bar<ctrl+space>
}
}"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">foo</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
<span class="pl-en">bar</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-kos">}</span>
<span class="pl-en">baz</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">bar</span><span class="pl-c1"><</span><span class="pl-s1">ctrl</span><span class="pl-c1">+</span><span class="pl-s1">space</span><span class="pl-c1">></span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">although it works just fine for ES6 classes:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Foo {
bar() {
}
baz() {
this.bar<ctrl+space>
}
}"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">Foo</span> <span class="pl-kos">{</span>
<span class="pl-en">bar</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-kos">}</span>
<span class="pl-en">baz</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">bar</span><span class="pl-c1"><</span><span class="pl-s1">ctrl</span><span class="pl-c1">+</span><span class="pl-s1">space</span><span class="pl-c1">></span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">BR<br>
Dominik</p> | 0 |
<p dir="auto">It would be good to have a validator for JSON date timestamps (as resulting from <code class="notranslate">(new Date()).toJSON()</code> or <code class="notranslate">JSON.stringify(new Date())</code>, e.g. <code class="notranslate">2014-09-13T12:08:06.080Z</code>)</p>
<p dir="auto">It can be useful to validate arrays or objects resulting from the deserialization of a JSON string where some field represents a Date object.</p>
<p dir="auto">A common use case is when you have to write a JSON rest API and you have to handle date fields coming from the request (and it's obviously good to validate these fields before using them on the server side).</p>
<p dir="auto">I have written my own implementation for this and if it seems a good feature to integrate in the symfony core a can submit a pull request and write the related documentation.</p>
<p dir="auto">PS: the validator can also be extended even further and support the entire ISO8601specification (eg. <code class="notranslate">ISO8601DateValidator</code>)</p> | <p dir="auto">At the moment, we have three constraints for validating date/time values:</p>
<ul dir="auto">
<li><code class="notranslate">Date</code> accepts <code class="notranslate">\DateTime</code> instances and 'Y-m-d' strings</li>
<li><code class="notranslate">DateTime</code> accepts <code class="notranslate">\DateTime</code> instances and 'Y-m-d H:i:s' strings</li>
<li><code class="notranslate">Time</code> accepts <code class="notranslate">\DateTime</code> instances and 'H:i:s' strings</li>
</ul>
<p dir="auto">I think that's a bit confusing. Usually, a value should not be a <code class="notranslate">\DateTime</code> <em>or</em> a string, but either of them; if it is a string, it should usually match a specific pattern.</p>
<p dir="auto">Therefore I propose to deprecate all three constraints. The <code class="notranslate">\DateTime</code> case can be solved with the <code class="notranslate">Type</code> constraint already:</p>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/**
* @Assert\Type('\DateTime')
*/
private $createdAt;"><pre class="notranslate"><span class="pl-c">/**</span>
<span class="pl-c"> * @Assert\Type('\DateTime')</span>
<span class="pl-c"> */</span>
<span class="pl-k">private</span> <span class="pl-s1"><span class="pl-c1">$</span>createdAt</span>;</pre></div>
<p dir="auto">The second case would be covered by a new <code class="notranslate">Timestamp</code> constraint which accepts a format as argument as <a href="http://de2.php.net/manual/en/function.date.php" rel="nofollow">supported by PHP</a>:</p>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/**
* @Assert\Timestamp('Y-m-d')
*/
private $createdAt;
/**
* @Assert\Timestamp('c')
*/
private $iso8601Date;"><pre class="notranslate"><span class="pl-c">/**</span>
<span class="pl-c"> * @Assert\Timestamp('Y-m-d')</span>
<span class="pl-c"> */</span>
<span class="pl-k">private</span> <span class="pl-s1"><span class="pl-c1">$</span>createdAt</span>;
<span class="pl-c">/**</span>
<span class="pl-c"> * @Assert\Timestamp('c')</span>
<span class="pl-c"> */</span>
<span class="pl-k">private</span> <span class="pl-s1"><span class="pl-c1">$</span>iso8601Date</span>;</pre></div>
<p dir="auto">This would fix <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="42694526" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/11919" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/11919/hovercard" href="https://github.com/symfony/symfony/issues/11919">#11919</a> and replace <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="41660699" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/11821" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/11821/hovercard" href="https://github.com/symfony/symfony/pull/11821">#11821</a>.</p> | 1 |
<p dir="auto">[Enter steps to reproduce below:]</p>
<ol dir="auto">
<li>I opened a very large (591.0 MB (591,032,444 bytes)) JSON file.</li>
</ol>
<p dir="auto"><strong>Atom Version</strong>: 1.0.0<br>
<strong>System</strong>: Ubuntu 15.04<br>
<strong>Thrown From</strong>: Atom Core</p>
<h3 dir="auto">Stack Trace</h3>
<p dir="auto">Uncaught RangeError: Invalid string length</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At /usr/share/atom/resources/app.asar/node_modules/pathwatcher/lib/file.js:301
RangeError: Invalid string length
at Array.join (native)
at ReadStream.<anonymous> (/usr/share/atom/resources/app.asar/node_modules/pathwatcher/lib/file.js:301:43)
at emitNone (events.js:72:20)
at ReadStream.emit (events.js:163:7)
at _stream_readable.js:891:16
at process._tickCallback (node.js:357:13)
"><pre class="notranslate"><code class="notranslate">At /usr/share/atom/resources/app.asar/node_modules/pathwatcher/lib/file.js:301
RangeError: Invalid string length
at Array.join (native)
at ReadStream.<anonymous> (/usr/share/atom/resources/app.asar/node_modules/pathwatcher/lib/file.js:301:43)
at emitNone (events.js:72:20)
at ReadStream.emit (events.js:163:7)
at _stream_readable.js:891:16
at process._tickCallback (node.js:357:13)
</code></pre></div>
<h3 dir="auto">Commands</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" -8:52 editor:select-line (atom-text-editor.editor.is-focused)
-8:49.7.0 grammar-selector:show (atom-text-editor.editor.is-focused)
22x -8:04.1.0 pane:show-next-item (atom-text-editor.editor.is-focused)
2x -6:26 pane:show-previous-item (atom-text-editor.editor.is-focused)
-6:20.3.0 release-notes:show (atom-text-editor.editor.is-focused)
41x -0:16.5.0 core:close (atom-text-editor.editor.is-focused)"><pre class="notranslate"><code class="notranslate"> -8:52 editor:select-line (atom-text-editor.editor.is-focused)
-8:49.7.0 grammar-selector:show (atom-text-editor.editor.is-focused)
22x -8:04.1.0 pane:show-next-item (atom-text-editor.editor.is-focused)
2x -6:26 pane:show-previous-item (atom-text-editor.editor.is-focused)
-6:20.3.0 release-notes:show (atom-text-editor.editor.is-focused)
41x -0:16.5.0 core:close (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="{
"core": {},
"editor": {
"invisibles": {},
"fontSize": 10,
"tabLength": 4,
"showInvisibles": true
}
}"><pre class="notranslate">{
<span class="pl-ent">"core"</span>: {},
<span class="pl-ent">"editor"</span>: {
<span class="pl-ent">"invisibles"</span>: {},
<span class="pl-ent">"fontSize"</span>: <span class="pl-c1">10</span>,
<span class="pl-ent">"tabLength"</span>: <span class="pl-c1">4</span>,
<span class="pl-ent">"showInvisibles"</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
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">To reproduce:</p>
<ol dir="auto">
<li><code class="notranslate">dd if=/dev/zero of=largefile count=1 bs=1000M</code>; if this does not reproduce play around with adjusting <code class="notranslate">bs</code> and <code class="notranslate">count</code>.</li>
<li>Open atom and try to open <code class="notranslate">largefile</code>.</li>
</ol>
<p dir="auto"><strong>Atom Version</strong>: 0.208.0<br>
<strong>System</strong>: Ubuntu 15.04<br>
<strong>Thrown From</strong>: Atom Core</p>
<h3 dir="auto">Stack Trace</h3>
<p dir="auto">Uncaught RangeError: Invalid string length</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At /usr/share/atom/resources/app.asar/node_modules/pathwatcher/lib/file.js:301
RangeError: Invalid string length
at Array.join (native)
at ReadStream.<anonymous> (/usr/share/atom/resources/app.asar/node_modules/pathwatcher/lib/file.js:301:43)
at emitNone (events.js:72:20)
at ReadStream.emit (events.js:163:7)
at _stream_readable.js:891:16
at process._tickCallback (node.js:357:13)"><pre class="notranslate"><code class="notranslate">At /usr/share/atom/resources/app.asar/node_modules/pathwatcher/lib/file.js:301
RangeError: Invalid string length
at Array.join (native)
at ReadStream.<anonymous> (/usr/share/atom/resources/app.asar/node_modules/pathwatcher/lib/file.js:301:43)
at emitNone (events.js:72:20)
at ReadStream.emit (events.js:163:7)
at _stream_readable.js:891:16
at process._tickCallback (node.js:357:13)
</code></pre></div>
<h3 dir="auto">Commands</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 2x -3:24.1.0 release-notes:show (atom-text-editor.editor.is-focused)"><pre class="notranslate"><code class="notranslate"> 2x -3:24.1.0 release-notes:show (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="{
"core": {},
"editor": {
"invisibles": {},
"tabLength": 4
}
}"><pre class="notranslate">{
<span class="pl-ent">"core"</span>: {},
<span class="pl-ent">"editor"</span>: {
<span class="pl-ent">"invisibles"</span>: {},
<span class="pl-ent">"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
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> | 1 |
<h3 dir="auto">System information</h3>
<ul dir="auto">
<li>macOS 10.12.5</li>
<li>installed from binary</li>
<li>Tensorflow v1.2.0-1751-g43a819e13 1.2.1</li>
<li>Python 3.6.1</li>
<li>Bazel 0.5.2-homebrew</li>
</ul>
<h3 dir="auto">Describe the problem</h3>
<p dir="auto">The custom model section of the <a href="https://www.tensorflow.org/get_started/get_started" rel="nofollow">"Getting Started With TensorFlow" guide</a> doesn't define "eval_input_fn".</p>
<p dir="auto">I ran across the error when I copied the code line by line and ran it on my machine. I fixed it by adding the following definition after "input_fn" is defined:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="eval_input_fn = tf.contrib.learn.io.numpy_input_fn({"x":x_eval}, y_eval,
4, num_epochs = 1000);"><pre class="notranslate"><code class="notranslate">eval_input_fn = tf.contrib.learn.io.numpy_input_fn({"x":x_eval}, y_eval,
4, num_epochs = 1000);
</code></pre></div>
<h3 dir="auto">Source code / logs</h3>
<p dir="auto">Code in Guide:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import numpy as np
import tensorflow as tf
# Declare list of features, we only have one real-valued feature
def model(features, labels, mode):
# Build a linear model and predict values
W = tf.get_variable("W", [1], dtype=tf.float64)
b = tf.get_variable("b", [1], dtype=tf.float64)
y = W*features['x'] + b
# Loss sub-graph
loss = tf.reduce_sum(tf.square(y - labels))
# Training sub-graph
global_step = tf.train.get_global_step()
optimizer = tf.train.GradientDescentOptimizer(0.01)
train = tf.group(optimizer.minimize(loss),
tf.assign_add(global_step, 1))
# ModelFnOps connects subgraphs we built to the
# appropriate functionality.
return tf.contrib.learn.ModelFnOps(
mode=mode, predictions=y,
loss=loss,
train_op=train)
estimator = tf.contrib.learn.Estimator(model_fn=model)
# define our data sets
x_train = np.array([1., 2., 3., 4.])
y_train = np.array([0., -1., -2., -3.])
x_eval = np.array([2., 5., 8., 1.])
y_eval = np.array([-1.01, -4.1, -7, 0.])
input_fn = tf.contrib.learn.io.numpy_input_fn({"x": x_train}, y_train, 4, num_epochs=1000)
# WHERE I ADDED THE DEFINITION
# train
estimator.fit(input_fn=input_fn, steps=1000)
# Here we evaluate how well our model did.
train_loss = estimator.evaluate(input_fn=input_fn)
eval_loss = estimator.evaluate(input_fn=eval_input_fn)
print("train loss: %r"% train_loss)
print("eval loss: %r"% eval_loss)"><pre class="notranslate"><code class="notranslate">import numpy as np
import tensorflow as tf
# Declare list of features, we only have one real-valued feature
def model(features, labels, mode):
# Build a linear model and predict values
W = tf.get_variable("W", [1], dtype=tf.float64)
b = tf.get_variable("b", [1], dtype=tf.float64)
y = W*features['x'] + b
# Loss sub-graph
loss = tf.reduce_sum(tf.square(y - labels))
# Training sub-graph
global_step = tf.train.get_global_step()
optimizer = tf.train.GradientDescentOptimizer(0.01)
train = tf.group(optimizer.minimize(loss),
tf.assign_add(global_step, 1))
# ModelFnOps connects subgraphs we built to the
# appropriate functionality.
return tf.contrib.learn.ModelFnOps(
mode=mode, predictions=y,
loss=loss,
train_op=train)
estimator = tf.contrib.learn.Estimator(model_fn=model)
# define our data sets
x_train = np.array([1., 2., 3., 4.])
y_train = np.array([0., -1., -2., -3.])
x_eval = np.array([2., 5., 8., 1.])
y_eval = np.array([-1.01, -4.1, -7, 0.])
input_fn = tf.contrib.learn.io.numpy_input_fn({"x": x_train}, y_train, 4, num_epochs=1000)
# WHERE I ADDED THE DEFINITION
# train
estimator.fit(input_fn=input_fn, steps=1000)
# Here we evaluate how well our model did.
train_loss = estimator.evaluate(input_fn=input_fn)
eval_loss = estimator.evaluate(input_fn=eval_input_fn)
print("train loss: %r"% train_loss)
print("eval loss: %r"% eval_loss)
</code></pre></div>
<p dir="auto">Error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
File "custom_model.py", line 37, in <module>
eval_loss = estimator.evaluate(input_fn=eval_input_fn);
NameError: name 'eval_input_fn' is not defined"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
File "custom_model.py", line 37, in <module>
eval_loss = estimator.evaluate(input_fn=eval_input_fn);
NameError: name 'eval_input_fn' is not defined
</code></pre></div> | <p dir="auto">Hello,</p>
<p dir="auto">I would like to submit that there is a programming bug on line 29 of the "custom model tutorial" within Getting Started with Tensorflow.</p>
<p dir="auto">The line should read:</p>
<p dir="auto">input_fn = tf.contrib.learn.io.numpy_input_fn({"x":x_train}, y_train, batch_size=4, num_epochs=1000)</p>
<p dir="auto">Best regards.<br>
Jeff</p> | 1 |
<p dir="auto">因为采用dbproxy中间件,由dbproxy维持到mysql的connection。为了复用连接,不支持autocommit=0的方式开启事务,只能显式执行begin来开启事务。<br>
但是sharding-jdbc没有实现begin或start transaction的MySQLParser。</p>
<h3 dir="auto">Which version of Sharding-Jdbc do you using?(您使用的Sharding-Jdbc版本为?)</h3>
<p dir="auto">1.5.4.1</p>
<h3 dir="auto">Expected behavior (您预期的结果是)</h3>
<p dir="auto">可以正常执行statement.executeUpdate("BEGIN");</p>
<h3 dir="auto">Actual behavior (实际运行的结果是)</h3>
<p dir="auto">报异常com.dangdang.ddframe.rdb.sharding.parsing.parser.exception.SQLParsingUnsupportedException: Not supported token 'BEGIN'.</p>
<h3 dir="auto">Steps to reproduce the behavior (可重现问题的操作步骤)</h3>
<p dir="auto">执行statement.executeUpdate("BEGIN");</p> | <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<bean:properties id="keyGeneratorProps">
<prop key="worker.id">?</prop>
</bean:properties>
<sharding:key-generator id="xxKeyGenerator" type="SNOWFLAKE" column="id" props-ref="keyGeneratorProps"/>"><pre class="notranslate"><code class="notranslate"><bean:properties id="keyGeneratorProps">
<prop key="worker.id">?</prop>
</bean:properties>
<sharding:key-generator id="xxKeyGenerator" type="SNOWFLAKE" column="id" props-ref="keyGeneratorProps"/>
</code></pre></div> | 0 |
<p dir="auto">I upgraded to version 0.18 today and I'm glad it can search all apps now, but when I try to open Windows terminal by typing "wt" it doesn't search out Windows terminal, but win10 search can do it, I wish powertoys could add support for aliases too!</p> | <h1 dir="auto">Summary of the new feature/enhancement</h1>
<p dir="auto">I'd love to be able to setup aliases where a user-meaningful short keyword can be mapped to an app, file, or URL (with parameters / arguments optional).</p>
<p dir="auto">This would be similar in ways to "magic words" in the old SlickRun (<a href="https://bayden.com/SlickRun/1033/SlickRunHelp.aspx" rel="nofollow">https://bayden.com/SlickRun/1033/SlickRunHelp.aspx</a>).</p>
<p dir="auto">Typing the keyword would autocomplete and opening / selecting / invoking would launch the corresponding file / app / url.</p>
<h1 dir="auto">Proposed technical implementation details (optional)</h1>
<p dir="auto">A "..." button could appear near search icon to launch a config screen or open a config file. There might also be a syntax or keyword to configure these aliases (like "setup" in SlickRun).</p> | 1 |
<ul dir="auto">
<li>
<p dir="auto">Neo4j version: 4.4.12-enterprise</p>
</li>
<li>
<p dir="auto">Operating system: ubuntu 22.04 Docker Mode</p>
</li>
<li>
<p dir="auto"><strong>Steps to reproduce</strong><br>
bin/neo4j-admin import --skip-duplicate-nodes --database=test --nodes=a=import/20779588711874560/a_node_header.csv,import/20779588711874560/[0-9]<em>_a_node.csv --relationships=transfer=import/20779588711874560/transfer_relationship_header.csv,import/20779588711874560/[0-9]</em>_transfer_relationship.csv</p>
</li>
</ul>
<p dir="auto"><a href="https://github.com/neo4j/neo4j/files/9876896/jstack.txt">jstack.txt</a></p>
<p dir="auto"><a href="https://github.com/neo4j/neo4j/files/9876914/console.txt">console.txt</a></p>
<p dir="auto">I figure out that the neo4j server is doing unstopped sort job in idmapper prepare step.<br>
Some idea about too many nodes? There are about 2 billion lines of node in my import csv, contains duplicated nodes.<br>
Should I manual remove duplicated nodes to speed up import.</p> | <p dir="auto">When running the following query we receive a <code class="notranslate">key not found: UNNAMED60</code> error (<code class="notranslate">Neo.DatabaseError.General.UnknownError</code>):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="MATCH (s:NODE)<-[:IS_VERSION_OF]-(sv:NODE_VERSION),
p = (s)-[*0..]->(:`NODE`)
WHERE (s.id IN ['42a8c128-f575-488f-a914-ba18157ae124'])
AND (NOT(sv.until < 20180101 OR sv.from > 20181231))
AND (ALL(r IN relationships(p) WHERE NOT(r.until < 20180101 OR r.from > 20181231)))
AND ALL(x IN nodes(p) WHERE single(y IN nodes(p) WHERE y = x))
RETURN p"><pre class="notranslate"><code class="notranslate">MATCH (s:NODE)<-[:IS_VERSION_OF]-(sv:NODE_VERSION),
p = (s)-[*0..]->(:`NODE`)
WHERE (s.id IN ['42a8c128-f575-488f-a914-ba18157ae124'])
AND (NOT(sv.until < 20180101 OR sv.from > 20181231))
AND (ALL(r IN relationships(p) WHERE NOT(r.until < 20180101 OR r.from > 20181231)))
AND ALL(x IN nodes(p) WHERE single(y IN nodes(p) WHERE y = x))
RETURN p
</code></pre></div>
<p dir="auto">The following query however works as expected:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="MATCH (s:NODE)<-[:IS_VERSION_OF]-(sv:NODE_VERSION),
p = (s)-[*0..]->(:`NODE`)
WHERE (s.id IN ['42a8c128-f575-488f-a914-ba18157ae124'])
AND (NOT(sv.until < 20180101 OR sv.from > 20181231))
AND (ALL(r IN relationships(p) WHERE NOT(r.until < 20180101 OR r.from > 20181231)))
WITH p
WHERE ALL(x IN nodes(p) WHERE single(y IN nodes(p) WHERE y = x))
RETURN p"><pre class="notranslate"><code class="notranslate">MATCH (s:NODE)<-[:IS_VERSION_OF]-(sv:NODE_VERSION),
p = (s)-[*0..]->(:`NODE`)
WHERE (s.id IN ['42a8c128-f575-488f-a914-ba18157ae124'])
AND (NOT(sv.until < 20180101 OR sv.from > 20181231))
AND (ALL(r IN relationships(p) WHERE NOT(r.until < 20180101 OR r.from > 20181231)))
WITH p
WHERE ALL(x IN nodes(p) WHERE single(y IN nodes(p) WHERE y = x))
RETURN p
</code></pre></div>
<p dir="auto">Note the <code class="notranslate">WITH</code> clause between the path match and the <em>node-duplication</em> condition.</p>
<p dir="auto"><strong>Neo4j Version:</strong> 3.3.4-enterprise<br>
<strong>Operating System:</strong> Mac OS X using official Neo4j docker image<br>
<strong>API:</strong> Neo4j browser / cypher shell</p>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">Query should work.</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">Query results in an error.</p>
<h3 dir="auto">Steps to reproduce</h3>
<ol dir="auto">
<li>start empty Neo4j instance</li>
<li><code class="notranslate">FOREACH (id IN range(0,100) | CREATE (:NODE {id:id}))</code></li>
<li><code class="notranslate">MATCH (n1:NODE),(n2:NODE) WITH n1,n2 LIMIT 500 WHERE rand() < 0.1 CREATE (n1)-[:X {a: 1}]->(n2)</code></li>
<li><code class="notranslate">MATCH (s:NODE), p = (s)-[*0..]->(:</code>NODE<code class="notranslate">) WHERE (s.id IN [1]) AND (ALL(r IN relationships(p) WHERE NOT(r.a < 1 OR r.a > 1))) AND ALL(x IN nodes(p) WHERE single(y IN nodes(p) WHERE y = x)) RETURN p</code> does not work</li>
<li><code class="notranslate">MATCH (s:NODE), p = (s)-[*0..]->(:</code>NODE<code class="notranslate">) WHERE (s.id IN [1]) AND (ALL(r IN relationships(p) WHERE NOT(r.a < 1 OR r.a > 1))) WITH p WHERE ALL(x IN nodes(p) WHERE single(y IN nodes(p) WHERE y = x)) RETURN p</code> does work</li>
</ol>
<p dir="auto">This is the debug log output:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2018-04-25 13:47:12.575+0000 ERROR [o.n.b.v.r.ErrorReporter] Client triggered an unexpected error [UnknownError]: key not found: UNNAMED60, reference 889fa316-bcff-4c22-bf89-b7a75795010e.
2018-04-25 13:47:12.575+0000 ERROR [o.n.b.v.r.ErrorReporter] Client triggered an unexpected error [UnknownError]: key not found: UNNAMED60, reference 889fa316-bcff-4c22-bf89-b7a75795010e. key not found: UNNAMED60
java.util.NoSuchElementException: key not found: UNNAMED60
at scala.collection.MapLike$class.default(MapLike.scala:228)
at org.neo4j.cypher.internal.compatibility.v3_3.runtime.MapExecutionContext.default(ExecutionContext.scala:56)
at scala.collection.MapLike$class.apply(MapLike.scala:141)
at org.neo4j.cypher.internal.compatibility.v3_3.runtime.MapExecutionContext.apply(ExecutionContext.scala:56)
at org.neo4j.cypher.internal.compatibility.v3_3.runtime.commands.expressions.ProjectedPath$multiOutgoingRelationshipProjector.apply(ProjectedPath.scala:63)
at org.neo4j.cypher.internal.compatibility.v3_3.runtime.commands.expressions.ProjectedPath$multiOutgoingRelationshipProjector.apply(ProjectedPath.scala:61)
at org.neo4j.cypher.internal.compatibility.v3_3.runtime.commands.expressions.ProjectedPath$singleNodeProjector.apply(ProjectedPath.scala:37)
at org.neo4j.cypher.internal.compatibility.v3_3.runtime.commands.expressions.ProjectedPath$singleNodeProjector.apply(ProjectedPath.scala:35)
at org.neo4j.cypher.internal.compatibility.v3_3.runtime.commands.expressions.ProjectedPath.apply(ProjectedPath.scala:83)
at org.neo4j.cypher.internal.compatibility.v3_3.runtime.commands.expressions.NullInNullOutExpression.apply(NullInNullOutExpression.scala:30)
at org.neo4j.cypher.internal.compatibility.v3_3.runtime.commands.InList.isMatch(InList.scala:43)
at org.neo4j.cypher.internal.compatibility.v3_3.runtime.commands.predicates.Predicate.isTrue(Predicate.scala:41)
at org.neo4j.cypher.internal.compatibility.v3_3.runtime.CommunityPipeBuilder$$anonfun$asCommand$1$1$$anonfun$apply$5.apply(CommunityPipeBuilder.scala:316)
at org.neo4j.cypher.internal.compatibility.v3_3.runtime.CommunityPipeBuilder$$anonfun$asCommand$1$1$$anonfun$apply$5.apply(CommunityPipeBuilder.scala:314)
at scala.collection.Iterator$class.forall(Iterator.scala:903)
at scala.collection.AbstractIterator.forall(Iterator.scala:1334)
at scala.collection.IterableLike$class.forall(IterableLike.scala:75)
at scala.collection.AbstractIterable.forall(Iterable.scala:54)
at org.neo4j.cypher.internal.compatibility.v3_3.runtime.CommunityPipeBuilder$$anonfun$asCommand$1$1.apply(CommunityPipeBuilder.scala:314)
at org.neo4j.cypher.internal.compatibility.v3_3.runtime.CommunityPipeBuilder$$anonfun$asCommand$1$1.apply(CommunityPipeBuilder.scala:313)
at org.neo4j.cypher.internal.compatibility.v3_3.runtime.CommunityPipeBuilder$$anon$1.filterNode(CommunityPipeBuilder.scala:329)
at org.neo4j.cypher.internal.compatibility.v3_3.runtime.pipes.VarLengthExpandPipe$$anon$1.next(VarLengthExpandPipe.scala:65)
at org.neo4j.cypher.internal.compatibility.v3_3.runtime.pipes.VarLengthExpandPipe$$anon$1.next(VarLengthExpandPipe.scala:62)
at scala.collection.Iterator$$anon$14.hasNext(Iterator.scala:535)
at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:439)
at org.neo4j.cypher.internal.compatibility.v3_3.runtime.profiler.ProfilingIterator.hasNext(Profiler.scala:184)
at scala.collection.Iterator$$anon$13.hasNext(Iterator.scala:462)
at org.neo4j.cypher.internal.compatibility.v3_3.runtime.profiler.ProfilingIterator.hasNext(Profiler.scala:184)
at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:409)
at org.neo4j.cypher.internal.compatibility.v3_3.runtime.profiler.ProfilingIterator.hasNext(Profiler.scala:184)
at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:409)
at org.neo4j.cypher.internal.compatibility.v3_3.runtime.profiler.ProfilingIterator.hasNext(Profiler.scala:184)
at org.neo4j.cypher.internal.compatibility.v3_3.runtime.ClosingIterator.hasNext(ResultIterator.scala:58)
at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:409)
at org.neo4j.cypher.internal.compatibility.v3_3.runtime.helpers.RuntimeJavaValueConverter$feedIteratorToVisitable.accept(RuntimeJavaValueConverter.scala:53)
at org.neo4j.cypher.internal.compatibility.v3_3.runtime.PipeExecutionResult.accept(PipeExecutionResult.scala:112)
at org.neo4j.cypher.internal.compatibility.ClosingExecutionResult$$anonfun$accept$2.apply$mcV$sp(ClosingExecutionResult.scala:175)
at org.neo4j.cypher.internal.compatibility.ClosingExecutionResult$$anonfun$accept$2.apply(ClosingExecutionResult.scala:174)
at org.neo4j.cypher.internal.compatibility.ClosingExecutionResult$$anonfun$accept$2.apply(ClosingExecutionResult.scala:174)
at org.neo4j.cypher.internal.compatibility.v3_3.exceptionHandler$runSafely$.apply(exceptionHandler.scala:90)
at org.neo4j.cypher.internal.compatibility.ClosingExecutionResult.accept(ClosingExecutionResult.scala:174)
at org.neo4j.bolt.v1.runtime.CypherAdapterStream.accept(CypherAdapterStream.java:76)
at org.neo4j.bolt.v1.messaging.BoltMessageRouter$ResultHandler.onRecords(BoltMessageRouter.java:146)
at org.neo4j.bolt.v1.runtime.BoltStateMachine$State$3.lambda$pullAll$0(BoltStateMachine.java:462)
at org.neo4j.bolt.v1.runtime.TransactionStateMachine$State$1.streamResult(TransactionStateMachine.java:272)
at org.neo4j.bolt.v1.runtime.TransactionStateMachine.streamResult(TransactionStateMachine.java:105)
at org.neo4j.bolt.v1.runtime.BoltStateMachine$State$3.pullAll(BoltStateMachine.java:461)
at org.neo4j.bolt.v1.runtime.BoltStateMachine.pullAll(BoltStateMachine.java:236)
at org.neo4j.bolt.v1.messaging.BoltMessageRouter.lambda$onPullAll$6(BoltMessageRouter.java:114)
at org.neo4j.bolt.v1.runtime.concurrent.RunnableBoltWorker.execute(RunnableBoltWorker.java:152)
at org.neo4j.bolt.v1.runtime.concurrent.RunnableBoltWorker.executeBatch(RunnableBoltWorker.java:145)
at org.neo4j.bolt.v1.runtime.concurrent.RunnableBoltWorker.run(RunnableBoltWorker.java:110)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
at org.neo4j.helpers.NamedThreadFactory$2.run(NamedThreadFactory.java:109)"><pre class="notranslate"><code class="notranslate">2018-04-25 13:47:12.575+0000 ERROR [o.n.b.v.r.ErrorReporter] Client triggered an unexpected error [UnknownError]: key not found: UNNAMED60, reference 889fa316-bcff-4c22-bf89-b7a75795010e.
2018-04-25 13:47:12.575+0000 ERROR [o.n.b.v.r.ErrorReporter] Client triggered an unexpected error [UnknownError]: key not found: UNNAMED60, reference 889fa316-bcff-4c22-bf89-b7a75795010e. key not found: UNNAMED60
java.util.NoSuchElementException: key not found: UNNAMED60
at scala.collection.MapLike$class.default(MapLike.scala:228)
at org.neo4j.cypher.internal.compatibility.v3_3.runtime.MapExecutionContext.default(ExecutionContext.scala:56)
at scala.collection.MapLike$class.apply(MapLike.scala:141)
at org.neo4j.cypher.internal.compatibility.v3_3.runtime.MapExecutionContext.apply(ExecutionContext.scala:56)
at org.neo4j.cypher.internal.compatibility.v3_3.runtime.commands.expressions.ProjectedPath$multiOutgoingRelationshipProjector.apply(ProjectedPath.scala:63)
at org.neo4j.cypher.internal.compatibility.v3_3.runtime.commands.expressions.ProjectedPath$multiOutgoingRelationshipProjector.apply(ProjectedPath.scala:61)
at org.neo4j.cypher.internal.compatibility.v3_3.runtime.commands.expressions.ProjectedPath$singleNodeProjector.apply(ProjectedPath.scala:37)
at org.neo4j.cypher.internal.compatibility.v3_3.runtime.commands.expressions.ProjectedPath$singleNodeProjector.apply(ProjectedPath.scala:35)
at org.neo4j.cypher.internal.compatibility.v3_3.runtime.commands.expressions.ProjectedPath.apply(ProjectedPath.scala:83)
at org.neo4j.cypher.internal.compatibility.v3_3.runtime.commands.expressions.NullInNullOutExpression.apply(NullInNullOutExpression.scala:30)
at org.neo4j.cypher.internal.compatibility.v3_3.runtime.commands.InList.isMatch(InList.scala:43)
at org.neo4j.cypher.internal.compatibility.v3_3.runtime.commands.predicates.Predicate.isTrue(Predicate.scala:41)
at org.neo4j.cypher.internal.compatibility.v3_3.runtime.CommunityPipeBuilder$$anonfun$asCommand$1$1$$anonfun$apply$5.apply(CommunityPipeBuilder.scala:316)
at org.neo4j.cypher.internal.compatibility.v3_3.runtime.CommunityPipeBuilder$$anonfun$asCommand$1$1$$anonfun$apply$5.apply(CommunityPipeBuilder.scala:314)
at scala.collection.Iterator$class.forall(Iterator.scala:903)
at scala.collection.AbstractIterator.forall(Iterator.scala:1334)
at scala.collection.IterableLike$class.forall(IterableLike.scala:75)
at scala.collection.AbstractIterable.forall(Iterable.scala:54)
at org.neo4j.cypher.internal.compatibility.v3_3.runtime.CommunityPipeBuilder$$anonfun$asCommand$1$1.apply(CommunityPipeBuilder.scala:314)
at org.neo4j.cypher.internal.compatibility.v3_3.runtime.CommunityPipeBuilder$$anonfun$asCommand$1$1.apply(CommunityPipeBuilder.scala:313)
at org.neo4j.cypher.internal.compatibility.v3_3.runtime.CommunityPipeBuilder$$anon$1.filterNode(CommunityPipeBuilder.scala:329)
at org.neo4j.cypher.internal.compatibility.v3_3.runtime.pipes.VarLengthExpandPipe$$anon$1.next(VarLengthExpandPipe.scala:65)
at org.neo4j.cypher.internal.compatibility.v3_3.runtime.pipes.VarLengthExpandPipe$$anon$1.next(VarLengthExpandPipe.scala:62)
at scala.collection.Iterator$$anon$14.hasNext(Iterator.scala:535)
at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:439)
at org.neo4j.cypher.internal.compatibility.v3_3.runtime.profiler.ProfilingIterator.hasNext(Profiler.scala:184)
at scala.collection.Iterator$$anon$13.hasNext(Iterator.scala:462)
at org.neo4j.cypher.internal.compatibility.v3_3.runtime.profiler.ProfilingIterator.hasNext(Profiler.scala:184)
at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:409)
at org.neo4j.cypher.internal.compatibility.v3_3.runtime.profiler.ProfilingIterator.hasNext(Profiler.scala:184)
at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:409)
at org.neo4j.cypher.internal.compatibility.v3_3.runtime.profiler.ProfilingIterator.hasNext(Profiler.scala:184)
at org.neo4j.cypher.internal.compatibility.v3_3.runtime.ClosingIterator.hasNext(ResultIterator.scala:58)
at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:409)
at org.neo4j.cypher.internal.compatibility.v3_3.runtime.helpers.RuntimeJavaValueConverter$feedIteratorToVisitable.accept(RuntimeJavaValueConverter.scala:53)
at org.neo4j.cypher.internal.compatibility.v3_3.runtime.PipeExecutionResult.accept(PipeExecutionResult.scala:112)
at org.neo4j.cypher.internal.compatibility.ClosingExecutionResult$$anonfun$accept$2.apply$mcV$sp(ClosingExecutionResult.scala:175)
at org.neo4j.cypher.internal.compatibility.ClosingExecutionResult$$anonfun$accept$2.apply(ClosingExecutionResult.scala:174)
at org.neo4j.cypher.internal.compatibility.ClosingExecutionResult$$anonfun$accept$2.apply(ClosingExecutionResult.scala:174)
at org.neo4j.cypher.internal.compatibility.v3_3.exceptionHandler$runSafely$.apply(exceptionHandler.scala:90)
at org.neo4j.cypher.internal.compatibility.ClosingExecutionResult.accept(ClosingExecutionResult.scala:174)
at org.neo4j.bolt.v1.runtime.CypherAdapterStream.accept(CypherAdapterStream.java:76)
at org.neo4j.bolt.v1.messaging.BoltMessageRouter$ResultHandler.onRecords(BoltMessageRouter.java:146)
at org.neo4j.bolt.v1.runtime.BoltStateMachine$State$3.lambda$pullAll$0(BoltStateMachine.java:462)
at org.neo4j.bolt.v1.runtime.TransactionStateMachine$State$1.streamResult(TransactionStateMachine.java:272)
at org.neo4j.bolt.v1.runtime.TransactionStateMachine.streamResult(TransactionStateMachine.java:105)
at org.neo4j.bolt.v1.runtime.BoltStateMachine$State$3.pullAll(BoltStateMachine.java:461)
at org.neo4j.bolt.v1.runtime.BoltStateMachine.pullAll(BoltStateMachine.java:236)
at org.neo4j.bolt.v1.messaging.BoltMessageRouter.lambda$onPullAll$6(BoltMessageRouter.java:114)
at org.neo4j.bolt.v1.runtime.concurrent.RunnableBoltWorker.execute(RunnableBoltWorker.java:152)
at org.neo4j.bolt.v1.runtime.concurrent.RunnableBoltWorker.executeBatch(RunnableBoltWorker.java:145)
at org.neo4j.bolt.v1.runtime.concurrent.RunnableBoltWorker.run(RunnableBoltWorker.java:110)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
at org.neo4j.helpers.NamedThreadFactory$2.run(NamedThreadFactory.java:109)
</code></pre></div> | 0 |
<p dir="auto"><strong>Issue Type</strong><br>
Bug Report</p>
<p dir="auto"><strong>Ansible Version</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ansible --version
ansible 2.1.0 (devel c44110bc81) last updated 2016/01/26 14:25:38 (GMT +200)
lib/ansible/modules/core: (detached HEAD 33014c6db1) last updated 2016/01/11 10:48:27 (GMT +200)
lib/ansible/modules/extras: (detached HEAD 82a4cf84be) last updated 2016/01/11 10:48:30 (GMT +200)
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
Distribution: Debian GNU/Linux 8.2 (jessie)"><pre class="notranslate"><code class="notranslate">$ ansible --version
ansible 2.1.0 (devel c44110bc81) last updated 2016/01/26 14:25:38 (GMT +200)
lib/ansible/modules/core: (detached HEAD 33014c6db1) last updated 2016/01/11 10:48:27 (GMT +200)
lib/ansible/modules/extras: (detached HEAD 82a4cf84be) last updated 2016/01/11 10:48:30 (GMT +200)
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
Distribution: Debian GNU/Linux 8.2 (jessie)
</code></pre></div>
<p dir="auto"><strong>Ansible Configuration</strong><br>
gathering = explicit<br>
pipelining = True</p>
<p dir="auto"><strong>Summary</strong><br>
When assigning tags to roles, tags are not overwritten.</p>
<p dir="auto"><strong>Steps To Reproduce</strong><br>
Here the tree :</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="├── mydep
│ ├── meta
│ │ └── main.yml
│ └── tasks
│ └── main.yml
├── myrole
│ ├── meta
│ │ └── main.yml
│ └── tasks
│ └── main.yml
└── playbook.yml"><pre class="notranslate"><code class="notranslate">├── mydep
│ ├── meta
│ │ └── main.yml
│ └── tasks
│ └── main.yml
├── myrole
│ ├── meta
│ │ └── main.yml
│ └── tasks
│ └── main.yml
└── playbook.yml
</code></pre></div>
<p dir="auto">File <strong>playbook.yml</strong> :</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- hosts: localhost
roles:
- { role : myrole , tags : 'role1', var : 'one' }
- { role : myrole , tags : 'role2', var : 'two' }
- { role : myrole , var : 'three' }"><pre class="notranslate"><code class="notranslate">- hosts: localhost
roles:
- { role : myrole , tags : 'role1', var : 'one' }
- { role : myrole , tags : 'role2', var : 'two' }
- { role : myrole , var : 'three' }
</code></pre></div>
<p dir="auto">File <strong>myrole/tasks/main.yml</strong> and <strong>mydep/tasks/main.yml</strong> :</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
---
- name: Debug
debug: msg="{{ var }}""><pre class="notranslate"><code class="notranslate">
---
- name: Debug
debug: msg="{{ var }}"
</code></pre></div>
<p dir="auto">File <strong>myrole/meta/main.yml</strong> :</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
---
allow_duplicates: yes
dependencies:
- { role : mydep }"><pre class="notranslate"><code class="notranslate">
---
allow_duplicates: yes
dependencies:
- { role : mydep }
</code></pre></div>
<p dir="auto"><strong>Expected Results</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ansible-playbook playbook.yml --list-tasks --list-tags
playbook: playbook.yml
play #1 (localhost): TAGS: []
tasks:
mydep : Debug TAGS: [role1]
myrole : Debug TAGS: [role1]
mydep : Debug TAGS: [role2]
myrole : Debug TAGS: [role2]
mydep : Debug TAGS: []
myrole : Debug TAGS: []
TASK TAGS: [role1, role2]"><pre class="notranslate"><code class="notranslate">$ ansible-playbook playbook.yml --list-tasks --list-tags
playbook: playbook.yml
play #1 (localhost): TAGS: []
tasks:
mydep : Debug TAGS: [role1]
myrole : Debug TAGS: [role1]
mydep : Debug TAGS: [role2]
myrole : Debug TAGS: [role2]
mydep : Debug TAGS: []
myrole : Debug TAGS: []
TASK TAGS: [role1, role2]
</code></pre></div>
<p dir="auto"><strong>Actual Results</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ansible-playbook playbook.yml --list-tasks --list-tags
playbook: playbook.yml
play #1 (localhost): TAGS: []
tasks:
mydep : Debug TAGS: [role1]
myrole : Debug TAGS: [role1]
mydep : Debug TAGS: [role1, role2]
myrole : Debug TAGS: [role2]
mydep : Debug TAGS: [role1]
myrole : Debug TAGS: []
TASK TAGS: [role1, role2]"><pre class="notranslate"><code class="notranslate">$ ansible-playbook playbook.yml --list-tasks --list-tags
playbook: playbook.yml
play #1 (localhost): TAGS: []
tasks:
mydep : Debug TAGS: [role1]
myrole : Debug TAGS: [role1]
mydep : Debug TAGS: [role1, role2]
myrole : Debug TAGS: [role2]
mydep : Debug TAGS: [role1]
myrole : Debug TAGS: []
TASK TAGS: [role1, role2]
</code></pre></div>
<p dir="auto">Sylvain</p> | <ul dir="auto">
<li>using ansible from devel branch (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/ansible/ansible/commit/7812c70d3b8a8fbab3127ee7033345a0fb455bfe/hovercard" href="https://github.com/ansible/ansible/commit/7812c70d3b8a8fbab3127ee7033345a0fb455bfe"><tt>7812c70</tt></a>)</li>
<li>having custom name "some-machine" for a host in hosts file</li>
<li>and exact ip as ansible_ssh_host in corresponding host_vars/some-machine</li>
</ul>
<p dir="auto">for ex. copy action fails on:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="fatal: [some-machine] => Traceback (most recent call last):
File "/home/psedlak/all/src/ansible/lib/ansible/runner/__init__.py", line 583, in _executor
exec_rc = self._executor_internal(host, new_stdin)
File "/home/psedlak/all/src/ansible/lib/ansible/runner/__init__.py", line 757, in _executor_internal
return self._executor_internal_inner(host, self.module_name, self.module_args, inject, port, complex_args=complex_args)
File "/home/psedlak/all/src/ansible/lib/ansible/runner/__init__.py", line 990, in _executor_internal_inner
result = handler.run(conn, tmp, module_name, module_args, inject, complex_args)
File "/home/psedlak/all/src/ansible/lib/ansible/runner/action_plugins/copy.py", line 179, in run
remote_checksum = self.runner._remote_checksum(conn, tmp_path, dest_file)
File "/home/psedlak/all/src/ansible/lib/ansible/runner/__init__.py", line 1167, in _remote_checksum
inject = self.get_inject_vars(conn.host)
File "/home/psedlak/all/src/ansible/lib/ansible/runner/__init__.py", line 607, in get_inject_vars
host_variables = self.inventory.get_variables(host, vault_password=self.vault_pass)
File "/home/psedlak/all/src/ansible/lib/ansible/inventory/__init__.py", line 443, in get_variables
raise Exception("host not found: %s" % hostname)
Exception: host not found: 10.10.10.1"><pre class="notranslate"><code class="notranslate">fatal: [some-machine] => Traceback (most recent call last):
File "/home/psedlak/all/src/ansible/lib/ansible/runner/__init__.py", line 583, in _executor
exec_rc = self._executor_internal(host, new_stdin)
File "/home/psedlak/all/src/ansible/lib/ansible/runner/__init__.py", line 757, in _executor_internal
return self._executor_internal_inner(host, self.module_name, self.module_args, inject, port, complex_args=complex_args)
File "/home/psedlak/all/src/ansible/lib/ansible/runner/__init__.py", line 990, in _executor_internal_inner
result = handler.run(conn, tmp, module_name, module_args, inject, complex_args)
File "/home/psedlak/all/src/ansible/lib/ansible/runner/action_plugins/copy.py", line 179, in run
remote_checksum = self.runner._remote_checksum(conn, tmp_path, dest_file)
File "/home/psedlak/all/src/ansible/lib/ansible/runner/__init__.py", line 1167, in _remote_checksum
inject = self.get_inject_vars(conn.host)
File "/home/psedlak/all/src/ansible/lib/ansible/runner/__init__.py", line 607, in get_inject_vars
host_variables = self.inventory.get_variables(host, vault_password=self.vault_pass)
File "/home/psedlak/all/src/ansible/lib/ansible/inventory/__init__.py", line 443, in get_variables
raise Exception("host not found: %s" % hostname)
Exception: host not found: 10.10.10.1
</code></pre></div>
<p dir="auto">My guess after quickly looking into the code is that:</p>
<ul dir="auto">
<li><em>copy.run</em> calls _runner.<em>remote_checksum</em> (btw calling (single) underscore method from outside?) passing conn (it does not have hostname avail)</li>
<li><em><em>remote_checksum</em> uses <em>inventory.get</em>...</em> which expects <em>hostname</em> but from <em>conn</em> object it gets "just" <em>ip</em> to where connection was initialized</li>
<li>that results in not finding <em>ip</em> value in the <em>inventory</em> (_hosts_cache there has <em>hostnames</em> as keys)</li>
</ul>
<p dir="auto">I'm not sure what should be correct behaviour where here. Have inventory use ip's for lookup/caching? There seems to be also conn.delegate which holds the hostname so maybe using that value (if it exists, otherwise continue with .host as it is atm)?</p>
<p dir="auto">I didn't checked but it seems this was "introduced" (as side effect) by change <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/ansible/ansible/commit/f1267c0b053e5975dc08c151530c802015902242/hovercard" href="https://github.com/ansible/ansible/commit/f1267c0b053e5975dc08c151530c802015902242"><tt>f1267c0</tt></a> "Move from md5 to sha1..." when remote_md5 was changed to remote_checksum and instead of doing plain conn.shell.md5 it started consulting HostVars etc, and based on the size of the change I assume it may impact also assemble, fetch, template and unarchive actions.</p> | 0 |
<blockquote>
<p dir="auto">In order to encourage the use of CommonJS and ES6 modules, when exporting a default <code class="notranslate">export</code> <strong>with no other exports</strong> <code class="notranslate">module.exports</code> will be set in addition to <code class="notranslate">exports["default"].</code></p>
</blockquote>
<p dir="auto">I found this behavior to be counter-intuitive: it works… until you export more variables. Definitely unexpected :(</p>
<p dir="auto">This could be fixed by switching by having <code class="notranslate">module.exports = default</code> before other exports, added via <code class="notranslate">module.exports.doSomething = doSomething</code></p> | <p dir="auto">This sample code:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export default 1;
export const x = 2;"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-c1">1</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-k">const</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-c1">2</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Generates:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = 1;
var x = 2;
exports.x = x;"><pre class="notranslate"><span class="pl-s">"use strict"</span><span class="pl-kos">;</span>
<span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">defineProperty</span><span class="pl-kos">(</span><span class="pl-s1">exports</span><span class="pl-kos">,</span> <span class="pl-s">"__esModule"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>
<span class="pl-c1">value</span>: <span class="pl-c1">true</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">exports</span><span class="pl-kos">[</span><span class="pl-s">"default"</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-c1">1</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-c1">2</span><span class="pl-kos">;</span>
<span class="pl-s1">exports</span><span class="pl-kos">.</span><span class="pl-c1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">x</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Which is fine.<br>
Now if we remove the named export:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export default 1;"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-c1">1</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Generates:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = 1;
module.exports = exports["default"];"><pre class="notranslate"><span class="pl-s">"use strict"</span><span class="pl-kos">;</span>
<span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">defineProperty</span><span class="pl-kos">(</span><span class="pl-s1">exports</span><span class="pl-kos">,</span> <span class="pl-s">"__esModule"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>
<span class="pl-c1">value</span>: <span class="pl-c1">true</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">exports</span><span class="pl-kos">[</span><span class="pl-s">"default"</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-c1">1</span><span class="pl-kos">;</span>
<span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-c1">exports</span> <span class="pl-c1">=</span> <span class="pl-s1">exports</span><span class="pl-kos">[</span><span class="pl-s">"default"</span><span class="pl-kos">]</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">The <code class="notranslate">module.exports</code> is overwritten by the default export.<br>
This still works fine if importing the module via <code class="notranslate">import</code> statements (due to the <code class="notranslate">interopRequireDefault</code> helper), but it is rather confusing and error-prone if importing the CJS module via <code class="notranslate">require()</code> calls.</p>
<p dir="auto">That is, sometimes the default export is returned directly by <code class="notranslate">require('module')</code>, other times you will need to access the <code class="notranslate">require('module').default</code> property, all depending on an arbitrary factor that may change anytime (adding/removing named exports), which causes a breaking change for all consumers.</p> | 1 |
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="struct Foo<T>(T);
struct A;
struct B;
impl Foo<A> {
fn foo() {}
}
impl Foo<B> {
fn foo() {}
}
fn main() {}"><pre class="notranslate"><span class="pl-k">struct</span> <span class="pl-smi">Foo</span><span class="pl-kos"><</span><span class="pl-smi">T</span><span class="pl-kos">></span><span class="pl-kos">(</span><span class="pl-smi">T</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">struct</span> <span class="pl-smi">B</span><span class="pl-kos">;</span>
<span class="pl-k">impl</span> <span class="pl-smi">Foo</span><span class="pl-kos"><</span><span class="pl-smi">A</span><span class="pl-kos">></span> <span class="pl-kos">{</span>
<span class="pl-k">fn</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">impl</span> <span class="pl-smi">Foo</span><span class="pl-kos"><</span><span class="pl-smi">B</span><span class="pl-kos">></span> <span class="pl-kos">{</span>
<span class="pl-k">fn</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-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-kos">}</span></pre></div>
<p dir="auto">produces duplicate definition error for <code class="notranslate">foo</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="test.rs:9:2: 9:13 error: duplicate definition of value `foo`
test.rs:9 fn foo() {}
^~~~~~~~~~~
test.rs:6:2: 6:13 note: first definition of value `foo` here
test.rs:6 fn foo() {}
^~~~~~~~~~~
error: aborting due to previous error"><pre class="notranslate"><code class="notranslate">test.rs:9:2: 9:13 error: duplicate definition of value `foo`
test.rs:9 fn foo() {}
^~~~~~~~~~~
test.rs:6:2: 6:13 note: first definition of value `foo` here
test.rs:6 fn foo() {}
^~~~~~~~~~~
error: aborting due to previous error
</code></pre></div>
<p dir="auto">Since <code class="notranslate">Foo<A></code> and <code class="notranslate">Foo<B></code> are different types, it seems that their impls should not be interfering with each other.</p> | <p dir="auto">Currently there is no way to pass arbitrary compiler flags to rustdoc. This means that I can't use rustdoc to check cross compiled libraries. For example, checking <code class="notranslate">i686-unknown-linux-gnu</code> from <code class="notranslate">x86_64-unknown-linux-gnu</code> is impossible because I can't pass <code class="notranslate">--target</code> to rustdoc.</p>
<p dir="auto">I've worked around this issue for now by disabling doctests in Servo, but that is not ideal.</p> | 0 |
<p dir="auto"><a href="http://ci.tensorflow.org/job/tf-master-win-bzl/2063/console" rel="nofollow">http://ci.tensorflow.org/job/tf-master-win-bzl/2063/console</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="13:00:56 INFO: From Testing //py_test_dir/tensorflow/python:framework_dtypes_test:
13:00:56 ==================== Test output for //py_test_dir/tensorflow/python:framework_dtypes_test:
13:00:56 .........F\\?\C:\tmp\Bazel.runfiles_fnb6t73_\runfiles\org_tensorflow\py_test_dir\tensorflow\python\framework\dtypes_test.py:277: DeprecationWarning: Please use assertEqual instead.
13:00:56 self.assertEquals(dtype.min, np.finfo(numpy_dtype).min)
13:00:56 ......
13:00:56 ======================================================================
13:00:56 FAIL: testIsUnsigned (__main__.TypesTest)
13:00:56 ----------------------------------------------------------------------
13:00:56 Traceback (most recent call last):
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_fnb6t73_\runfiles\org_tensorflow\py_test_dir\tensorflow\python\framework\dtypes_test.py", line 219, in testIsUnsigned
13:00:56 self.assertEqual(dtypes.as_dtype("bfloat16").is_unsigned, False)
13:00:56 AssertionError: True != False
13:00:56
13:00:56 ----------------------------------------------------------------------
13:00:56 Ran 16 tests in 0.009s
13:00:56
13:00:56 FAILED (failures=1)
13:00:56 <dtype: 'float32'>: -3.40282e+38 - 3.40282e+38
13:00:56 <dtype: 'float64'>: -1.79769313486e+308 - 1.79769313486e+308
13:00:56 <dtype: 'int32'>: -2147483648 - 2147483647
13:00:56 <dtype: 'uint8'>: 0 - 255
13:00:56 <dtype: 'int16'>: -32768 - 32767
13:00:56 <dtype: 'int8'>: -128 - 127
13:00:56 <dtype: 'int64'>: -9223372036854775808 - 9223372036854775807
13:00:56 <dtype: 'bfloat16'>: 0 - 0
13:00:56 <dtype: 'uint16'>: 0 - 65535
13:00:56 <dtype: 'float16'>: -65504.0 - 65504.0
13:00:56 <dtype: 'uint32'>: 0 - 4294967295
13:00:56 <dtype: 'uint64'>: 0 - 18446744073709551615
13:00:56 <dtype: 'float32_ref'>: -3.40282e+38 - 3.40282e+38
13:00:56 <dtype: 'float64_ref'>: -1.79769313486e+308 - 1.79769313486e+308
13:00:56 <dtype: 'int32_ref'>: -2147483648 - 2147483647
13:00:56 <dtype: 'uint8_ref'>: 0 - 255
13:00:56 <dtype: 'int16_ref'>: -32768 - 32767
13:00:56 <dtype: 'int8_ref'>: -128 - 127
13:00:56 <dtype: 'int64_ref'>: -9223372036854775808 - 9223372036854775807
13:00:56 <dtype: 'bfloat16_ref'>: 0 - 0
13:00:56 <dtype: 'uint16_ref'>: 0 - 65535
13:00:56 <dtype: 'float16_ref'>: -65504.0 - 65504.0
13:00:56 <dtype: 'uint32_ref'>: 0 - 4294967295
13:00:56 <dtype: 'uint64_ref'>: 0 - 18446744073709551615
13:00:56 ================================================================================
13:00:56 INFO: From Testing //py_test_dir/tensorflow/python:bfloat16_test:
13:00:56 ==================== Test output for //py_test_dir/tensorflow/python:bfloat16_test:
13:00:56 FFF.F.FFFFFFFFFFFFFFFF.
13:00:56 ======================================================================
13:00:56 FAIL: testAdd (__main__.Bfloat16NumPyTest)
13:00:56 ----------------------------------------------------------------------
13:00:56 Traceback (most recent call last):
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 189, in testAdd
13:00:56 self.assertAllClose(np.array([[5, 7, 9]]), x + y)
13:00:56 File "C:\Program Files\Anaconda3\lib\site-packages\tensorflow\python\framework\test_util.py", line 1083, in assertAllClose
13:00:56 self._assertArrayLikeAllClose(a, b, rtol=rtol, atol=atol)
13:00:56 File "C:\Program Files\Anaconda3\lib\site-packages\tensorflow\python\framework\test_util.py", line 1053, in _assertArrayLikeAllClose
13:00:56 np.testing.assert_allclose(a, b, rtol=rtol, atol=atol, err_msg=msg)
13:00:56 File "C:\Program Files\Anaconda3\lib\site-packages\numpy\testing\utils.py", line 1411, in assert_allclose
13:00:56 verbose=verbose, header=header, equal_nan=equal_nan)
13:00:56 File "C:\Program Files\Anaconda3\lib\site-packages\numpy\testing\utils.py", line 796, in assert_array_compare
13:00:56 raise AssertionError(msg)
13:00:56 AssertionError:
13:00:56 Not equal to tolerance rtol=1e-06, atol=1e-06
13:00:56 None
13:00:56 (mismatch 100.0%)
13:00:56 x: array([[5, 7, 9]])
13:00:56 y: array([[ 0., 0., 0.]], dtype=float16)
13:00:56
13:00:56 ======================================================================
13:00:56 FAIL: testArray (__main__.Bfloat16NumPyTest)
13:00:56 ----------------------------------------------------------------------
13:00:56 Traceback (most recent call last):
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 172, in testArray
13:00:56 self.assertEqual("[[bfloat16(1) bfloat16(2) bfloat16(3)]]", str(x))
13:00:56 AssertionError: '[[bfloat16(1) bfloat16(2) bfloat16(3)]]' != '[[bfloat16(0) bfloat16(0) bfloat16(0)]]'
13:00:56 - [[bfloat16(1) bfloat16(2) bfloat16(3)]]
13:00:56 ? ^ ^ ^
13:00:56 + [[bfloat16(0) bfloat16(0) bfloat16(0)]]
13:00:56 ? ^ ^ ^
13:00:56
13:00:56
13:00:56 ======================================================================
13:00:56 FAIL: testCasts (__main__.Bfloat16NumPyTest)
13:00:56 ----------------------------------------------------------------------
13:00:56 Traceback (most recent call last):
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 181, in testCasts
13:00:56 self.assertTrue(np.all(x == y))
13:00:56 AssertionError: False is not true
13:00:56
13:00:56 ======================================================================
13:00:56 FAIL: testLogSumExp (__main__.Bfloat16NumPyTest)
13:00:56 ----------------------------------------------------------------------
13:00:56 Traceback (most recent call last):
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 196, in testLogSumExp
13:00:56 atol=2e-2)
13:00:56 File "C:\Program Files\Anaconda3\lib\site-packages\tensorflow\python\framework\test_util.py", line 1083, in assertAllClose
13:00:56 self._assertArrayLikeAllClose(a, b, rtol=rtol, atol=atol)
13:00:56 File "C:\Program Files\Anaconda3\lib\site-packages\tensorflow\python\framework\test_util.py", line 1053, in _assertArrayLikeAllClose
13:00:56 np.testing.assert_allclose(a, b, rtol=rtol, atol=atol, err_msg=msg)
13:00:56 File "C:\Program Files\Anaconda3\lib\site-packages\numpy\testing\utils.py", line 1411, in assert_allclose
13:00:56 verbose=verbose, header=header, equal_nan=equal_nan)
13:00:56 File "C:\Program Files\Anaconda3\lib\site-packages\numpy\testing\utils.py", line 796, in assert_array_compare
13:00:56 raise AssertionError(msg)
13:00:56 AssertionError:
13:00:56 Not equal to tolerance rtol=1e-06, atol=0.02
13:00:56 None
13:00:56 (mismatch 100.0%)
13:00:56 x: array([[ 4.048587, 5.048587, 6.048587]], dtype=float32)
13:00:56 y: array([[ 0.693359, 0.693359, 0.693359]], dtype=float16)
13:00:56
13:00:56 ======================================================================
13:00:56 FAIL: testAdd (__main__.Bfloat16Test)
13:00:56 ----------------------------------------------------------------------
13:00:56 Traceback (most recent call last):
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 89, in testAdd
13:00:56 self._assertFloatIdentical(1, float(bfloat16(1) + bfloat16(0)))
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 48, in _assertFloatIdentical
13:00:56 self.assertEqual(v, w)
13:00:56 AssertionError: 1 != 0.0
13:00:56
13:00:56 ======================================================================
13:00:56 FAIL: testDiv (__main__.Bfloat16Test)
13:00:56 ----------------------------------------------------------------------
13:00:56 Traceback (most recent call last):
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 123, in testDiv
13:00:56 self.assertTrue(math.isnan(float(bfloat16(0) / bfloat16(0))))
13:00:56 AssertionError: False is not true
13:00:56
13:00:56 ======================================================================
13:00:56 FAIL: testEqual (__main__.Bfloat16Test)
13:00:56 ----------------------------------------------------------------------
13:00:56 Traceback (most recent call last):
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 156, in testEqual
13:00:56 self.assertEqual(v == w, bfloat16(v) == bfloat16(w))
13:00:56 AssertionError: False != True
13:00:56
13:00:56 ======================================================================
13:00:56 FAIL: testGreater (__main__.Bfloat16Test)
13:00:56 ----------------------------------------------------------------------
13:00:56 Traceback (most recent call last):
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 146, in testGreater
13:00:56 self.assertEqual(v > w, bfloat16(v) > bfloat16(w))
13:00:56 AssertionError: True != False
13:00:56
13:00:56 ======================================================================
13:00:56 FAIL: testGreaterEqual (__main__.Bfloat16Test)
13:00:56 ----------------------------------------------------------------------
13:00:56 Traceback (most recent call last):
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 151, in testGreaterEqual
13:00:56 self.assertEqual(v >= w, bfloat16(v) >= bfloat16(w))
13:00:56 AssertionError: False != True
13:00:56
13:00:56 ======================================================================
13:00:56 FAIL: testHash (__main__.Bfloat16Test)
13:00:56 ----------------------------------------------------------------------
13:00:56 Traceback (most recent call last):
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 79, in testHash
13:00:56 self.assertEqual(0x3f80, hash(bfloat16(1.0)))
13:00:56 AssertionError: 16256 != 0
13:00:56
13:00:56 ======================================================================
13:00:56 FAIL: testLess (__main__.Bfloat16Test)
13:00:56 ----------------------------------------------------------------------
13:00:56 Traceback (most recent call last):
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 136, in testLess
13:00:56 self.assertEqual(v < w, bfloat16(v) < bfloat16(w))
13:00:56 AssertionError: True != False
13:00:56
13:00:56 ======================================================================
13:00:56 FAIL: testLessEqual (__main__.Bfloat16Test)
13:00:56 ----------------------------------------------------------------------
13:00:56 Traceback (most recent call last):
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 141, in testLessEqual
13:00:56 self.assertEqual(v <= w, bfloat16(v) <= bfloat16(w))
13:00:56 AssertionError: False != True
13:00:56
13:00:56 ======================================================================
13:00:56 FAIL: testMul (__main__.Bfloat16Test)
13:00:56 ----------------------------------------------------------------------
13:00:56 Traceback (most recent call last):
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 114, in testMul
13:00:56 self._assertFloatIdentical(-1, float(bfloat16(1) * bfloat16(-1)))
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 48, in _assertFloatIdentical
13:00:56 self.assertEqual(v, w)
13:00:56 AssertionError: -1 != 0.0
13:00:56
13:00:56 ======================================================================
13:00:56 FAIL: testNegate (__main__.Bfloat16Test)
13:00:56 ----------------------------------------------------------------------
13:00:56 Traceback (most recent call last):
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 85, in testNegate
13:00:56 self._assertFloatIdentical(-v, float(-bfloat16(v)))
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 48, in _assertFloatIdentical
13:00:56 self.assertEqual(v, w)
13:00:56 AssertionError: -0.0 != 4.591774807899561e-41
13:00:56
13:00:56 ======================================================================
13:00:56 FAIL: testNotEqual (__main__.Bfloat16Test)
13:00:56 ----------------------------------------------------------------------
13:00:56 Traceback (most recent call last):
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 161, in testNotEqual
13:00:56 self.assertEqual(v != w, bfloat16(v) != bfloat16(w))
13:00:56 AssertionError: True != False
13:00:56
13:00:56 ======================================================================
13:00:56 FAIL: testRepr (__main__.Bfloat16Test)
13:00:56 ----------------------------------------------------------------------
13:00:56 Traceback (most recent call last):
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 69, in testRepr
13:00:56 self.assertEqual("bfloat16(1)", repr(bfloat16(1)))
13:00:56 AssertionError: 'bfloat16(1)' != 'bfloat16(0)'
13:00:56 - bfloat16(1)
13:00:56 ? ^
13:00:56 + bfloat16(0)
13:00:56 ? ^
13:00:56
13:00:56
13:00:56 ======================================================================
13:00:56 FAIL: testRoundTripToFloat (__main__.Bfloat16Test)
13:00:56 ----------------------------------------------------------------------
13:00:56 Traceback (most recent call last):
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 52, in testRoundTripToFloat
13:00:56 self._assertFloatIdentical(v, float(bfloat16(v)))
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 48, in _assertFloatIdentical
13:00:56 self.assertEqual(v, w)
13:00:56 AssertionError: 1.0 != 0.0
13:00:56
13:00:56 ======================================================================
13:00:56 FAIL: testRoundTripToInt (__main__.Bfloat16Test)
13:00:56 ----------------------------------------------------------------------
13:00:56 Traceback (most recent call last):
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 56, in testRoundTripToInt
13:00:56 self.assertEqual(v, int(bfloat16(v)))
13:00:56 AssertionError: -256 != 0
13:00:56
13:00:56 ======================================================================
13:00:56 FAIL: testStr (__main__.Bfloat16Test)
13:00:56 ----------------------------------------------------------------------
13:00:56 Traceback (most recent call last):
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 60, in testStr
13:00:56 self.assertEqual("1", str(bfloat16(1.0)))
13:00:56 AssertionError: '1' != '0'
13:00:56 - 1
13:00:56 + 0
13:00:56
13:00:56
13:00:56 ======================================================================
13:00:56 FAIL: testSub (__main__.Bfloat16Test)
13:00:56 ----------------------------------------------------------------------
13:00:56 Traceback (most recent call last):
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 101, in testSub
13:00:56 self._assertFloatIdentical(1, float(bfloat16(1) - bfloat16(0)))
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 48, in _assertFloatIdentical
13:00:56 self.assertEqual(v, w)
13:00:56 AssertionError: 1 != 0.0
13:00:56
13:00:56 ----------------------------------------------------------------------
13:00:56 Ran 23 tests in 0.014s
13:00:56
13:00:56 FAILED (failures=20)
13:00:56 not close where = (array([0, 0, 0], dtype=int64), array([0, 1, 2], dtype=int64))
13:00:56 not close lhs = [5 7 9]
13:00:56 not close rhs = [ 0. 0. 0.]
13:00:56 not close dif = [ 5. 7. 9.]
13:00:56 not close tol = [ 1.01327896e-06 1.01327896e-06 1.01327896e-06]
13:00:56 dtype = int32, shape = (1, 3)
13:00:56 not close where = (array([0, 0, 0], dtype=int64), array([0, 1, 2], dtype=int64))
13:00:56 not close lhs = [ 4.04858732 5.04858732 6.04858732]
13:00:56 not close rhs = [ 0.69335938 0.69335938 0.69335938]
13:00:56 not close dif = [ 3.35522795 4.35522795 5.35522795]
13:00:56 not close tol = [ 0.02000427 0.02000427 0.02000427]
13:00:56 dtype = float32, shape = (1, 3)
13:00:56 ================================================================================"><pre class="notranslate"><code class="notranslate">13:00:56 INFO: From Testing //py_test_dir/tensorflow/python:framework_dtypes_test:
13:00:56 ==================== Test output for //py_test_dir/tensorflow/python:framework_dtypes_test:
13:00:56 .........F\\?\C:\tmp\Bazel.runfiles_fnb6t73_\runfiles\org_tensorflow\py_test_dir\tensorflow\python\framework\dtypes_test.py:277: DeprecationWarning: Please use assertEqual instead.
13:00:56 self.assertEquals(dtype.min, np.finfo(numpy_dtype).min)
13:00:56 ......
13:00:56 ======================================================================
13:00:56 FAIL: testIsUnsigned (__main__.TypesTest)
13:00:56 ----------------------------------------------------------------------
13:00:56 Traceback (most recent call last):
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_fnb6t73_\runfiles\org_tensorflow\py_test_dir\tensorflow\python\framework\dtypes_test.py", line 219, in testIsUnsigned
13:00:56 self.assertEqual(dtypes.as_dtype("bfloat16").is_unsigned, False)
13:00:56 AssertionError: True != False
13:00:56
13:00:56 ----------------------------------------------------------------------
13:00:56 Ran 16 tests in 0.009s
13:00:56
13:00:56 FAILED (failures=1)
13:00:56 <dtype: 'float32'>: -3.40282e+38 - 3.40282e+38
13:00:56 <dtype: 'float64'>: -1.79769313486e+308 - 1.79769313486e+308
13:00:56 <dtype: 'int32'>: -2147483648 - 2147483647
13:00:56 <dtype: 'uint8'>: 0 - 255
13:00:56 <dtype: 'int16'>: -32768 - 32767
13:00:56 <dtype: 'int8'>: -128 - 127
13:00:56 <dtype: 'int64'>: -9223372036854775808 - 9223372036854775807
13:00:56 <dtype: 'bfloat16'>: 0 - 0
13:00:56 <dtype: 'uint16'>: 0 - 65535
13:00:56 <dtype: 'float16'>: -65504.0 - 65504.0
13:00:56 <dtype: 'uint32'>: 0 - 4294967295
13:00:56 <dtype: 'uint64'>: 0 - 18446744073709551615
13:00:56 <dtype: 'float32_ref'>: -3.40282e+38 - 3.40282e+38
13:00:56 <dtype: 'float64_ref'>: -1.79769313486e+308 - 1.79769313486e+308
13:00:56 <dtype: 'int32_ref'>: -2147483648 - 2147483647
13:00:56 <dtype: 'uint8_ref'>: 0 - 255
13:00:56 <dtype: 'int16_ref'>: -32768 - 32767
13:00:56 <dtype: 'int8_ref'>: -128 - 127
13:00:56 <dtype: 'int64_ref'>: -9223372036854775808 - 9223372036854775807
13:00:56 <dtype: 'bfloat16_ref'>: 0 - 0
13:00:56 <dtype: 'uint16_ref'>: 0 - 65535
13:00:56 <dtype: 'float16_ref'>: -65504.0 - 65504.0
13:00:56 <dtype: 'uint32_ref'>: 0 - 4294967295
13:00:56 <dtype: 'uint64_ref'>: 0 - 18446744073709551615
13:00:56 ================================================================================
13:00:56 INFO: From Testing //py_test_dir/tensorflow/python:bfloat16_test:
13:00:56 ==================== Test output for //py_test_dir/tensorflow/python:bfloat16_test:
13:00:56 FFF.F.FFFFFFFFFFFFFFFF.
13:00:56 ======================================================================
13:00:56 FAIL: testAdd (__main__.Bfloat16NumPyTest)
13:00:56 ----------------------------------------------------------------------
13:00:56 Traceback (most recent call last):
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 189, in testAdd
13:00:56 self.assertAllClose(np.array([[5, 7, 9]]), x + y)
13:00:56 File "C:\Program Files\Anaconda3\lib\site-packages\tensorflow\python\framework\test_util.py", line 1083, in assertAllClose
13:00:56 self._assertArrayLikeAllClose(a, b, rtol=rtol, atol=atol)
13:00:56 File "C:\Program Files\Anaconda3\lib\site-packages\tensorflow\python\framework\test_util.py", line 1053, in _assertArrayLikeAllClose
13:00:56 np.testing.assert_allclose(a, b, rtol=rtol, atol=atol, err_msg=msg)
13:00:56 File "C:\Program Files\Anaconda3\lib\site-packages\numpy\testing\utils.py", line 1411, in assert_allclose
13:00:56 verbose=verbose, header=header, equal_nan=equal_nan)
13:00:56 File "C:\Program Files\Anaconda3\lib\site-packages\numpy\testing\utils.py", line 796, in assert_array_compare
13:00:56 raise AssertionError(msg)
13:00:56 AssertionError:
13:00:56 Not equal to tolerance rtol=1e-06, atol=1e-06
13:00:56 None
13:00:56 (mismatch 100.0%)
13:00:56 x: array([[5, 7, 9]])
13:00:56 y: array([[ 0., 0., 0.]], dtype=float16)
13:00:56
13:00:56 ======================================================================
13:00:56 FAIL: testArray (__main__.Bfloat16NumPyTest)
13:00:56 ----------------------------------------------------------------------
13:00:56 Traceback (most recent call last):
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 172, in testArray
13:00:56 self.assertEqual("[[bfloat16(1) bfloat16(2) bfloat16(3)]]", str(x))
13:00:56 AssertionError: '[[bfloat16(1) bfloat16(2) bfloat16(3)]]' != '[[bfloat16(0) bfloat16(0) bfloat16(0)]]'
13:00:56 - [[bfloat16(1) bfloat16(2) bfloat16(3)]]
13:00:56 ? ^ ^ ^
13:00:56 + [[bfloat16(0) bfloat16(0) bfloat16(0)]]
13:00:56 ? ^ ^ ^
13:00:56
13:00:56
13:00:56 ======================================================================
13:00:56 FAIL: testCasts (__main__.Bfloat16NumPyTest)
13:00:56 ----------------------------------------------------------------------
13:00:56 Traceback (most recent call last):
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 181, in testCasts
13:00:56 self.assertTrue(np.all(x == y))
13:00:56 AssertionError: False is not true
13:00:56
13:00:56 ======================================================================
13:00:56 FAIL: testLogSumExp (__main__.Bfloat16NumPyTest)
13:00:56 ----------------------------------------------------------------------
13:00:56 Traceback (most recent call last):
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 196, in testLogSumExp
13:00:56 atol=2e-2)
13:00:56 File "C:\Program Files\Anaconda3\lib\site-packages\tensorflow\python\framework\test_util.py", line 1083, in assertAllClose
13:00:56 self._assertArrayLikeAllClose(a, b, rtol=rtol, atol=atol)
13:00:56 File "C:\Program Files\Anaconda3\lib\site-packages\tensorflow\python\framework\test_util.py", line 1053, in _assertArrayLikeAllClose
13:00:56 np.testing.assert_allclose(a, b, rtol=rtol, atol=atol, err_msg=msg)
13:00:56 File "C:\Program Files\Anaconda3\lib\site-packages\numpy\testing\utils.py", line 1411, in assert_allclose
13:00:56 verbose=verbose, header=header, equal_nan=equal_nan)
13:00:56 File "C:\Program Files\Anaconda3\lib\site-packages\numpy\testing\utils.py", line 796, in assert_array_compare
13:00:56 raise AssertionError(msg)
13:00:56 AssertionError:
13:00:56 Not equal to tolerance rtol=1e-06, atol=0.02
13:00:56 None
13:00:56 (mismatch 100.0%)
13:00:56 x: array([[ 4.048587, 5.048587, 6.048587]], dtype=float32)
13:00:56 y: array([[ 0.693359, 0.693359, 0.693359]], dtype=float16)
13:00:56
13:00:56 ======================================================================
13:00:56 FAIL: testAdd (__main__.Bfloat16Test)
13:00:56 ----------------------------------------------------------------------
13:00:56 Traceback (most recent call last):
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 89, in testAdd
13:00:56 self._assertFloatIdentical(1, float(bfloat16(1) + bfloat16(0)))
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 48, in _assertFloatIdentical
13:00:56 self.assertEqual(v, w)
13:00:56 AssertionError: 1 != 0.0
13:00:56
13:00:56 ======================================================================
13:00:56 FAIL: testDiv (__main__.Bfloat16Test)
13:00:56 ----------------------------------------------------------------------
13:00:56 Traceback (most recent call last):
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 123, in testDiv
13:00:56 self.assertTrue(math.isnan(float(bfloat16(0) / bfloat16(0))))
13:00:56 AssertionError: False is not true
13:00:56
13:00:56 ======================================================================
13:00:56 FAIL: testEqual (__main__.Bfloat16Test)
13:00:56 ----------------------------------------------------------------------
13:00:56 Traceback (most recent call last):
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 156, in testEqual
13:00:56 self.assertEqual(v == w, bfloat16(v) == bfloat16(w))
13:00:56 AssertionError: False != True
13:00:56
13:00:56 ======================================================================
13:00:56 FAIL: testGreater (__main__.Bfloat16Test)
13:00:56 ----------------------------------------------------------------------
13:00:56 Traceback (most recent call last):
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 146, in testGreater
13:00:56 self.assertEqual(v > w, bfloat16(v) > bfloat16(w))
13:00:56 AssertionError: True != False
13:00:56
13:00:56 ======================================================================
13:00:56 FAIL: testGreaterEqual (__main__.Bfloat16Test)
13:00:56 ----------------------------------------------------------------------
13:00:56 Traceback (most recent call last):
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 151, in testGreaterEqual
13:00:56 self.assertEqual(v >= w, bfloat16(v) >= bfloat16(w))
13:00:56 AssertionError: False != True
13:00:56
13:00:56 ======================================================================
13:00:56 FAIL: testHash (__main__.Bfloat16Test)
13:00:56 ----------------------------------------------------------------------
13:00:56 Traceback (most recent call last):
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 79, in testHash
13:00:56 self.assertEqual(0x3f80, hash(bfloat16(1.0)))
13:00:56 AssertionError: 16256 != 0
13:00:56
13:00:56 ======================================================================
13:00:56 FAIL: testLess (__main__.Bfloat16Test)
13:00:56 ----------------------------------------------------------------------
13:00:56 Traceback (most recent call last):
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 136, in testLess
13:00:56 self.assertEqual(v < w, bfloat16(v) < bfloat16(w))
13:00:56 AssertionError: True != False
13:00:56
13:00:56 ======================================================================
13:00:56 FAIL: testLessEqual (__main__.Bfloat16Test)
13:00:56 ----------------------------------------------------------------------
13:00:56 Traceback (most recent call last):
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 141, in testLessEqual
13:00:56 self.assertEqual(v <= w, bfloat16(v) <= bfloat16(w))
13:00:56 AssertionError: False != True
13:00:56
13:00:56 ======================================================================
13:00:56 FAIL: testMul (__main__.Bfloat16Test)
13:00:56 ----------------------------------------------------------------------
13:00:56 Traceback (most recent call last):
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 114, in testMul
13:00:56 self._assertFloatIdentical(-1, float(bfloat16(1) * bfloat16(-1)))
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 48, in _assertFloatIdentical
13:00:56 self.assertEqual(v, w)
13:00:56 AssertionError: -1 != 0.0
13:00:56
13:00:56 ======================================================================
13:00:56 FAIL: testNegate (__main__.Bfloat16Test)
13:00:56 ----------------------------------------------------------------------
13:00:56 Traceback (most recent call last):
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 85, in testNegate
13:00:56 self._assertFloatIdentical(-v, float(-bfloat16(v)))
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 48, in _assertFloatIdentical
13:00:56 self.assertEqual(v, w)
13:00:56 AssertionError: -0.0 != 4.591774807899561e-41
13:00:56
13:00:56 ======================================================================
13:00:56 FAIL: testNotEqual (__main__.Bfloat16Test)
13:00:56 ----------------------------------------------------------------------
13:00:56 Traceback (most recent call last):
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 161, in testNotEqual
13:00:56 self.assertEqual(v != w, bfloat16(v) != bfloat16(w))
13:00:56 AssertionError: True != False
13:00:56
13:00:56 ======================================================================
13:00:56 FAIL: testRepr (__main__.Bfloat16Test)
13:00:56 ----------------------------------------------------------------------
13:00:56 Traceback (most recent call last):
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 69, in testRepr
13:00:56 self.assertEqual("bfloat16(1)", repr(bfloat16(1)))
13:00:56 AssertionError: 'bfloat16(1)' != 'bfloat16(0)'
13:00:56 - bfloat16(1)
13:00:56 ? ^
13:00:56 + bfloat16(0)
13:00:56 ? ^
13:00:56
13:00:56
13:00:56 ======================================================================
13:00:56 FAIL: testRoundTripToFloat (__main__.Bfloat16Test)
13:00:56 ----------------------------------------------------------------------
13:00:56 Traceback (most recent call last):
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 52, in testRoundTripToFloat
13:00:56 self._assertFloatIdentical(v, float(bfloat16(v)))
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 48, in _assertFloatIdentical
13:00:56 self.assertEqual(v, w)
13:00:56 AssertionError: 1.0 != 0.0
13:00:56
13:00:56 ======================================================================
13:00:56 FAIL: testRoundTripToInt (__main__.Bfloat16Test)
13:00:56 ----------------------------------------------------------------------
13:00:56 Traceback (most recent call last):
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 56, in testRoundTripToInt
13:00:56 self.assertEqual(v, int(bfloat16(v)))
13:00:56 AssertionError: -256 != 0
13:00:56
13:00:56 ======================================================================
13:00:56 FAIL: testStr (__main__.Bfloat16Test)
13:00:56 ----------------------------------------------------------------------
13:00:56 Traceback (most recent call last):
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 60, in testStr
13:00:56 self.assertEqual("1", str(bfloat16(1.0)))
13:00:56 AssertionError: '1' != '0'
13:00:56 - 1
13:00:56 + 0
13:00:56
13:00:56
13:00:56 ======================================================================
13:00:56 FAIL: testSub (__main__.Bfloat16Test)
13:00:56 ----------------------------------------------------------------------
13:00:56 Traceback (most recent call last):
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 101, in testSub
13:00:56 self._assertFloatIdentical(1, float(bfloat16(1) - bfloat16(0)))
13:00:56 File "\\?\C:\tmp\Bazel.runfiles_5lnmqasq\runfiles\org_tensorflow\py_test_dir\tensorflow\python\lib\core\bfloat16_test.py", line 48, in _assertFloatIdentical
13:00:56 self.assertEqual(v, w)
13:00:56 AssertionError: 1 != 0.0
13:00:56
13:00:56 ----------------------------------------------------------------------
13:00:56 Ran 23 tests in 0.014s
13:00:56
13:00:56 FAILED (failures=20)
13:00:56 not close where = (array([0, 0, 0], dtype=int64), array([0, 1, 2], dtype=int64))
13:00:56 not close lhs = [5 7 9]
13:00:56 not close rhs = [ 0. 0. 0.]
13:00:56 not close dif = [ 5. 7. 9.]
13:00:56 not close tol = [ 1.01327896e-06 1.01327896e-06 1.01327896e-06]
13:00:56 dtype = int32, shape = (1, 3)
13:00:56 not close where = (array([0, 0, 0], dtype=int64), array([0, 1, 2], dtype=int64))
13:00:56 not close lhs = [ 4.04858732 5.04858732 6.04858732]
13:00:56 not close rhs = [ 0.69335938 0.69335938 0.69335938]
13:00:56 not close dif = [ 3.35522795 4.35522795 5.35522795]
13:00:56 not close tol = [ 0.02000427 0.02000427 0.02000427]
13:00:56 dtype = float32, shape = (1, 3)
13:00:56 ================================================================================
</code></pre></div>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gunan/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gunan">@gunan</a></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>
No</li>
<li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>:<br>
Windows 10</li>
<li><strong>TensorFlow installed from (source or binary)</strong>:<br>
binary</li>
<li><strong>TensorFlow version (use command below)</strong>:<br>
1.4.0</li>
<li><strong>Python version</strong>:<br>
3.5.4</li>
<li><strong>Bazel version (if compiling from source)</strong>:<br>
None</li>
<li><strong>GCC/Compiler version (if compiling from source)</strong>:<br>
None</li>
<li><strong>CUDA/cuDNN version</strong>:<br>
None</li>
<li><strong>GPU model and memory</strong>:<br>
None</li>
<li><strong>Exact command to reproduce</strong>:</li>
</ul>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import tensorflow as tf
print(tf.bfloat16.is_unsigned)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">tensorflow</span> <span class="pl-k">as</span> <span class="pl-s1">tf</span>
<span class="pl-en">print</span>(<span class="pl-s1">tf</span>.<span class="pl-s1">bfloat16</span>.<span class="pl-s1">is_unsigned</span>)</pre></div>
<p dir="auto">Expected Output: False<br>
Actual: True</p>
<h3 dir="auto">Describe the problem</h3>
<h3 dir="auto">Source code / logs</h3>
<p dir="auto"><a href="https://ci.tensorflow.org/job/tf-master-win-bzl/2057/console" rel="nofollow">https://ci.tensorflow.org/job/tf-master-win-bzl/2057/console</a><br>
bfloat16_test/test.log</p> | 1 |
<h4 dir="auto">MnWE</h4>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd
the_int_column = pd.Series([1, 2, 3])
foobar = pd.DataFrame(columns=("ints",))
foobar.loc["First"] = [the_int_column.sum()]
print(foobar.dtypes)
the_float_column = pd.Series([1.0, 2.0, 3.0])
floatbar = pd.DataFrame(columns=("floats",))
floatbar.loc["First"] = [the_float_column.sum()]
print(floatbar.dtypes)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span>
<span class="pl-s1">the_int_column</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">Series</span>([<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>])
<span class="pl-s1">foobar</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>(<span class="pl-s1">columns</span><span class="pl-c1">=</span>(<span class="pl-s">"ints"</span>,))
<span class="pl-s1">foobar</span>.<span class="pl-s1">loc</span>[<span class="pl-s">"First"</span>] <span class="pl-c1">=</span> [<span class="pl-s1">the_int_column</span>.<span class="pl-en">sum</span>()]
<span class="pl-en">print</span>(<span class="pl-s1">foobar</span>.<span class="pl-s1">dtypes</span>)
<span class="pl-s1">the_float_column</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">Series</span>([<span class="pl-c1">1.0</span>, <span class="pl-c1">2.0</span>, <span class="pl-c1">3.0</span>])
<span class="pl-s1">floatbar</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>(<span class="pl-s1">columns</span><span class="pl-c1">=</span>(<span class="pl-s">"floats"</span>,))
<span class="pl-s1">floatbar</span>.<span class="pl-s1">loc</span>[<span class="pl-s">"First"</span>] <span class="pl-c1">=</span> [<span class="pl-s1">the_float_column</span>.<span class="pl-en">sum</span>()]
<span class="pl-en">print</span>(<span class="pl-s1">floatbar</span>.<span class="pl-s1">dtypes</span>)</pre></div>
<p dir="auto">This yields</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="ints object
dtype: object
floats float64
dtype: object"><pre class="notranslate"><span class="pl-s1">ints</span> <span class="pl-s1">object</span>
<span class="pl-s1">dtype</span>: <span class="pl-s1">object</span>
<span class="pl-s1">floats</span> <span class="pl-s1">float64</span>
<span class="pl-s1">dtype</span>: <span class="pl-s1">object</span></pre></div>
<h4 dir="auto">Problem description</h4>
<p dir="auto">Assigning the sum of a Series of (vanilla Python) <code class="notranslate">int</code>s to a DataFrame leads to not specific enough type inference on the frame: it keeps the object type. Vanilla <code class="notranslate">float</code>s work fine, as the second example demonstrates.</p>
<p dir="auto">This is an issue for some testing I'm doing, where I want to ensure a column of these sums contains only numeric data, and specifically integers.</p>
<p dir="auto">Might be related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="312295205" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/20635" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/20635/hovercard" href="https://github.com/pandas-dev/pandas/issues/20635">#20635</a>.</p>
<h4 dir="auto">Expected Output</h4>
<p dir="auto">Expected output:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="ints int64
dtype: object
floats float64
dtype: object"><pre class="notranslate"><span class="pl-s1">ints</span> <span class="pl-s1">int64</span>
<span class="pl-s1">dtype</span>: <span class="pl-s1">object</span>
<span class="pl-s1">floats</span> <span class="pl-s1">float64</span>
<span class="pl-s1">dtype</span>: <span class="pl-s1">object</span></pre></div>
<h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4>
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.6.4.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 142 Stepping 10, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.22.0
pytest: 3.3.2
pip: 9.0.1
setuptools: 38.4.0
Cython: 0.27.3
numpy: 1.14.0
scipy: 1.0.0
pyarrow: None
xarray: None
IPython: 6.2.1
sphinx: 1.6.6
patsy: 0.5.0
dateutil: 2.6.1
pytz: 2017.3
blosc: None
bottleneck: 1.2.1
tables: 3.4.2
numexpr: 2.6.4
feather: None
matplotlib: 2.1.2
openpyxl: 2.4.10
xlrd: 1.1.0
xlwt: 1.3.0
xlsxwriter: 1.0.2
lxml: 4.1.1
bs4: 4.6.0
html5lib: 1.0.1
sqlalchemy: 1.2.1
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
</details> | <p dir="auto">When I run this code on 0.17.0 on Python 3.5.0</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import pandas as pd
d = pd.DataFrame(data=[[2, 1]])
print(d.index)
print((d.
groupby(level=0).
apply(lambda d:
d.sort_values(0)
)
).index)"><pre class="notranslate"><code class="notranslate">import pandas as pd
d = pd.DataFrame(data=[[2, 1]])
print(d.index)
print((d.
groupby(level=0).
apply(lambda d:
d.sort_values(0)
)
).index)
</code></pre></div>
<p dir="auto">I get</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Int64Index([0], dtype='int64')
MultiIndex(levels=[[0], [0]],
labels=[[0], [0]])"><pre class="notranslate"><code class="notranslate">Int64Index([0], dtype='int64')
MultiIndex(levels=[[0], [0]],
labels=[[0], [0]])
</code></pre></div>
<p dir="auto">The index gets duplicated (and turned into a multiindex) as a result of the <code class="notranslate">sort</code> within the <code class="notranslate">groupby</code>.</p>
<p dir="auto">Appears to be a bug to me.</p> | 0 |
<h2 dir="auto">Bug Report</h2>
<p dir="auto"><strong>Current Behavior</strong></p>
<p dir="auto"><code class="notranslate">babel-parser</code> accepts the following but should not.</p>
<p dir="auto"><strong>Input Code</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[(a = 1)] = t;
[([b])] = t;"><pre class="notranslate"><span class="pl-kos">[</span><span class="pl-kos">(</span><span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-c1">1</span><span class="pl-kos">)</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-s1">t</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">b</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-s1">t</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Expected behavior/code</strong></p>
<p dir="auto">It should error.</p> | <h2 dir="auto">Bug Report</h2>
<p dir="auto"><strong>Current Behavior</strong></p>
<p dir="auto">When assigning to a group that is an assignment the parser currently creates a Pattern node for the group. It should consider this a syntax error.</p>
<p dir="auto"><strong>Input Code</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="(x = x) = x"><pre class="notranslate"><span class="pl-kos">(</span><span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">x</span><span class="pl-kos">)</span> <span class="pl-c1">=</span> <span class="pl-s1">x</span></pre></div>
<p dir="auto"><strong>Expected behavior/code</strong></p>
<p dir="auto">Syntax error.</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=" babelAst = babelParse(code, {
sourceType: goalMode === GOAL_MODULE ? 'module' : 'script',
strictMode: startInStrictMode ? true : false,
plugins: ['estree'],
}).program;"><pre class="notranslate"> <span class="pl-s1">babelAst</span> <span class="pl-c1">=</span> <span class="pl-en">babelParse</span><span class="pl-kos">(</span><span class="pl-s1">code</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>
<span class="pl-c1">sourceType</span>: <span class="pl-s1">goalMode</span> <span class="pl-c1">===</span> <span class="pl-c1">GOAL_MODULE</span> ? <span class="pl-s">'module'</span> : <span class="pl-s">'script'</span><span class="pl-kos">,</span>
<span class="pl-c1">strictMode</span>: <span class="pl-s1">startInStrictMode</span> ? <span class="pl-c1">true</span> : <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c1">plugins</span>: <span class="pl-kos">[</span><span class="pl-s">'estree'</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">program</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Environment</strong></p>
<ul dir="auto">
<li>Babel version(s): v7.0.0 (regular)</li>
<li>Node/npm version: node 10</li>
<li>OS: linux</li>
<li>Monorepo only on sundays</li>
<li>How you are using Babel: code</li>
</ul>
<p dir="auto"><strong>Possible Solution</strong></p>
<p dir="auto">Whatever the mechanism for checking assignable is in Babel should do so properly across parens.</p>
<p dir="auto"><strong>Additional context/Screenshots</strong></p>
<p dir="auto">Current:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ type: 'Program',
body:
[ { type: 'ExpressionStatement',
expression:
{ type: 'AssignmentExpression',
left:
{ type: 'AssignmentPattern',
left: { type: 'Identifier', name: 'x' },
right: { type: 'Identifier', name: 'x' } },
operator: '=',
right: { type: 'Identifier', name: 'x' } } } ] }"><pre class="notranslate"><code class="notranslate">{ type: 'Program',
body:
[ { type: 'ExpressionStatement',
expression:
{ type: 'AssignmentExpression',
left:
{ type: 'AssignmentPattern',
left: { type: 'Identifier', name: 'x' },
right: { type: 'Identifier', name: 'x' } },
operator: '=',
right: { type: 'Identifier', name: 'x' } } } ] }
</code></pre></div>
<p dir="auto">Expected:</p>
<p dir="auto"><a href="https://tc39.github.io/ecma262/#sec-assignment-operators-static-semantics-assignmenttargettype" rel="nofollow">https://tc39.github.io/ecma262/#sec-assignment-operators-static-semantics-assignmenttargettype</a></p>
<p dir="auto">This rule says that an assignment itself is not a valid assignment.</p>
<p dir="auto">Note that assignments are right associative, so <code class="notranslate">x = x = x</code> is really <code class="notranslate">x = (x = x)</code>, which is why this is still valid while still considering assignments invalid assignment targets.</p>
<p dir="auto"><a href="https://tc39.github.io/ecma262/#sec-semantics-static-semantics-assignmenttargettype" rel="nofollow">https://tc39.github.io/ecma262/#sec-semantics-static-semantics-assignmenttargettype</a></p>
<p dir="auto">This rule says that the AssignmentTargetType state of a (non-arrow) group is the AssignmentTargetType of its contents.</p>
<p dir="auto">In other words; it's an invalid AssignmentTargetType and it should throw a syntax error.</p> | 1 |
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fn main() {
x.foo(1, 2,);
}"><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>
x<span class="pl-kos">.</span><span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">2</span><span class="pl-kos">,</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<anon>:2:16: 2:17 error: unexpected token: `)`
<anon>:2 x.foo(1, 2,);
^"><pre class="notranslate"><code class="notranslate"><anon>:2:16: 2:17 error: unexpected token: `)`
<anon>:2 x.foo(1, 2,);
^
</code></pre></div>
<p dir="auto"><a href="http://is.gd/8OsLJv" rel="nofollow">http://is.gd/8OsLJv</a></p> | <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fn main() {
bar(baz,);
foo::bar(baz,);
foo.bar(baz,); //~ ERROR unexpected token: `)`
}"><pre class="notranslate"><span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-en">bar</span><span class="pl-kos">(</span>baz<span class="pl-kos">,</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
foo<span class="pl-kos">::</span><span class="pl-en">bar</span><span class="pl-kos">(</span>baz<span class="pl-kos">,</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
foo<span class="pl-kos">.</span><span class="pl-en">bar</span><span class="pl-kos">(</span>baz<span class="pl-kos">,</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">//~ ERROR unexpected token: `)`</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">It works for functions and static methods—it should also work for instance methods.</p> | 1 |
<p dir="auto">We are running kubernetes 1.2.4 on GKE. We observed that when we increased load on our system by 20% our outbound connections from our pods started to fail 80% of the time. After much diagnosing we found that our cluster was running with just one <code class="notranslate">kube-dns</code> pod. This pod was being hammered and resulted in failures to resolve DNS requests.</p>
<p dir="auto">Our cluster started smaller (3x VM 8 core if i remember correctly) and is currently almost doubled in size/cores (10x VM 4 core).</p>
<p dir="auto">Creating a new cluster in GKE of the same size gave us three <code class="notranslate">kube-dns</code> pods. My expectations would be that the amound of <code class="notranslate">kube-dns</code> pods would scale by load (using a HPA?) or that the pods would scale by cluster size (using deamonsets?). Not that the amound of <code class="notranslate">kube-dns</code> pods would be based on the initial cluster size when creating it in GKE.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Client Version: version.Info{Major:"1", Minor:"2", GitVersion:"v1.2.4", GitCommit:"3eed1e3be6848b877ff80a93da3785d9034d0a4f", GitTreeState:"clean"}
Server Version: version.Info{Major:"1", Minor:"2", GitVersion:"v1.2.4", GitCommit:"3eed1e3be6848b877ff80a93da3785d9034d0a4f", GitTreeState:"clean"}"><pre class="notranslate"><code class="notranslate">Client Version: version.Info{Major:"1", Minor:"2", GitVersion:"v1.2.4", GitCommit:"3eed1e3be6848b877ff80a93da3785d9034d0a4f", GitTreeState:"clean"}
Server Version: version.Info{Major:"1", Minor:"2", GitVersion:"v1.2.4", GitCommit:"3eed1e3be6848b877ff80a93da3785d9034d0a4f", GitTreeState:"clean"}
</code></pre></div>
<p dir="auto">NOTE: I do not know if this issue is superseded by the DNS changes discussed in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="140012079" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/22823" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/22823/hovercard" href="https://github.com/kubernetes/kubernetes/issues/22823">#22823</a></p> | <p dir="auto">DNS SPOF, Autoscaling and GKE concerns - SPOF and upgrade path without downtime.</p>
<p dir="auto">Investigate switching to deployments or HPA.<br>
Fix addon manager upgrade path to allow rolling upgrades of DNS pods - SLO is 100% DNS service availability during rolling node upgrades and master upgrades.</p> | 1 |
<p dir="auto">When I make use of the built-in <code class="notranslate">withStyles</code> HOC I don't get the automatic vendor prefixing despite the following pieces of documentation claiming otherwise:</p>
<ul dir="auto">
<li><a href="https://material-ui-next.com/getting-started/frequently-asked-questions/#when-should-i-use-inline-style-vs-withstyles-" rel="nofollow">When should I use inline-style vs withStyles()?</a> it says that we can make use of <code class="notranslate">withStyles</code> in order to gain the benefit of vendor prefixing.</li>
<li><a href="https://material-ui-next.com/customization/css-in-js/#jss" rel="nofollow">CSS-in-JS</a> states that Material UI uses JSS at its core with the <code class="notranslate">jss-preset-default</code> which includes the <code class="notranslate">jss-vendor-prefixer</code> plugin.</li>
</ul>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">Vendor prefixes should be generated for certain style rules like <code class="notranslate">display: 'flex'</code> or <code class="notranslate">transform: 'translateX(100px)'</code></p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">No vendor prefixes are generated</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto"><a href="https://codesandbox.io/s/985r6o933w" rel="nofollow">https://codesandbox.io/s/985r6o933w</a></p>
<ol dir="auto">
<li>Inspect the element <code class="notranslate">Test</code></li>
<li>Notice that no vendor prefixes are generated when looking at the class <code class="notranslate">.ExampleContainer-root-1</code></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>1.0.0 beta 21</td>
</tr>
<tr>
<td>React</td>
<td>16.1.1</td>
</tr>
<tr>
<td>browser</td>
<td>Chrome 62</td>
</tr>
</tbody>
</table> | <p dir="auto">I am using the DatePicker to filter my results by date. However I need the ability to remove this filter setting if desired. The current DatePicker does not seem to have a way to do this - once a date is selected it is always there. Is there a way to do this?</p>
<p dir="auto"><strong>Examples</strong></p>
<ol dir="auto">
<li>Native <code class="notranslate"><input type="date" /></code> on Chrome</li>
<li><a href="https://eternicode.github.io/bootstrap-datepicker" rel="nofollow">Bootstrap DatePicker</a> - has an optional clear button, also the input text can be simply deleted.</li>
</ol> | 0 |
<h3 dir="auto">Bug report</h3>
<p dir="auto"><strong>Bug summary</strong><br>
When doing scatter plot of <code class="notranslate">nan</code> values it crashes because the list of colors gets overwriten to an empty list by this line:</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/matplotlib/matplotlib/blob/c921e2ead5a9b8ea3dabf74c9aee3958eecfc01e/lib/mpl_toolkits/mplot3d/axes3d.py#L2317">matplotlib/lib/mpl_toolkits/mplot3d/axes3d.py</a>
</p>
<p class="mb-0 color-fg-muted">
Line 2317
in
<a data-pjax="true" class="commit-tease-sha" href="/matplotlib/matplotlib/commit/c921e2ead5a9b8ea3dabf74c9aee3958eecfc01e">c921e2e</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="L2317" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="2317"></td>
<td id="LC2317" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">xs</span>, <span class="pl-s1">ys</span>, <span class="pl-s1">zs</span>, <span class="pl-s1">s</span>, <span class="pl-s1">c</span> <span class="pl-c1">=</span> <span class="pl-s1">cbook</span>.<span class="pl-en">delete_masked_points</span>(<span class="pl-s1">xs</span>, <span class="pl-s1">ys</span>, <span class="pl-s1">zs</span>, <span class="pl-s1">s</span>, <span class="pl-s1">c</span>) </td>
</tr>
</tbody></table>
</div>
</div>
<p></p>
<p dir="auto"><strong>Code for reproduction</strong><br>
We hit this bug in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="375037326" data-permission-text="Title is private" data-url="https://github.com/mne-tools/mne-python/issues/5676" data-hovercard-type="pull_request" data-hovercard-url="/mne-tools/mne-python/pull/5676/hovercard" href="https://github.com/mne-tools/mne-python/pull/5676">mne-tools/mne-python#5676</a>, but here is a MWE. Most probably this is a duplicated of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="374367401" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/12641" data-hovercard-type="issue" data-hovercard-url="/matplotlib/matplotlib/issues/12641/hovercard" href="https://github.com/matplotlib/matplotlib/issues/12641">#12641</a>. In which case, this can be used as a test.</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt
import numpy as np
n_points = 4
xs = ys = zs = np.full(n_points, np.nan)
colors = list(np.full(2, 'k'))
plt.scatter(xs, ys, zs, c=colors)
plt.show()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span>
<span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-s1">n_points</span> <span class="pl-c1">=</span> <span class="pl-c1">4</span>
<span class="pl-s1">xs</span> <span class="pl-c1">=</span> <span class="pl-s1">ys</span> <span class="pl-c1">=</span> <span class="pl-s1">zs</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">full</span>(<span class="pl-s1">n_points</span>, <span class="pl-s1">np</span>.<span class="pl-s1">nan</span>)
<span class="pl-s1">colors</span> <span class="pl-c1">=</span> <span class="pl-en">list</span>(<span class="pl-s1">np</span>.<span class="pl-en">full</span>(<span class="pl-c1">2</span>, <span class="pl-s">'k'</span>))
<span class="pl-s1">plt</span>.<span class="pl-en">scatter</span>(<span class="pl-s1">xs</span>, <span class="pl-s1">ys</span>, <span class="pl-s1">zs</span>, <span class="pl-s1">c</span><span class="pl-c1">=</span><span class="pl-s1">colors</span>)
<span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div>
<p dir="auto"><strong>Expected outcome</strong></p>
<p dir="auto">(As in matplotlib 2.2.2) we would expect an empty plot with no error</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [25]: matplotlib.__version__
Out[25]: '2.2.2'
In [26]: %paste
import matplotlib.pyplot as plt
import numpy as np
n_points = 4
xs = ys = zs = np.full(n_points, np.nan)
colors = list(np.full(2, 'k'))
plt.scatter(xs, ys, zs, c=colors)
plt.show()
## -- End pasted text --
In [27]: "><pre class="notranslate">In [25]: matplotlib.__version__
Out[25]: <span class="pl-s"><span class="pl-pds">'</span>2.2.2<span class="pl-pds">'</span></span>
In [26]: %paste
import matplotlib.pyplot as plt
import numpy as np
n_points = 4
xs = ys = zs = np.full(n_points, np.nan)
colors = list(np.full(2, <span class="pl-s"><span class="pl-pds">'</span>k<span class="pl-pds">'</span></span>))
plt.scatter(xs, ys, zs, c=colors)
<span class="pl-en">plt.show</span>()
<span class="pl-c"><span class="pl-c">#</span># -- End pasted text --</span>
In [27]: </pre></div>
<p dir="auto"><strong>Actual outcome</strong><br>
It breaks because cannot iterate over <code class="notranslate">c</code></p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [9]: matplotlib.__version__
Out[9]: '3.0.1'
In [10]: %paste
import matplotlib.pyplot as plt
import numpy as np
n_points = 4
xs = ys = zs = np.full(n_points, np.nan)
colors = list(np.full(2, 'k'))
plt.scatter(xs, ys, zs, c=colors)
plt.show()
## -- End pasted text --
Traceback (most recent call last):
File "<ipython-input-10-f59e87d45c38>", line 7, in <module>
plt.scatter(xs, ys, zs, c=colors)
File "/home/sik/miniconda3/envs/mne/lib/python3.6/site-packages/matplotlib/pyplot.py", line 2864, in scatter
is not None else {}), **kwargs)
File "/home/sik/miniconda3/envs/mne/lib/python3.6/site-packages/matplotlib/__init__.py", line 1805, in inner
return func(ax, *args, **kwargs)
File "/home/sik/miniconda3/envs/mne/lib/python3.6/site-packages/matplotlib/axes/_axes.py", line 4234, in scatter
.format(nc=n_elem, xs=x.size, ys=y.size)
ValueError: 'c' argument has 2 elements, which is not acceptable for use with 'x' with size 4, 'y' with size 4."><pre class="notranslate">In [9]: matplotlib.__version__
Out[9]: <span class="pl-s"><span class="pl-pds">'</span>3.0.1<span class="pl-pds">'</span></span>
In [10]: %paste
import matplotlib.pyplot as plt
import numpy as np
n_points = 4
xs = ys = zs = np.full(n_points, np.nan)
colors = list(np.full(2, <span class="pl-s"><span class="pl-pds">'</span>k<span class="pl-pds">'</span></span>))
plt.scatter(xs, ys, zs, c=colors)
<span class="pl-en">plt.show</span>()
<span class="pl-c"><span class="pl-c">#</span># -- End pasted text --</span>
Traceback (most recent call last):
File <span class="pl-s"><span class="pl-pds">"</span><ipython-input-10-f59e87d45c38><span class="pl-pds">"</span></span>, line 7, <span class="pl-k">in</span> <span class="pl-k"><</span>module<span class="pl-k">></span>
plt.scatter(xs, ys, zs, c=colors)
File <span class="pl-s"><span class="pl-pds">"</span>/home/sik/miniconda3/envs/mne/lib/python3.6/site-packages/matplotlib/pyplot.py<span class="pl-pds">"</span></span>, line 2864, <span class="pl-k">in</span> scatter
is not None <span class="pl-k">else</span> {}), <span class="pl-k">**</span>kwargs)
File <span class="pl-s"><span class="pl-pds">"</span>/home/sik/miniconda3/envs/mne/lib/python3.6/site-packages/matplotlib/__init__.py<span class="pl-pds">"</span></span>, line 1805, <span class="pl-k">in</span> inner
<span class="pl-k">return</span> func(ax, <span class="pl-k">*</span>args, <span class="pl-k">**</span>kwargs)
File <span class="pl-s"><span class="pl-pds">"</span>/home/sik/miniconda3/envs/mne/lib/python3.6/site-packages/matplotlib/axes/_axes.py<span class="pl-pds">"</span></span>, line 4234, <span class="pl-k">in</span> scatter
.format(nc=n_elem, xs=x.size, ys=y.size)
ValueError: <span class="pl-s"><span class="pl-pds">'</span>c<span class="pl-pds">'</span></span> argument has 2 elements, which is not acceptable <span class="pl-k">for</span> use with <span class="pl-s"><span class="pl-pds">'</span>x<span class="pl-pds">'</span></span> with size 4, <span class="pl-s"><span class="pl-pds">'</span>y<span class="pl-pds">'</span></span> with size 4.</pre></div> | <p dir="auto">This is a bit of a nitpick, but if you look at the <a href="http://matplotlib.org/devdocs/examples/pylab_examples/mathtext_examples.html" rel="nofollow">latest mathtext example</a>, many accents are too far to the left. It's actually a bit off in the 1.5.x docs, but perhaps not as noticeable with the other font.</p>
<p dir="auto">For example, the acute accent on the 'a' is pretty clearly too far to the left, with the bottom starting at the start of the curve, when it really should start above the middle like the grave accent. The breve, dot, umlaut, tilde and arrow arrow also just slightly to the left (though pretty reasonable.) At this size, the macron seems okay, but at a larger font size, it seems slightly to the left as well.</p>
<p dir="auto">At a guess, perhaps the location for the accents is tuned for regular text, and so is slightly to the left for math text, which is usually italic?</p> | 0 |
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=youngm" rel="nofollow">Mike Youngstrom</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9388?redirect=false" rel="nofollow">SPR-9388</a></strong> and commented</p>
<p dir="auto">It appears something changed between 3.1.0 and 3.1.1 with regards to Provider resolution.</p>
<ul dir="auto">
<li>I have a request scoped bean injected into a singleton using a Provider.</li>
<li>When multiple instance of my singleton are created I get the exception below.</li>
</ul>
<p dir="auto">This code works fine in 3.1.0.Final. Fails when I upgrade to 3.1.1.</p>
<p dir="auto">I've included a test case based on the STS MVC project template.</p>
<p dir="auto">To duplicate:</p>
<ol dir="auto">
<li>Import project into STS</li>
<li>Deploy with Tomcat 7.</li>
<li>Notice Error.</li>
<li>Change spring version in pom.xml to 3.1.0</li>
<li>Restart. Notice No Error.</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR: org.springframework.web.servlet.DispatcherServlet - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'someSingleton2': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: javax.inject.Provider com.test.provider.SomeSingleton.someRequestBean; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'someRequestBean': Scope 'request' is not active for the current thread; consider defining a scoped proxy for this bean if you intend to refer to it from a singleton; nested exception is java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet/DispatcherPortlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request.
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:287)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1106)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:631)
at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:588)
at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:645)
at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:508)
at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:449)
at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:133)
at javax.servlet.GenericServlet.init(GenericServlet.java:160)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1266)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1185)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1080)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5015)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5302)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3908)
at org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:426)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1350)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1537)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1547)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1547)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1526)
at java.lang.Thread.run(Thread.java:722)
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: javax.inject.Provider com.test.provider.SomeSingleton.someRequestBean; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'someRequestBean': Scope 'request' is not active for the current thread; consider defining a scoped proxy for this bean if you intend to refer to it from a singleton; nested exception is java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet/DispatcherPortlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request.
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:506)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:284)
... 31 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'someRequestBean': Scope 'request' is not active for the current thread; consider defining a scoped proxy for this bean if you intend to refer to it from a singleton; nested exception is java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet/DispatcherPortlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request.
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:342)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:848)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:790)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:707)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.resolvedCachedArgument(AutowiredAnnotationBeanPostProcessor.java:439)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.access$0(AutowiredAnnotationBeanPostProcessor.java:435)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:472)
... 33 more
Caused by: java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet/DispatcherPortlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request.
at org.springframework.web.context.request.RequestContextHolder.currentRequestAttributes(RequestContextHolder.java:131)
at org.springframework.web.context.request.AbstractRequestAttributesScope.get(AbstractRequestAttributesScope.java:40)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:328)
... 40 more"><pre class="notranslate"><code class="notranslate">ERROR: org.springframework.web.servlet.DispatcherServlet - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'someSingleton2': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: javax.inject.Provider com.test.provider.SomeSingleton.someRequestBean; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'someRequestBean': Scope 'request' is not active for the current thread; consider defining a scoped proxy for this bean if you intend to refer to it from a singleton; nested exception is java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet/DispatcherPortlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request.
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:287)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1106)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:631)
at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:588)
at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:645)
at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:508)
at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:449)
at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:133)
at javax.servlet.GenericServlet.init(GenericServlet.java:160)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1266)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1185)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1080)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5015)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5302)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3908)
at org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:426)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1350)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1537)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1547)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1547)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1526)
at java.lang.Thread.run(Thread.java:722)
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: javax.inject.Provider com.test.provider.SomeSingleton.someRequestBean; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'someRequestBean': Scope 'request' is not active for the current thread; consider defining a scoped proxy for this bean if you intend to refer to it from a singleton; nested exception is java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet/DispatcherPortlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request.
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:506)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:284)
... 31 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'someRequestBean': Scope 'request' is not active for the current thread; consider defining a scoped proxy for this bean if you intend to refer to it from a singleton; nested exception is java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet/DispatcherPortlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request.
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:342)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:848)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:790)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:707)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.resolvedCachedArgument(AutowiredAnnotationBeanPostProcessor.java:439)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.access$0(AutowiredAnnotationBeanPostProcessor.java:435)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:472)
... 33 more
Caused by: java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet/DispatcherPortlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request.
at org.springframework.web.context.request.RequestContextHolder.currentRequestAttributes(RequestContextHolder.java:131)
at org.springframework.web.context.request.AbstractRequestAttributesScope.get(AbstractRequestAttributesScope.java:40)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:328)
... 40 more
</code></pre></div>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.1.1</p>
<p dir="auto"><strong>Attachments:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/secure/attachment/19643/testRequestProvider.zip" rel="nofollow">testRequestProvider.zip</a> (<em>6.92 kB</em>)</li>
</ul>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398117666" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13819" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13819/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13819">#13819</a> <code class="notranslate">@Inject</code> Provider or <code class="notranslate">@Autowired</code> ObjectFactory issue with session scoped bean (<em><strong>"duplicates"</strong></em>)</li>
</ul>
<p dir="auto">1 votes, 2 watchers</p> | <p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=gthomps95" rel="nofollow">Greg Thompson</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9181?redirect=false" rel="nofollow">SPR-9181</a></strong> and commented</p>
<p dir="auto">I have a session scoped bean. It's marked with <aop:scoped-proxy />. I'm trying to inject a Provider or ObjectFactory into the session bean using <code class="notranslate">@Inject</code> or <code class="notranslate">@Autowired</code>. It injects fine the first time the session bean is created. On the second creation of the session bean (for a 2nd session), I get java.lang.IllegalArgumentException when setting the <code class="notranslate">@Inject</code> or <code class="notranslate">@Autowired</code> property. It's trying to set the actual bean, instead of a provider or an object factory.</p>
<p dir="auto">I stepped through the code. The code in the getDependencyType() method of DependencyDescriptor doesn't seem to work as expected when it's setting the value on the second session bean. Something with the nesting level. So, I don't get a DependencyProvider as expected in the resolveDependency method of DefaultListableBeanFactory class. The getDependencyType returns the class of the bean, instead of a provider or object factory class that is the type of the property.</p>
<p dir="auto">This worked fine with 3.0.</p>
<hr>
<p dir="auto"><strong>Attachments:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/secure/attachment/19995/SPR-9181.tgz" rel="nofollow">SPR-9181.tgz</a> (<em>4.89 kB</em>)</li>
</ul>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398119000" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14024" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14024/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14024">#14024</a> Regression: javax.inject.Provider resolution too agressive (<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="398152065" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14264" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14264/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14264">#14264</a> Injection of Provider fails for prototype-scoped beans (<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="398153775" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14478" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14478/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14478">#14478</a> Automatically created java.inject.Provider cannot be injected into session scoped beans (<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/1bd775f828ddb1f2919c2a57b1151dc3cca9f14c/hovercard" href="https://github.com/spring-projects/spring-framework/commit/1bd775f828ddb1f2919c2a57b1151dc3cca9f14c"><tt>1bd775f</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/fbe955ab284f5782b80a852b84933af14c32b006/hovercard" href="https://github.com/spring-projects/spring-framework/commit/fbe955ab284f5782b80a852b84933af14c32b006"><tt>fbe955a</tt></a></p>
<p dir="auto">6 votes, 8 watchers</p> | 1 |
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/863" rel="nofollow">http://projects.scipy.org/numpy/ticket/863</a> on 2008-07-26 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/cournape/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/cournape">@cournape</a>, assigned to unknown.</em></p>
<p dir="auto">@ 1.1.1rc2:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Ticket #658==7735==
==7735== Conditional jump or move depends on uninitialised value(s)
==7735== at 0x4639E7A: PyArray_UpdateFlags (arrayobject.c:5172)
==7735== by 0x4658FB3: PyArray_Newshape (multiarraymodule.c:758)
==7735== by 0x465A097: array_reshape (arraymethods.c:87)
==7735== by 0x80C9992: PyEval_EvalFrameEx (ceval.c:3573)
==7735== by 0x80CB0D6: PyEval_EvalCodeEx (ceval.c:2836)
==7735== by 0x80C92DD: PyEval_EvalFrameEx (ceval.c:3669)
==7735== by 0x80CB0D6: PyEval_EvalCodeEx (ceval.c:2836)
==7735== by 0x81133BA: function_call (funcobject.c:517)
==7735== by 0x805CB36: PyObject_Call (abstract.c:1861)
==7735== by 0x80C7CE3: PyEval_EvalFrameEx (ceval.c:3853)
==7735== by 0x80CB0D6: PyEval_EvalCodeEx (ceval.c:2836)
==7735== by 0x811342F: function_call (funcobject.c:517)"><pre class="notranslate"><code class="notranslate">Ticket #658==7735==
==7735== Conditional jump or move depends on uninitialised value(s)
==7735== at 0x4639E7A: PyArray_UpdateFlags (arrayobject.c:5172)
==7735== by 0x4658FB3: PyArray_Newshape (multiarraymodule.c:758)
==7735== by 0x465A097: array_reshape (arraymethods.c:87)
==7735== by 0x80C9992: PyEval_EvalFrameEx (ceval.c:3573)
==7735== by 0x80CB0D6: PyEval_EvalCodeEx (ceval.c:2836)
==7735== by 0x80C92DD: PyEval_EvalFrameEx (ceval.c:3669)
==7735== by 0x80CB0D6: PyEval_EvalCodeEx (ceval.c:2836)
==7735== by 0x81133BA: function_call (funcobject.c:517)
==7735== by 0x805CB36: PyObject_Call (abstract.c:1861)
==7735== by 0x80C7CE3: PyEval_EvalFrameEx (ceval.c:3853)
==7735== by 0x80CB0D6: PyEval_EvalCodeEx (ceval.c:2836)
==7735== by 0x811342F: function_call (funcobject.c:517)
</code></pre></div> | <p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/771" rel="nofollow">http://projects.scipy.org/numpy/ticket/771</a> on 2008-05-07 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/alberts/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/alberts">@alberts</a>, assigned to unknown.</em></p>
<p dir="auto">Valgrind warning when running test for ticket <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="7726118" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/1256" data-hovercard-type="issue" data-hovercard-url="/numpy/numpy/issues/1256/hovercard" href="https://github.com/numpy/numpy/issues/1256">#1256</a>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="==14758== Conditional jump or move depends on uninitialised value(s)
==14758== at 0x433E2D2: PyArray_UpdateFlags (arrayobject.c:5172)
==14758== by 0x43679C8: PyArray_Newshape (multiarraymodule.c:742)
==14758== by 0x436856E: array_reshape (arraymethods.c:87)
==14758== by 0x80CF775: PyEval_EvalFrameEx (ceval.c:3645)
==14758== by 0x80D0CA5: PyEval_EvalCodeEx (ceval.c:2908)
==14758== by 0x80CF002: PyEval_EvalFrameEx (ceval.c:3741)
==14758== by 0x80D0CA5: PyEval_EvalCodeEx (ceval.c:2908)
==14758== by 0x81235D5: function_call (funcobject.c:524)
==14758== by 0x805BE24: PyObject_Call (abstract.c:2490)
==14758== by 0x80CB503: PyEval_EvalFrameEx (ceval.c:3944)
==14758== by 0x80D0CA5: PyEval_EvalCodeEx (ceval.c:2908)
==14758== by 0x812350B: function_call (funcobject.c:524)
==14758== by 0x805BE24: PyObject_Call (abstract.c:2490)
==14758== by 0x8062C76: instancemethod_call (classobject.c:2558)
==14758== by 0x805BE24: PyObject_Call (abstract.c:2490)
==14758== by 0x80CBE34: PyEval_EvalFrameEx (ceval.c:3856)
==14758== by 0x80D0CA5: PyEval_EvalCodeEx (ceval.c:2908)
==14758== by 0x812350B: function_call (funcobject.c:524)
==14758== by 0x805BE24: PyObject_Call (abstract.c:2490)
==14758== by 0x8062C76: instancemethod_call (classobject.c:2558)"><pre class="notranslate"><code class="notranslate">==14758== Conditional jump or move depends on uninitialised value(s)
==14758== at 0x433E2D2: PyArray_UpdateFlags (arrayobject.c:5172)
==14758== by 0x43679C8: PyArray_Newshape (multiarraymodule.c:742)
==14758== by 0x436856E: array_reshape (arraymethods.c:87)
==14758== by 0x80CF775: PyEval_EvalFrameEx (ceval.c:3645)
==14758== by 0x80D0CA5: PyEval_EvalCodeEx (ceval.c:2908)
==14758== by 0x80CF002: PyEval_EvalFrameEx (ceval.c:3741)
==14758== by 0x80D0CA5: PyEval_EvalCodeEx (ceval.c:2908)
==14758== by 0x81235D5: function_call (funcobject.c:524)
==14758== by 0x805BE24: PyObject_Call (abstract.c:2490)
==14758== by 0x80CB503: PyEval_EvalFrameEx (ceval.c:3944)
==14758== by 0x80D0CA5: PyEval_EvalCodeEx (ceval.c:2908)
==14758== by 0x812350B: function_call (funcobject.c:524)
==14758== by 0x805BE24: PyObject_Call (abstract.c:2490)
==14758== by 0x8062C76: instancemethod_call (classobject.c:2558)
==14758== by 0x805BE24: PyObject_Call (abstract.c:2490)
==14758== by 0x80CBE34: PyEval_EvalFrameEx (ceval.c:3856)
==14758== by 0x80D0CA5: PyEval_EvalCodeEx (ceval.c:2908)
==14758== by 0x812350B: function_call (funcobject.c:524)
==14758== by 0x805BE24: PyObject_Call (abstract.c:2490)
==14758== by 0x8062C76: instancemethod_call (classobject.c:2558)
</code></pre></div>
<p dir="auto">Found by the Python 2.6 buildbot.</p> | 1 |
<p dir="auto">I have a simple file at /etc/foo.txt. The file contains the following:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#bar"><pre class="notranslate"><code class="notranslate">#bar
</code></pre></div>
<p dir="auto">I have the following ansible playbook task to uncomment the line above:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- name: test lineinfile
lineinfile: backup=yes state=present dest=/etc/foo.txt
regexp='^#bar'
line='bar'"><pre class="notranslate"><code class="notranslate">- name: test lineinfile
lineinfile: backup=yes state=present dest=/etc/foo.txt
regexp='^#bar'
line='bar'
</code></pre></div>
<p dir="auto">When I first run ansible-playbook, the line gets uncommented and the /etc/foo.txt now contains the following:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="bar"><pre class="notranslate"><code class="notranslate">bar
</code></pre></div>
<p dir="auto">However, if I run ansible-playbook again, I get the following:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="bar
bar"><pre class="notranslate"><code class="notranslate">bar
bar
</code></pre></div>
<p dir="auto">If I run it yet again, then the /etc/foo.txt file will look like this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="bar
bar
bar"><pre class="notranslate"><code class="notranslate">bar
bar
bar
</code></pre></div>
<p dir="auto">I believe these duplications of lines are a bug.</p>
<p dir="auto">Happens on ansible-playbook 1.3.3 and 1.2.2.</p> | <p dir="auto">Roles do not use their variable definitions when actvated via the role dependency mechanism.</p>
<ul dir="auto">
<li>ansible 1.4 -devel <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/ansible/ansible/commit/214b0b052c3d54b58a531b0f7fb401ec3c0229f5/hovercard" href="https://github.com/ansible/ansible/commit/214b0b052c3d54b58a531b0f7fb401ec3c0229f5"><tt>214b0b0</tt></a></li>
</ul>
<h1 dir="auto">Description</h1>
<ol dir="auto">
<li>alpha role depends on beta role</li>
<li>Each role provides a unique value for a variable named 'port' /vars/main.yml</li>
<li>When beta role is executed (aka <strong>"active"</strong>) via the role dependency mechanism, the role uses variable definitions from alpha role instead of its own definitions (roles/beta/vars/main.yml).</li>
<li>It has been noted that active roles use their variable definitions [unless higher precedent variables are passed via --extra-vars, or variable definitions in the base playbook]
<ul dir="auto">
<li>"... within a role, the variables in roles/y/vars/main.yml are guaranteed to be applied to that specific role, just as if they were parameters explicitly passed to the role." ( <a href="https://groups.google.com/d/msg/ansible-project/0JIrNlnRXuI/tx1-inKYoUQJ" rel="nofollow">https://groups.google.com/d/msg/ansible-project/0JIrNlnRXuI/tx1-inKYoUQJ</a> )</li>
</ul>
</li>
</ol>
<h1 dir="auto">Demonstration</h1>
<p dir="auto"><a href="https://github.com/briceburg/ansible-variable-scoping/tree/master/simple_vars">https://github.com/briceburg/ansible-variable-scoping/tree/master/simple_vars</a></p> | 0 |
<p dir="auto">While building an android app. Both for dev or release, Gradle produced an error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="**D8: Program type already present: com.google.android.gms.internal.vision.zzaj**
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
> com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives:
"><pre class="notranslate"><code class="notranslate">**D8: Program type already present: com.google.android.gms.internal.vision.zzaj**
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
> com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives:
</code></pre></div>
<p dir="auto">This is a new project, not an upgrade. The application is properly connected to a Firebase instance, it performs read/write operations in FireStore, and authenticates to Firebase. All works fine until the firebase_ml_vision package is added, then building is no longer possible.</p>
<p dir="auto">This is the content of the YAML file</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="name: scanner
description: scanner
version: 1.0.0+1
environment:
sdk: ">=2.0.0-dev.68.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
firebase_ml_vision: ^0.2.0+1
firebase_auth: 0.6.2+1
google_sign_in: 3.2.2
cloud_firestore: ^0.8.1+1
path_provider: ^0.4.1
camera: 0.2.4"><pre class="notranslate"><span class="pl-ent">name</span>: <span class="pl-s">scanner</span>
<span class="pl-ent">description</span>: <span class="pl-s">scanner</span>
<span class="pl-ent">version</span>: <span class="pl-s">1.0.0+1</span>
<span class="pl-ent">environment</span>:
<span class="pl-ent">sdk</span>: <span class="pl-s"><span class="pl-pds">"</span>>=2.0.0-dev.68.0 <3.0.0<span class="pl-pds">"</span></span>
<span class="pl-ent">dependencies</span>:
<span class="pl-ent">flutter</span>:
<span class="pl-ent">sdk</span>: <span class="pl-s">flutter</span>
<span class="pl-ent">firebase_ml_vision</span>: <span class="pl-s">^0.2.0+1</span>
<span class="pl-ent">firebase_auth</span>: <span class="pl-s">0.6.2+1</span>
<span class="pl-ent">google_sign_in</span>: <span class="pl-s">3.2.2</span>
<span class="pl-ent">cloud_firestore</span>: <span class="pl-s">^0.8.1+1</span>
<span class="pl-ent">path_provider</span>: <span class="pl-s">^0.4.1</span>
<span class="pl-ent">camera</span>: <span class="pl-s">0.2.4</span></pre></div>
<p dir="auto">Build log:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
[ +42 ms] executing: [/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[ +36 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ +1 ms] origin/beta
[ +1 ms] executing: [/flutter/] git rev-parse --abbrev-ref HEAD
[ +8 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] beta
[ ] executing: [/flutter/] git ls-remote --get-url origin
[ +8 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] https://github.com/flutter/flutter.git
[ ] executing: [/flutter/] git log -n 1 --pretty=format:%H
[ +22 ms] Exit code 0 from: git log -n 1 --pretty=format:%H
[ ] f37c235c32fc15babe6dc7b7bc2ee4387e5ecf92
[ ] executing: [/flutter/] git log -n 1 --pretty=format:%ar
[ +10 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar
[ ] 4 weeks ago
[ +2 ms] executing: [/flutter/] git describe --match v*.*.* --first-parent --long --tags
[ +35 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[ ] v0.9.4-0-gf37c235c3
[ +287 ms] executing: /Volumes/Data/Library/Android/sdk/platform-tools/adb devices -l
[ +8 ms] Exit code 0 from: /Volumes/Data/Library/Android/sdk/platform-tools/adb devices -l
[ ] List of devices attached
710KPKN0474357 device usb:338690048X product:taimen model:Pixel_2_XL device:taimen transport_id:11
[ +14 ms] executing: idevice_id -h
[ +45 ms] /usr/bin/xcrun simctl list --json devices
[ +319 ms] Found plugin camera at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/camera-0.2.4/
[ +4 ms] Found plugin cloud_firestore at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.8.2+1/
[ +11 ms] Found plugin firebase_auth at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.6.2+1/
[ +2 ms] Found plugin firebase_core at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.2.5+1/
[ +2 ms] Found plugin firebase_ml_vision at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/firebase_ml_vision-0.2.0+1/
[ +24 ms] Found plugin google_sign_in at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/google_sign_in-3.2.2/
[ +31 ms] Found plugin path_provider at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/path_provider-0.4.1/
[ +64 ms] Found plugin camera at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/camera-0.2.4/
[ +2 ms] Found plugin cloud_firestore at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.8.2+1/
[ +3 ms] Found plugin firebase_auth at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.6.2+1/
[ +1 ms] Found plugin firebase_core at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.2.5+1/
[ +1 ms] Found plugin firebase_ml_vision at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/firebase_ml_vision-0.2.0+1/
[ +8 ms] Found plugin google_sign_in at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/google_sign_in-3.2.2/
[ +19 ms] Found plugin path_provider at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/path_provider-0.4.1/
[ +53 ms] /Volumes/Data/Library/Android/sdk/platform-tools/adb -s 710KPKN0474357 shell getprop
[ +108 ms] ro.hardware = taimen
[ +1 ms] ro.build.characteristics = nosdcard
[ +751 ms] Launching lib/main.dart on Pixel 2 XL in debug mode...
[ +29 ms] Initializing gradle...
[ +39 ms] Using gradle from /Volumes/Data/FlutterProjects/scanner/android/gradlew.
[+1892 ms] executing: /usr/bin/defaults read /Applications/Android Studio.app/Contents/Info CFBundleShortVersionString
[ +185 ms] Exit code 0 from: /usr/bin/defaults read /Applications/Android Studio.app/Contents/Info CFBundleShortVersionString
[ ] 3.2
[ +117 ms] executing: /Volumes/Data/FlutterProjects/scanner/android/gradlew -v
[ +915 ms]
------------------------------------------------------------
Gradle 4.6
------------------------------------------------------------
Build time: 2018-02-28 13:36:36 UTC
Revision: 8fa6ce7945b640e6168488e4417f9bb96e4ab46c
Groovy: 2.4.12
Ant: Apache Ant(TM) version 1.9.9 compiled on February 2 2017
JVM: 1.8.0_152-release (JetBrains s.r.o 25.152-b06)
OS: Mac OS X 10.14 x86_64
[ ] Initializing gradle... (completed)
[ +1 ms] Resolving dependencies...
[ ] executing: [/Volumes/Data/FlutterProjects/scanner/android/] /Volumes/Data/FlutterProjects/scanner/android/gradlew app:properties
[+1598 ms] Could not find google-services.json while looking in [src/nullnull/debug, src/debug/nullnull, src/nullnull, src/debug, src/nullnullDebug]
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
Could not find google-services.json while looking in [src/nullnull/dynamicProfile, src/dynamicProfile/nullnull, src/nullnull, src/dynamicProfile, src/nullnullDynamicProfile]
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
Could not find google-services.json while looking in [src/nullnull/release, src/release/nullnull, src/nullnull, src/release, src/nullnullRelease]
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
Could not find google-services.json while looking in [src/nullnull/profile, src/profile/nullnull, src/nullnull, src/profile, src/nullnullProfile]
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
Could not find google-services.json while looking in [src/nullnull/dynamicRelease, src/dynamicRelease/nullnull, src/nullnull, src/dynamicRelease, src/nullnullDynamicRelease]
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
------------------------------------------------------------
Project :app
------------------------------------------------------------
allprojects: [project ':app']
android: com.android.build.gradle.AppExtension_Decorated@72ed5602
androidDependencies: task ':app:androidDependencies'
ant: org.gradle.api.internal.project.DefaultAntBuilder@37efd63b
antBuilderFactory: org.gradle.api.internal.project.DefaultAntBuilderFactory@66408319
archivesBaseName: app
artifacts: org.gradle.api.internal.artifacts.dsl.DefaultArtifactHandler_Decorated@692610d
asDynamicObject: DynamicObject for project ':app'
assemble: task ':app:assemble'
assembleAndroidTest: task ':app:assembleAndroidTest'
assembleDebug: task ':app:assembleDebug'
assembleDebugAndroidTest: task ':app:assembleDebugAndroidTest'
assembleDebugUnitTest: task ':app:assembleDebugUnitTest'
assembleDynamicProfile: task ':app:assembleDynamicProfile'
assembleDynamicProfileUnitTest: task ':app:assembleDynamicProfileUnitTest'
assembleDynamicRelease: task ':app:assembleDynamicRelease'
assembleDynamicReleaseUnitTest: task ':app:assembleDynamicReleaseUnitTest'
assembleProfile: task ':app:assembleProfile'
assembleProfileUnitTest: task ':app:assembleProfileUnitTest'
assembleRelease: task ':app:assembleRelease'
assembleReleaseUnitTest: task ':app:assembleReleaseUnitTest'
baseClassLoaderScope: org.gradle.api.internal.initialization.DefaultClassLoaderScope@1ed76a9b
buildDependents: task ':app:buildDependents'
buildDir: /Volumes/Data/FlutterProjects/scanner/build/app
buildFile: /Volumes/Data/FlutterProjects/scanner/android/app/build.gradle
buildNeeded: task ':app:buildNeeded'
buildOutputs: BaseVariantOutput container
buildPath: :
buildScriptSource: org.gradle.groovy.scripts.TextResourceScriptSource@57c02974
buildscript: org.gradle.api.internal.initialization.DefaultScriptHandler@35fa20de
bundleAppClassesDebug: task ':app:bundleAppClassesDebug'
bundleAppClassesDebugAndroidTest: task ':app:bundleAppClassesDebugAndroidTest'
bundleAppClassesDebugUnitTest: task ':app:bundleAppClassesDebugUnitTest'
bundleAppClassesDynamicProfile: task ':app:bundleAppClassesDynamicProfile'
bundleAppClassesDynamicProfileUnitTest: task ':app:bundleAppClassesDynamicProfileUnitTest'
bundleAppClassesDynamicRelease: task ':app:bundleAppClassesDynamicRelease'
bundleAppClassesDynamicReleaseUnitTest: task ':app:bundleAppClassesDynamicReleaseUnitTest'
bundleAppClassesProfile: task ':app:bundleAppClassesProfile'
bundleAppClassesProfileUnitTest: task ':app:bundleAppClassesProfileUnitTest'
bundleAppClassesRelease: task ':app:bundleAppClassesRelease'
bundleAppClassesReleaseUnitTest: task ':app:bundleAppClassesReleaseUnitTest'
bundleDebugAndroidTestResources: task ':app:bundleDebugAndroidTestResources'
bundleDebugResources: task ':app:bundleDebugResources'
bundleDynamicProfileResources: task ':app:bundleDynamicProfileResources'
bundleDynamicReleaseResources: task ':app:bundleDynamicReleaseResources'
bundleProfileResources: task ':app:bundleProfileResources'
bundleReleaseResources: task ':app:bundleReleaseResources'
check: task ':app:check'
checkDebugManifest: task ':app:checkDebugManifest'
checkDynamicProfileManifest: task ':app:checkDynamicProfileManifest'
checkDynamicReleaseManifest: task ':app:checkDynamicReleaseManifest'
checkProfileManifest: task ':app:checkProfileManifest'
checkReleaseManifest: task ':app:checkReleaseManifest'
childProjects: {}
class: class org.gradle.api.internal.project.DefaultProject_Decorated
classLoaderScope: org.gradle.api.internal.initialization.DefaultClassLoaderScope@2075a565
cleanBuildCache: task ':app:cleanBuildCache'
compileDebugAidl: task ':app:compileDebugAidl'
compileDebugAndroidTestAidl: task ':app:compileDebugAndroidTestAidl'
compileDebugAndroidTestJavaWithJavac: task ':app:compileDebugAndroidTestJavaWithJavac'
compileDebugAndroidTestNdk: task ':app:compileDebugAndroidTestNdk'
compileDebugAndroidTestRenderscript: task ':app:compileDebugAndroidTestRenderscript'
compileDebugAndroidTestShaders: task ':app:compileDebugAndroidTestShaders'
compileDebugAndroidTestSources: task ':app:compileDebugAndroidTestSources'
compileDebugJavaWithJavac: task ':app:compileDebugJavaWithJavac'
compileDebugNdk: task ':app:compileDebugNdk'
compileDebugRenderscript: task ':app:compileDebugRenderscript'
compileDebugShaders: task ':app:compileDebugShaders'
compileDebugSources: task ':app:compileDebugSources'
compileDebugUnitTestJavaWithJavac: task ':app:compileDebugUnitTestJavaWithJavac'
compileDebugUnitTestSources: task ':app:compileDebugUnitTestSources'
compileDynamicProfileAidl: task ':app:compileDynamicProfileAidl'
compileDynamicProfileJavaWithJavac: task ':app:compileDynamicProfileJavaWithJavac'
compileDynamicProfileNdk: task ':app:compileDynamicProfileNdk'
compileDynamicProfileRenderscript: task ':app:compileDynamicProfileRenderscript'
compileDynamicProfileShaders: task ':app:compileDynamicProfileShaders'
compileDynamicProfileSources: task ':app:compileDynamicProfileSources'
compileDynamicProfileUnitTestJavaWithJavac: task ':app:compileDynamicProfileUnitTestJavaWithJavac'
compileDynamicProfileUnitTestSources: task ':app:compileDynamicProfileUnitTestSources'
compileDynamicReleaseAidl: task ':app:compileDynamicReleaseAidl'
compileDynamicReleaseJavaWithJavac: task ':app:compileDynamicReleaseJavaWithJavac'
compileDynamicReleaseNdk: task ':app:compileDynamicReleaseNdk'
compileDynamicReleaseRenderscript: task ':app:compileDynamicReleaseRenderscript'
compileDynamicReleaseShaders: task ':app:compileDynamicReleaseShaders'
compileDynamicReleaseSources: task ':app:compileDynamicReleaseSources'
compileDynamicReleaseUnitTestJavaWithJavac: task ':app:compileDynamicReleaseUnitTestJavaWithJavac'
compileDynamicReleaseUnitTestSources: task ':app:compileDynamicReleaseUnitTestSources'
compileLint: task ':app:compileLint'
compileProfileAidl: task ':app:compileProfileAidl'
compileProfileJavaWithJavac: task ':app:compileProfileJavaWithJavac'
compileProfileNdk: task ':app:compileProfileNdk'
compileProfileRenderscript: task ':app:compileProfileRenderscript'
compileProfileShaders: task ':app:compileProfileShaders'
compileProfileSources: task ':app:compileProfileSources'
compileProfileUnitTestJavaWithJavac: task ':app:compileProfileUnitTestJavaWithJavac'
compileProfileUnitTestSources: task ':app:compileProfileUnitTestSources'
compileReleaseAidl: task ':app:compileReleaseAidl'
compileReleaseJavaWithJavac: task ':app:compileReleaseJavaWithJavac'
compileReleaseNdk: task ':app:compileReleaseNdk'
compileReleaseRenderscript: task ':app:compileReleaseRenderscript'
compileReleaseShaders: task ':app:compileReleaseShaders'
compileReleaseSources: task ':app:compileReleaseSources'
compileReleaseUnitTestJavaWithJavac: task ':app:compileReleaseUnitTestJavaWithJavac'
compileReleaseUnitTestSources: task ':app:compileReleaseUnitTestSources'
components: SoftwareComponentInternal set
configurationActions: org.gradle.configuration.project.DefaultProjectConfigurationActionContainer@5d38042
configurationTargetIdentifier: org.gradle.configuration.ConfigurationTargetIdentifier$1@538e9205
configurations: configuration container
connectedAndroidTest: task ':app:connectedAndroidTest'
connectedCheck: task ':app:connectedCheck'
connectedDebugAndroidTest: task ':app:connectedDebugAndroidTest'
consumeConfigAttr: task ':app:consumeConfigAttr'
convention: org.gradle.api.internal.plugins.DefaultConvention@3716b47a
copyFlutterAssetsDebug: task ':app:copyFlutterAssetsDebug'
copyFlutterAssetsDynamicProfile: task ':app:copyFlutterAssetsDynamicProfile'
copyFlutterAssetsDynamicRelease: task ':app:copyFlutterAssetsDynamicRelease'
copyFlutterAssetsProfile: task ':app:copyFlutterAssetsProfile'
copyFlutterAssetsRelease: task ':app:copyFlutterAssetsRelease'
createDebugCompatibleScreenManifests: task ':app:createDebugCompatibleScreenManifests'
createDynamicProfileCompatibleScreenManifests: task ':app:createDynamicProfileCompatibleScreenManifests'
createDynamicReleaseCompatibleScreenManifests: task ':app:createDynamicReleaseCompatibleScreenManifests'
createProfileCompatibleScreenManifests: task ':app:createProfileCompatibleScreenManifests'
createReleaseCompatibleScreenManifests: task ':app:createReleaseCompatibleScreenManifests'
defaultArtifacts: org.gradle.api.internal.plugins.DefaultArtifactPublicationSet_Decorated@3a456170
defaultTasks: []
deferredProjectConfiguration: org.gradle.api.internal.project.DeferredProjectConfiguration@238d27ea
dependencies: org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler_Decorated@4b48724
depth: 1
description: null
deviceAndroidTest: task ':app:deviceAndroidTest'
deviceCheck: task ':app:deviceCheck'
displayName: project ':app'
distsDir: /Volumes/Data/FlutterProjects/scanner/build/app/distributions
distsDirName: distributions
docsDir: /Volumes/Data/FlutterProjects/scanner/build/app/docs
docsDirName: docs
ext: org.gradle.api.internal.plugins.DefaultExtraPropertiesExtension@68356ac
extensions: org.gradle.api.internal.plugins.DefaultConvention@3716b47a
extractProguardFiles: task ':app:extractProguardFiles'
fileOperations: org.gradle.api.internal.file.DefaultFileOperations@17dce9ed
fileResolver: org.gradle.api.internal.file.BaseDirFileResolver@5d243e8b
flutter: FlutterExtension_Decorated@7d090fac
flutterBuildDebug: task ':app:flutterBuildDebug'
flutterBuildDynamicProfile: task ':app:flutterBuildDynamicProfile'
flutterBuildDynamicRelease: task ':app:flutterBuildDynamicRelease'
flutterBuildProfile: task ':app:flutterBuildProfile'
flutterBuildRelease: task ':app:flutterBuildRelease'
flutterBuildX86Jar: task ':app:flutterBuildX86Jar'
generateDebugAndroidTestAssets: task ':app:generateDebugAndroidTestAssets'
generateDebugAndroidTestBuildConfig: task ':app:generateDebugAndroidTestBuildConfig'
generateDebugAndroidTestResValues: task ':app:generateDebugAndroidTestResValues'
generateDebugAndroidTestResources: task ':app:generateDebugAndroidTestResources'
generateDebugAndroidTestSources: task ':app:generateDebugAndroidTestSources'
generateDebugAssets: task ':app:generateDebugAssets'
generateDebugBuildConfig: task ':app:generateDebugBuildConfig'
generateDebugResValues: task ':app:generateDebugResValues'
generateDebugResources: task ':app:generateDebugResources'
generateDebugSources: task ':app:generateDebugSources'
generateDynamicProfileAssets: task ':app:generateDynamicProfileAssets'
generateDynamicProfileBuildConfig: task ':app:generateDynamicProfileBuildConfig'
generateDynamicProfileResValues: task ':app:generateDynamicProfileResValues'
generateDynamicProfileResources: task ':app:generateDynamicProfileResources'
generateDynamicProfileSources: task ':app:generateDynamicProfileSources'
generateDynamicReleaseAssets: task ':app:generateDynamicReleaseAssets'
generateDynamicReleaseBuildConfig: task ':app:generateDynamicReleaseBuildConfig'
generateDynamicReleaseResValues: task ':app:generateDynamicReleaseResValues'
generateDynamicReleaseResources: task ':app:generateDynamicReleaseResources'
generateDynamicReleaseSources: task ':app:generateDynamicReleaseSources'
generateProfileAssets: task ':app:generateProfileAssets'
generateProfileBuildConfig: task ':app:generateProfileBuildConfig'
generateProfileResValues: task ':app:generateProfileResValues'
generateProfileResources: task ':app:generateProfileResources'
generateProfileSources: task ':app:generateProfileSources'
generateReleaseAssets: task ':app:generateReleaseAssets'
generateReleaseBuildConfig: task ':app:generateReleaseBuildConfig'
generateReleaseResValues: task ':app:generateReleaseResValues'
generateReleaseResources: task ':app:generateReleaseResources'
generateReleaseSources: task ':app:generateReleaseSources'
gradle: build 'android'
group: android
identityPath: :app
inheritedScope: org.gradle.api.internal.ExtensibleDynamicObject$InheritedDynamicObject@61a30097
installDebug: task ':app:installDebug'
installDebugAndroidTest: task ':app:installDebugAndroidTest'
installDynamicProfile: task ':app:installDynamicProfile'
installDynamicRelease: task ':app:installDynamicRelease'
installProfile: task ':app:installProfile'
installRelease: task ':app:installRelease'
javaPreCompileDebug: task ':app:javaPreCompileDebug'
javaPreCompileDebugAndroidTest: task ':app:javaPreCompileDebugAndroidTest'
javaPreCompileDebugUnitTest: task ':app:javaPreCompileDebugUnitTest'
javaPreCompileDynamicProfile: task ':app:javaPreCompileDynamicProfile'
javaPreCompileDynamicProfileUnitTest: task ':app:javaPreCompileDynamicProfileUnitTest'
javaPreCompileDynamicRelease: task ':app:javaPreCompileDynamicRelease'
javaPreCompileDynamicReleaseUnitTest: task ':app:javaPreCompileDynamicReleaseUnitTest'
javaPreCompileProfile: task ':app:javaPreCompileProfile'
javaPreCompileProfileUnitTest: task ':app:javaPreCompileProfileUnitTest'
javaPreCompileRelease: task ':app:javaPreCompileRelease'
javaPreCompileReleaseUnitTest: task ':app:javaPreCompileReleaseUnitTest'
layout: org.gradle.api.internal.file.DefaultProjectLayout@11400ecf
libsDir: /Volumes/Data/FlutterProjects/scanner/build/app/libs
libsDirName: libs
lint: task ':app:lint'
lintDebug: task ':app:lintDebug'
lintDynamicProfile: task ':app:lintDynamicProfile'
lintDynamicRelease: task ':app:lintDynamicRelease'
lintProfile: task ':app:lintProfile'
lintRelease: task ':app:lintRelease'
lintVitalRelease: task ':app:lintVitalRelease'
logger: org.gradle.internal.logging.slf4j.OutputEventListenerBackedLogger@68954260
logging: org.gradle.internal.logging.services.DefaultLoggingManager@6d6caa0a
mainApkListPersistenceDebug: task ':app:mainApkListPersistenceDebug'
mainApkListPersistenceDebugAndroidTest: task ':app:mainApkListPersistenceDebugAndroidTest'
mainApkListPersistenceDynamicProfile: task ':app:mainApkListPersistenceDynamicProfile'
mainApkListPersistenceDynamicRelease: task ':app:mainApkListPersistenceDynamicRelease'
mainApkListPersistenceProfile: task ':app:mainApkListPersistenceProfile'
mainApkListPersistenceRelease: task ':app:mainApkListPersistenceRelease'
mergeDebugAndroidTestAssets: task ':app:mergeDebugAndroidTestAssets'
mergeDebugAndroidTestJniLibFolders: task ':app:mergeDebugAndroidTestJniLibFolders'
mergeDebugAndroidTestResources: task ':app:mergeDebugAndroidTestResources'
mergeDebugAndroidTestShaders: task ':app:mergeDebugAndroidTestShaders'
mergeDebugAssets: task ':app:mergeDebugAssets'
mergeDebugJniLibFolders: task ':app:mergeDebugJniLibFolders'
mergeDebugResources: task ':app:mergeDebugResources'
mergeDebugShaders: task ':app:mergeDebugShaders'
mergeDynamicProfileAssets: task ':app:mergeDynamicProfileAssets'
mergeDynamicProfileJniLibFolders: task ':app:mergeDynamicProfileJniLibFolders'
mergeDynamicProfileResources: task ':app:mergeDynamicProfileResources'
mergeDynamicProfileShaders: task ':app:mergeDynamicProfileShaders'
mergeDynamicReleaseAssets: task ':app:mergeDynamicReleaseAssets'
mergeDynamicReleaseJniLibFolders: task ':app:mergeDynamicReleaseJniLibFolders'
mergeDynamicReleaseResources: task ':app:mergeDynamicReleaseResources'
mergeDynamicReleaseShaders: task ':app:mergeDynamicReleaseShaders'
mergeProfileAssets: task ':app:mergeProfileAssets'
mergeProfileJniLibFolders: task ':app:mergeProfileJniLibFolders'
mergeProfileResources: task ':app:mergeProfileResources'
mergeProfileShaders: task ':app:mergeProfileShaders'
mergeReleaseAssets: task ':app:mergeReleaseAssets'
mergeReleaseJniLibFolders: task ':app:mergeReleaseJniLibFolders'
mergeReleaseResources: task ':app:mergeReleaseResources'
mergeReleaseShaders: task ':app:mergeReleaseShaders'
mockableAndroidJar: task ':app:mockableAndroidJar'
modelRegistry: org.gradle.model.internal.registry.DefaultModelRegistry@582dbc64
modelSchemaStore: org.gradle.model.internal.manage.schema.extract.DefaultModelSchemaStore@72034d1
module: org.gradle.api.internal.artifacts.ProjectBackedModule@55dbf325
name: app
normalization: org.gradle.normalization.internal.DefaultInputNormalizationHandler_Decorated@2173a84e
objects: org.gradle.api.internal.model.DefaultObjectFactory@30d4fcd9
org.gradle.jvmargs: -Xmx1536M
packageDebug: task ':app:packageDebug'
packageDebugAndroidTest: task ':app:packageDebugAndroidTest'
packageDynamicProfile: task ':app:packageDynamicProfile'
packageDynamicRelease: task ':app:packageDynamicRelease'
packageProfile: task ':app:packageProfile'
packageRelease: task ':app:packageRelease'
parent: root project 'android'
parentIdentifier: root project 'android'
path: :app
platformAttrExtractor: task ':app:platformAttrExtractor'
pluginManager: org.gradle.api.internal.plugins.DefaultPluginManager_Decorated@38e03c33
plugins: [org.gradle.api.plugins.HelpTasksPlugin@2e458787, com.android.build.gradle.api.AndroidBasePlugin@415b1e45, org.gradle.language.base.plugins.LifecycleBasePlugin@661f154a, org.gradle.api.plugins.BasePlugin@72927c9d, org.gradle.api.plugins.ReportingBasePlugin@5855d0a5, org.gradle.platform.base.plugins.ComponentBasePlugin@4289fc5f, org.gradle.language.base.plugins.LanguageBasePlugin@342fcc53, org.gradle.platform.base.plugins.BinaryBasePlugin@2618f46f, org.gradle.api.plugins.JavaBasePlugin@60215f4c, com.android.build.gradle.AppPlugin@1357dda5, FlutterPlugin@16da962c, com.google.gms.googleservices.GoogleServicesPlugin@21b34504]
preBuild: task ':app:preBuild'
preDebugAndroidTestBuild: task ':app:preDebugAndroidTestBuild'
preDebugBuild: task ':app:preDebugBuild'
preDebugUnitTestBuild: task ':app:preDebugUnitTestBuild'
preDynamicProfileBuild: task ':app:preDynamicProfileBuild'
preDynamicProfileUnitTestBuild: task ':app:preDynamicProfileUnitTestBuild'
preDynamicReleaseBuild: task ':app:preDynamicReleaseBuild'
preDynamicReleaseUnitTestBuild: task ':app:preDynamicReleaseUnitTestBuild'
preProfileBuild: task ':app:preProfileBuild'
preProfileUnitTestBuild: task ':app:preProfileUnitTestBuild'
preReleaseBuild: task ':app:preReleaseBuild'
preReleaseUnitTestBuild: task ':app:preReleaseUnitTestBuild'
prepareLintJar: task ':app:prepareLintJar'
preparePUBLISHED_DEXDebugAndroidTestForPublishing: task ':app:preparePUBLISHED_DEXDebugAndroidTestForPublishing'
preparePUBLISHED_DEXDebugForPublishing: task ':app:preparePUBLISHED_DEXDebugForPublishing'
preparePUBLISHED_DEXDynamicProfileForPublishing: task ':app:preparePUBLISHED_DEXDynamicProfileForPublishing'
preparePUBLISHED_DEXDynamicReleaseForPublishing: task ':app:preparePUBLISHED_DEXDynamicReleaseForPublishing'
preparePUBLISHED_DEXProfileForPublishing: task ':app:preparePUBLISHED_DEXProfileForPublishing'
preparePUBLISHED_DEXReleaseForPublishing: task ':app:preparePUBLISHED_DEXReleaseForPublishing'
preparePUBLISHED_JAVA_RESDebugAndroidTestForPublishing: task ':app:preparePUBLISHED_JAVA_RESDebugAndroidTestForPublishing'
preparePUBLISHED_JAVA_RESDebugForPublishing: task ':app:preparePUBLISHED_JAVA_RESDebugForPublishing'
preparePUBLISHED_JAVA_RESDynamicProfileForPublishing: task ':app:preparePUBLISHED_JAVA_RESDynamicProfileForPublishing'
preparePUBLISHED_JAVA_RESDynamicReleaseForPublishing: task ':app:preparePUBLISHED_JAVA_RESDynamicReleaseForPublishing'
preparePUBLISHED_JAVA_RESProfileForPublishing: task ':app:preparePUBLISHED_JAVA_RESProfileForPublishing'
preparePUBLISHED_JAVA_RESReleaseForPublishing: task ':app:preparePUBLISHED_JAVA_RESReleaseForPublishing'
preparePUBLISHED_NATIVE_LIBSDebugAndroidTestForPublishing: task ':app:preparePUBLISHED_NATIVE_LIBSDebugAndroidTestForPublishing'
preparePUBLISHED_NATIVE_LIBSDebugForPublishing: task ':app:preparePUBLISHED_NATIVE_LIBSDebugForPublishing'
preparePUBLISHED_NATIVE_LIBSDynamicProfileForPublishing: task ':app:preparePUBLISHED_NATIVE_LIBSDynamicProfileForPublishing'
preparePUBLISHED_NATIVE_LIBSDynamicReleaseForPublishing: task ':app:preparePUBLISHED_NATIVE_LIBSDynamicReleaseForPublishing'
preparePUBLISHED_NATIVE_LIBSProfileForPublishing: task ':app:preparePUBLISHED_NATIVE_LIBSProfileForPublishing'
preparePUBLISHED_NATIVE_LIBSReleaseForPublishing: task ':app:preparePUBLISHED_NATIVE_LIBSReleaseForPublishing'
processDebugAndroidTestJavaRes: task ':app:processDebugAndroidTestJavaRes'
processDebugAndroidTestManifest: task ':app:processDebugAndroidTestManifest'
processDebugAndroidTestResources: task ':app:processDebugAndroidTestResources'
processDebugGoogleServices: task ':app:processDebugGoogleServices'
processDebugJavaRes: task ':app:processDebugJavaRes'
processDebugManifest: task ':app:processDebugManifest'
processDebugResources: task ':app:processDebugResources'
processDebugUnitTestJavaRes: task ':app:processDebugUnitTestJavaRes'
processDynamicProfileGoogleServices: task ':app:processDynamicProfileGoogleServices'
processDynamicProfileJavaRes: task ':app:processDynamicProfileJavaRes'
processDynamicProfileManifest: task ':app:processDynamicProfileManifest'
processDynamicProfileResources: task ':app:processDynamicProfileResources'
processDynamicProfileUnitTestJavaRes: task ':app:processDynamicProfileUnitTestJavaRes'
processDynamicReleaseGoogleServices: task ':app:processDynamicReleaseGoogleServices'
processDynamicReleaseJavaRes: task ':app:processDynamicReleaseJavaRes'
processDynamicReleaseManifest: task ':app:processDynamicReleaseManifest'
processDynamicReleaseResources: task ':app:processDynamicReleaseResources'
processDynamicReleaseUnitTestJavaRes: task ':app:processDynamicReleaseUnitTestJavaRes'
processOperations: org.gradle.api.internal.file.DefaultFileOperations@17dce9ed
processProfileGoogleServices: task ':app:processProfileGoogleServices'
processProfileJavaRes: task ':app:processProfileJavaRes'
processProfileManifest: task ':app:processProfileManifest'
processProfileResources: task ':app:processProfileResources'
processProfileUnitTestJavaRes: task ':app:processProfileUnitTestJavaRes'
processReleaseGoogleServices: task ':app:processReleaseGoogleServices'
processReleaseJavaRes: task ':app:processReleaseJavaRes'
processReleaseManifest: task ':app:processReleaseManifest'
processReleaseResources: task ':app:processReleaseResources'
processReleaseUnitTestJavaRes: task ':app:processReleaseUnitTestJavaRes'
project: project ':app'
projectConfigurator: org.gradle.api.internal.project.BuildOperationCrossProjectConfigurator@d1b69d7
projectDir: /Volumes/Data/FlutterProjects/scanner/android/app
projectEvaluationBroadcaster: ProjectEvaluationListener broadcast
projectEvaluator: org.gradle.configuration.project.LifecycleProjectEvaluator@311681e2
projectPath: :app
projectRegistry: org.gradle.api.internal.project.DefaultProjectRegistry@26b3812d
properties: {...}
providers: org.gradle.api.internal.provider.DefaultProviderFactory@75720115
reportBuildArtifactsDebug: task ':app:reportBuildArtifactsDebug'
reportBuildArtifactsDynamicProfile: task ':app:reportBuildArtifactsDynamicProfile'
reportBuildArtifactsDynamicRelease: task ':app:reportBuildArtifactsDynamicRelease'
reportBuildArtifactsProfile: task ':app:reportBuildArtifactsProfile'
reportBuildArtifactsRelease: task ':app:reportBuildArtifactsRelease'
reporting: org.gradle.api.reporting.ReportingExtension_Decorated@1f8b306c
reportsDir: /Volumes/Data/FlutterProjects/scanner/build/app/reports
repositories: repository container
resolveConfigAttr: task ':app:resolveConfigAttr'
resourceLoader: org.gradle.internal.resource.transfer.DefaultUriTextResourceLoader@4908a79b
resources: org.gradle.api.internal.resources.DefaultResourceHandler@4c9426c9
rootDir: /Volumes/Data/FlutterProjects/scanner/android
rootProject: root project 'android'
script: false
scriptHandlerFactory: org.gradle.api.internal.initialization.DefaultScriptHandlerFactory@76146c9f
scriptPluginFactory: org.gradle.configuration.ScriptPluginFactorySelector@30da2a61
serviceRegistryFactory: org.gradle.internal.service.scopes.ProjectScopeServices$4@3ce2679e
services: ProjectScopeServices
signingReport: task ':app:signingReport'
sourceCompatibility: 1.8
sourceSets: SourceSet container
splitsDiscoveryTaskDebug: task ':app:splitsDiscoveryTaskDebug'
splitsDiscoveryTaskDynamicProfile: task ':app:splitsDiscoveryTaskDynamicProfile'
splitsDiscoveryTaskDynamicRelease: task ':app:splitsDiscoveryTaskDynamicRelease'
splitsDiscoveryTaskProfile: task ':app:splitsDiscoveryTaskProfile'
splitsDiscoveryTaskRelease: task ':app:splitsDiscoveryTaskRelease'
standardOutputCapture: org.gradle.internal.logging.services.DefaultLoggingManager@6d6caa0a
state: project state 'EXECUTED'
status: integration
subprojects: []
targetCompatibility: 1.8
tasks: task set
test: task ':app:test'
testDebugUnitTest: task ':app:testDebugUnitTest'
testDynamicProfileUnitTest: task ':app:testDynamicProfileUnitTest'
testDynamicReleaseUnitTest: task ':app:testDynamicReleaseUnitTest'
testProfileUnitTest: task ':app:testProfileUnitTest'
testReleaseUnitTest: task ':app:testReleaseUnitTest'
testReportDir: /Volumes/Data/FlutterProjects/scanner/build/app/reports/tests
testReportDirName: tests
testResultsDir: /Volumes/Data/FlutterProjects/scanner/build/app/test-results
testResultsDirName: test-results
transformClassesWithDexBuilderForDebug: task ':app:transformClassesWithDexBuilderForDebug'
transformClassesWithDexBuilderForDebugAndroidTest: task ':app:transformClassesWithDexBuilderForDebugAndroidTest'
transformClassesWithDexBuilderForDynamicProfile: task ':app:transformClassesWithDexBuilderForDynamicProfile'
transformClassesWithDexBuilderForDynamicRelease: task ':app:transformClassesWithDexBuilderForDynamicRelease'
transformClassesWithDexBuilderForProfile: task ':app:transformClassesWithDexBuilderForProfile'
transformClassesWithDexBuilderForRelease: task ':app:transformClassesWithDexBuilderForRelease'
transformDexArchiveWithDexMergerForDebug: task ':app:transformDexArchiveWithDexMergerForDebug'
transformDexArchiveWithDexMergerForDebugAndroidTest: task ':app:transformDexArchiveWithDexMergerForDebugAndroidTest'
transformDexArchiveWithDexMergerForDynamicProfile: task ':app:transformDexArchiveWithDexMergerForDynamicProfile'
transformDexArchiveWithDexMergerForDynamicRelease: task ':app:transformDexArchiveWithDexMergerForDynamicRelease'
transformDexArchiveWithDexMergerForProfile: task ':app:transformDexArchiveWithDexMergerForProfile'
transformDexArchiveWithDexMergerForRelease: task ':app:transformDexArchiveWithDexMergerForRelease'
transformDexArchiveWithExternalLibsDexMergerForDebug: task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'
transformDexArchiveWithExternalLibsDexMergerForDebugAndroidTest: task ':app:transformDexArchiveWithExternalLibsDexMergerForDebugAndroidTest'
transformDexArchiveWithExternalLibsDexMergerForDynamicProfile: task ':app:transformDexArchiveWithExternalLibsDexMergerForDynamicProfile'
transformDexArchiveWithExternalLibsDexMergerForDynamicRelease: task ':app:transformDexArchiveWithExternalLibsDexMergerForDynamicRelease'
transformDexArchiveWithExternalLibsDexMergerForProfile: task ':app:transformDexArchiveWithExternalLibsDexMergerForProfile'
transformDexArchiveWithExternalLibsDexMergerForRelease: task ':app:transformDexArchiveWithExternalLibsDexMergerForRelease'
transformNativeLibsWithMergeJniLibsForDebug: task ':app:transformNativeLibsWithMergeJniLibsForDebug'
transformNativeLibsWithMergeJniLibsForDebugAndroidTest: task ':app:transformNativeLibsWithMergeJniLibsForDebugAndroidTest'
transformNativeLibsWithMergeJniLibsForDynamicProfile: task ':app:transformNativeLibsWithMergeJniLibsForDynamicProfile'
transformNativeLibsWithMergeJniLibsForDynamicRelease: task ':app:transformNativeLibsWithMergeJniLibsForDynamicRelease'
transformNativeLibsWithMergeJniLibsForProfile: task ':app:transformNativeLibsWithMergeJniLibsForProfile'
transformNativeLibsWithMergeJniLibsForRelease: task ':app:transformNativeLibsWithMergeJniLibsForRelease'
transformResourcesWithMergeJavaResForDebug: task ':app:transformResourcesWithMergeJavaResForDebug'
transformResourcesWithMergeJavaResForDebugAndroidTest: task ':app:transformResourcesWithMergeJavaResForDebugAndroidTest'
transformResourcesWithMergeJavaResForDebugUnitTest: task ':app:transformResourcesWithMergeJavaResForDebugUnitTest'
transformResourcesWithMergeJavaResForDynamicProfile: task ':app:transformResourcesWithMergeJavaResForDynamicProfile'
transformResourcesWithMergeJavaResForDynamicProfileUnitTest: task ':app:transformResourcesWithMergeJavaResForDynamicProfileUnitTest'
transformResourcesWithMergeJavaResForDynamicRelease: task ':app:transformResourcesWithMergeJavaResForDynamicRelease'
transformResourcesWithMergeJavaResForDynamicReleaseUnitTest: task ':app:transformResourcesWithMergeJavaResForDynamicReleaseUnitTest'
transformResourcesWithMergeJavaResForProfile: task ':app:transformResourcesWithMergeJavaResForProfile'
transformResourcesWithMergeJavaResForProfileUnitTest: task ':app:transformResourcesWithMergeJavaResForProfileUnitTest'
transformResourcesWithMergeJavaResForRelease: task ':app:transformResourcesWithMergeJavaResForRelease'
transformResourcesWithMergeJavaResForReleaseUnitTest: task ':app:transformResourcesWithMergeJavaResForReleaseUnitTest'
uninstallAll: task ':app:uninstallAll'
uninstallDebug: task ':app:uninstallDebug'
uninstallDebugAndroidTest: task ':app:uninstallDebugAndroidTest'
uninstallDynamicProfile: task ':app:uninstallDynamicProfile'
uninstallDynamicRelease: task ':app:uninstallDynamicRelease'
uninstallProfile: task ':app:uninstallProfile'
uninstallRelease: task ':app:uninstallRelease'
validateSigningDebug: task ':app:validateSigningDebug'
validateSigningDebugAndroidTest: task ':app:validateSigningDebugAndroidTest'
validateSigningDynamicProfile: task ':app:validateSigningDynamicProfile'
validateSigningDynamicRelease: task ':app:validateSigningDynamicRelease'
validateSigningProfile: task ':app:validateSigningProfile'
validateSigningRelease: task ':app:validateSigningRelease'
version: unspecified
writeDebugApplicationId: task ':app:writeDebugApplicationId'
writeDynamicProfileApplicationId: task ':app:writeDynamicProfileApplicationId'
writeDynamicReleaseApplicationId: task ':app:writeDynamicReleaseApplicationId'
writeProfileApplicationId: task ':app:writeProfileApplicationId'
writeReleaseApplicationId: task ':app:writeReleaseApplicationId'
1 actionable task: 1 executed
[ +43 ms] Resolving dependencies... (completed)
[ +6 ms] executing: /Volumes/Data/Library/Android/sdk/build-tools/28.0.3/aapt dump xmltree /Volumes/Data/FlutterProjects/scanner/build/app/outputs/apk/app.apk AndroidManifest.xml
[ +29 ms] Exit code 0 from: /Volumes/Data/Library/Android/sdk/build-tools/28.0.3/aapt dump xmltree /Volumes/Data/FlutterProjects/scanner/build/app/outputs/apk/app.apk AndroidManifest.xml
[ ] N: android=http://schemas.android.com/apk/res/android
E: manifest (line=2)
A: android:versionCode(0x0101021b)=(type 0x10)0x1
A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
A: package="com.example.app" (Raw: "com.example.app")
E: uses-sdk (line=7)
A: android:minSdkVersion(0x0101020c)=(type 0x10)0x15
A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1b
E: uses-permission (line=16)
A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
E: uses-permission (line=17)
A: android:name(0x01010003)="android.permission.CAMERA" (Raw: "android.permission.CAMERA")
E: uses-permission (line=18)
A: android:name(0x01010003)="android.permission.RECORD_AUDIO" (Raw: "android.permission.RECORD_AUDIO")
E: uses-permission (line=19)
A: android:name(0x01010003)="android.permission.ACCESS_NETWORK_STATE" (Raw: "android.permission.ACCESS_NETWORK_STATE")
E: uses-permission (line=20)
A: android:name(0x01010003)="android.permission.WAKE_LOCK" (Raw: "android.permission.WAKE_LOCK")
E: uses-permission (line=21)
A: android:name(0x01010003)="com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE" (Raw: "com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE")
E: uses-permission (line=22)
A: android:name(0x01010003)="com.google.android.c2dm.permission.RECEIVE" (Raw: "com.google.android.c2dm.permission.RECEIVE")
E: application (line=30)
A: android:label(0x01010001)="Scanner" (Raw: "Scanner")
A: android:icon(0x01010002)=@0x7f090000
A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")
E: meta-data (line=34)
A: android:name(0x01010003)="com.google.firebase.ml.vision.DEPENDENCIES" (Raw: "com.google.firebase.ml.vision.DEPENDENCIES")
A: android:value(0x01010024)="ocr" (Raw: "ocr")
E: activity (line=38)
A: android:theme(0x01010000)=@0x7f0b0000
A: android:name(0x01010003)="com.example.app.MainActivity" (Raw: "com.example.app.MainActivity")
A: android:launchMode(0x0101001d)=(type 0x10)0x1
A: android:configChanges(0x0101001f)=(type 0x11)0x400035b4
A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
E: meta-data (line=52)
A: android:name(0x01010003)="io.flutter.app.android.SplashScreenUntilFirstFrame" (Raw: "io.flutter.app.android.SplashScreenUntilFirstFrame")
A: android:value(0x01010024)=(type 0x12)0xffffffff
E: intent-filter (line=56)
E: action (line=57)
A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
E: category (line=59)
A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
E: activity (line=62)
A: android:theme(0x01010000)=@0x1030010
A: android:name(0x01010003)="com.google.firebase.auth.internal.FederatedSignInActivity" (Raw: "com.google.firebase.auth.internal.FederatedSignInActivity")
A: android:permission(0x01010006)="com.google.firebase.auth.api.gms.permission.LAUNCH_FEDERATED_SIGN_IN" (Raw: "com.google.firebase.auth.api.gms.permission.LAUNCH_FEDERATED_SIGN_IN")
A: android:exported(0x01010010)=(type 0x12)0xffffffff
A: android:excludeFromRecents(0x01010017)=(type 0x12)0xffffffff
A: android:launchMode(0x0101001d)=(type 0x10)0x3
E: service (line=70)
A: android:name(0x01010003)="com.google.firebase.components.ComponentDiscoveryService" (Raw: "com.google.firebase.components.ComponentDiscoveryService")
A: android:exported(0x01010010)=(type 0x12)0x0
E: meta-data (line=73)
A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.auth.FirebaseAuthRegistrar" (Raw: "com.google.firebase.components:com.google.firebase.auth.FirebaseAuthRegistrar")
A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
E: meta-data (line=76)
A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.firestore.FirestoreRegistrar" (Raw: "com.google.firebase.components:com.google.firebase.firestore.FirestoreRegistrar")
A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
E: meta-data (line=79)
A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.analytics.connector.internal.AnalyticsConnectorRegistrar" (Raw: "com.google.firebase.components:com.google.firebase.analytics.connector.internal.AnalyticsConnectorRegistrar")
A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
E: meta-data (line=82)
A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.iid.Registrar" (Raw: "com.google.firebase.components:com.google.firebase.iid.Registrar")
A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
E: activity (line=87)
A: android:theme(0x01010000)=@0x1030010
A: android:name(0x01010003)="com.google.android.gms.auth.api.signin.internal.SignInHubActivity" (Raw: "com.google.android.gms.auth.api.signin.internal.SignInHubActivity")
A: android:exported(0x01010010)=(type 0x12)0x0
A: android:excludeFromRecents(0x01010017)=(type 0x12)0xffffffff
E: service (line=96)
A: android:name(0x01010003)="com.google.android.gms.auth.api.signin.RevocationBoundService" (Raw: "com.google.android.gms.auth.api.signin.RevocationBoundService")
A: android:permission(0x01010006)="com.google.android.gms.auth.api.signin.permission.REVOCATION_NOTIFICATION" (Raw: "com.google.android.gms.auth.api.signin.permission.REVOCATION_NOTIFICATION")
A: android:exported(0x01010010)=(type 0x12)0xffffffff
E: receiver (line=101)
A: android:name(0x01010003)="com.google.android.gms.measurement.AppMeasurementReceiver" (Raw: "com.google.android.gms.measurement.AppMeasurementReceiver")
A: android:enabled(0x0101000e)=(type 0x12)0xffffffff
A: android:exported(0x01010010)=(type 0x12)0x0
E: receiver (line=106)
A: android:name(0x01010003)="com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver" (Raw: "com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver")
A: android:permission(0x01010006)="android.permission.INSTALL_PACKAGES" (Raw: "android.permission.INSTALL_PACKAGES")
A: android:enabled(0x0101000e)=(type 0x12)0xffffffff
A: android:exported(0x01010010)=(type 0x12)0xffffffff
E: intent-filter (line=111)
E: action (line=112)
A: android:name(0x01010003)="com.android.vending.INSTALL_REFERRER" (Raw: "com.android.vending.INSTALL_REFERRER")
E: service (line=116)
A: android:name(0x01010003)="com.google.android.gms.measurement.AppMeasurementService" (Raw: "com.google.android.gms.measurement.AppMeasurementService")
A: android:enabled(0x0101000e)=(type 0x12)0xffffffff
A: android:exported(0x01010010)=(type 0x12)0x0
E: service (line=120)
A: android:name(0x01010003)="com.google.android.gms.measurement.AppMeasurementJobService" (Raw: "com.google.android.gms.measurement.AppMeasurementJobService")
A: android:permission(0x01010006)="android.permission.BIND_JOB_SERVICE" (Raw: "android.permission.BIND_JOB_SERVICE")
A: android:enabled(0x0101000e)=(type 0x12)0xffffffff
A: android:exported(0x01010010)=(type 0x12)0x0
E: receiver (line=126)
A: android:name(0x01010003)="com.google.firebase.iid.FirebaseInstanceIdReceiver" (Raw: "com.google.firebase.iid.FirebaseInstanceIdReceiver")
A: android:permission(0x01010006)="com.google.android.c2dm.permission.SEND" (Raw: "com.google.android.c2dm.permission.SEND")
A: android:exported(0x01010010)=(type 0x12)0xffffffff
E: intent-filter (line=130)
E: action (line=131)
A: android:name(0x01010003)="com.google.android.c2dm.intent.RECEIVE" (Raw: "com.google.android.c2dm.intent.RECEIVE")
E: service (line=138)
A: android:name(0x01010003)="com.google.firebase.iid.FirebaseInstanceIdService" (Raw: "com.google.firebase.iid.FirebaseInstanceIdService")
A: android:exported(0x01010010)=(type 0x12)0xffffffff
E: intent-filter (line=141)
A: android:priority(0x0101001c)=(type 0x10)0xfffffe0c
E: action (line=142)
A: android:name(0x01010003)="com.google.firebase.INSTANCE_ID_EVENT" (Raw: "com.google.firebase.INSTANCE_ID_EVENT")
E: provider (line=146)
A: android:name(0x01010003)="com.google.firebase.provider.FirebaseInitProvider" (Raw: "com.google.firebase.provider.FirebaseInitProvider")
A: android:exported(0x01010010)=(type 0x12)0x0
A: android:authorities(0x01010018)="com.example.app.firebaseinitprovider" (Raw: "com.example.app.firebaseinitprovider")
A: android:initOrder(0x0101001a)=(type 0x10)0x64
E: activity (line=152)
A: android:theme(0x01010000)=@0x1030010
A: android:name(0x01010003)="com.google.android.gms.common.api.GoogleApiActivity" (Raw: "com.google.android.gms.common.api.GoogleApiActivity")
A: android:exported(0x01010010)=(type 0x12)0x0
E: meta-data (line=157)
A: android:name(0x01010003)="com.google.android.gms.version" (Raw: "com.google.android.gms.version")
A: android:value(0x01010024)=@0x7f070001
E: meta-data (line=160)
A: android:name(0x01010003)="android.support.VERSION" (Raw: "android.support.VERSION")
A: android:value(0x01010024)="26.1.0" (Raw: "26.1.0")
[ +18 ms] executing: /Volumes/Data/Library/Android/sdk/platform-tools/adb -s 710KPKN0474357 shell -x logcat -v time -t 1
[ +103 ms] Exit code 0 from: /Volumes/Data/Library/Android/sdk/platform-tools/adb -s 710KPKN0474357 shell -x logcat -v time -t 1
[ ] --------- beginning of main
10-26 15:54:06.022 I/Finsky (17283): [1087] com.google.android.finsky.bo.ad.run(6): Stats for Executor: bgExecutor com.google.android.finsky.bo.ae@ea7fa4[Running, pool size = 4, active threads = 0, queued tasks = 0, completed tasks = 8]
[ +4 ms] executing: /Volumes/Data/Library/Android/sdk/platform-tools/adb -s 710KPKN0474357 shell -x logcat -v time
[ +453 ms] DependencyChecker: /Volumes/Data/FlutterProjects/scanner/.packages is newer than 2018-10-26 15:27:13.450
[ +2 ms] executing: /Volumes/Data/Library/Android/sdk/platform-tools/adb version
[ +15 ms] Android Debug Bridge version 1.0.40
Version 4986621
Installed as /Volumes/Data/Library/Android/sdk/platform-tools/adb
[ +2 ms] executing: /Volumes/Data/Library/Android/sdk/platform-tools/adb start-server
[ +9 ms] Building APK
[ +17 ms] Gradle task 'assembleDebug'...
[ +1 ms] executing: [/Volumes/Data/FlutterProjects/scanner/android/] /Volumes/Data/FlutterProjects/scanner/android/gradlew -Pverbose=true -Ptarget=/Volumes/Data/FlutterProjects/scanner/lib/main.dart -Ptarget-platform=android-arm64 assembleDebug
[+1043 ms] Could not find google-services.json while looking in [src/nullnull/debug, src/debug/nullnull, src/nullnull, src/debug, src/nullnullDebug]
[ +1 ms] registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
[ +2 ms] Could not find google-services.json while looking in [src/nullnull/dynamicProfile, src/dynamicProfile/nullnull, src/nullnull, src/dynamicProfile, src/nullnullDynamicProfile]
[ ] registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
[ ] Could not find google-services.json while looking in [src/nullnull/release, src/release/nullnull, src/nullnull, src/release, src/nullnullRelease]
[ +1 ms] registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
[ +10 ms] Could not find google-services.json while looking in [src/nullnull/profile, src/profile/nullnull, src/nullnull, src/profile, src/nullnullProfile]
[ +8 ms] registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
[ ] Could not find google-services.json while looking in [src/nullnull/dynamicRelease, src/dynamicRelease/nullnull, src/nullnull, src/dynamicRelease, src/nullnullDynamicRelease]
[ +2 ms] registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
[+1140 ms] [ +7 ms] executing: [/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[ +30 ms] [ +39 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] [ ] origin/beta
[ ] [ ] executing: [/flutter/] git rev-parse --abbrev-ref HEAD
[ ] [ +8 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] [ ] beta
[ ] [ ] executing: [/flutter/] git ls-remote --get-url origin
[ +11 ms] [ +8 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] [ ] https://github.com/flutter/flutter.git
[ ] [ ] executing: [/flutter/] git log -n 1 --pretty=format:%H
[ +19 ms] [ +17 ms] Exit code 0 from: git log -n 1 --pretty=format:%H
[ ] [ ] f37c235c32fc15babe6dc7b7bc2ee4387e5ecf92
[ ] [ ] executing: [/flutter/] git log -n 1 --pretty=format:%ar
[ +20 ms] [ +13 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar
[ ] [ ] 4 weeks ago
[ ] [ +1 ms] executing: [/flutter/] git describe --match v*.*.* --first-parent --long --tags
[ +17 ms] [ +27 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[ ] [ ] v0.9.4-0-gf37c235c3
[ +274 ms] [ +271 ms] Found plugin camera at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/camera-0.2.4/
[ +10 ms] [ +8 ms] Found plugin cloud_firestore at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.8.2+1/
[ +10 ms] [ +12 ms] Found plugin firebase_auth at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.6.2+1/
[ ] [ +3 ms] Found plugin firebase_core at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.2.5+1/
[ +10 ms] [ +3 ms] Found plugin firebase_ml_vision at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/firebase_ml_vision-0.2.0+1/
[ +23 ms] [ +26 ms] Found plugin google_sign_in at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/google_sign_in-3.2.2/
[ +32 ms] [ +29 ms] Found plugin path_provider at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/path_provider-0.4.1/
[ +66 ms] [ +68 ms] Found plugin camera at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/camera-0.2.4/
[ ] [ +1 ms] Found plugin cloud_firestore at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.8.2+1/
[ +9 ms] [ +6 ms] Found plugin firebase_auth at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.6.2+1/
[ ] [ +1 ms] Found plugin firebase_core at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.2.5+1/
[ ] [ +1 ms] Found plugin firebase_ml_vision at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/firebase_ml_vision-0.2.0+1/
[ +10 ms] [ +8 ms] Found plugin google_sign_in at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/google_sign_in-3.2.2/
[ +10 ms] [ +13 ms] Found plugin path_provider at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/path_provider-0.4.1/
[ +358 ms] [ +362 ms] Skipping kernel compilation. Fingerprint match.
[ +276 ms] [ +274 ms] Building bundle
[ ] [ +1 ms] Writing asset files to /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/flutter/debug/flutter_assets
[ +66 ms] [ +58 ms] Wrote /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/flutter/debug/flutter_assets
[ +11 ms] [ +13 ms] "flutter bundle" took 1,004ms.
[ +325 ms] Parsing json file: /Volumes/Data/FlutterProjects/scanner/android/app/google-services.json
[+1754 ms] D8: Program type already present: com.google.android.gms.internal.vision.zzai
[ +1 ms] 137 actionable tasks: 6 executed, 131 up-to-date
[ +7 ms] FAILURE: Build failed with an exception.
[ ] * What went wrong:
[ ] Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
[ +4 ms] > com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/3.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/4.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/5.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/6.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/7.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/8.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/9.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/10.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/11.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/12.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/13.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/14.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/15.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/16.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/17.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/18.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/19.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/20.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/21.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/22.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/23.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/24.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/25.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/26.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/27.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/28.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/29.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/30.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/31.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/32.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/33.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/34.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/35.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/36.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/37.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/38.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/39.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/40.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/41.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/42.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/43.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/44.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/45.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/46.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/47.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/48.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/49.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/50.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/51.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/52.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/53.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/54.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/55.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/56.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/57.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/58.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/59.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/60.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/61.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/62.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/63.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/64.jar
[ +3 ms] * Try:
[ ] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
[ ] * Get more help at https://help.gradle.org
[ ] BUILD FAILED in 5s
[ +405 ms] Gradle task 'assembleDebug'... (completed)
[ +9 ms] "flutter run" took 13,202ms.
Gradle task assembleDebug failed with exit code 1
#0 throwToolExit (package:flutter_tools/src/base/common.dart:26:3)
#1 _buildGradleProjectV2 (package:flutter_tools/src/android/gradle.dart:393:5)
<asynchronous suspension>
#2 buildGradleProject (package:flutter_tools/src/android/gradle.dart:296:14)
<asynchronous suspension>
#3 buildApk (package:flutter_tools/src/android/apk.dart:41:10)
<asynchronous suspension>
#4 AndroidDevice.startApp (package:flutter_tools/src/android/android_device.dart:378:13)
<asynchronous suspension>
#5 FlutterDevice.runHot (package:flutter_tools/src/resident_runner.dart:287:54)
<asynchronous suspension>
#6 HotRunner.run (package:flutter_tools/src/run_hot.dart:262:39)
<asynchronous suspension>
#7 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:391:37)
<asynchronous suspension>
#8 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:372:18)
#9 _asyncThenWrapperHelper.<anonymous closure> (dart:async/runtime/libasync_patch.dart:77:64)
#10 _rootRunUnary (dart:async/zone.dart:1132:38)
#11 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#12 _FutureListener.handleValue (dart:async/future_impl.dart:129:18)
#13 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:642:45)
#14 Future._propagateToListeners (dart:async/future_impl.dart:671:32)
#15 Future._complete (dart:async/future_impl.dart:476:7)
#16 _SyncCompleter.complete (dart:async/future_impl.dart:51:12)
#17 _AsyncAwaitCompleter.complete (dart:async/runtime/libasync_patch.dart:28:18)
#18 _completeOnAsyncReturn (dart:async/runtime/libasync_patch.dart:295:13)
#19 RunCommand.usageValues (package:flutter_tools/src/commands/run.dart)
#20 _asyncThenWrapperHelper.<anonymous closure> (dart:async/runtime/libasync_patch.dart:77:64)
#21 _rootRunUnary (dart:async/zone.dart:1132:38)
#22 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#23 _FutureListener.handleValue (dart:async/future_impl.dart:129:18)
#24 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:642:45)
#25 Future._propagateToListeners (dart:async/future_impl.dart:671:32)
#26 Future._complete (dart:async/future_impl.dart:476:7)
#27 _SyncCompleter.complete (dart:async/future_impl.dart:51:12)
#28 _AsyncAwaitCompleter.complete.<anonymous closure> (dart:async/runtime/libasync_patch.dart:33:20)
#29 _rootRun (dart:async/zone.dart:1124:13)
#30 _CustomZone.run (dart:async/zone.dart:1021:19)
#31 _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:947:23)
#32 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#33 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#34 _runPendingImmediateCallback (dart:isolate/runtime/libisolate_patch.dart:115:13)
#35 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:172:5)"><pre class="notranslate"><code class="notranslate">
[ +42 ms] executing: [/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[ +36 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ +1 ms] origin/beta
[ +1 ms] executing: [/flutter/] git rev-parse --abbrev-ref HEAD
[ +8 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] beta
[ ] executing: [/flutter/] git ls-remote --get-url origin
[ +8 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] https://github.com/flutter/flutter.git
[ ] executing: [/flutter/] git log -n 1 --pretty=format:%H
[ +22 ms] Exit code 0 from: git log -n 1 --pretty=format:%H
[ ] f37c235c32fc15babe6dc7b7bc2ee4387e5ecf92
[ ] executing: [/flutter/] git log -n 1 --pretty=format:%ar
[ +10 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar
[ ] 4 weeks ago
[ +2 ms] executing: [/flutter/] git describe --match v*.*.* --first-parent --long --tags
[ +35 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[ ] v0.9.4-0-gf37c235c3
[ +287 ms] executing: /Volumes/Data/Library/Android/sdk/platform-tools/adb devices -l
[ +8 ms] Exit code 0 from: /Volumes/Data/Library/Android/sdk/platform-tools/adb devices -l
[ ] List of devices attached
710KPKN0474357 device usb:338690048X product:taimen model:Pixel_2_XL device:taimen transport_id:11
[ +14 ms] executing: idevice_id -h
[ +45 ms] /usr/bin/xcrun simctl list --json devices
[ +319 ms] Found plugin camera at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/camera-0.2.4/
[ +4 ms] Found plugin cloud_firestore at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.8.2+1/
[ +11 ms] Found plugin firebase_auth at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.6.2+1/
[ +2 ms] Found plugin firebase_core at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.2.5+1/
[ +2 ms] Found plugin firebase_ml_vision at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/firebase_ml_vision-0.2.0+1/
[ +24 ms] Found plugin google_sign_in at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/google_sign_in-3.2.2/
[ +31 ms] Found plugin path_provider at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/path_provider-0.4.1/
[ +64 ms] Found plugin camera at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/camera-0.2.4/
[ +2 ms] Found plugin cloud_firestore at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.8.2+1/
[ +3 ms] Found plugin firebase_auth at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.6.2+1/
[ +1 ms] Found plugin firebase_core at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.2.5+1/
[ +1 ms] Found plugin firebase_ml_vision at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/firebase_ml_vision-0.2.0+1/
[ +8 ms] Found plugin google_sign_in at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/google_sign_in-3.2.2/
[ +19 ms] Found plugin path_provider at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/path_provider-0.4.1/
[ +53 ms] /Volumes/Data/Library/Android/sdk/platform-tools/adb -s 710KPKN0474357 shell getprop
[ +108 ms] ro.hardware = taimen
[ +1 ms] ro.build.characteristics = nosdcard
[ +751 ms] Launching lib/main.dart on Pixel 2 XL in debug mode...
[ +29 ms] Initializing gradle...
[ +39 ms] Using gradle from /Volumes/Data/FlutterProjects/scanner/android/gradlew.
[+1892 ms] executing: /usr/bin/defaults read /Applications/Android Studio.app/Contents/Info CFBundleShortVersionString
[ +185 ms] Exit code 0 from: /usr/bin/defaults read /Applications/Android Studio.app/Contents/Info CFBundleShortVersionString
[ ] 3.2
[ +117 ms] executing: /Volumes/Data/FlutterProjects/scanner/android/gradlew -v
[ +915 ms]
------------------------------------------------------------
Gradle 4.6
------------------------------------------------------------
Build time: 2018-02-28 13:36:36 UTC
Revision: 8fa6ce7945b640e6168488e4417f9bb96e4ab46c
Groovy: 2.4.12
Ant: Apache Ant(TM) version 1.9.9 compiled on February 2 2017
JVM: 1.8.0_152-release (JetBrains s.r.o 25.152-b06)
OS: Mac OS X 10.14 x86_64
[ ] Initializing gradle... (completed)
[ +1 ms] Resolving dependencies...
[ ] executing: [/Volumes/Data/FlutterProjects/scanner/android/] /Volumes/Data/FlutterProjects/scanner/android/gradlew app:properties
[+1598 ms] Could not find google-services.json while looking in [src/nullnull/debug, src/debug/nullnull, src/nullnull, src/debug, src/nullnullDebug]
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
Could not find google-services.json while looking in [src/nullnull/dynamicProfile, src/dynamicProfile/nullnull, src/nullnull, src/dynamicProfile, src/nullnullDynamicProfile]
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
Could not find google-services.json while looking in [src/nullnull/release, src/release/nullnull, src/nullnull, src/release, src/nullnullRelease]
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
Could not find google-services.json while looking in [src/nullnull/profile, src/profile/nullnull, src/nullnull, src/profile, src/nullnullProfile]
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
Could not find google-services.json while looking in [src/nullnull/dynamicRelease, src/dynamicRelease/nullnull, src/nullnull, src/dynamicRelease, src/nullnullDynamicRelease]
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
------------------------------------------------------------
Project :app
------------------------------------------------------------
allprojects: [project ':app']
android: com.android.build.gradle.AppExtension_Decorated@72ed5602
androidDependencies: task ':app:androidDependencies'
ant: org.gradle.api.internal.project.DefaultAntBuilder@37efd63b
antBuilderFactory: org.gradle.api.internal.project.DefaultAntBuilderFactory@66408319
archivesBaseName: app
artifacts: org.gradle.api.internal.artifacts.dsl.DefaultArtifactHandler_Decorated@692610d
asDynamicObject: DynamicObject for project ':app'
assemble: task ':app:assemble'
assembleAndroidTest: task ':app:assembleAndroidTest'
assembleDebug: task ':app:assembleDebug'
assembleDebugAndroidTest: task ':app:assembleDebugAndroidTest'
assembleDebugUnitTest: task ':app:assembleDebugUnitTest'
assembleDynamicProfile: task ':app:assembleDynamicProfile'
assembleDynamicProfileUnitTest: task ':app:assembleDynamicProfileUnitTest'
assembleDynamicRelease: task ':app:assembleDynamicRelease'
assembleDynamicReleaseUnitTest: task ':app:assembleDynamicReleaseUnitTest'
assembleProfile: task ':app:assembleProfile'
assembleProfileUnitTest: task ':app:assembleProfileUnitTest'
assembleRelease: task ':app:assembleRelease'
assembleReleaseUnitTest: task ':app:assembleReleaseUnitTest'
baseClassLoaderScope: org.gradle.api.internal.initialization.DefaultClassLoaderScope@1ed76a9b
buildDependents: task ':app:buildDependents'
buildDir: /Volumes/Data/FlutterProjects/scanner/build/app
buildFile: /Volumes/Data/FlutterProjects/scanner/android/app/build.gradle
buildNeeded: task ':app:buildNeeded'
buildOutputs: BaseVariantOutput container
buildPath: :
buildScriptSource: org.gradle.groovy.scripts.TextResourceScriptSource@57c02974
buildscript: org.gradle.api.internal.initialization.DefaultScriptHandler@35fa20de
bundleAppClassesDebug: task ':app:bundleAppClassesDebug'
bundleAppClassesDebugAndroidTest: task ':app:bundleAppClassesDebugAndroidTest'
bundleAppClassesDebugUnitTest: task ':app:bundleAppClassesDebugUnitTest'
bundleAppClassesDynamicProfile: task ':app:bundleAppClassesDynamicProfile'
bundleAppClassesDynamicProfileUnitTest: task ':app:bundleAppClassesDynamicProfileUnitTest'
bundleAppClassesDynamicRelease: task ':app:bundleAppClassesDynamicRelease'
bundleAppClassesDynamicReleaseUnitTest: task ':app:bundleAppClassesDynamicReleaseUnitTest'
bundleAppClassesProfile: task ':app:bundleAppClassesProfile'
bundleAppClassesProfileUnitTest: task ':app:bundleAppClassesProfileUnitTest'
bundleAppClassesRelease: task ':app:bundleAppClassesRelease'
bundleAppClassesReleaseUnitTest: task ':app:bundleAppClassesReleaseUnitTest'
bundleDebugAndroidTestResources: task ':app:bundleDebugAndroidTestResources'
bundleDebugResources: task ':app:bundleDebugResources'
bundleDynamicProfileResources: task ':app:bundleDynamicProfileResources'
bundleDynamicReleaseResources: task ':app:bundleDynamicReleaseResources'
bundleProfileResources: task ':app:bundleProfileResources'
bundleReleaseResources: task ':app:bundleReleaseResources'
check: task ':app:check'
checkDebugManifest: task ':app:checkDebugManifest'
checkDynamicProfileManifest: task ':app:checkDynamicProfileManifest'
checkDynamicReleaseManifest: task ':app:checkDynamicReleaseManifest'
checkProfileManifest: task ':app:checkProfileManifest'
checkReleaseManifest: task ':app:checkReleaseManifest'
childProjects: {}
class: class org.gradle.api.internal.project.DefaultProject_Decorated
classLoaderScope: org.gradle.api.internal.initialization.DefaultClassLoaderScope@2075a565
cleanBuildCache: task ':app:cleanBuildCache'
compileDebugAidl: task ':app:compileDebugAidl'
compileDebugAndroidTestAidl: task ':app:compileDebugAndroidTestAidl'
compileDebugAndroidTestJavaWithJavac: task ':app:compileDebugAndroidTestJavaWithJavac'
compileDebugAndroidTestNdk: task ':app:compileDebugAndroidTestNdk'
compileDebugAndroidTestRenderscript: task ':app:compileDebugAndroidTestRenderscript'
compileDebugAndroidTestShaders: task ':app:compileDebugAndroidTestShaders'
compileDebugAndroidTestSources: task ':app:compileDebugAndroidTestSources'
compileDebugJavaWithJavac: task ':app:compileDebugJavaWithJavac'
compileDebugNdk: task ':app:compileDebugNdk'
compileDebugRenderscript: task ':app:compileDebugRenderscript'
compileDebugShaders: task ':app:compileDebugShaders'
compileDebugSources: task ':app:compileDebugSources'
compileDebugUnitTestJavaWithJavac: task ':app:compileDebugUnitTestJavaWithJavac'
compileDebugUnitTestSources: task ':app:compileDebugUnitTestSources'
compileDynamicProfileAidl: task ':app:compileDynamicProfileAidl'
compileDynamicProfileJavaWithJavac: task ':app:compileDynamicProfileJavaWithJavac'
compileDynamicProfileNdk: task ':app:compileDynamicProfileNdk'
compileDynamicProfileRenderscript: task ':app:compileDynamicProfileRenderscript'
compileDynamicProfileShaders: task ':app:compileDynamicProfileShaders'
compileDynamicProfileSources: task ':app:compileDynamicProfileSources'
compileDynamicProfileUnitTestJavaWithJavac: task ':app:compileDynamicProfileUnitTestJavaWithJavac'
compileDynamicProfileUnitTestSources: task ':app:compileDynamicProfileUnitTestSources'
compileDynamicReleaseAidl: task ':app:compileDynamicReleaseAidl'
compileDynamicReleaseJavaWithJavac: task ':app:compileDynamicReleaseJavaWithJavac'
compileDynamicReleaseNdk: task ':app:compileDynamicReleaseNdk'
compileDynamicReleaseRenderscript: task ':app:compileDynamicReleaseRenderscript'
compileDynamicReleaseShaders: task ':app:compileDynamicReleaseShaders'
compileDynamicReleaseSources: task ':app:compileDynamicReleaseSources'
compileDynamicReleaseUnitTestJavaWithJavac: task ':app:compileDynamicReleaseUnitTestJavaWithJavac'
compileDynamicReleaseUnitTestSources: task ':app:compileDynamicReleaseUnitTestSources'
compileLint: task ':app:compileLint'
compileProfileAidl: task ':app:compileProfileAidl'
compileProfileJavaWithJavac: task ':app:compileProfileJavaWithJavac'
compileProfileNdk: task ':app:compileProfileNdk'
compileProfileRenderscript: task ':app:compileProfileRenderscript'
compileProfileShaders: task ':app:compileProfileShaders'
compileProfileSources: task ':app:compileProfileSources'
compileProfileUnitTestJavaWithJavac: task ':app:compileProfileUnitTestJavaWithJavac'
compileProfileUnitTestSources: task ':app:compileProfileUnitTestSources'
compileReleaseAidl: task ':app:compileReleaseAidl'
compileReleaseJavaWithJavac: task ':app:compileReleaseJavaWithJavac'
compileReleaseNdk: task ':app:compileReleaseNdk'
compileReleaseRenderscript: task ':app:compileReleaseRenderscript'
compileReleaseShaders: task ':app:compileReleaseShaders'
compileReleaseSources: task ':app:compileReleaseSources'
compileReleaseUnitTestJavaWithJavac: task ':app:compileReleaseUnitTestJavaWithJavac'
compileReleaseUnitTestSources: task ':app:compileReleaseUnitTestSources'
components: SoftwareComponentInternal set
configurationActions: org.gradle.configuration.project.DefaultProjectConfigurationActionContainer@5d38042
configurationTargetIdentifier: org.gradle.configuration.ConfigurationTargetIdentifier$1@538e9205
configurations: configuration container
connectedAndroidTest: task ':app:connectedAndroidTest'
connectedCheck: task ':app:connectedCheck'
connectedDebugAndroidTest: task ':app:connectedDebugAndroidTest'
consumeConfigAttr: task ':app:consumeConfigAttr'
convention: org.gradle.api.internal.plugins.DefaultConvention@3716b47a
copyFlutterAssetsDebug: task ':app:copyFlutterAssetsDebug'
copyFlutterAssetsDynamicProfile: task ':app:copyFlutterAssetsDynamicProfile'
copyFlutterAssetsDynamicRelease: task ':app:copyFlutterAssetsDynamicRelease'
copyFlutterAssetsProfile: task ':app:copyFlutterAssetsProfile'
copyFlutterAssetsRelease: task ':app:copyFlutterAssetsRelease'
createDebugCompatibleScreenManifests: task ':app:createDebugCompatibleScreenManifests'
createDynamicProfileCompatibleScreenManifests: task ':app:createDynamicProfileCompatibleScreenManifests'
createDynamicReleaseCompatibleScreenManifests: task ':app:createDynamicReleaseCompatibleScreenManifests'
createProfileCompatibleScreenManifests: task ':app:createProfileCompatibleScreenManifests'
createReleaseCompatibleScreenManifests: task ':app:createReleaseCompatibleScreenManifests'
defaultArtifacts: org.gradle.api.internal.plugins.DefaultArtifactPublicationSet_Decorated@3a456170
defaultTasks: []
deferredProjectConfiguration: org.gradle.api.internal.project.DeferredProjectConfiguration@238d27ea
dependencies: org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler_Decorated@4b48724
depth: 1
description: null
deviceAndroidTest: task ':app:deviceAndroidTest'
deviceCheck: task ':app:deviceCheck'
displayName: project ':app'
distsDir: /Volumes/Data/FlutterProjects/scanner/build/app/distributions
distsDirName: distributions
docsDir: /Volumes/Data/FlutterProjects/scanner/build/app/docs
docsDirName: docs
ext: org.gradle.api.internal.plugins.DefaultExtraPropertiesExtension@68356ac
extensions: org.gradle.api.internal.plugins.DefaultConvention@3716b47a
extractProguardFiles: task ':app:extractProguardFiles'
fileOperations: org.gradle.api.internal.file.DefaultFileOperations@17dce9ed
fileResolver: org.gradle.api.internal.file.BaseDirFileResolver@5d243e8b
flutter: FlutterExtension_Decorated@7d090fac
flutterBuildDebug: task ':app:flutterBuildDebug'
flutterBuildDynamicProfile: task ':app:flutterBuildDynamicProfile'
flutterBuildDynamicRelease: task ':app:flutterBuildDynamicRelease'
flutterBuildProfile: task ':app:flutterBuildProfile'
flutterBuildRelease: task ':app:flutterBuildRelease'
flutterBuildX86Jar: task ':app:flutterBuildX86Jar'
generateDebugAndroidTestAssets: task ':app:generateDebugAndroidTestAssets'
generateDebugAndroidTestBuildConfig: task ':app:generateDebugAndroidTestBuildConfig'
generateDebugAndroidTestResValues: task ':app:generateDebugAndroidTestResValues'
generateDebugAndroidTestResources: task ':app:generateDebugAndroidTestResources'
generateDebugAndroidTestSources: task ':app:generateDebugAndroidTestSources'
generateDebugAssets: task ':app:generateDebugAssets'
generateDebugBuildConfig: task ':app:generateDebugBuildConfig'
generateDebugResValues: task ':app:generateDebugResValues'
generateDebugResources: task ':app:generateDebugResources'
generateDebugSources: task ':app:generateDebugSources'
generateDynamicProfileAssets: task ':app:generateDynamicProfileAssets'
generateDynamicProfileBuildConfig: task ':app:generateDynamicProfileBuildConfig'
generateDynamicProfileResValues: task ':app:generateDynamicProfileResValues'
generateDynamicProfileResources: task ':app:generateDynamicProfileResources'
generateDynamicProfileSources: task ':app:generateDynamicProfileSources'
generateDynamicReleaseAssets: task ':app:generateDynamicReleaseAssets'
generateDynamicReleaseBuildConfig: task ':app:generateDynamicReleaseBuildConfig'
generateDynamicReleaseResValues: task ':app:generateDynamicReleaseResValues'
generateDynamicReleaseResources: task ':app:generateDynamicReleaseResources'
generateDynamicReleaseSources: task ':app:generateDynamicReleaseSources'
generateProfileAssets: task ':app:generateProfileAssets'
generateProfileBuildConfig: task ':app:generateProfileBuildConfig'
generateProfileResValues: task ':app:generateProfileResValues'
generateProfileResources: task ':app:generateProfileResources'
generateProfileSources: task ':app:generateProfileSources'
generateReleaseAssets: task ':app:generateReleaseAssets'
generateReleaseBuildConfig: task ':app:generateReleaseBuildConfig'
generateReleaseResValues: task ':app:generateReleaseResValues'
generateReleaseResources: task ':app:generateReleaseResources'
generateReleaseSources: task ':app:generateReleaseSources'
gradle: build 'android'
group: android
identityPath: :app
inheritedScope: org.gradle.api.internal.ExtensibleDynamicObject$InheritedDynamicObject@61a30097
installDebug: task ':app:installDebug'
installDebugAndroidTest: task ':app:installDebugAndroidTest'
installDynamicProfile: task ':app:installDynamicProfile'
installDynamicRelease: task ':app:installDynamicRelease'
installProfile: task ':app:installProfile'
installRelease: task ':app:installRelease'
javaPreCompileDebug: task ':app:javaPreCompileDebug'
javaPreCompileDebugAndroidTest: task ':app:javaPreCompileDebugAndroidTest'
javaPreCompileDebugUnitTest: task ':app:javaPreCompileDebugUnitTest'
javaPreCompileDynamicProfile: task ':app:javaPreCompileDynamicProfile'
javaPreCompileDynamicProfileUnitTest: task ':app:javaPreCompileDynamicProfileUnitTest'
javaPreCompileDynamicRelease: task ':app:javaPreCompileDynamicRelease'
javaPreCompileDynamicReleaseUnitTest: task ':app:javaPreCompileDynamicReleaseUnitTest'
javaPreCompileProfile: task ':app:javaPreCompileProfile'
javaPreCompileProfileUnitTest: task ':app:javaPreCompileProfileUnitTest'
javaPreCompileRelease: task ':app:javaPreCompileRelease'
javaPreCompileReleaseUnitTest: task ':app:javaPreCompileReleaseUnitTest'
layout: org.gradle.api.internal.file.DefaultProjectLayout@11400ecf
libsDir: /Volumes/Data/FlutterProjects/scanner/build/app/libs
libsDirName: libs
lint: task ':app:lint'
lintDebug: task ':app:lintDebug'
lintDynamicProfile: task ':app:lintDynamicProfile'
lintDynamicRelease: task ':app:lintDynamicRelease'
lintProfile: task ':app:lintProfile'
lintRelease: task ':app:lintRelease'
lintVitalRelease: task ':app:lintVitalRelease'
logger: org.gradle.internal.logging.slf4j.OutputEventListenerBackedLogger@68954260
logging: org.gradle.internal.logging.services.DefaultLoggingManager@6d6caa0a
mainApkListPersistenceDebug: task ':app:mainApkListPersistenceDebug'
mainApkListPersistenceDebugAndroidTest: task ':app:mainApkListPersistenceDebugAndroidTest'
mainApkListPersistenceDynamicProfile: task ':app:mainApkListPersistenceDynamicProfile'
mainApkListPersistenceDynamicRelease: task ':app:mainApkListPersistenceDynamicRelease'
mainApkListPersistenceProfile: task ':app:mainApkListPersistenceProfile'
mainApkListPersistenceRelease: task ':app:mainApkListPersistenceRelease'
mergeDebugAndroidTestAssets: task ':app:mergeDebugAndroidTestAssets'
mergeDebugAndroidTestJniLibFolders: task ':app:mergeDebugAndroidTestJniLibFolders'
mergeDebugAndroidTestResources: task ':app:mergeDebugAndroidTestResources'
mergeDebugAndroidTestShaders: task ':app:mergeDebugAndroidTestShaders'
mergeDebugAssets: task ':app:mergeDebugAssets'
mergeDebugJniLibFolders: task ':app:mergeDebugJniLibFolders'
mergeDebugResources: task ':app:mergeDebugResources'
mergeDebugShaders: task ':app:mergeDebugShaders'
mergeDynamicProfileAssets: task ':app:mergeDynamicProfileAssets'
mergeDynamicProfileJniLibFolders: task ':app:mergeDynamicProfileJniLibFolders'
mergeDynamicProfileResources: task ':app:mergeDynamicProfileResources'
mergeDynamicProfileShaders: task ':app:mergeDynamicProfileShaders'
mergeDynamicReleaseAssets: task ':app:mergeDynamicReleaseAssets'
mergeDynamicReleaseJniLibFolders: task ':app:mergeDynamicReleaseJniLibFolders'
mergeDynamicReleaseResources: task ':app:mergeDynamicReleaseResources'
mergeDynamicReleaseShaders: task ':app:mergeDynamicReleaseShaders'
mergeProfileAssets: task ':app:mergeProfileAssets'
mergeProfileJniLibFolders: task ':app:mergeProfileJniLibFolders'
mergeProfileResources: task ':app:mergeProfileResources'
mergeProfileShaders: task ':app:mergeProfileShaders'
mergeReleaseAssets: task ':app:mergeReleaseAssets'
mergeReleaseJniLibFolders: task ':app:mergeReleaseJniLibFolders'
mergeReleaseResources: task ':app:mergeReleaseResources'
mergeReleaseShaders: task ':app:mergeReleaseShaders'
mockableAndroidJar: task ':app:mockableAndroidJar'
modelRegistry: org.gradle.model.internal.registry.DefaultModelRegistry@582dbc64
modelSchemaStore: org.gradle.model.internal.manage.schema.extract.DefaultModelSchemaStore@72034d1
module: org.gradle.api.internal.artifacts.ProjectBackedModule@55dbf325
name: app
normalization: org.gradle.normalization.internal.DefaultInputNormalizationHandler_Decorated@2173a84e
objects: org.gradle.api.internal.model.DefaultObjectFactory@30d4fcd9
org.gradle.jvmargs: -Xmx1536M
packageDebug: task ':app:packageDebug'
packageDebugAndroidTest: task ':app:packageDebugAndroidTest'
packageDynamicProfile: task ':app:packageDynamicProfile'
packageDynamicRelease: task ':app:packageDynamicRelease'
packageProfile: task ':app:packageProfile'
packageRelease: task ':app:packageRelease'
parent: root project 'android'
parentIdentifier: root project 'android'
path: :app
platformAttrExtractor: task ':app:platformAttrExtractor'
pluginManager: org.gradle.api.internal.plugins.DefaultPluginManager_Decorated@38e03c33
plugins: [org.gradle.api.plugins.HelpTasksPlugin@2e458787, com.android.build.gradle.api.AndroidBasePlugin@415b1e45, org.gradle.language.base.plugins.LifecycleBasePlugin@661f154a, org.gradle.api.plugins.BasePlugin@72927c9d, org.gradle.api.plugins.ReportingBasePlugin@5855d0a5, org.gradle.platform.base.plugins.ComponentBasePlugin@4289fc5f, org.gradle.language.base.plugins.LanguageBasePlugin@342fcc53, org.gradle.platform.base.plugins.BinaryBasePlugin@2618f46f, org.gradle.api.plugins.JavaBasePlugin@60215f4c, com.android.build.gradle.AppPlugin@1357dda5, FlutterPlugin@16da962c, com.google.gms.googleservices.GoogleServicesPlugin@21b34504]
preBuild: task ':app:preBuild'
preDebugAndroidTestBuild: task ':app:preDebugAndroidTestBuild'
preDebugBuild: task ':app:preDebugBuild'
preDebugUnitTestBuild: task ':app:preDebugUnitTestBuild'
preDynamicProfileBuild: task ':app:preDynamicProfileBuild'
preDynamicProfileUnitTestBuild: task ':app:preDynamicProfileUnitTestBuild'
preDynamicReleaseBuild: task ':app:preDynamicReleaseBuild'
preDynamicReleaseUnitTestBuild: task ':app:preDynamicReleaseUnitTestBuild'
preProfileBuild: task ':app:preProfileBuild'
preProfileUnitTestBuild: task ':app:preProfileUnitTestBuild'
preReleaseBuild: task ':app:preReleaseBuild'
preReleaseUnitTestBuild: task ':app:preReleaseUnitTestBuild'
prepareLintJar: task ':app:prepareLintJar'
preparePUBLISHED_DEXDebugAndroidTestForPublishing: task ':app:preparePUBLISHED_DEXDebugAndroidTestForPublishing'
preparePUBLISHED_DEXDebugForPublishing: task ':app:preparePUBLISHED_DEXDebugForPublishing'
preparePUBLISHED_DEXDynamicProfileForPublishing: task ':app:preparePUBLISHED_DEXDynamicProfileForPublishing'
preparePUBLISHED_DEXDynamicReleaseForPublishing: task ':app:preparePUBLISHED_DEXDynamicReleaseForPublishing'
preparePUBLISHED_DEXProfileForPublishing: task ':app:preparePUBLISHED_DEXProfileForPublishing'
preparePUBLISHED_DEXReleaseForPublishing: task ':app:preparePUBLISHED_DEXReleaseForPublishing'
preparePUBLISHED_JAVA_RESDebugAndroidTestForPublishing: task ':app:preparePUBLISHED_JAVA_RESDebugAndroidTestForPublishing'
preparePUBLISHED_JAVA_RESDebugForPublishing: task ':app:preparePUBLISHED_JAVA_RESDebugForPublishing'
preparePUBLISHED_JAVA_RESDynamicProfileForPublishing: task ':app:preparePUBLISHED_JAVA_RESDynamicProfileForPublishing'
preparePUBLISHED_JAVA_RESDynamicReleaseForPublishing: task ':app:preparePUBLISHED_JAVA_RESDynamicReleaseForPublishing'
preparePUBLISHED_JAVA_RESProfileForPublishing: task ':app:preparePUBLISHED_JAVA_RESProfileForPublishing'
preparePUBLISHED_JAVA_RESReleaseForPublishing: task ':app:preparePUBLISHED_JAVA_RESReleaseForPublishing'
preparePUBLISHED_NATIVE_LIBSDebugAndroidTestForPublishing: task ':app:preparePUBLISHED_NATIVE_LIBSDebugAndroidTestForPublishing'
preparePUBLISHED_NATIVE_LIBSDebugForPublishing: task ':app:preparePUBLISHED_NATIVE_LIBSDebugForPublishing'
preparePUBLISHED_NATIVE_LIBSDynamicProfileForPublishing: task ':app:preparePUBLISHED_NATIVE_LIBSDynamicProfileForPublishing'
preparePUBLISHED_NATIVE_LIBSDynamicReleaseForPublishing: task ':app:preparePUBLISHED_NATIVE_LIBSDynamicReleaseForPublishing'
preparePUBLISHED_NATIVE_LIBSProfileForPublishing: task ':app:preparePUBLISHED_NATIVE_LIBSProfileForPublishing'
preparePUBLISHED_NATIVE_LIBSReleaseForPublishing: task ':app:preparePUBLISHED_NATIVE_LIBSReleaseForPublishing'
processDebugAndroidTestJavaRes: task ':app:processDebugAndroidTestJavaRes'
processDebugAndroidTestManifest: task ':app:processDebugAndroidTestManifest'
processDebugAndroidTestResources: task ':app:processDebugAndroidTestResources'
processDebugGoogleServices: task ':app:processDebugGoogleServices'
processDebugJavaRes: task ':app:processDebugJavaRes'
processDebugManifest: task ':app:processDebugManifest'
processDebugResources: task ':app:processDebugResources'
processDebugUnitTestJavaRes: task ':app:processDebugUnitTestJavaRes'
processDynamicProfileGoogleServices: task ':app:processDynamicProfileGoogleServices'
processDynamicProfileJavaRes: task ':app:processDynamicProfileJavaRes'
processDynamicProfileManifest: task ':app:processDynamicProfileManifest'
processDynamicProfileResources: task ':app:processDynamicProfileResources'
processDynamicProfileUnitTestJavaRes: task ':app:processDynamicProfileUnitTestJavaRes'
processDynamicReleaseGoogleServices: task ':app:processDynamicReleaseGoogleServices'
processDynamicReleaseJavaRes: task ':app:processDynamicReleaseJavaRes'
processDynamicReleaseManifest: task ':app:processDynamicReleaseManifest'
processDynamicReleaseResources: task ':app:processDynamicReleaseResources'
processDynamicReleaseUnitTestJavaRes: task ':app:processDynamicReleaseUnitTestJavaRes'
processOperations: org.gradle.api.internal.file.DefaultFileOperations@17dce9ed
processProfileGoogleServices: task ':app:processProfileGoogleServices'
processProfileJavaRes: task ':app:processProfileJavaRes'
processProfileManifest: task ':app:processProfileManifest'
processProfileResources: task ':app:processProfileResources'
processProfileUnitTestJavaRes: task ':app:processProfileUnitTestJavaRes'
processReleaseGoogleServices: task ':app:processReleaseGoogleServices'
processReleaseJavaRes: task ':app:processReleaseJavaRes'
processReleaseManifest: task ':app:processReleaseManifest'
processReleaseResources: task ':app:processReleaseResources'
processReleaseUnitTestJavaRes: task ':app:processReleaseUnitTestJavaRes'
project: project ':app'
projectConfigurator: org.gradle.api.internal.project.BuildOperationCrossProjectConfigurator@d1b69d7
projectDir: /Volumes/Data/FlutterProjects/scanner/android/app
projectEvaluationBroadcaster: ProjectEvaluationListener broadcast
projectEvaluator: org.gradle.configuration.project.LifecycleProjectEvaluator@311681e2
projectPath: :app
projectRegistry: org.gradle.api.internal.project.DefaultProjectRegistry@26b3812d
properties: {...}
providers: org.gradle.api.internal.provider.DefaultProviderFactory@75720115
reportBuildArtifactsDebug: task ':app:reportBuildArtifactsDebug'
reportBuildArtifactsDynamicProfile: task ':app:reportBuildArtifactsDynamicProfile'
reportBuildArtifactsDynamicRelease: task ':app:reportBuildArtifactsDynamicRelease'
reportBuildArtifactsProfile: task ':app:reportBuildArtifactsProfile'
reportBuildArtifactsRelease: task ':app:reportBuildArtifactsRelease'
reporting: org.gradle.api.reporting.ReportingExtension_Decorated@1f8b306c
reportsDir: /Volumes/Data/FlutterProjects/scanner/build/app/reports
repositories: repository container
resolveConfigAttr: task ':app:resolveConfigAttr'
resourceLoader: org.gradle.internal.resource.transfer.DefaultUriTextResourceLoader@4908a79b
resources: org.gradle.api.internal.resources.DefaultResourceHandler@4c9426c9
rootDir: /Volumes/Data/FlutterProjects/scanner/android
rootProject: root project 'android'
script: false
scriptHandlerFactory: org.gradle.api.internal.initialization.DefaultScriptHandlerFactory@76146c9f
scriptPluginFactory: org.gradle.configuration.ScriptPluginFactorySelector@30da2a61
serviceRegistryFactory: org.gradle.internal.service.scopes.ProjectScopeServices$4@3ce2679e
services: ProjectScopeServices
signingReport: task ':app:signingReport'
sourceCompatibility: 1.8
sourceSets: SourceSet container
splitsDiscoveryTaskDebug: task ':app:splitsDiscoveryTaskDebug'
splitsDiscoveryTaskDynamicProfile: task ':app:splitsDiscoveryTaskDynamicProfile'
splitsDiscoveryTaskDynamicRelease: task ':app:splitsDiscoveryTaskDynamicRelease'
splitsDiscoveryTaskProfile: task ':app:splitsDiscoveryTaskProfile'
splitsDiscoveryTaskRelease: task ':app:splitsDiscoveryTaskRelease'
standardOutputCapture: org.gradle.internal.logging.services.DefaultLoggingManager@6d6caa0a
state: project state 'EXECUTED'
status: integration
subprojects: []
targetCompatibility: 1.8
tasks: task set
test: task ':app:test'
testDebugUnitTest: task ':app:testDebugUnitTest'
testDynamicProfileUnitTest: task ':app:testDynamicProfileUnitTest'
testDynamicReleaseUnitTest: task ':app:testDynamicReleaseUnitTest'
testProfileUnitTest: task ':app:testProfileUnitTest'
testReleaseUnitTest: task ':app:testReleaseUnitTest'
testReportDir: /Volumes/Data/FlutterProjects/scanner/build/app/reports/tests
testReportDirName: tests
testResultsDir: /Volumes/Data/FlutterProjects/scanner/build/app/test-results
testResultsDirName: test-results
transformClassesWithDexBuilderForDebug: task ':app:transformClassesWithDexBuilderForDebug'
transformClassesWithDexBuilderForDebugAndroidTest: task ':app:transformClassesWithDexBuilderForDebugAndroidTest'
transformClassesWithDexBuilderForDynamicProfile: task ':app:transformClassesWithDexBuilderForDynamicProfile'
transformClassesWithDexBuilderForDynamicRelease: task ':app:transformClassesWithDexBuilderForDynamicRelease'
transformClassesWithDexBuilderForProfile: task ':app:transformClassesWithDexBuilderForProfile'
transformClassesWithDexBuilderForRelease: task ':app:transformClassesWithDexBuilderForRelease'
transformDexArchiveWithDexMergerForDebug: task ':app:transformDexArchiveWithDexMergerForDebug'
transformDexArchiveWithDexMergerForDebugAndroidTest: task ':app:transformDexArchiveWithDexMergerForDebugAndroidTest'
transformDexArchiveWithDexMergerForDynamicProfile: task ':app:transformDexArchiveWithDexMergerForDynamicProfile'
transformDexArchiveWithDexMergerForDynamicRelease: task ':app:transformDexArchiveWithDexMergerForDynamicRelease'
transformDexArchiveWithDexMergerForProfile: task ':app:transformDexArchiveWithDexMergerForProfile'
transformDexArchiveWithDexMergerForRelease: task ':app:transformDexArchiveWithDexMergerForRelease'
transformDexArchiveWithExternalLibsDexMergerForDebug: task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'
transformDexArchiveWithExternalLibsDexMergerForDebugAndroidTest: task ':app:transformDexArchiveWithExternalLibsDexMergerForDebugAndroidTest'
transformDexArchiveWithExternalLibsDexMergerForDynamicProfile: task ':app:transformDexArchiveWithExternalLibsDexMergerForDynamicProfile'
transformDexArchiveWithExternalLibsDexMergerForDynamicRelease: task ':app:transformDexArchiveWithExternalLibsDexMergerForDynamicRelease'
transformDexArchiveWithExternalLibsDexMergerForProfile: task ':app:transformDexArchiveWithExternalLibsDexMergerForProfile'
transformDexArchiveWithExternalLibsDexMergerForRelease: task ':app:transformDexArchiveWithExternalLibsDexMergerForRelease'
transformNativeLibsWithMergeJniLibsForDebug: task ':app:transformNativeLibsWithMergeJniLibsForDebug'
transformNativeLibsWithMergeJniLibsForDebugAndroidTest: task ':app:transformNativeLibsWithMergeJniLibsForDebugAndroidTest'
transformNativeLibsWithMergeJniLibsForDynamicProfile: task ':app:transformNativeLibsWithMergeJniLibsForDynamicProfile'
transformNativeLibsWithMergeJniLibsForDynamicRelease: task ':app:transformNativeLibsWithMergeJniLibsForDynamicRelease'
transformNativeLibsWithMergeJniLibsForProfile: task ':app:transformNativeLibsWithMergeJniLibsForProfile'
transformNativeLibsWithMergeJniLibsForRelease: task ':app:transformNativeLibsWithMergeJniLibsForRelease'
transformResourcesWithMergeJavaResForDebug: task ':app:transformResourcesWithMergeJavaResForDebug'
transformResourcesWithMergeJavaResForDebugAndroidTest: task ':app:transformResourcesWithMergeJavaResForDebugAndroidTest'
transformResourcesWithMergeJavaResForDebugUnitTest: task ':app:transformResourcesWithMergeJavaResForDebugUnitTest'
transformResourcesWithMergeJavaResForDynamicProfile: task ':app:transformResourcesWithMergeJavaResForDynamicProfile'
transformResourcesWithMergeJavaResForDynamicProfileUnitTest: task ':app:transformResourcesWithMergeJavaResForDynamicProfileUnitTest'
transformResourcesWithMergeJavaResForDynamicRelease: task ':app:transformResourcesWithMergeJavaResForDynamicRelease'
transformResourcesWithMergeJavaResForDynamicReleaseUnitTest: task ':app:transformResourcesWithMergeJavaResForDynamicReleaseUnitTest'
transformResourcesWithMergeJavaResForProfile: task ':app:transformResourcesWithMergeJavaResForProfile'
transformResourcesWithMergeJavaResForProfileUnitTest: task ':app:transformResourcesWithMergeJavaResForProfileUnitTest'
transformResourcesWithMergeJavaResForRelease: task ':app:transformResourcesWithMergeJavaResForRelease'
transformResourcesWithMergeJavaResForReleaseUnitTest: task ':app:transformResourcesWithMergeJavaResForReleaseUnitTest'
uninstallAll: task ':app:uninstallAll'
uninstallDebug: task ':app:uninstallDebug'
uninstallDebugAndroidTest: task ':app:uninstallDebugAndroidTest'
uninstallDynamicProfile: task ':app:uninstallDynamicProfile'
uninstallDynamicRelease: task ':app:uninstallDynamicRelease'
uninstallProfile: task ':app:uninstallProfile'
uninstallRelease: task ':app:uninstallRelease'
validateSigningDebug: task ':app:validateSigningDebug'
validateSigningDebugAndroidTest: task ':app:validateSigningDebugAndroidTest'
validateSigningDynamicProfile: task ':app:validateSigningDynamicProfile'
validateSigningDynamicRelease: task ':app:validateSigningDynamicRelease'
validateSigningProfile: task ':app:validateSigningProfile'
validateSigningRelease: task ':app:validateSigningRelease'
version: unspecified
writeDebugApplicationId: task ':app:writeDebugApplicationId'
writeDynamicProfileApplicationId: task ':app:writeDynamicProfileApplicationId'
writeDynamicReleaseApplicationId: task ':app:writeDynamicReleaseApplicationId'
writeProfileApplicationId: task ':app:writeProfileApplicationId'
writeReleaseApplicationId: task ':app:writeReleaseApplicationId'
1 actionable task: 1 executed
[ +43 ms] Resolving dependencies... (completed)
[ +6 ms] executing: /Volumes/Data/Library/Android/sdk/build-tools/28.0.3/aapt dump xmltree /Volumes/Data/FlutterProjects/scanner/build/app/outputs/apk/app.apk AndroidManifest.xml
[ +29 ms] Exit code 0 from: /Volumes/Data/Library/Android/sdk/build-tools/28.0.3/aapt dump xmltree /Volumes/Data/FlutterProjects/scanner/build/app/outputs/apk/app.apk AndroidManifest.xml
[ ] N: android=http://schemas.android.com/apk/res/android
E: manifest (line=2)
A: android:versionCode(0x0101021b)=(type 0x10)0x1
A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
A: package="com.example.app" (Raw: "com.example.app")
E: uses-sdk (line=7)
A: android:minSdkVersion(0x0101020c)=(type 0x10)0x15
A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1b
E: uses-permission (line=16)
A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
E: uses-permission (line=17)
A: android:name(0x01010003)="android.permission.CAMERA" (Raw: "android.permission.CAMERA")
E: uses-permission (line=18)
A: android:name(0x01010003)="android.permission.RECORD_AUDIO" (Raw: "android.permission.RECORD_AUDIO")
E: uses-permission (line=19)
A: android:name(0x01010003)="android.permission.ACCESS_NETWORK_STATE" (Raw: "android.permission.ACCESS_NETWORK_STATE")
E: uses-permission (line=20)
A: android:name(0x01010003)="android.permission.WAKE_LOCK" (Raw: "android.permission.WAKE_LOCK")
E: uses-permission (line=21)
A: android:name(0x01010003)="com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE" (Raw: "com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE")
E: uses-permission (line=22)
A: android:name(0x01010003)="com.google.android.c2dm.permission.RECEIVE" (Raw: "com.google.android.c2dm.permission.RECEIVE")
E: application (line=30)
A: android:label(0x01010001)="Scanner" (Raw: "Scanner")
A: android:icon(0x01010002)=@0x7f090000
A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")
E: meta-data (line=34)
A: android:name(0x01010003)="com.google.firebase.ml.vision.DEPENDENCIES" (Raw: "com.google.firebase.ml.vision.DEPENDENCIES")
A: android:value(0x01010024)="ocr" (Raw: "ocr")
E: activity (line=38)
A: android:theme(0x01010000)=@0x7f0b0000
A: android:name(0x01010003)="com.example.app.MainActivity" (Raw: "com.example.app.MainActivity")
A: android:launchMode(0x0101001d)=(type 0x10)0x1
A: android:configChanges(0x0101001f)=(type 0x11)0x400035b4
A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
E: meta-data (line=52)
A: android:name(0x01010003)="io.flutter.app.android.SplashScreenUntilFirstFrame" (Raw: "io.flutter.app.android.SplashScreenUntilFirstFrame")
A: android:value(0x01010024)=(type 0x12)0xffffffff
E: intent-filter (line=56)
E: action (line=57)
A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
E: category (line=59)
A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
E: activity (line=62)
A: android:theme(0x01010000)=@0x1030010
A: android:name(0x01010003)="com.google.firebase.auth.internal.FederatedSignInActivity" (Raw: "com.google.firebase.auth.internal.FederatedSignInActivity")
A: android:permission(0x01010006)="com.google.firebase.auth.api.gms.permission.LAUNCH_FEDERATED_SIGN_IN" (Raw: "com.google.firebase.auth.api.gms.permission.LAUNCH_FEDERATED_SIGN_IN")
A: android:exported(0x01010010)=(type 0x12)0xffffffff
A: android:excludeFromRecents(0x01010017)=(type 0x12)0xffffffff
A: android:launchMode(0x0101001d)=(type 0x10)0x3
E: service (line=70)
A: android:name(0x01010003)="com.google.firebase.components.ComponentDiscoveryService" (Raw: "com.google.firebase.components.ComponentDiscoveryService")
A: android:exported(0x01010010)=(type 0x12)0x0
E: meta-data (line=73)
A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.auth.FirebaseAuthRegistrar" (Raw: "com.google.firebase.components:com.google.firebase.auth.FirebaseAuthRegistrar")
A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
E: meta-data (line=76)
A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.firestore.FirestoreRegistrar" (Raw: "com.google.firebase.components:com.google.firebase.firestore.FirestoreRegistrar")
A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
E: meta-data (line=79)
A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.analytics.connector.internal.AnalyticsConnectorRegistrar" (Raw: "com.google.firebase.components:com.google.firebase.analytics.connector.internal.AnalyticsConnectorRegistrar")
A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
E: meta-data (line=82)
A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.iid.Registrar" (Raw: "com.google.firebase.components:com.google.firebase.iid.Registrar")
A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
E: activity (line=87)
A: android:theme(0x01010000)=@0x1030010
A: android:name(0x01010003)="com.google.android.gms.auth.api.signin.internal.SignInHubActivity" (Raw: "com.google.android.gms.auth.api.signin.internal.SignInHubActivity")
A: android:exported(0x01010010)=(type 0x12)0x0
A: android:excludeFromRecents(0x01010017)=(type 0x12)0xffffffff
E: service (line=96)
A: android:name(0x01010003)="com.google.android.gms.auth.api.signin.RevocationBoundService" (Raw: "com.google.android.gms.auth.api.signin.RevocationBoundService")
A: android:permission(0x01010006)="com.google.android.gms.auth.api.signin.permission.REVOCATION_NOTIFICATION" (Raw: "com.google.android.gms.auth.api.signin.permission.REVOCATION_NOTIFICATION")
A: android:exported(0x01010010)=(type 0x12)0xffffffff
E: receiver (line=101)
A: android:name(0x01010003)="com.google.android.gms.measurement.AppMeasurementReceiver" (Raw: "com.google.android.gms.measurement.AppMeasurementReceiver")
A: android:enabled(0x0101000e)=(type 0x12)0xffffffff
A: android:exported(0x01010010)=(type 0x12)0x0
E: receiver (line=106)
A: android:name(0x01010003)="com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver" (Raw: "com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver")
A: android:permission(0x01010006)="android.permission.INSTALL_PACKAGES" (Raw: "android.permission.INSTALL_PACKAGES")
A: android:enabled(0x0101000e)=(type 0x12)0xffffffff
A: android:exported(0x01010010)=(type 0x12)0xffffffff
E: intent-filter (line=111)
E: action (line=112)
A: android:name(0x01010003)="com.android.vending.INSTALL_REFERRER" (Raw: "com.android.vending.INSTALL_REFERRER")
E: service (line=116)
A: android:name(0x01010003)="com.google.android.gms.measurement.AppMeasurementService" (Raw: "com.google.android.gms.measurement.AppMeasurementService")
A: android:enabled(0x0101000e)=(type 0x12)0xffffffff
A: android:exported(0x01010010)=(type 0x12)0x0
E: service (line=120)
A: android:name(0x01010003)="com.google.android.gms.measurement.AppMeasurementJobService" (Raw: "com.google.android.gms.measurement.AppMeasurementJobService")
A: android:permission(0x01010006)="android.permission.BIND_JOB_SERVICE" (Raw: "android.permission.BIND_JOB_SERVICE")
A: android:enabled(0x0101000e)=(type 0x12)0xffffffff
A: android:exported(0x01010010)=(type 0x12)0x0
E: receiver (line=126)
A: android:name(0x01010003)="com.google.firebase.iid.FirebaseInstanceIdReceiver" (Raw: "com.google.firebase.iid.FirebaseInstanceIdReceiver")
A: android:permission(0x01010006)="com.google.android.c2dm.permission.SEND" (Raw: "com.google.android.c2dm.permission.SEND")
A: android:exported(0x01010010)=(type 0x12)0xffffffff
E: intent-filter (line=130)
E: action (line=131)
A: android:name(0x01010003)="com.google.android.c2dm.intent.RECEIVE" (Raw: "com.google.android.c2dm.intent.RECEIVE")
E: service (line=138)
A: android:name(0x01010003)="com.google.firebase.iid.FirebaseInstanceIdService" (Raw: "com.google.firebase.iid.FirebaseInstanceIdService")
A: android:exported(0x01010010)=(type 0x12)0xffffffff
E: intent-filter (line=141)
A: android:priority(0x0101001c)=(type 0x10)0xfffffe0c
E: action (line=142)
A: android:name(0x01010003)="com.google.firebase.INSTANCE_ID_EVENT" (Raw: "com.google.firebase.INSTANCE_ID_EVENT")
E: provider (line=146)
A: android:name(0x01010003)="com.google.firebase.provider.FirebaseInitProvider" (Raw: "com.google.firebase.provider.FirebaseInitProvider")
A: android:exported(0x01010010)=(type 0x12)0x0
A: android:authorities(0x01010018)="com.example.app.firebaseinitprovider" (Raw: "com.example.app.firebaseinitprovider")
A: android:initOrder(0x0101001a)=(type 0x10)0x64
E: activity (line=152)
A: android:theme(0x01010000)=@0x1030010
A: android:name(0x01010003)="com.google.android.gms.common.api.GoogleApiActivity" (Raw: "com.google.android.gms.common.api.GoogleApiActivity")
A: android:exported(0x01010010)=(type 0x12)0x0
E: meta-data (line=157)
A: android:name(0x01010003)="com.google.android.gms.version" (Raw: "com.google.android.gms.version")
A: android:value(0x01010024)=@0x7f070001
E: meta-data (line=160)
A: android:name(0x01010003)="android.support.VERSION" (Raw: "android.support.VERSION")
A: android:value(0x01010024)="26.1.0" (Raw: "26.1.0")
[ +18 ms] executing: /Volumes/Data/Library/Android/sdk/platform-tools/adb -s 710KPKN0474357 shell -x logcat -v time -t 1
[ +103 ms] Exit code 0 from: /Volumes/Data/Library/Android/sdk/platform-tools/adb -s 710KPKN0474357 shell -x logcat -v time -t 1
[ ] --------- beginning of main
10-26 15:54:06.022 I/Finsky (17283): [1087] com.google.android.finsky.bo.ad.run(6): Stats for Executor: bgExecutor com.google.android.finsky.bo.ae@ea7fa4[Running, pool size = 4, active threads = 0, queued tasks = 0, completed tasks = 8]
[ +4 ms] executing: /Volumes/Data/Library/Android/sdk/platform-tools/adb -s 710KPKN0474357 shell -x logcat -v time
[ +453 ms] DependencyChecker: /Volumes/Data/FlutterProjects/scanner/.packages is newer than 2018-10-26 15:27:13.450
[ +2 ms] executing: /Volumes/Data/Library/Android/sdk/platform-tools/adb version
[ +15 ms] Android Debug Bridge version 1.0.40
Version 4986621
Installed as /Volumes/Data/Library/Android/sdk/platform-tools/adb
[ +2 ms] executing: /Volumes/Data/Library/Android/sdk/platform-tools/adb start-server
[ +9 ms] Building APK
[ +17 ms] Gradle task 'assembleDebug'...
[ +1 ms] executing: [/Volumes/Data/FlutterProjects/scanner/android/] /Volumes/Data/FlutterProjects/scanner/android/gradlew -Pverbose=true -Ptarget=/Volumes/Data/FlutterProjects/scanner/lib/main.dart -Ptarget-platform=android-arm64 assembleDebug
[+1043 ms] Could not find google-services.json while looking in [src/nullnull/debug, src/debug/nullnull, src/nullnull, src/debug, src/nullnullDebug]
[ +1 ms] registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
[ +2 ms] Could not find google-services.json while looking in [src/nullnull/dynamicProfile, src/dynamicProfile/nullnull, src/nullnull, src/dynamicProfile, src/nullnullDynamicProfile]
[ ] registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
[ ] Could not find google-services.json while looking in [src/nullnull/release, src/release/nullnull, src/nullnull, src/release, src/nullnullRelease]
[ +1 ms] registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
[ +10 ms] Could not find google-services.json while looking in [src/nullnull/profile, src/profile/nullnull, src/nullnull, src/profile, src/nullnullProfile]
[ +8 ms] registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
[ ] Could not find google-services.json while looking in [src/nullnull/dynamicRelease, src/dynamicRelease/nullnull, src/nullnull, src/dynamicRelease, src/nullnullDynamicRelease]
[ +2 ms] registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
[+1140 ms] [ +7 ms] executing: [/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[ +30 ms] [ +39 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] [ ] origin/beta
[ ] [ ] executing: [/flutter/] git rev-parse --abbrev-ref HEAD
[ ] [ +8 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] [ ] beta
[ ] [ ] executing: [/flutter/] git ls-remote --get-url origin
[ +11 ms] [ +8 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] [ ] https://github.com/flutter/flutter.git
[ ] [ ] executing: [/flutter/] git log -n 1 --pretty=format:%H
[ +19 ms] [ +17 ms] Exit code 0 from: git log -n 1 --pretty=format:%H
[ ] [ ] f37c235c32fc15babe6dc7b7bc2ee4387e5ecf92
[ ] [ ] executing: [/flutter/] git log -n 1 --pretty=format:%ar
[ +20 ms] [ +13 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar
[ ] [ ] 4 weeks ago
[ ] [ +1 ms] executing: [/flutter/] git describe --match v*.*.* --first-parent --long --tags
[ +17 ms] [ +27 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[ ] [ ] v0.9.4-0-gf37c235c3
[ +274 ms] [ +271 ms] Found plugin camera at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/camera-0.2.4/
[ +10 ms] [ +8 ms] Found plugin cloud_firestore at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.8.2+1/
[ +10 ms] [ +12 ms] Found plugin firebase_auth at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.6.2+1/
[ ] [ +3 ms] Found plugin firebase_core at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.2.5+1/
[ +10 ms] [ +3 ms] Found plugin firebase_ml_vision at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/firebase_ml_vision-0.2.0+1/
[ +23 ms] [ +26 ms] Found plugin google_sign_in at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/google_sign_in-3.2.2/
[ +32 ms] [ +29 ms] Found plugin path_provider at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/path_provider-0.4.1/
[ +66 ms] [ +68 ms] Found plugin camera at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/camera-0.2.4/
[ ] [ +1 ms] Found plugin cloud_firestore at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.8.2+1/
[ +9 ms] [ +6 ms] Found plugin firebase_auth at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.6.2+1/
[ ] [ +1 ms] Found plugin firebase_core at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.2.5+1/
[ ] [ +1 ms] Found plugin firebase_ml_vision at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/firebase_ml_vision-0.2.0+1/
[ +10 ms] [ +8 ms] Found plugin google_sign_in at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/google_sign_in-3.2.2/
[ +10 ms] [ +13 ms] Found plugin path_provider at /Volumes/Data/.pub-cache/hosted/pub.dartlang.org/path_provider-0.4.1/
[ +358 ms] [ +362 ms] Skipping kernel compilation. Fingerprint match.
[ +276 ms] [ +274 ms] Building bundle
[ ] [ +1 ms] Writing asset files to /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/flutter/debug/flutter_assets
[ +66 ms] [ +58 ms] Wrote /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/flutter/debug/flutter_assets
[ +11 ms] [ +13 ms] "flutter bundle" took 1,004ms.
[ +325 ms] Parsing json file: /Volumes/Data/FlutterProjects/scanner/android/app/google-services.json
[+1754 ms] D8: Program type already present: com.google.android.gms.internal.vision.zzai
[ +1 ms] 137 actionable tasks: 6 executed, 131 up-to-date
[ +7 ms] FAILURE: Build failed with an exception.
[ ] * What went wrong:
[ ] Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
[ +4 ms] > com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/3.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/4.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/5.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/6.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/7.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/8.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/9.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/10.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/11.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/12.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/13.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/14.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/15.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/16.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/17.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/18.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/19.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/20.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/21.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/22.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/23.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/24.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/25.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/26.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/27.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/28.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/29.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/30.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/31.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/32.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/33.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/34.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/35.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/36.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/37.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/38.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/39.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/40.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/41.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/42.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/43.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/44.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/45.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/46.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/47.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/48.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/49.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/50.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/51.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/52.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/53.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/54.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/55.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/56.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/57.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/58.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/59.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/60.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/61.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/62.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/63.jar, /Volumes/Data/FlutterProjects/scanner/build/app/intermediates/transforms/dexBuilder/debug/64.jar
[ +3 ms] * Try:
[ ] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
[ ] * Get more help at https://help.gradle.org
[ ] BUILD FAILED in 5s
[ +405 ms] Gradle task 'assembleDebug'... (completed)
[ +9 ms] "flutter run" took 13,202ms.
Gradle task assembleDebug failed with exit code 1
#0 throwToolExit (package:flutter_tools/src/base/common.dart:26:3)
#1 _buildGradleProjectV2 (package:flutter_tools/src/android/gradle.dart:393:5)
<asynchronous suspension>
#2 buildGradleProject (package:flutter_tools/src/android/gradle.dart:296:14)
<asynchronous suspension>
#3 buildApk (package:flutter_tools/src/android/apk.dart:41:10)
<asynchronous suspension>
#4 AndroidDevice.startApp (package:flutter_tools/src/android/android_device.dart:378:13)
<asynchronous suspension>
#5 FlutterDevice.runHot (package:flutter_tools/src/resident_runner.dart:287:54)
<asynchronous suspension>
#6 HotRunner.run (package:flutter_tools/src/run_hot.dart:262:39)
<asynchronous suspension>
#7 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:391:37)
<asynchronous suspension>
#8 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:372:18)
#9 _asyncThenWrapperHelper.<anonymous closure> (dart:async/runtime/libasync_patch.dart:77:64)
#10 _rootRunUnary (dart:async/zone.dart:1132:38)
#11 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#12 _FutureListener.handleValue (dart:async/future_impl.dart:129:18)
#13 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:642:45)
#14 Future._propagateToListeners (dart:async/future_impl.dart:671:32)
#15 Future._complete (dart:async/future_impl.dart:476:7)
#16 _SyncCompleter.complete (dart:async/future_impl.dart:51:12)
#17 _AsyncAwaitCompleter.complete (dart:async/runtime/libasync_patch.dart:28:18)
#18 _completeOnAsyncReturn (dart:async/runtime/libasync_patch.dart:295:13)
#19 RunCommand.usageValues (package:flutter_tools/src/commands/run.dart)
#20 _asyncThenWrapperHelper.<anonymous closure> (dart:async/runtime/libasync_patch.dart:77:64)
#21 _rootRunUnary (dart:async/zone.dart:1132:38)
#22 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#23 _FutureListener.handleValue (dart:async/future_impl.dart:129:18)
#24 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:642:45)
#25 Future._propagateToListeners (dart:async/future_impl.dart:671:32)
#26 Future._complete (dart:async/future_impl.dart:476:7)
#27 _SyncCompleter.complete (dart:async/future_impl.dart:51:12)
#28 _AsyncAwaitCompleter.complete.<anonymous closure> (dart:async/runtime/libasync_patch.dart:33:20)
#29 _rootRun (dart:async/zone.dart:1124:13)
#30 _CustomZone.run (dart:async/zone.dart:1021:19)
#31 _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:947:23)
#32 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#33 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#34 _runPendingImmediateCallback (dart:isolate/runtime/libisolate_patch.dart:115:13)
#35 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:172:5)
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Analyzing scanner...
No issues found! (ran in 19.9s)"><pre class="notranslate"><code class="notranslate">Analyzing scanner...
No issues found! (ran in 19.9s)
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v0.9.4, on Mac OS X 10.14 18A391, locale en)
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.0)
[✓] Android Studio (version 3.2)
[✓] VS Code (version 1.28.2)
[✓] Connected devices (1 available)
• No issues found!"><pre class="notranslate"><code class="notranslate">Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v0.9.4, on Mac OS X 10.14 18A391, locale en)
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.0)
[✓] Android Studio (version 3.2)
[✓] VS Code (version 1.28.2)
[✓] Connected devices (1 available)
• No issues found!
</code></pre></div> | <p dir="auto"><em>From <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="446343322" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/33079" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/33079/hovercard" href="https://github.com/flutter/flutter/issues/33079">#33079</a>:</em></p>
<p dir="auto">Based on guidance from the Skia team, the Metal backend is ready for integration into Flutter. This is a meta-bug listing the various tasks that need to be undertaken for the switch to be completed.</p>
<p dir="auto">The Skia Metal backend is currently only available on iOS versions 11.0 and above. It is unlikely that the minimum supported version will be lowered all the way down to 8.0 (the current minimum supported by Flutter). The recommended approach is to compile both the OpenGL and Metal backends in the iOS engine and use runtime checks to only use the Metal backend on versions 11.0 and above. OpenGL will still be used on older iOS versions till support for the same persists.</p>
<h3 dir="auto">Tasks</h3>
<p dir="auto">Tracked on <a href="https://github.com/orgs/flutter/projects/5">this project board</a> but the major ones are:</p>
<ul dir="auto">
<li>Add the <code class="notranslate">enable-metal</code> GN flag to existing builds of the iOS engine and re-baseline benchmarks that measure binary size. Binary sizes are expected to regress by around <a href="https://gist.github.com/chinmaygarde/f0b6cc4924c4c09ac9dfe5dcf6e5d083">220 Kbytes uncompressed</a>.</li>
<li>Enable the Metal backend on iOS versions 11.0 and above.</li>
<li>Add an <code class="notranslate">enable-metal</code> shell flag that allows overriding the rendering backend to use without needing version checks. Duplicate all existing benchmarks to run the same with the Metal backend in addition to the OpenGL backend.</li>
<li>Ensure plugins that that provide pixel buffers to to the engine for inline composition have the <a href="https://developer.apple.com/documentation/metal/mixing_metal_and_opengl_rendering_in_a_view" rel="nofollow">appropriate compatibility flags set</a>.</li>
<li>Ensure platform views are wired up.</li>
</ul>
<p dir="auto">References:</p>
<ul dir="auto">
<li>Notice of OpenGL deprecation on iOS: <a href="https://developer.apple.com/ios/whats-new/" rel="nofollow">https://developer.apple.com/ios/whats-new/</a></li>
<li>Notice of OpenGL deprecation on Mac: <a href="https://developer.apple.com/macos/whats-new/" rel="nofollow">https://developer.apple.com/macos/whats-new/</a></li>
<li>Related Flutter issues: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="443052691" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/32569" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/32569/hovercard" href="https://github.com/flutter/flutter/issues/32569">#32569</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="329550925" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/18208" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/18208/hovercard" href="https://github.com/flutter/flutter/issues/18208">#18208</a></li>
</ul>
<hr>
<p dir="auto">This is really a Skia bug, but tracking it here since we've gotten a flood of questions about this after Apple's announcement this week of deprecating OpenGL.</p>
<p dir="auto">My understanding is Skia has an experimental Metal backend, but it would take some work to bring it to production ready.</p>
<p dir="auto">Skia also already has a Vulkan backend which Flutter uses on Fuchsia, and has historically used on some Android phones (and could use again if there was demand -- it was recently disabled due to lack of demand).</p>
<p dir="auto">Another advantage of moving to Metal sooner rather than later is that I'm told that Apple's GL drivers appear to be less maintained than they used to be, and Flutter/Skia have seen a resulting up-tick in Apple-specific GL bugs.</p> | 0 |
<h1 dir="auto">Checklist</h1>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22Category%3A+Documentation%22+">issues list</a><br>
for similar or identical bug reports.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22Category%3A+Documentation%22">pull requests list</a><br>
for existing proposed fixes.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br>
to find out if the bug was already fixed in the master branch.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues in this issue<br>
(If there are none, check this box anyway).</li>
</ul>
<h2 dir="auto">Related Issues and Possible Duplicates</h2>
<h4 dir="auto">Related Issues</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h4 dir="auto">Possible Duplicates</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h1 dir="auto">Description</h1>
<p dir="auto">I have a fairly basic setup of celery running on <code class="notranslate">4.4.6</code> most of the task look like</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@app.task(bind=True)
def get_some_data_from_a_server_and_update_records(self, ...):
# Make a request using requests via a Session that is maintained by the instance of the SDK
my_sdk_client = Client()
response = my_sdk_client.session.get(...)
# Update my database
"><pre class="notranslate"><span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">task</span>(<span class="pl-s1">bind</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)</span>
<span class="pl-k">def</span> <span class="pl-en">get_some_data_from_a_server_and_update_records</span>(<span class="pl-s1">self</span>, ...):
<span class="pl-c"># Make a request using requests via a Session that is maintained by the instance of the SDK</span>
<span class="pl-s1">my_sdk_client</span> <span class="pl-c1">=</span> <span class="pl-v">Client</span>()
<span class="pl-s1">response</span> <span class="pl-c1">=</span> <span class="pl-s1">my_sdk_client</span>.<span class="pl-s1">session</span>.<span class="pl-en">get</span>(...)
<span class="pl-c"># Update my database</span></pre></div>
<p dir="auto">Django celery settings</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# Celery
CELERY_BROKER_URL = REDIS_URL
CELERY_RESULT_BACKEND = REDIS_URL
CELERY_TASK_QUEUES = (
Queue('critical', Exchange('critical'), routing_key='critical'),
Queue('high', Exchange('high'), routing_key='high'),
Queue('medium', Exchange('medium'), routing_key='medium'),
Queue('low', Exchange('low'), routing_key='low'),
)
CELERY_TASK_DEFAULT_QUEUE = 'medium'
CELERY_TASK_IGNORE_RESULT = True
CELERY_SERIALIZER = 'json'
CELERY_RESULT_SERIALIZER = 'json'
CELERY_WORKER_HIJACK_ROOT_LOGGER = False
CELERY_WORKER_POOL = 'threads'"><pre class="notranslate"><span class="pl-c"># Celery</span>
<span class="pl-v">CELERY_BROKER_URL</span> <span class="pl-c1">=</span> <span class="pl-v">REDIS_URL</span>
<span class="pl-v">CELERY_RESULT_BACKEND</span> <span class="pl-c1">=</span> <span class="pl-v">REDIS_URL</span>
<span class="pl-v">CELERY_TASK_QUEUES</span> <span class="pl-c1">=</span> (
<span class="pl-v">Queue</span>(<span class="pl-s">'critical'</span>, <span class="pl-v">Exchange</span>(<span class="pl-s">'critical'</span>), <span class="pl-s1">routing_key</span><span class="pl-c1">=</span><span class="pl-s">'critical'</span>),
<span class="pl-v">Queue</span>(<span class="pl-s">'high'</span>, <span class="pl-v">Exchange</span>(<span class="pl-s">'high'</span>), <span class="pl-s1">routing_key</span><span class="pl-c1">=</span><span class="pl-s">'high'</span>),
<span class="pl-v">Queue</span>(<span class="pl-s">'medium'</span>, <span class="pl-v">Exchange</span>(<span class="pl-s">'medium'</span>), <span class="pl-s1">routing_key</span><span class="pl-c1">=</span><span class="pl-s">'medium'</span>),
<span class="pl-v">Queue</span>(<span class="pl-s">'low'</span>, <span class="pl-v">Exchange</span>(<span class="pl-s">'low'</span>), <span class="pl-s1">routing_key</span><span class="pl-c1">=</span><span class="pl-s">'low'</span>),
)
<span class="pl-v">CELERY_TASK_DEFAULT_QUEUE</span> <span class="pl-c1">=</span> <span class="pl-s">'medium'</span>
<span class="pl-v">CELERY_TASK_IGNORE_RESULT</span> <span class="pl-c1">=</span> <span class="pl-c1">True</span>
<span class="pl-v">CELERY_SERIALIZER</span> <span class="pl-c1">=</span> <span class="pl-s">'json'</span>
<span class="pl-v">CELERY_RESULT_SERIALIZER</span> <span class="pl-c1">=</span> <span class="pl-s">'json'</span>
<span class="pl-v">CELERY_WORKER_HIJACK_ROOT_LOGGER</span> <span class="pl-c1">=</span> <span class="pl-c1">False</span>
<span class="pl-v">CELERY_WORKER_POOL</span> <span class="pl-c1">=</span> <span class="pl-s">'threads'</span></pre></div>
<p dir="auto">Which runs on GKE using multiple pods i.e 8 - 10 pods with each worker reading from a dedicated queue</p>
<p dir="auto">Unfortunately this results in a number of <code class="notranslate">ConnectionErrors</code> as shown below</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="File /venv/lib/python3.6/site-packages/requests/sessions.py line 578 in post
return self.request('POST', url, data=data, json=json, **kwargs)
File /venv/lib/python3.6/site-packages/requests/sessions.py line 530 in request
resp = self.send(prep, **send_kwargs)
File /venv/lib/python3.6/site-packages/requests/sessions.py line 643 in send
r = adapter.send(request, **kwargs)
File /venv/lib/python3.6/site-packages/requests/adapters.py line 498 in send args locals
raise ConnectionError(err, request=request)
ConnectionError: ('Connection aborted.', OSError(0, 'Error'))
ProtocolError: ('Connection aborted.', OSError(0, 'Error')) (Most recent call last)"><pre class="notranslate"><span class="pl-v">File</span> <span class="pl-c1">/</span><span class="pl-s1">venv</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">6</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">requests</span><span class="pl-c1">/</span><span class="pl-s1">sessions</span>.<span class="pl-s1">py</span> <span class="pl-s1">line</span> <span class="pl-c1">578</span> <span class="pl-c1">in</span> <span class="pl-s1">post</span>
<span class="pl-k">return</span> <span class="pl-s1">self</span>.<span class="pl-en">request</span>(<span class="pl-s">'POST'</span>, <span class="pl-s1">url</span>, <span class="pl-s1">data</span><span class="pl-c1">=</span><span class="pl-s1">data</span>, <span class="pl-s1">json</span><span class="pl-c1">=</span><span class="pl-s1">json</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>)
<span class="pl-v">File</span> <span class="pl-c1">/</span><span class="pl-s1">venv</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">6</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">requests</span><span class="pl-c1">/</span><span class="pl-s1">sessions</span>.<span class="pl-s1">py</span> <span class="pl-s1">line</span> <span class="pl-c1">530</span> <span class="pl-c1">in</span> <span class="pl-s1">request</span>
<span class="pl-s1">resp</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-en">send</span>(<span class="pl-s1">prep</span>, <span class="pl-c1">**</span><span class="pl-s1">send_kwargs</span>)
<span class="pl-v">File</span> <span class="pl-c1">/</span><span class="pl-s1">venv</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">6</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">requests</span><span class="pl-c1">/</span><span class="pl-s1">sessions</span>.<span class="pl-s1">py</span> <span class="pl-s1">line</span> <span class="pl-c1">643</span> <span class="pl-c1">in</span> <span class="pl-s1">send</span>
<span class="pl-s1">r</span> <span class="pl-c1">=</span> <span class="pl-s1">adapter</span>.<span class="pl-en">send</span>(<span class="pl-s1">request</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>)
<span class="pl-v">File</span> <span class="pl-c1">/</span><span class="pl-s1">venv</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">6</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">requests</span><span class="pl-c1">/</span><span class="pl-s1">adapters</span>.<span class="pl-s1">py</span> <span class="pl-s1">line</span> <span class="pl-c1">498</span> <span class="pl-c1">in</span> <span class="pl-s1">send</span> <span class="pl-s1">args</span> <span class="pl-s1">locals</span>
<span class="pl-k">raise</span> <span class="pl-v">ConnectionError</span>(<span class="pl-s1">err</span>, <span class="pl-s1">request</span><span class="pl-c1">=</span><span class="pl-s1">request</span>)
<span class="pl-v">ConnectionError</span>: (<span class="pl-s">'Connection aborted.'</span>, <span class="pl-v">OSError</span>(<span class="pl-c1">0</span>, <span class="pl-s">'Error'</span>))
<span class="pl-v">ProtocolError</span>: (<span class="pl-s">'Connection aborted.'</span>, <span class="pl-v">OSError</span>(<span class="pl-c1">0</span>, <span class="pl-s">'Error'</span>)) (<span class="pl-v">Most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>)</pre></div>
<p dir="auto">The current docs don't highlight this which seems like a common use case and is currently a pain point.</p>
<p dir="auto">Based: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="262203652" data-permission-text="Title is private" data-url="https://github.com/psf/requests/issues/4323" data-hovercard-type="issue" data-hovercard-url="/psf/requests/issues/4323/hovercard" href="https://github.com/psf/requests/issues/4323">psf/requests#4323</a></p>
<p dir="auto">Most debate around this has been about the lack of multiprocess safety using requests or ensuring you use a single Session per thread/process which doesn't seem feasible when you interact with more than one endpoint or initialize multiple Sessions in different tasks.</p>
<p dir="auto">We switched our execution pool to use <code class="notranslate">threads</code> but this doesn't solve the issue.</p>
<h1 dir="auto">Suggestions</h1>
<ul dir="auto">
<li>Expect a better setup documentation that clearly states how to configure celery on GKE.</li>
<li>How to work with celery and <code class="notranslate">requests</code> or <code class="notranslate">urllib3</code></li>
<li>A Recommended execution pool based on how celery is intended to be used. i.e <code class="notranslate">prefork</code> vs <code class="notranslate">threads</code> or <code class="notranslate">gevent</code> / <code class="notranslate">eventlet</code>.</li>
</ul>
<h2 dir="auto">Package Versions:</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="celery[redis]==4.4.6 # via coherentpath (setup.py), django-celery-beat, flower
certifi==2019.11.28 # via requests, urllib3
cffi==1.13.2 # via bcrypt, cryptography, pynacl
chardet==3.0.4 # via aiohttp, requests
cryptography==3.3.2 # via django-cryptography, paramiko, pyopenssl, requests, urllib3
django-celery-beat==2.0.0 # via coherentpath (setup.py)
django-timezone-field==4.1.1 # via coherentpath (setup.py), django-celery-beat
future==0.18.2 # via celery, django-json-widget, python-jose
humanize==0.5.1 # via flower
idna-ssl==1.1.0 # via aiohttp
idna==2.6 # via idna-ssl, jsonschema, requests, urllib3, yarl
importlib-metadata==1.6.0 # via kombu, scout-apm
kombu==4.6.11 # via celery
oauthlib==3.1.0 # via django-oauth-toolkit, requests-oauthlib
psycopg2==2.7.3.1 # via coherentpath (setup.py)
pycparser==2.19 # via cffi
pyopenssl==19.1.0 # via requests, urllib3
pyparsing==2.4.7 # via httplib2, packaging
python-crontab==2.5.1 # via django-celery-beat
python-dateutil==2.8.1 # via jsonmodels, pandas, python-crontab
redis==3.5.3 # via celery
requests-toolbelt==0.9.1 # via zeep
requests[security]==2.24.0
urllib3[secure]==1.25.11 # via pdpyras, requests, scout-apm, selenium
vine==1.3.0 # via amqp, celery"><pre class="notranslate"><code class="notranslate">celery[redis]==4.4.6 # via coherentpath (setup.py), django-celery-beat, flower
certifi==2019.11.28 # via requests, urllib3
cffi==1.13.2 # via bcrypt, cryptography, pynacl
chardet==3.0.4 # via aiohttp, requests
cryptography==3.3.2 # via django-cryptography, paramiko, pyopenssl, requests, urllib3
django-celery-beat==2.0.0 # via coherentpath (setup.py)
django-timezone-field==4.1.1 # via coherentpath (setup.py), django-celery-beat
future==0.18.2 # via celery, django-json-widget, python-jose
humanize==0.5.1 # via flower
idna-ssl==1.1.0 # via aiohttp
idna==2.6 # via idna-ssl, jsonschema, requests, urllib3, yarl
importlib-metadata==1.6.0 # via kombu, scout-apm
kombu==4.6.11 # via celery
oauthlib==3.1.0 # via django-oauth-toolkit, requests-oauthlib
psycopg2==2.7.3.1 # via coherentpath (setup.py)
pycparser==2.19 # via cffi
pyopenssl==19.1.0 # via requests, urllib3
pyparsing==2.4.7 # via httplib2, packaging
python-crontab==2.5.1 # via django-celery-beat
python-dateutil==2.8.1 # via jsonmodels, pandas, python-crontab
redis==3.5.3 # via celery
requests-toolbelt==0.9.1 # via zeep
requests[security]==2.24.0
urllib3[secure]==1.25.11 # via pdpyras, requests, scout-apm, selenium
vine==1.3.0 # via amqp, celery
</code></pre></div> | <h1 dir="auto">Checklist</h1>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> This has already been asked to the <a href="https://groups.google.com/forum/#!forum/celery-users" rel="nofollow">discussion group</a> first.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the relevant section in the<br>
<a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br>
on reporting bugs.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br>
for similar or identical bug reports.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br>
for existing proposed fixes.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br>
to find out if the bug was already fixed in the master branch.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues<br>
in this issue (If there are none, check this box anyway).</li>
</ul>
<h2 dir="auto">Mandatory Debugging Information</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br>
(if you are not able to do this, then at least specify the Celery<br>
version affected).</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included all the versions of all the external dependencies required<br>
to reproduce this bug.</li>
</ul>
<h2 dir="auto">Optional Debugging Information</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue on more than one Python version<br>
and/or implementation.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue on more than one message broker and/or<br>
result backend.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue on more than one version of the message<br>
broker and/or result backend.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue on more than one operating system.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue on more than one workers pool.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue with autoscaling, retries,<br>
ETA/Countdown & rate limits disabled.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue after downgrading<br>
and/or upgrading Celery and its dependencies.</li>
</ul>
<h2 dir="auto">Related Issues and Possible Duplicates</h2>
<h4 dir="auto">Related Issues</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h4 dir="auto">Possible Duplicates</h4>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="267628429" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/4337" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/4337/hovercard" href="https://github.com/celery/celery/issues/4337">#4337</a> -- closed duplicate, partially fixed with <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="281791012" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/4448" data-hovercard-type="pull_request" data-hovercard-url="/celery/celery/pull/4448/hovercard" href="https://github.com/celery/celery/pull/4448">#4448</a> for manual routing (explicitly passing queue name in signature parameters).</p>
<h2 dir="auto">Environment & Settings</h2>
<p dir="auto"><strong>Celery version</strong>:</p>
<details>
<summary><b><code class="notranslate">celery report</code> Output:</b></summary>
<p dir="auto">
</p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="celery -A myapp report
software -> celery:5.1.2 (sun-harmonics) kombu:5.1.0 py:3.9.5
billiard:3.6.4.0 py-amqp:5.0.6
platform -> system:Darwin arch:64bit
kernel version:20.6.0 imp:CPython
loader -> celery.loaders.app.AppLoader
settings -> transport:amqp results:db+postgresql://postgres:**@postgres:5432/postgres
broker_url: 'amqp://guest:********@localhost:5672//'
result_backend: 'db+postgresql://postgres:********@postgres:5432/postgres'
task_routes:
({'*': {'queue': 'low_priority_queue'},
'myapp.add_list': {'queue': 'high_priority_queue'}},)
deprecated_settings: None"><pre class="notranslate"><code class="notranslate">celery -A myapp report
software -> celery:5.1.2 (sun-harmonics) kombu:5.1.0 py:3.9.5
billiard:3.6.4.0 py-amqp:5.0.6
platform -> system:Darwin arch:64bit
kernel version:20.6.0 imp:CPython
loader -> celery.loaders.app.AppLoader
settings -> transport:amqp results:db+postgresql://postgres:**@postgres:5432/postgres
broker_url: 'amqp://guest:********@localhost:5672//'
result_backend: 'db+postgresql://postgres:********@postgres:5432/postgres'
task_routes:
({'*': {'queue': 'low_priority_queue'},
'myapp.add_list': {'queue': 'high_priority_queue'}},)
deprecated_settings: None
</code></pre></div>
<p dir="auto"></p>
</details>
<h1 dir="auto">Steps to Reproduce</h1>
<h2 dir="auto">Required Dependencies</h2>
<ul dir="auto">
<li><strong>Minimal Python Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Celery Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Kombu Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Broker Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Result Backend Version</strong>: N/A or Unknown</li>
<li><strong>Minimal OS and/or Kernel Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Broker Client Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Result Backend Client Version</strong>: N/A or Unknown</li>
</ul>
<h3 dir="auto">Python Packages</h3>
<details>
<summary><b><code class="notranslate">pip freeze</code> Output:</b></summary>
<p dir="auto">
</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>
</details>
<h3 dir="auto">Other Dependencies</h3>
<details>
<p dir="auto">
N/A
</p>
</details>
<h2 dir="auto">Minimally Reproducible Test Case</h2>
<details>
<p dir="auto">
</p><p dir="auto"><code class="notranslate">celeryconfig.py</code></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="broker_url = "amqp://guest@localhost//"
result_backend = 'db+postgresql://{user}:{password}@{host}:{port}/{db}'.format(
user='postgres',
password='secretsecret',
host='postgres',
db='postgres',
port=5432,
)
task_routes = ({
"myapp.add_list": {"queue": "high_priority_queue"},
"*": {"queue": "low_priority_queue"},
},)
"><pre class="notranslate"><span class="pl-s1">broker_url</span> <span class="pl-c1">=</span> <span class="pl-s">"amqp://guest@localhost//"</span>
<span class="pl-s1">result_backend</span> <span class="pl-c1">=</span> <span class="pl-s">'db+postgresql://{user}:{password}@{host}:{port}/{db}'</span>.<span class="pl-en">format</span>(
<span class="pl-s1">user</span><span class="pl-c1">=</span><span class="pl-s">'postgres'</span>,
<span class="pl-s1">password</span><span class="pl-c1">=</span><span class="pl-s">'secretsecret'</span>,
<span class="pl-s1">host</span><span class="pl-c1">=</span><span class="pl-s">'postgres'</span>,
<span class="pl-s1">db</span><span class="pl-c1">=</span><span class="pl-s">'postgres'</span>,
<span class="pl-s1">port</span><span class="pl-c1">=</span><span class="pl-c1">5432</span>,
)
<span class="pl-s1">task_routes</span> <span class="pl-c1">=</span> ({
<span class="pl-s">"myapp.add_list"</span>: {<span class="pl-s">"queue"</span>: <span class="pl-s">"high_priority_queue"</span>},
<span class="pl-s">"*"</span>: {<span class="pl-s">"queue"</span>: <span class="pl-s">"low_priority_queue"</span>},
},)</pre></div>
<p dir="auto"><code class="notranslate">myapp.py</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from celery import Celery
app = Celery('myapp')
app.config_from_object("celeryconfig")
@app.task
def add_list(args):
return sum(args)
if __name__ == '__main__':
app.start()"><pre class="notranslate"><code class="notranslate">from celery import Celery
app = Celery('myapp')
app.config_from_object("celeryconfig")
@app.task
def add_list(args):
return sum(args)
if __name__ == '__main__':
app.start()
</code></pre></div>
<p dir="auto"><code class="notranslate">main.py</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from myapp import add_list, app
from celery.canvas import chord
app.config_from_object("celeryconfig")
promise = chord([add_list.s([2, 3]), add_list.s([4, 5])])(add_list.s())
print(promise.get())"><pre class="notranslate"><code class="notranslate">from myapp import add_list, app
from celery.canvas import chord
app.config_from_object("celeryconfig")
promise = chord([add_list.s([2, 3]), add_list.s([4, 5])])(add_list.s())
print(promise.get())
</code></pre></div>
<p dir="auto"></p>
</details>
<p dir="auto"><strong>Steps to reproduce</strong>:</p>
<ol dir="auto">
<li>Execute <code class="notranslate">docker run -d -p 5672:5672 rabbitmq</code> to start broker</li>
<li>Execute <code class="notranslate">docker run -d -p 5432:5432 postgres:11.4</code> for backend.</li>
<li>Run first worker with <code class="notranslate">celery -A myapp worker -l debug -Q high_priority_queue</code> in first terminal window</li>
<li>Run second worker with <code class="notranslate">celery -A myapp worker -l debug -Q low_priority_queue</code> in second terminal window</li>
<li>Run python3 -m main in third terminal window</li>
</ol>
<h1 dir="auto">Expected Behavior</h1>
<p dir="auto">All the tasks are routed to <code class="notranslate">high_priority_queue</code> and executed by the first worker.</p>
<h1 dir="auto">Actual Behavior</h1>
<p dir="auto"><code class="notranslate">celery.chord_unlock</code> task is routed to the default <code class="notranslate">low_priority_queue</code> and executed by the second worker.</p> | 0 |
<p dir="auto">Hi Guys,<br>
Not sure if anyone having this issue. I tried to open a jquery-ui.min.js file in the editor. It loaded and hang for like 30++ seconds before i can start editing the file.</p> | <p dir="auto">May be a known issue, but files with large embedded images such as github's public/enterprise/maintenance.html will often cause Atom to freeze (MacVim actually struggles as well).</p>
<p dir="auto">Seems some of them (github's public/maintenance.html for instance) work fine when in soft wrap mode, or until you move your cursor to the long line when out of soft wrap.</p> | 1 |
<h1 dir="auto">Summary of the new feature/enhancement</h1>
<p dir="auto">The shortcut guide is missing Win+. (i.e. Win+period) that displays the emoji selector.</p>
<h1 dir="auto">Proposed technical implementation details (optional)</h1>
<p dir="auto">Include the Win+. shortcut in the shortcut guide.</p> | <p dir="auto">Add WIN+ . or ; for emoji keyboard to shortcut guide - a surprising number of people would use that if knew it was easier to get at</p> | 1 |
<p dir="auto">Set src to <code class="notranslate">http://github.com</code>,<br>
The page redirects to https (<code class="notranslate">https://github.com</code>)<br>
but the result of <code class="notranslate">webview.getUrl()</code> remains <code class="notranslate">http://github.com</code>.</p> | <p dir="auto">WebView is not updating its src url on redirect as I would expect.<br>
What I expect could be wrong and this could be intentional</p>
<p dir="auto">Below is a contrived example, consider a webview showing a very simple local server</p>
<p dir="auto">'<a href="http://localhost:8080/a" rel="nofollow">http://localhost:8080/a</a>' has a link to '<a href="http://localhost:8080/b" rel="nofollow">http://localhost:8080/b</a>'<br>
'<a href="http://localhost:8080/b" rel="nofollow">http://localhost:8080/b</a>' redirects to ''<a href="http://localhost:8080/c" rel="nofollow">http://localhost:8080/c</a>'<br>
'<a href="http://localhost:8080/c" rel="nofollow">http://localhost:8080/c</a>' is rendered<br>
but getUrl() returns '<a href="http://localhost:8080/b" rel="nofollow">http://localhost:8080/b</a>'</p>
<p dir="auto">I have a repo with a reproducible example if this is unclear</p> | 1 |
<p dir="auto">Chrome for Mac. Taken from the docs. Notice the left popover is hidden.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/0b300d34cfafb1bab0247ece22b1071bda8e6fd850e81d10617c13269e31157b/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3733313734332f3936333631322f35373031313830342d303530362d313165332d383161372d3661386666356661306239352e706e67"><img src="https://camo.githubusercontent.com/0b300d34cfafb1bab0247ece22b1071bda8e6fd850e81d10617c13269e31157b/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3733313734332f3936333631322f35373031313830342d303530362d313165332d383161372d3661386666356661306239352e706e67" alt="screen shot 2013-08-14 at 18 24 05" data-canonical-src="https://f.cloud.github.com/assets/731743/963612/57011804-0506-11e3-81a7-6a8ff5fa0b95.png" style="max-width: 100%;"></a></p> | <p dir="auto">The popover doesn't resize/move when part of it falls outside the viewport.<br>
I think this should happen.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/a88d6f886f6cc3fc0a9f1e1f9137bd53b42a3f8cb81e9954fa148781b3e67b6e/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3734343235392f3330393633302f39613937663438652d393730362d313165322d383231352d3836346432373830643634332e706e67"><img src="https://camo.githubusercontent.com/a88d6f886f6cc3fc0a9f1e1f9137bd53b42a3f8cb81e9954fa148781b3e67b6e/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3734343235392f3330393633302f39613937663438652d393730362d313165322d383231352d3836346432373830643634332e706e67" alt="popover-1" data-canonical-src="https://f.cloud.github.com/assets/744259/309630/9a97f48e-9706-11e2-8215-864d2780d643.png" style="max-width: 100%;"></a></p>
<p dir="auto">This especially is the case when there is a lot of text in the popover...</p>
<p dir="auto">Can this be fixed?</p> | 1 |
<p dir="auto">When writing to TextFields in my Flutter application, I am seeing serious drops in performance while typing. The frame rate goes from 60 -> 25 fps (and red bars).</p>
<p dir="auto">Oddly enough, if using a single-line textfield and typing "outside" the screen, the frame rate goes back up to ~60 (with no red bars in perf monitor). (Could also be related to number of characters, but that seems less likely given my observations).</p>
<p dir="auto">From what I can see, the surrounding widgets does not seem to have any substantial impact, i.e. it happens on both simpler and more complex screens.</p>
<p dir="auto">The sluggish performance is even more obvious when using the label decorations that comes with material TextFields.<br>
However, I am seeing the same on both Cupertino and Material textfields. I have also tried with very "clean" textfields, i.e. without any text controllers or similar attached to it.</p>
<p dir="auto">Is this expected? Or could there be any issues with the TextField widget?<br>
(I do not see any behavior like this in native or even web applications I've built.)</p>
<h2 dir="auto">Steps to Reproduce</h2>
<ol dir="auto">
<li>Create a <code class="notranslate">StatefulWidget</code> and add a <code class="notranslate">TextField</code> to it. In my case, the hierarchy is ~3-4 levels deep before appending the <code class="notranslate">TextField</code>.</li>
<li>Start typing in the <code class="notranslate">TextField</code> (I've tested both on iOS 8 device and on iPhone 7 simulator).</li>
<li>To see differences in performance; make the textfield single line with a fixed width.</li>
</ol>
<h2 dir="auto">Logs</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Launching lib/main.dart on iPhone 7 in debug mode...
Starting Xcode build...
Xcode build done. 10,2s
https://firebase.google.com/docs/cloud-messaging/ios/client#method_swizzling_in_firebase_messaging
to ensure proper integration.
To hide this warning and ensure your app does not break, you need to add the following code to your app before calling any other Cloud Firestore methods:
let db = Firestore.firestore()
let settings = db.settings
settings.areTimestampsInSnapshotsEnabled = true
db.settings = settings
With this change, timestamps stored in Cloud Firestore will be read back as Firebase Timestamp objects instead of as system Date objects. So you will also need to update code expecting a Date to instead expect a Timestamp. For example:
// old:
let date: Date = documentSnapshot.get("created_at") as! Date
// new:
let timestamp: Timestamp = documentSnapshot.get("created_at") as! Timestamp
let date: Date = timestamp.dateValue()
Please audit all existing usages of Date when you enable the new behavior. In a future release, the behavior will be changed to the new behavior, so if you do<…>
Syncing files to device iPhone 7...
[VERBOSE-2:FlutterObservatoryPublisher.mm(145)] FlutterObservatoryPublisher is ready!
"><pre class="notranslate"><code class="notranslate">Launching lib/main.dart on iPhone 7 in debug mode...
Starting Xcode build...
Xcode build done. 10,2s
https://firebase.google.com/docs/cloud-messaging/ios/client#method_swizzling_in_firebase_messaging
to ensure proper integration.
To hide this warning and ensure your app does not break, you need to add the following code to your app before calling any other Cloud Firestore methods:
let db = Firestore.firestore()
let settings = db.settings
settings.areTimestampsInSnapshotsEnabled = true
db.settings = settings
With this change, timestamps stored in Cloud Firestore will be read back as Firebase Timestamp objects instead of as system Date objects. So you will also need to update code expecting a Date to instead expect a Timestamp. For example:
// old:
let date: Date = documentSnapshot.get("created_at") as! Date
// new:
let timestamp: Timestamp = documentSnapshot.get("created_at") as! Timestamp
let date: Date = timestamp.dateValue()
Please audit all existing usages of Date when you enable the new behavior. In a future release, the behavior will be changed to the new behavior, so if you do<…>
Syncing files to device iPhone 7...
[VERBOSE-2:FlutterObservatoryPublisher.mm(145)] FlutterObservatoryPublisher is ready!
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Analyzing my_app...
info • Unused import: 'package:cloud_firestore/cloud_firestore.dart' • lib/screens/account.dart:3:8 • unused_import
info • Unused import: 'package:my_app/screens/widgets/credits.dart' • lib/screens/create_thread.dart:4:8 • unused_import
info • This function has a return type of 'Future<String>', but doesn't end with a return statement • lib/screens/login.dart:166:3 • missing_return
info • This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) • lib/screens/thread.dart:17:7 • must_be_immutable
info • Avoid using braces in interpolation when not needed • lib/screens/thread.dart:178:32 • unnecessary_brace_in_string_interps
"><pre class="notranslate"><code class="notranslate">Analyzing my_app...
info • Unused import: 'package:cloud_firestore/cloud_firestore.dart' • lib/screens/account.dart:3:8 • unused_import
info • Unused import: 'package:my_app/screens/widgets/credits.dart' • lib/screens/create_thread.dart:4:8 • unused_import
info • This function has a return type of 'Future<String>', but doesn't end with a return statement • lib/screens/login.dart:166:3 • missing_return
info • This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) • lib/screens/thread.dart:17:7 • must_be_immutable
info • Avoid using braces in interpolation when not needed • lib/screens/thread.dart:178:32 • unnecessary_brace_in_string_interps
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (Channel dev, v0.11.3, on Mac OS X 10.14.1 18B75, locale sv-SE)
• Flutter version 0.11.3 at /Users/my_user/Dev/Libs/flutter
• Framework revision 72bf075e8d (9 days ago), 2018-11-09 20:36:17 -0800
• Engine revision 5646e86a6f
• Dart version 2.1.0 (build 2.1.0-dev.9.3 9c07fb64c4)
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.2)
• Android SDK at /Users/my_user/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.1, Build version 10B61
• ios-deploy 2.0.0
• CocoaPods version 1.5.3
[✓] Android Studio (version 3.0)
• Android Studio at /Applications/Android Studio.app/Contents
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)
[✓] IntelliJ IDEA Ultimate Edition (version 2018.1.6)
• IntelliJ at /Applications/IntelliJ IDEA.app
• Flutter plugin version 28.0.2
• Dart plugin version 181.5616
[✓] Connected device (2 available)
• Iphone S • <obfuscated> • ios • iOS 12.1
• iPhone 7 • <obfuscated> • ios • iOS 12.1 (simulator)
• No issues found!"><pre class="notranslate"><code class="notranslate">[✓] Flutter (Channel dev, v0.11.3, on Mac OS X 10.14.1 18B75, locale sv-SE)
• Flutter version 0.11.3 at /Users/my_user/Dev/Libs/flutter
• Framework revision 72bf075e8d (9 days ago), 2018-11-09 20:36:17 -0800
• Engine revision 5646e86a6f
• Dart version 2.1.0 (build 2.1.0-dev.9.3 9c07fb64c4)
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.2)
• Android SDK at /Users/my_user/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.1, Build version 10B61
• ios-deploy 2.0.0
• CocoaPods version 1.5.3
[✓] Android Studio (version 3.0)
• Android Studio at /Applications/Android Studio.app/Contents
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)
[✓] IntelliJ IDEA Ultimate Edition (version 2018.1.6)
• IntelliJ at /Applications/IntelliJ IDEA.app
• Flutter plugin version 28.0.2
• Dart plugin version 181.5616
[✓] Connected device (2 available)
• Iphone S • <obfuscated> • ios • iOS 12.1
• iPhone 7 • <obfuscated> • ios • iOS 12.1 (simulator)
• No issues found!
</code></pre></div> | <p dir="auto">I am working on a production app which I have convinced the company I currently work in to allow me to port it to Flutter and it was going all great till we did the first test only to notice that all images coming from the flutter app front-facing camera are rotated 270 degrees no matter the camera orientation.<br>
A few to note is that by default the app is locked to portrait mode, there is no landscape mode. Also the front-facing camera is very key part of the apps process.</p>
<p dir="auto">I am using the camera 0.2.1 in the app and whenever I take a picture with the front-facing camera and send to the server the image is rotated 270 degrees. even when I intentionally or manually give the jpeg rotation a const orientation.</p>
<p dir="auto">I will very much appreciate all the help to get this resolved so the app can go live thanks</p>
<h2 dir="auto">Logs</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="flutter doctor -v
[√] Flutter (Channel dev, v0.5.2, on Microsoft Windows [Version 10.0.17134.48], locale en-US)
• Flutter version 0.5.2 at M:\flutter
• Framework revision 0a26ac0970 (5 days ago), 2018-06-06 15:28:20 -0700
• Engine revision a83b37d35a
• Dart version 2.0.0-dev.60.0.flutter-a5e41681e5
[√] 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-28, 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-1024-b02)
• All Android licenses accepted.
[√] Android Studio (version 3.1)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 25.0.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
[√] VS Code, 64-bit edition (version 1.24.0)
• VS Code at C:\Program Files\Microsoft VS Code
• Flutter extension version 2.13.2
[√] Connected devices (1 available)
• SM T555 • 7779e875 • android-arm • Android 7.1.1 (API 25)
• No issues found!"><pre class="notranslate"><code class="notranslate">flutter doctor -v
[√] Flutter (Channel dev, v0.5.2, on Microsoft Windows [Version 10.0.17134.48], locale en-US)
• Flutter version 0.5.2 at M:\flutter
• Framework revision 0a26ac0970 (5 days ago), 2018-06-06 15:28:20 -0700
• Engine revision a83b37d35a
• Dart version 2.0.0-dev.60.0.flutter-a5e41681e5
[√] 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-28, 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-1024-b02)
• All Android licenses accepted.
[√] Android Studio (version 3.1)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 25.0.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
[√] VS Code, 64-bit edition (version 1.24.0)
• VS Code at C:\Program Files\Microsoft VS Code
• Flutter extension version 2.13.2
[√] Connected devices (1 available)
• SM T555 • 7779e875 • android-arm • Android 7.1.1 (API 25)
• No issues found!
</code></pre></div> | 0 |
<p dir="auto">Hi,</p>
<p dir="auto">Is it possible to add i18n routing feature directly in symfony stack framework ?</p>
<p dir="auto">i18n routing example :<br>
3 i18n routes for the same controller action :</p>
<ul dir="auto">
<li>/fr/contact/</li>
<li>/en/contact/</li>
<li>/de/kontakt/</li>
</ul>
<p dir="auto">As Symfony have Router and Translater component, It would be logic that these 2 components works together to provide i18n routing capability.<br>
A few extra bundles provide this feature (like JMSI18nRoutingBundle), but in my opinion this need is very common and could be candidate to the symfony core.</p>
<p dir="auto">What do you think about that ?</p>
<p dir="auto">Regards,<br>
David.</p> | <p dir="auto">This feature has been asked by lots and lots of users in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="105790408" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/15755" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/15755/hovercard" href="https://github.com/symfony/symfony/issues/15755">#15755</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="122789316" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/17054" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/17054/hovercard" href="https://github.com/symfony/symfony/issues/17054">#17054</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="127084985" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/17407" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/17407/hovercard" href="https://github.com/symfony/symfony/issues/17407">#17407</a>.</p>
<h3 dir="auto">Problem</h3>
<ol dir="auto">
<li>You have installed <code class="notranslate">MyBundle</code> which contains this template:</li>
</ol>
<div class="highlight highlight-text-html-twig notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{# MyBundle/Resources/views/base.html.twig #}
{% block title '...' %}
{% block content %}
{# a lot of contents here #}
{% endblock %}"><pre class="notranslate"><span class="pl-c"><span class="pl-c">{#</span> MyBundle/Resources/views/base.html.twig <span class="pl-c">#}</span></span>
{% <span class="pl-k">block</span> <span class="pl-smi">title</span> <span class="pl-s"><span class="pl-pds">'</span>...<span class="pl-pds">'</span></span> %}
{% <span class="pl-k">block</span> <span class="pl-smi">content</span> %}
<span class="pl-c"><span class="pl-c">{#</span> a lot of contents here <span class="pl-c">#}</span></span>
{% <span class="pl-k">endblock</span> %}</pre></div>
<ol start="2" dir="auto">
<li>
<p dir="auto">You override that template in your app by creating <code class="notranslate">app/Resources/MyBundle/views/base.html.twig</code>.</p>
</li>
<li>
<p dir="auto">In your own template, you want to override just the <code class="notranslate">title</code> block and reuse the original <code class="notranslate">content</code> block.</p>
</li>
</ol>
<div class="highlight highlight-text-html-twig notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{# app/Resources/MyBundle/views/base.html.twig #}
{% extends 'MyBundle::base.html.twig' %}
{% block title 'New title' %}"><pre class="notranslate"><span class="pl-c"><span class="pl-c">{#</span> app/Resources/MyBundle/views/base.html.twig <span class="pl-c">#}</span></span>
{% <span class="pl-k">extends</span> <span class="pl-s"><span class="pl-pds">'</span>MyBundle::base.html.twig<span class="pl-pds">'</span></span> %}
{% <span class="pl-k">block</span> <span class="pl-smi">title</span> <span class="pl-s"><span class="pl-pds">'</span>New title<span class="pl-pds">'</span></span> %}</pre></div>
<p dir="auto"><strong>This won't work and Symfony will show a <em>"reached nested level"</em> error.</strong> The only current solution is to copy+paste the entire original template (and keep it in sync forever if the bundle changes it).</p>
<h3 dir="auto">Solution</h3>
<p dir="auto">People asking for this feature suggest to add a new notation to tell Twig/Symfony that you want to override the original template, not your copy:</p>
<div class="highlight highlight-text-html-twig notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{# app/Resources/MyBundle/views/base.html.twig #}
{% extends '!MyBundle::base.html.twig' %}
{% block title 'New title' %}"><pre class="notranslate"><span class="pl-c"><span class="pl-c">{#</span> app/Resources/MyBundle/views/base.html.twig <span class="pl-c">#}</span></span>
{% <span class="pl-k">extends</span> <span class="pl-s"><span class="pl-pds">'</span>!MyBundle::base.html.twig<span class="pl-pds">'</span></span> %}
{% <span class="pl-k">block</span> <span class="pl-smi">title</span> <span class="pl-s"><span class="pl-pds">'</span>New title<span class="pl-pds">'</span></span> %}</pre></div>
<p dir="auto">Some people (e.g. <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jakzal/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jakzal">@jakzal</a>) don't like the new notation. The problem is that <code class="notranslate">!</code> always mean "not", so it can be read as <em>"don't extend ..."</em>.</p>
<p dir="auto">Since Twig prefers expressive syntax, maybe we could use a word to enable the special <code class="notranslate">extends</code> behavior?</p>
<div class="highlight highlight-text-html-twig notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{# app/Resources/MyBundle/views/base.html.twig #}
{% extends original 'MyBundle::base.html.twig' %}
{% block title 'New title' %}"><pre class="notranslate"><span class="pl-c"><span class="pl-c">{#</span> app/Resources/MyBundle/views/base.html.twig <span class="pl-c">#}</span></span>
{% <span class="pl-k">extends</span> <span class="pl-smi">original</span> <span class="pl-s"><span class="pl-pds">'</span>MyBundle::base.html.twig<span class="pl-pds">'</span></span> %}
{% <span class="pl-k">block</span> <span class="pl-smi">title</span> <span class="pl-s"><span class="pl-pds">'</span>New title<span class="pl-pds">'</span></span> %}</pre></div>
<p dir="auto">Comments? Thoughts? Better ideas? Thanks!</p> | 0 |
<p dir="auto">Hey there,<br>
if the tabs have different heights, the style gets broken. This is because you style the tag below the </p><li> tag and not the </li><li> tag itself.<p dir="auto"></p>
<p dir="auto">Attached a screenshot :)</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1012403/4370056/74e4c234-4304-11e4-9212-c36fa7234bc7.png"><img src="https://cloud.githubusercontent.com/assets/1012403/4370056/74e4c234-4304-11e4-9212-c36fa7234bc7.png" alt="screenshot" style="max-width: 100%;"></a></p></li> | <p dir="auto">The current tabs break when one of them has multiple lines.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1266923/4070258/17ec9ce8-2e58-11e4-8ec3-53e2d3bb0bf3.png"><img src="https://cloud.githubusercontent.com/assets/1266923/4070258/17ec9ce8-2e58-11e4-8ec3-53e2d3bb0bf3.png" alt="screen shot 2014-08-28 at 11 24 49 am" style="max-width: 100%;"></a></p>
<p dir="auto">I fixed this in our fork of bootstrap and wanted to feed this back into here if you guys like. Happy to do a PR if you guys approve:</p>
<div class="highlight highlight-source-css-less notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// NAV TABS HEIGHT FIX
@media screen and (min-width: @screen-sm-min) {
.nav-tabs {
width: 100%;
> li {
display: table-cell;
vertical-align: bottom;
float: none;
> a {
margin-bottom: -1px;
}
}
}
}"><pre class="notranslate"><span class="pl-c"><span class="pl-c">//</span> NAV TABS HEIGHT FIX</span>
<span class="pl-k">@media</span> <span class="pl-c1">screen</span> <span class="pl-k">and</span> (<span class="pl-c1">min-width</span>: <span class="pl-smi">@screen-sm-min</span>) {
<span class="pl-e">.nav-tabs</span> {
<span class="pl-c1">width</span>: <span class="pl-c1">100<span class="pl-k">%</span></span>;
<span class="pl-k">></span> <span class="pl-ent">li</span> {
<span class="pl-c1">display</span>: <span class="pl-c1">table-cell</span>;
<span class="pl-c1">vertical-align</span>: <span class="pl-c1">bottom</span>;
<span class="pl-c1">float</span>: <span class="pl-c1">none</span>;
<span class="pl-k">></span> <span class="pl-ent">a</span> {
<span class="pl-c1">margin-bottom</span>: <span class="pl-c1">-1<span class="pl-k">px</span></span>;
}
}
}
}</pre></div>
<p dir="auto"><em>Note: This, of course, is an overwrite and would tie in a bit differently when I do the PR</em></p>
<h3 dir="auto">Result</h3>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1266923/4070319/49bdd902-2e59-11e4-83f1-1d0ad0320f6b.png"><img src="https://cloud.githubusercontent.com/assets/1266923/4070319/49bdd902-2e59-11e4-83f1-1d0ad0320f6b.png" alt="screen shot 2014-08-28 at 12 15 54 pm" style="max-width: 100%;"></a></p>
<p dir="auto">I've tested in IE8+, Android 4.2+, iOS 6+ and Firefox, Chrome and Safari on Mac desktop</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" 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.7</li>
<li>Operating System version: Mac OS</li>
<li>Java version: 1.8</li>
<li>Spring Boot 2.3.1.RELEASE</li>
</ul>
<p dir="auto">I'm in trouble how to dynamic find dubbo service providers.</p>
<p dir="auto">Here is one example:</p>
<p dir="auto">I have multiple implementations for the service, which is seperated by different group. But I don't how many groups at the begining. I want the consumer find the correct group from config center, and then I could change the config without modify any code or restart the application.</p>
<p dir="auto">But I don't know how to use a dynamic service, or change the group of a service dynamically.</p>
<p dir="auto">The only way I can find is using <a href="http://dubbo.apache.org/en-us/docs/user/demos/reference-config-cache.html" rel="nofollow">ReferenceConfig</a> to find provider in api mode. But I prefer a configration way, which is more readable and maintainable.</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: macOs Sierra</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<p dir="auto">服务端启动后,20880端口正常打开,客户端在端口打开后偶尔会报connect timeout的现象,从网络来看有丢SYN包的情况,主要是由于accept queue满了导致的。</p>
<ol dir="auto">
<li>服务端机器的配置不是很高,应用启动过程需要消耗大量CPU初始化工作。</li>
<li>客户端多线程并发发起到服务端的连接,每秒钟发起几百上千个连接请求。</li>
<li>在服务端机器看到有accept queue满的情况。</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="3220 times the listen queue of a socket overflowed
3220 SYNs to LISTEN sockets dropped"><pre class="notranslate"><code class="notranslate">3220 times the listen queue of a socket overflowed
3220 SYNs to LISTEN sockets dropped
</code></pre></div>
<ol start="4" dir="auto">
<li>通过查看当前端口的连接队列,只有50个,也就是netty3的默认backlog,实际队列最高是101个。</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[~]# ss -lnt
State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 50 *:20880 *:*"><pre class="notranslate"><code class="notranslate">[~]# ss -lnt
State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 50 *:20880 *:*
</code></pre></div>
<p dir="auto">Netty4的默认backlog也是1000,所以把Netty3的默认backlog调整成1024.</p> | 0 |
<p dir="auto">Hi,</p>
<p dir="auto">i have a problem with the dropdown menu jscript. Basically when I use the click on the scroll wheel on my mouse to open links in a new tab it doesn't work. how do I fix it?</p> | <p dir="auto">Issue: middle mouse click on a link in Firefox, nothing happens.<br>
Expected behavior: middle mouse click on a link, open in new browser tab.<br>
Live example: <a href="http://twitter.github.com/bootstrap/">http://twitter.github.com/bootstrap/</a></p>
<p dir="auto">Tested on Win7/Firefox19 Safemode/Non-Safemode failed. IE9/Chrome25 ok.<br>
Notice it when I upgrade to bootstrap v2.3.1.<br>
Switch back to v2.3 and the middle button works again.</p> | 1 |
<p dir="auto"><a href="https://twitter.com/jaffathecake/status/553159821135200256" rel="nofollow">https://twitter.com/jaffathecake/status/553159821135200256</a> this work in Traceur,<br>
but dont work in 6to5 <a href="https://6to5.org/repl/#?experimental=true&playground=true&evaluate=true&code=function%20func(%7Bfoo%20%3D%20'test'%2C%20bar%20%3D%20'test2'%7D%3D%7B%7D)%20%7B%0A%20%20return%20%5Bfoo%2C%20bar%5D%0A%7D" rel="nofollow">https://6to5.org/repl/#?experimental=true&playground=true&evaluate=true&code=function%20func(%7Bfoo%20%3D%20'test'%2C%20bar%20%3D%20'test2'%7D%3D%7B%7D)%20%7B%0A%20%20return%20%5Bfoo%2C%20bar%5D%0A%7D</a></p> | <p dir="auto">First, I'm not positive this issue is specifically related to <code class="notranslate">@babel/preset-env</code>; the problem could also lie in <code class="notranslate">between-chair-and-keyboard</code>, <code class="notranslate">webpack</code>, <code class="notranslate">@babel/plugin-transform-runtime</code>, or <code class="notranslate">browserlist</code>. But, I thought I'd try here.</p>
<p dir="auto">I configured <code class="notranslate">@babel/preset-env</code> in the webpack config as follows:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="...
plugins: ['@babel/plugin-transform-runtime'],
presets: [
['@babel/preset-env', {
modules: false,
targets: {
node: 'current',
browsers: ['defaults', 'not ie <= 10'],
},
}],
..."><pre class="notranslate">...
<span class="pl-s1">plugins</span>: <span class="pl-kos">[</span><span class="pl-s">'@babel/plugin-transform-runtime'</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s1">presets</span>: <span class="pl-kos">[</span>
<span class="pl-kos">[</span><span class="pl-s">'@babel/preset-env'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>
<span class="pl-c1">modules</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c1">targets</span>: <span class="pl-kos">{</span>
<span class="pl-c1">node</span>: <span class="pl-s">'current'</span><span class="pl-kos">,</span>
<span class="pl-c1">browsers</span>: <span class="pl-kos">[</span><span class="pl-s">'defaults'</span><span class="pl-kos">,</span> <span class="pl-s">'not ie <= 10'</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">With that configuration, I noticed that the transpiled file retains <code class="notranslate">destructuring parameters</code> from my original, ES6+-filled code. According to <a href="http://kangax.github.io/compat-table/es6/#test-destructuring,_parameters" rel="nofollow">the compat tables</a>, this is not supported in several environments IE 11+.</p>
<p dir="auto">However, when I remove <code class="notranslate">node: 'current'</code> from <code class="notranslate">targets</code>:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="...
targets: {
browsers: ['defaults', 'not ie <= 10'],
},
..."><pre class="notranslate">...
<span class="pl-s1">targets</span>: <span class="pl-kos">{</span>
<span class="pl-c1">browsers</span>: <span class="pl-kos">[</span><span class="pl-s">'defaults'</span><span class="pl-kos">,</span> <span class="pl-s">'not ie <= 10'</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">the transpiled file then shows webpack pulling in an <code class="notranslate">__webpack_require__</code> for <code class="notranslate">_slicedToArray</code> to support <code class="notranslate">destructuring parameters</code> (with arrays):</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var _slicedToArray = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/slicedToArray.js");"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">_slicedToArray</span> <span class="pl-c1">=</span> <span class="pl-en">__webpack_require__</span><span class="pl-kos">(</span><span class="pl-c">/*! @babel/runtime/helpers/slicedToArray */</span> <span class="pl-s">"./node_modules/@babel/runtime/helpers/slicedToArray.js"</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Now, I'm running Node v9.7.1, which natively supports <code class="notranslate">destructuring parameters</code> (with arrays); but I would think that if <code class="notranslate">@babel/preset-env</code> is considering the lowest common denominator, that the <code class="notranslate">_slicedToArray</code> <code class="notranslate">__webpack_require__</code> would actually be pulled in for <em><strong>both</strong></em> configurations since the lowest common denominator should be the browsers target either way.</p>
<p dir="auto">However, because <code class="notranslate">_slicedToArray</code> only shows up when the node target is omitted, (to me) it seems like the lowest common denominator is not being found correctly, as described in <a href="https://github.com/babel/babel/tree/master/packages/babel-preset-env#determine-the-lowest-common-denominator-of-plugins-to-be-included-in-the-preset">the @babel/preset-env README</a>.</p>
<p dir="auto">Am I missing something? Or, is this a bug?</p>
<p dir="auto">- Sincerely Confused</p>
<p dir="auto">Details:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="node: v9.7.1
@babel/core: 7.0.0-beta.40
@babel/plugin-transform-runtime: 7.0.0-beta.40
@babel/preset-env: 7.0.0-beta.40
@babel/runtime: 7.0.0-beta.40
babel-loader: 8.0.0-beta.2
webpack: 4.1.1
webpack-cli: 2.0.11"><pre class="notranslate"><code class="notranslate">node: v9.7.1
@babel/core: 7.0.0-beta.40
@babel/plugin-transform-runtime: 7.0.0-beta.40
@babel/preset-env: 7.0.0-beta.40
@babel/runtime: 7.0.0-beta.40
babel-loader: 8.0.0-beta.2
webpack: 4.1.1
webpack-cli: 2.0.11
</code></pre></div> | 0 |
<p dir="auto">A tiny Flask app with a PUT request is behaving strangely: after it sends the response body that it is supposed to send (from my code), it then sends a second response body with a Flask error in it. The core of the error response is "Error code explanation: HTTPStatus.BAD_REQUEST - Bad request syntax or unsupported method."</p>
<p dir="auto">It looks as though something is parsing the PUT request body as the beginning of a second HTTP request on the same TCP connection.</p>
<p dir="auto">Here is my app to reproduce the problem (`flaskdouble.py):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import flask
app = flask.Flask('flaskdouble')
@app.route('/foo', methods=['PUT', 'POST'])
def foo():
return 'simple response\n'"><pre class="notranslate"><code class="notranslate">import flask
app = flask.Flask('flaskdouble')
@app.route('/foo', methods=['PUT', 'POST'])
def foo():
return 'simple response\n'
</code></pre></div>
<p dir="auto">I'm running it in a Flask working dir, on the 2.1.x branch:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="FLASK_APP=flaskdouble FLASK_ENV=development ./env/bin/flask run --port 4080"><pre class="notranslate"><code class="notranslate">FLASK_APP=flaskdouble FLASK_ENV=development ./env/bin/flask run --port 4080
</code></pre></div>
<p dir="auto">To see the problem, I needed to attach a packet sniffer to the connection. For example, ngrep can do it with</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="sudo ngrep -d lo -W byline port 4080"><pre class="notranslate"><code class="notranslate">sudo ngrep -d lo -W byline port 4080
</code></pre></div>
<p dir="auto">Now with both <code class="notranslate">flaskdouble.py</code> and ngrep running, send a request to it:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="curl -v -X PUT -H 'content-type: text/plain' -d 'hello' http://localhost:4080/foo
* Trying 127.0.0.1:4080...
* Connected to localhost (127.0.0.1) port 4080 (#0)
> PUT /foo HTTP/1.1
> Host: localhost:4080
> User-Agent: curl/7.74.0
> Accept: */*
> content-type: text/plain
> Content-Length: 5
>
* upload completely sent off: 5 out of 5 bytes
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Server: Werkzeug/2.1.1 Python/3.9.7
< Date: Sat, 16 Apr 2022 00:10:10 GMT
< Content-Type: text/html; charset=utf-8
< Content-Length: 16
<
simple response
* Connection #0 to host localhost left intact"><pre class="notranslate"><code class="notranslate">curl -v -X PUT -H 'content-type: text/plain' -d 'hello' http://localhost:4080/foo
* Trying 127.0.0.1:4080...
* Connected to localhost (127.0.0.1) port 4080 (#0)
> PUT /foo HTTP/1.1
> Host: localhost:4080
> User-Agent: curl/7.74.0
> Accept: */*
> content-type: text/plain
> Content-Length: 5
>
* upload completely sent off: 5 out of 5 bytes
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Server: Werkzeug/2.1.1 Python/3.9.7
< Date: Sat, 16 Apr 2022 00:10:10 GMT
< Content-Type: text/html; charset=utf-8
< Content-Length: 16
<
simple response
* Connection #0 to host localhost left intact
</code></pre></div>
<p dir="auto">That looks fine ... until we look at the traffic captured by ngrep:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="####
T 127.0.0.1:56228 -> 127.0.0.1:4080 [AP] #42
PUT /foo HTTP/1.1.
Host: localhost:4080.
User-Agent: curl/7.74.0.
Accept: */*.
content-type: text/plain.
Content-Length: 5.
.
hello
##
T 127.0.0.1:4080 -> 127.0.0.1:56228 [AP] #44
HTTP/1.1 200 OK.
Server: Werkzeug/2.1.1 Python/3.9.7.
Date: Sat, 16 Apr 2022 00:10:10 GMT.
Content-Type: text/html; charset=utf-8.
Content-Length: 16.
.
##
T 127.0.0.1:4080 -> 127.0.0.1:56228 [AP] #46
simple response
###
T 127.0.0.1:4080 -> 127.0.0.1:56228 [AP] #49
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>Error response</title>
</head>
<body>
<h1>Error response</h1>
<p>Error code: 400</p>
<p>Message: Bad request syntax ('hello').</p>
<p>Error code explanation: HTTPStatus.BAD_REQUEST - Bad request syntax or unsupported method.</p>
</body>
</html>
#^Cexit
50 received, 16 matched"><pre class="notranslate"><code class="notranslate">####
T 127.0.0.1:56228 -> 127.0.0.1:4080 [AP] #42
PUT /foo HTTP/1.1.
Host: localhost:4080.
User-Agent: curl/7.74.0.
Accept: */*.
content-type: text/plain.
Content-Length: 5.
.
hello
##
T 127.0.0.1:4080 -> 127.0.0.1:56228 [AP] #44
HTTP/1.1 200 OK.
Server: Werkzeug/2.1.1 Python/3.9.7.
Date: Sat, 16 Apr 2022 00:10:10 GMT.
Content-Type: text/html; charset=utf-8.
Content-Length: 16.
.
##
T 127.0.0.1:4080 -> 127.0.0.1:56228 [AP] #46
simple response
###
T 127.0.0.1:4080 -> 127.0.0.1:56228 [AP] #49
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>Error response</title>
</head>
<body>
<h1>Error response</h1>
<p>Error code: 400</p>
<p>Message: Bad request syntax ('hello').</p>
<p>Error code explanation: HTTPStatus.BAD_REQUEST - Bad request syntax or unsupported method.</p>
</body>
</html>
#^Cexit
50 received, 16 matched
</code></pre></div>
<p dir="auto">The logging emitted by my <code class="notranslate">flaskdouble</code> app is also curious:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="127.0.0.1 - - [15/Apr/2022 20:13:11] "PUT /foo HTTP/1.1" 200 -
127.0.0.1 - - [15/Apr/2022 20:13:11] code 400, message Bad request syntax ('hello')
127.0.0.1 - - [15/Apr/2022 20:13:11] "None /foo HTTP/0.9" HTTPStatus.BAD_REQUEST -"><pre class="notranslate"><code class="notranslate">127.0.0.1 - - [15/Apr/2022 20:13:11] "PUT /foo HTTP/1.1" 200 -
127.0.0.1 - - [15/Apr/2022 20:13:11] code 400, message Bad request syntax ('hello')
127.0.0.1 - - [15/Apr/2022 20:13:11] "None /foo HTTP/0.9" HTTPStatus.BAD_REQUEST -
</code></pre></div>
<p dir="auto">Expected behaviour:</p>
<ul dir="auto">
<li>the app should write exactly 16 bytes to its client, namely "simple response\n". That second response body, an HTML error document, should not be there.</li>
<li>the app should log exactly one line, namely <code class="notranslate">"PUT /foo HTTP/1.1" 200 -</code></li>
</ul>
<p dir="auto">Environment:</p>
<ul dir="auto">
<li>Python version: 3.9.7</li>
<li>Flask version: 2.1.1-12-g2b8b4781 (in a git working dir)</li>
</ul>
<p dir="auto">My virtualenv is barebones:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="./env/bin/pip freeze
click==8.1.2
-e git+ssh://[email protected]/pallets/flask.git@2b8b47817a981b97a233420b5214f6ff9e771c35#egg=Flask
importlib-metadata==4.11.3
itsdangerous==2.1.2
Jinja2==3.1.1
MarkupSafe==2.1.1
pkg_resources==0.0.0
Werkzeug==2.1.1
zipp==3.8.0"><pre class="notranslate"><code class="notranslate">./env/bin/pip freeze
click==8.1.2
-e git+ssh://[email protected]/pallets/flask.git@2b8b47817a981b97a233420b5214f6ff9e771c35#egg=Flask
importlib-metadata==4.11.3
itsdangerous==2.1.2
Jinja2==3.1.1
MarkupSafe==2.1.1
pkg_resources==0.0.0
Werkzeug==2.1.1
zipp==3.8.0
</code></pre></div> | <p dir="auto">With the following example:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from flask import Flask
app = Flask(__name__)
@app.route('/', methods=['POST'])
def hello_world():
return 'Hello World!'
if __name__ == '__main__':
app.run()"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">flask</span> <span class="pl-k">import</span> <span class="pl-v">Flask</span>
<span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">Flask</span>(<span class="pl-s1">__name__</span>)
<span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">route</span>(<span class="pl-s">'/'</span>, <span class="pl-s1">methods</span><span class="pl-c1">=</span>[<span class="pl-s">'POST'</span>])</span>
<span class="pl-k">def</span> <span class="pl-en">hello_world</span>():
<span class="pl-k">return</span> <span class="pl-s">'Hello World!'</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-s1">app</span>.<span class="pl-en">run</span>()</pre></div>
<p dir="auto">When you set the request body to <code class="notranslate">{}</code> with Postman or any HTTP clients, the first request will return 200, while the second request will return a 405 error response. The log shows the request method is <code class="notranslate">{}POST</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""{}POST / HTTP/1.1" 405"><pre class="notranslate"><code class="notranslate">"{}POST / HTTP/1.1" 405
</code></pre></div>
<p dir="auto">Notice the request body became the part of the request method.</p> | 1 |
<h3 dir="auto">What problem does this feature solve?</h3>
<p dir="auto">example:<br>
[div > SomeComponent > large children DOM]</p>
<p dir="auto">Often we don't need SomeComponent features in some cases, just children - slot. And then we use v-if for it with v-else and duplicate a lot of child code. Also, we can use a prop like 'disabled' for SomeComponent, but still, component initializing anyway what impact performance. It is useful for Tooltips, Wrappers, etc.</p>
<p dir="auto">Right now it is possible to implement with render-functions, but it is very complicated and inconvenient.</p>
<h3 dir="auto">What does the proposed API look like?</h3>
<p dir="auto">My request is to add directive like 'v-if-only' which mean whether this component will render or just default scope slot.</p> | <blockquote>
<p dir="auto">This is a live document. Last update: 08/17/2016 as of 2.0.0-rc.2</p>
</blockquote>
<h3 dir="auto">General Notes</h3>
<ul dir="auto">
<li>A checked item means it has been implemented in the 2.0 development branch.</li>
<li>Features subject to change during development.</li>
<li>The breaking change list is not guaranteed to be complete during development.</li>
<li>There are some <a href="#upgrade-tips">upgrade tips</a> at the end.</li>
</ul>
<h3 dir="auto">High Level Changes</h3>
<ul dir="auto">
<li>The template parser no longer relies on the DOM (unless you are using the real DOM as your template), so as long as you are using string templates (<code class="notranslate"><script type="text/x-template"></code>, inline JavaScript strings, or compiled via single-file components), you are no longer subject to any of the <a href="http://vuejs.org/guide/components.html#Template-Parsing" rel="nofollow">template parsing limitations in 1.x</a>. However, if you are relying on mounting to an element with existing content as template (using the <code class="notranslate">el</code> option), you will still be subject to those limitations.</li>
<li>The compiler (the part which converts a template string to a render function) and the runtime can now be separated. There will be two different builds:
<ul dir="auto">
<li>Standalone build: includes both the compiler <strong>and</strong> the runtime. This functions basically exactly the same Vue 1.x does.</li>
<li>Runtime only build: since it doesn't include the compiler, you need to either pre-compiled templates in a compile step, or manually written render functions. The npm package will export this build by default, since when consuming Vue from npm, you will likely be using a compilation step (with Browserify or Webpack), during which <code class="notranslate">vueify</code> or <code class="notranslate">vue-loader</code> will perform the template pre-compilation.</li>
</ul>
</li>
</ul>
<h3 dir="auto">Global config</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Vue.config.silent</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Vue.config.optionMergeStrategies</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Vue.config.devtools</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Vue.config.errorHandler <sup>new - global hook for handling uncaught errors during component render and watchers (default behavior is <del>logging the error stack</del> throwing in place)</sup></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Vue.config.keyCodes <sup>new - configure custom key aliases for <code class="notranslate">v-on</code>.</sup></li>
<li><del>Vue.config.debug</del> <sup>deprecated, no longer useful since warnings come with stack traces by default now</sup></li>
<li><del>Vue.config.async</del> <sup>deprecated, async is required for rendering performance</sup></li>
<li><del>Vue.config.delimiters</del> <sup>reworked as a component-level option</sup></li>
<li><del>Vue.config.unsafeDelimiters</del> <sup>deprecated, use v-html</sup></li>
</ul>
<h3 dir="auto">Global API</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Vue.extend</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Vue.nextTick</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Vue.set</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Vue.delete</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Vue.directive</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Vue.component</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Vue.use</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Vue.mixin</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Vue.compile <sup>new (only in standalone build)</sup></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Vue.transition
<ul dir="auto">
<li><del>stagger</del> <sup>deprecated, set and access data-index on <code class="notranslate">el</code> instead</sup></li>
</ul>
</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Vue.filter</li>
<li><del>Vue.elementDirective</del> <sup>deprecated, just use components</sup></li>
<li><del>Vue.partial</del> <sup>deprecated, use functional components</sup></li>
</ul>
<h3 dir="auto">Options</h3>
<h5 dir="auto">data</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> data</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> props
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> prop validation</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> default value</li>
<li><del>coerce</del> <sup>deprecated. If you want to convert a prop, setup a local computed value based on it.</sup></li>
<li><del>prop binding modes</del> <sup>deprecated (v-model can work on components)</sup></li>
</ul>
</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> propsData <sup>new, instantiation only</sup></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> computed</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> methods</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> watch</li>
</ul>
<h5 dir="auto">DOM</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> el</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> template</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> render <sup>new</sup></li>
<li><del>replace</del> <sup>deprecated, components now <strong>must</strong> have exactly one root element.</sup></li>
</ul>
<h5 dir="auto">Lifecycle Hooks</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <del>init</del> beforeCreate</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> created</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> beforeDestroy</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> destroyed</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> beforeMount <sup>new</sup></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> mounted <sup>new</sup></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> beforeUpdate <sup>new</sup></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> updated <sup>new</sup></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> activated <sup>new (for keep-alive)</sup></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> deactivated <sup>new (for keep-alive)</sup></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <del>ready</del> <sup>deprecated, use mounted (there's no longer the guarantee to be in-document)</sup></li>
<li><del>activate</del> <sup>deprecated, moved into vue-router</sup></li>
<li><del>beforeCompile</del> <sup>deprecated, use created</sup></li>
<li><del>compiled</del> <sup>deprecated, use mounted</sup></li>
<li><del>attached</del> <sup>deprecated, use custom in-dom check in other hooks</sup></li>
<li><del>detached</del> <sup>deprecated, same as above</sup></li>
</ul>
<h5 dir="auto">Assets</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> directives</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> components</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> transitions</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> filters</li>
<li><del>partials</del> <sup>deprecated</sup></li>
<li><del>elementDirectives</del> <sup>deprecated</sup></li>
</ul>
<h5 dir="auto">Misc</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> parent</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> mixins</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> name</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> extends</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> delimiters <sup>new, replacing the original global config option. Only available in standalone build.</sup></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> functional <sup>new, makes the component stateless and instance-less (just a render function that returns virtual nodes)</sup></li>
<li><del>events</del> <sup>deprecated, since no more event propagation</sup></li>
</ul>
<h3 dir="auto">Instance Properties</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> vm.$data</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> vm.$el</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> vm.$options</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> vm.$parent</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> vm.$root</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> vm.$children</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> vm.$refs</li>
<li><del>vm.$els</del> <sup>deprecated, merged with $refs</sup></li>
</ul>
<h3 dir="auto">Instance Methods</h3>
<h5 dir="auto">data</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> vm.$watch</li>
<li><del>vm.$get</del> <sup>deprecated, just retrieve values directly</sup></li>
<li><del>vm.$set</del> <sup>deprecated, use Vue.set</sup></li>
<li><del>vm.$delete</del> <sup>deprecated, use Vue.delete</sup></li>
<li><del>vm.$eval</del> <sup>deprecated, no real use</sup></li>
<li><del>vm.$interpolate</del> <sup>deprecated, no real use</sup></li>
<li><del>vm.$log</del> <sup>deprecated, use devtools</sup></li>
</ul>
<h5 dir="auto">events</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> vm.$on</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> vm.$once</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> vm.$off</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> vm.$emit</li>
<li><del>vm.$dispatch</del> <sup>deprecated, use global event bus or Vuex. (see below)</sup></li>
<li><del>vm.$broadcast</del> <sup>deprecated, same as above</sup></li>
</ul>
<h5 dir="auto">DOM</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> vm.$nextTick</li>
<li><del>vm.$appendTo</del> <sup>deprecated, just use native DOM API on vm.$el.</sup></li>
<li><del>vm.$before</del> <sup>deprecated</sup></li>
<li><del>vm.$after</del> <sup>deprecated</sup></li>
<li><del>vm.$remove</del> <sup>deprecated</sup></li>
</ul>
<h5 dir="auto">Lifecycle</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> vm.$mount</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> vm.$destroy</li>
</ul>
<h3 dir="auto">Directives</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> v-text</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> v-html <sup>but <code class="notranslate">{{{ }}}</code> shorthand has been deprecated</sup></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> v-if</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> v-show</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> v-else</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> v-for
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> key (replacing track-by)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Object v-for</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> range v-for</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> argument order updates: <code class="notranslate">(value, index) in arr</code>, <code class="notranslate">(value, key, index) in obj</code></li>
<li><del><code class="notranslate">$index</code> and <code class="notranslate">$key</code></del> <sup>deprecated</sup></li>
</ul>
</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> v-on
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> modifiers</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> on child component</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> custom keyCodes (now avaiable via <code class="notranslate">Vue.config.keyCodes</code> instead of <code class="notranslate">Vue.directive('on').keyCodes</code>)</li>
</ul>
</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> v-bind
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> as prop</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> xlink</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> bind object</li>
</ul>
</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> v-bind:style
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> prefix sniffing</li>
</ul>
</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> v-bind:class</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> v-model
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> lazy (as modifier)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> number (as modifier)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> ignoring composition events</li>
<li><del>debounce</del> <sup>deprecated, use v-on:input + 3rd party debounce function</sup></li>
</ul>
</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> v-cloak</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> v-pre</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> v-once <sup>new</sup></li>
<li><del>v-ref</del> <sup>now just a special attribute as <code class="notranslate">ref</code></sup></li>
<li><del>v-el</del> <sup>deprecated (merged with ref)</sup></li>
</ul>
<h3 dir="auto">Special Components</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate"><component></code>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> :is</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> async components</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> inline-template</li>
</ul>
</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate"><transition></code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate"><transition-group></code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate"><keep-alive></code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate"><slot></code></li>
<li><del>partial</del> <sup>deprecated</sup></li>
</ul>
<h3 dir="auto">Special Attributes</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> key</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> ref</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> slot</li>
</ul>
<h3 dir="auto">Server-side Rendering</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> renderToString</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> renderToStream</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> client-side hydration</li>
</ul>
<h3 dir="auto">Other Breaking Changes</h3>
<h4 dir="auto"><code class="notranslate">v-for</code> iteration syntax change</h4>
<ul dir="auto">
<li>
<p dir="auto"><strong>Deprecating <code class="notranslate">$index</code> and <code class="notranslate">$key</code></strong></p>
<p dir="auto">Both of these are being deprecated in favor of more explicit named indices and keys. This syntax is a bit magical and has limitations in nested loops. As a bonus, there will be two fewer points of syntax for newcomers to learn.</p>
</li>
<li>
<p dir="auto"><strong>New array syntax</strong></p>
<ul dir="auto">
<li><code class="notranslate">value in arr</code></li>
<li><code class="notranslate">(value, index) in arr</code> (switched order of arguments to be more consistent with JavaScript's <code class="notranslate">forEach</code> and <code class="notranslate">map</code>)</li>
</ul>
</li>
<li>
<p dir="auto"><strong>New object syntax</strong></p>
<ul dir="auto">
<li><code class="notranslate">value in obj</code></li>
<li><code class="notranslate">(value, key) in obj</code> (switched order of arguments, partly to be more consistent with many common object iterators, such as lodash's)</li>
<li><code class="notranslate">(value, key, index) in obj</code> (index will now be available in object iteration for visual purposes, such as table striping)</li>
</ul>
</li>
</ul>
<h4 dir="auto">Directive interface change</h4>
<p dir="auto">In general, in 2.0 directives have a greatly reduced scope of responsibility: they are now only used for applying low-level direct DOM manipulations. In most cases, you should prefer using Components as the main code-reuse abstraction.</p>
<p dir="auto">Directives no longer have instances - this means there's no more <code class="notranslate">this</code> inside directive hooks and <code class="notranslate">bind</code>, <code class="notranslate">update</code> and <code class="notranslate">unbind</code> now receives everything as arguments.</p>
<p dir="auto">Note the <code class="notranslate">binding</code> object is immutable, setting <code class="notranslate">binding.value</code> will have no effect, and properties added to it will not be persisted. You can persist directive state on <code class="notranslate">el</code> if you absolutely need to:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<div v-example:arg.modifier="a.b"></div>"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">v-example:arg.modifier</span>="<span class="pl-s">a.b</span>"<span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span></pre></div>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// example directive
export default {
bind (el, binding, vnode) {
// the binding object exposes value, oldValue, expression, arg and modifiers.
binding.expression // "a.b"
binding.arg // "arg"
binding.modifiers // { modifier: true }
// the context Vue instance can be accessed as vnode.context.
},
// update has a few changes, see below
update (el, binding, vnode, oldVnode) { ... },
// componentUpdated is a new hook that is called AFTER the entire component
// has completed the current update cycle. This means all the DOM would
// be in updated state when this hook is called. Also, this hook is always
// called regardless of whether this directive's value has changed or not.
componentUpdated (el, binding, vnode, oldVNode) { ... },
unbind (el, binding, vnode) { ... }
}"><pre class="notranslate"><span class="pl-c">// example directive</span>
<span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-kos">{</span>
<span class="pl-en">bind</span> <span class="pl-kos">(</span><span class="pl-s1">el</span><span class="pl-kos">,</span> <span class="pl-s1">binding</span><span class="pl-kos">,</span> <span class="pl-s1">vnode</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-c">// the binding object exposes value, oldValue, expression, arg and modifiers.</span>
<span class="pl-s1">binding</span><span class="pl-kos">.</span><span class="pl-c1">expression</span> <span class="pl-c">// "a.b"</span>
<span class="pl-s1">binding</span><span class="pl-kos">.</span><span class="pl-c1">arg</span> <span class="pl-c">// "arg"</span>
<span class="pl-s1">binding</span><span class="pl-kos">.</span><span class="pl-c1">modifiers</span> <span class="pl-c">// { modifier: true }</span>
<span class="pl-c">// the context Vue instance can be accessed as vnode.context.</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-c">// update has a few changes, see below</span>
<span class="pl-en">update</span> <span class="pl-kos">(</span><span class="pl-s1">el</span><span class="pl-kos">,</span> <span class="pl-s1">binding</span><span class="pl-kos">,</span> <span class="pl-s1">vnode</span><span class="pl-kos">,</span> <span class="pl-s1">oldVnode</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">// componentUpdated is a new hook that is called AFTER the entire component</span>
<span class="pl-c">// has completed the current update cycle. This means all the DOM would</span>
<span class="pl-c">// be in updated state when this hook is called. Also, this hook is always</span>
<span class="pl-c">// called regardless of whether this directive's value has changed or not.</span>
<span class="pl-en">componentUpdated</span> <span class="pl-kos">(</span><span class="pl-s1">el</span><span class="pl-kos">,</span> <span class="pl-s1">binding</span><span class="pl-kos">,</span> <span class="pl-s1">vnode</span><span class="pl-kos">,</span> <span class="pl-s1">oldVNode</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">unbind</span> <span class="pl-kos">(</span><span class="pl-s1">el</span><span class="pl-kos">,</span> <span class="pl-s1">binding</span><span class="pl-kos">,</span> <span class="pl-s1">vnode</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">You can use destructuring if you only care about the value:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export default {
bind (el, { value }) {
// ...
}
}"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-kos">{</span>
<span class="pl-en">bind</span> <span class="pl-kos">(</span><span class="pl-s1">el</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> value <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-c">// ...</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">In addition, the <code class="notranslate">update</code> hook has a few changes:</p>
<ol dir="auto">
<li>It no longer gets called automatically after <code class="notranslate">bind</code>.</li>
<li>It now always gets calls when the component is re-rendered, regardless of whether the value it's bound to has changed or not. You can compare <code class="notranslate">binding.value === binding.oldValue</code> to skip unnecessary updates, but there are also cases where you'd want to always apply updates, e.g. when the directive is bound to an Object that might have been mutated instead of replaced.</li>
</ol>
<p dir="auto"><code class="notranslate">elementDirective</code>, directive params and directive options such as <code class="notranslate">acceptStatement</code>, <code class="notranslate">deep</code> etc. are all deprecated.</p>
<h4 dir="auto">Filter Usage and Syntax Change</h4>
<p dir="auto">In Vue 2.0, there are several changes to the filter system:</p>
<ol dir="auto">
<li>
<p dir="auto">Filters can now only be used inside text interpolations (<code class="notranslate">{{}}</code> tags). In the past we've found using filters with directives such as <code class="notranslate">v-model</code>, <code class="notranslate">v-on</code> etc. led to more complexity than convenience, and for list filtering on <code class="notranslate">v-for</code> it is more appropriate to move that logic into JavaScript as computed properties.</p>
</li>
<li>
<p dir="auto">Vue 2.0 will not ship with any built-in filters. It is recommended to use standalone libraries dedicated for solving problems in a specific domain, e.g. <a href="http://momentjs.com/" rel="nofollow">moment.js</a> for formatting dates and <a href="http://openexchangerates.github.io/accounting.js/" rel="nofollow">accounting.js</a> for formatting financial currencies. You are also welcome to create your own filter pack and share it with the community!</p>
</li>
<li>
<p dir="auto">The filter syntax has changed to be more inline with JavaScript function invocation, instead of taking space-delimited arguments:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{{ date | formatDate('YY-MM-DD') }}"><pre class="notranslate"><code class="notranslate">{{ date | formatDate('YY-MM-DD') }}
</code></pre></div>
</li>
</ol>
<h4 dir="auto">Transition System</h4>
<p dir="auto"><strong>Transition CSS class changes:</strong></p>
<p dir="auto">The always-on <code class="notranslate">v-transition</code> class is no longer added and Vue now uses the same classes Angular and React CSSTransitionGroup does:</p>
<ul dir="auto">
<li>
<p dir="auto"><code class="notranslate">v-enter</code>: applied before element is inserted, remove after 1 tick. (starting state for enter)</p>
</li>
<li>
<p dir="auto"><code class="notranslate">v-enter-active</code>: applied before element is inserted, removed when transition/animation finishes. (active + ending state for enter)</p>
</li>
<li>
<p dir="auto"><code class="notranslate">v-leave</code>: applied right when the leave transition is triggered, remove after 1 tick (starting state for leave)</p>
</li>
<li>
<p dir="auto"><code class="notranslate">v-leave-active</code>: applied right when the leave transition is triggered, removed when the transition/animation finishes. (active + ending state for leave)</p>
<p dir="auto"><code class="notranslate">v-enter-active</code> and <code class="notranslate">v-leave-active</code> gives you the ability to specify different easing curves for enter/leave transitions. In most cases, upgrading means simply replacing your current <code class="notranslate">v-leave</code>with <code class="notranslate">v-leave-active</code>. (For CSS animations, use <code class="notranslate">v-enter-active</code> + <code class="notranslate">v-leave-active</code>)</p>
</li>
</ul>
<h4 dir="auto">Transition API Change</h4>
<ul dir="auto">
<li>
<p dir="auto"><strong>The <code class="notranslate"><transition></code> component</strong></p>
<p dir="auto">All single-element transition effects are now applied by wrapping the target element/component with the <code class="notranslate"><transition></code> built-in component. This is an abstract component, which means it does not render an extra DOM element, nor does it show up in the inspected component hierarchy. It simply applies the transition behavior to the wrapped content inside.</p>
<p dir="auto">The simplest usage example:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<transition>
<div v-if="ok">toggled content</div>
</transition>"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">transition</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">v-if</span>="<span class="pl-s">ok</span>"<span class="pl-kos">></span>toggled content<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">transition</span><span class="pl-kos">></span></pre></div>
<p dir="auto">The component defines a number of props and events that maps directly to the old transition definition options:</p>
<p dir="auto"><strong>Props</strong></p>
<ul dir="auto">
<li>
<p dir="auto"><strong>name: String</strong></p>
<p dir="auto">Used to automatically generate transition CSS class names. e.g. <code class="notranslate">name: 'fade'</code> will auto expand to <code class="notranslate">.fade-enter</code>, <code class="notranslate">.fade-enter-active</code>, etc. Defaults to <code class="notranslate">"v"</code>.</p>
</li>
<li>
<p dir="auto"><strong>appear: Boolean</strong></p>
<p dir="auto">Whether to apply transition on initial render. Defaults to <code class="notranslate">false</code>.</p>
</li>
<li>
<p dir="auto"><strong>css: Boolean</strong></p>
<p dir="auto">Whether to apply CSS transition classes. Defaults to <code class="notranslate">true</code>. If set to <code class="notranslate">false</code>, will only trigger JavaScript hooks registered via component events.</p>
</li>
<li>
<p dir="auto"><strong>type: String</strong></p>
<p dir="auto">Specify the type of transition events to wait for to determine transition end timing. Available values are <code class="notranslate">"transition"</code> and <code class="notranslate">"animation"</code>. By default, it will automatically detect the type that has a longer duration.</p>
</li>
<li>
<p dir="auto"><strong>mode: String</strong></p>
<p dir="auto">Controls the timing sequence of leaving/entering transitions. Available modes are <code class="notranslate">"out-in"</code> and <code class="notranslate">"in-out"</code>; defaults to simultaneous.</p>
</li>
<li>
<p dir="auto"><strong>enterClass, leaveClass, enterActiveClass, leaveActiveClass, appearClass, appearActiveClass: String</strong></p>
<p dir="auto">Individually configure transition CSS classes.</p>
</li>
</ul>
<p dir="auto">Example applying transition to dynamic components:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<transition name="fade" mode="out-in" appear>
<component :is="view"></component>
</transition>"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">transition</span> <span class="pl-c1">name</span>="<span class="pl-s">fade</span>" <span class="pl-c1">mode</span>="<span class="pl-s">out-in</span>" <span class="pl-c1">appear</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">component</span> <span class="pl-c1">:is</span>="<span class="pl-s">view</span>"<span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">component</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">transition</span><span class="pl-kos">></span></pre></div>
<p dir="auto"><strong>Events</strong></p>
<p dir="auto">Corresponds to the JavaScript hooks available in 1.x API.</p>
<ul dir="auto">
<li><strong>before-enter</strong></li>
<li><strong>enter</strong></li>
<li><strong>after-enter</strong></li>
<li><strong>before-leave</strong></li>
<li><strong>leave</strong></li>
<li><strong>after-leave</strong></li>
<li><strong>before-appear</strong></li>
<li><strong>appear</strong></li>
<li><strong>after-appear</strong></li>
</ul>
<p dir="auto">Example:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<transition @after-enter="transitionComplete">
<div v-show="ok">toggled content</div>
</transition>"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">transition</span> <span class="pl-c1">@after-enter</span>="<span class="pl-s">transitionComplete</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">v-show</span>="<span class="pl-s">ok</span>"<span class="pl-kos">></span>toggled content<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">transition</span><span class="pl-kos">></span></pre></div>
<p dir="auto">When the entering transition completes, the component's <code class="notranslate">transitionComplete</code> method will be called with the transitioned DOM element as the argument.</p>
<p dir="auto">Some notes:</p>
<ul dir="auto">
<li><code class="notranslate">leave-cancelled</code> is no longer available for insertion/removals. Once a leave transition starts, it cannot be cancelled. It is, however, still available for <code class="notranslate">v-show</code> transitions.</li>
<li>Similar to 1.0, for <code class="notranslate">enter</code> and <code class="notranslate">leave</code> hooks, the presence of <code class="notranslate">cb</code> as the second argument indicates the user wants explicit control of the ending timing of the transition.</li>
</ul>
</li>
<li>
<p dir="auto"><strong>The <code class="notranslate"><transition-group></code> component</strong></p>
<p dir="auto">All multi-element transition effects are now applied by wrapping the elements with the <code class="notranslate"><transition-group></code> built-in component. It exposes the same props and events as <code class="notranslate"><transition></code> does. The difference being that:</p>
<ol dir="auto">
<li>Unlike <code class="notranslate"><transition></code>, <code class="notranslate"><transition-group></code> renders a real DOM element. By default it renders a <code class="notranslate"><span></code>, and you can configure what element is should render via the <code class="notranslate">tag</code> prop. You can also use it with the <code class="notranslate">is</code> attribute, e.g. <code class="notranslate"><ul is="transition-group"></code>.</li>
<li><code class="notranslate"><transition-group></code> does not support the <code class="notranslate">mode</code> prop.</li>
<li>Every child in a <code class="notranslate"><transition-group></code> must be <strong>uniquely keyed</strong>.</li>
</ol>
<p dir="auto">Example:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<transition-group tag="ul" name="slide">
<li v-for="item in items" :key="item.id">
{{ item.text }}
</li>
</transition-group>"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">transition-group</span> <span class="pl-c1">tag</span>="<span class="pl-s">ul</span>" <span class="pl-c1">name</span>="<span class="pl-s">slide</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span> <span class="pl-c1">v-for</span>="<span class="pl-s">item in items</span>" <span class="pl-c1">:key</span>="<span class="pl-s">item.id</span>"<span class="pl-kos">></span>
{{ item.text }}
<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">transition-group</span><span class="pl-kos">></span></pre></div>
<p dir="auto"><strong>Moving Transitions</strong></p>
<p dir="auto"><code class="notranslate"><transition-group></code> supports <strong>moving transitions</strong> via CSS transform. When a child's position on screen has changed after an updated, it will get applied a moving CSS class (auto generated from the <code class="notranslate">name</code> prop or configured with the <code class="notranslate">moveClass</code> prop). If the CSS <code class="notranslate">transform</code> property is "transition-able" when the moving class is applied, the element will be smoothly animated to its destination using the <a href="https://aerotwist.com/blog/flip-your-animations/" rel="nofollow">FLIP technique</a>.</p>
<p dir="auto">See a <a href="https://jsfiddle.net/yyx990803/yfpLvjxx/" rel="nofollow">live demo</a> here.</p>
</li>
<li>
<p dir="auto"><strong>Creating Reusable Transitions</strong></p>
<p dir="auto">Now that transitions are applied via components, they are no longer considered an asset type, so the global <code class="notranslate">Vue.transition()</code> method and the <code class="notranslate">transition</code> option are both deprecated. You can just configure the transition inline with component props and events. But how do we create reusable transition effects now, especially those with custom JavaScript hooks? Well, the answer is creating your own transition components (they are particularly suitable as functional components):</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Vue.component('fade', {
functional: true,
render (createElement, { children }) {
const data = {
props: {
name: 'fade'
},
on: {
beforeEnter () { /* ... */ }, // <-- Note hooks use camelCase in JavaScript (same as 1.x)
afterEnter () { /* ... */ }
}
}
return createElement('transition', data, children)
}
})"><pre class="notranslate"><span class="pl-v">Vue</span><span class="pl-kos">.</span><span class="pl-en">component</span><span class="pl-kos">(</span><span class="pl-s">'fade'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>
<span class="pl-c1">functional</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-en">render</span> <span class="pl-kos">(</span><span class="pl-s1">createElement</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> children <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">data</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
<span class="pl-c1">props</span>: <span class="pl-kos">{</span>
<span class="pl-c1">name</span>: <span class="pl-s">'fade'</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-c1">on</span>: <span class="pl-kos">{</span>
<span class="pl-en">beforeEnter</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">/* ... */</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c">// <-- Note hooks use camelCase in JavaScript (same as 1.x)</span>
<span class="pl-en">afterEnter</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">/* ... */</span> <span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">return</span> <span class="pl-s1">createElement</span><span class="pl-kos">(</span><span class="pl-s">'transition'</span><span class="pl-kos">,</span> <span class="pl-s1">data</span><span class="pl-kos">,</span> <span class="pl-s1">children</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">You can then use it like this:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<fade>
<div v-if="ok">toggled content</div>
</fade>"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">fade</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">v-if</span>="<span class="pl-s">ok</span>"<span class="pl-kos">></span>toggled content<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">fade</span><span class="pl-kos">></span></pre></div>
</li>
</ul>
<h4 dir="auto">v-model changes</h4>
<ul dir="auto">
<li>
<p dir="auto">The <code class="notranslate">lazy</code> and <code class="notranslate">number</code> params are now modifiers:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<input v-model.lazy="text">"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">input</span> <span class="pl-c1">v-model.lazy</span>="<span class="pl-s">text</span>"<span class="pl-kos">></span></pre></div>
</li>
<li>
<p dir="auto">New modifier: <code class="notranslate">.trim</code> - trims the input, as the name suggests.</p>
</li>
<li>
<p dir="auto">The <code class="notranslate">debounce</code> param has been deprecated. (See upgrade tip at bottom)</p>
</li>
<li>
<p dir="auto"><code class="notranslate">v-model</code> no longer cares about initial inline <code class="notranslate">value</code>. It will always treat the Vue instance data as the source of truth. This means the following will render with a value of 1 instead of 2:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="data: {
val: 1
}"><pre class="notranslate">data: <span class="pl-kos">{</span>
<span class="pl-c1">val</span>: <span class="pl-c1">1</span>
<span class="pl-kos">}</span></pre></div>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<input v-model="val" value="2">"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">input</span> <span class="pl-c1">v-model</span>="<span class="pl-s">val</span>" <span class="pl-c1">value</span>="<span class="pl-s">2</span>"<span class="pl-kos">></span></pre></div>
<p dir="auto">Same goes for <code class="notranslate"><textarea></code> with existing content. So instead of:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<textarea v-model="val">hello world</textarea>"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">textarea</span> <span class="pl-c1">v-model</span>="<span class="pl-s">val</span>"<span class="pl-kos">></span>hello world<span class="pl-kos"></</span><span class="pl-ent">textarea</span><span class="pl-kos">></span></pre></div>
<p dir="auto">Do:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="data () {
return {
val: 'hello world'
}
}"><pre class="notranslate"><span class="pl-en">data</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-kos">{</span>
<span class="pl-c1">val</span>: <span class="pl-s">'hello world'</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<textarea v-model="val"></textarea>"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">textarea</span> <span class="pl-c1">v-model</span>="<span class="pl-s">val</span>"<span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">textarea</span><span class="pl-kos">></span></pre></div>
<p dir="auto">The main idea is that the JS side should be considered the source of truth, not your templates.</p>
</li>
<li>
<p dir="auto"><code class="notranslate">v-model</code> no longer works when used on a <code class="notranslate">v-for</code> iterated primitive value:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<input v-for="str in strings" v-model="str">"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">input</span> <span class="pl-c1">v-for</span>="<span class="pl-s">str in strings</span>" <span class="pl-c1">v-model</span>="<span class="pl-s">str</span>"<span class="pl-kos">></span></pre></div>
<p dir="auto">This doesn't work because it's the equivalent of this in JavaScript:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="strings.map(function (str) {
return createElement('input', ...)
})"><pre class="notranslate"><span class="pl-s1">strings</span><span class="pl-kos">.</span><span class="pl-en">map</span><span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">str</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-en">createElement</span><span class="pl-kos">(</span><span class="pl-s">'input'</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">As you can see, setting <code class="notranslate">str</code> to another value in the iterator function will do nothing because it's just a local variable in the function scope. Instead, you should use an array of objects so that <code class="notranslate">v-model</code> can update the field on the object:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<input v-for="obj in objects" v-model="obj.str">"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">input</span> <span class="pl-c1">v-for</span>="<span class="pl-s">obj in objects</span>" <span class="pl-c1">v-model</span>="<span class="pl-s">obj.str</span>"<span class="pl-kos">></span></pre></div>
</li>
</ul>
<h4 dir="auto">Props Behavior</h4>
<ul dir="auto">
<li><code class="notranslate">.once</code> and <code class="notranslate">.sync</code> are deprecated. Props are now always one-way down. To produce side effects in the parent scope, a component needs to explicitly emit an event instead of relying on implicit binding.</li>
<li>Mutating a prop locally is now considered an anti-pattern, e.g. declaring a prop <code class="notranslate">a</code> and then set <code class="notranslate">this.a = someOtherValue</code> in the component. Due to the new rendering mechanism, whenever the parent component re-renders, the child component's local changes will be overwritten. In general, in 2.0 you should <strong>treat props as immutable</strong>. Most use cases of mutating a prop can be replaced by either a data property or a computed property.</li>
</ul>
<h4 dir="auto">keep-alive</h4>
<p dir="auto"><code class="notranslate">keep-alive</code> is no longer a special attribute: it is now a wrapper component, similar to <code class="notranslate"><transition></code>:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" <keep-alive>
<component :is="view"></component>
</keep-alive>"><pre class="notranslate"> <span class="pl-kos"><</span><span class="pl-ent">keep-alive</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">component</span> <span class="pl-c1">:is</span>="<span class="pl-s">view</span>"<span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">component</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">keep-alive</span><span class="pl-kos">></span></pre></div>
<p dir="auto">This makes it possible to use <code class="notranslate">keep-alive</code> on multiple conditional children (note the children should eventually evaluate to a single child - any child other than the first one will be ignored):</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" <keep-alive>
<comp-a v-if="a > 1"></comp-a>
<comp-b v-else></comp-b>
</keep-alive>"><pre class="notranslate"> <span class="pl-kos"><</span><span class="pl-ent">keep-alive</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">comp-a</span> <span class="pl-c1">v-if</span>="<span class="pl-s">a > 1</span>"<span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">comp-a</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">comp-b</span> <span class="pl-c1">v-else</span><span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">comp-b</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">keep-alive</span><span class="pl-kos">></span></pre></div>
<p dir="auto">When used together with <code class="notranslate"><transition></code>, make sure to nest it inside:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" <transition>
<keep-alive>
<component :is="view"></component>
</keep-alive>
</transition>"><pre class="notranslate"> <span class="pl-kos"><</span><span class="pl-ent">transition</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">keep-alive</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">component</span> <span class="pl-c1">:is</span>="<span class="pl-s">view</span>"<span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">component</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">keep-alive</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">transition</span><span class="pl-kos">></span></pre></div>
<h4 dir="auto">Slots</h4>
<ul dir="auto">
<li>It is no longer supported to have duplicate <code class="notranslate"><slot></code>s with the same name in the same template. When a slot is rendered it is "used up" and cannot be rendered elsewhere in the same render tree.</li>
<li>Content inserted via named <code class="notranslate"><slot></code> no longer preserves the <code class="notranslate">slot</code> attribute. Use a wrapper element to style them, or, for advanced use cases, modify the inserted content programmatically using render functions.</li>
</ul>
<h4 dir="auto">Refs</h4>
<ul dir="auto">
<li>
<p dir="auto"><code class="notranslate">v-ref</code> is now no longer a directive: it is now a special attribute similar to <code class="notranslate">key</code> and <code class="notranslate">transition</code>:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<!-- before -->
<comp v-ref:foo></comp>
<!-- after -->
<comp ref="foo"></comp>"><pre class="notranslate"><span class="pl-c"><!-- before --></span>
<span class="pl-kos"><</span><span class="pl-ent">comp</span> <span class="pl-c1">v-ref:foo</span><span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">comp</span><span class="pl-kos">></span>
<span class="pl-c"><!-- after --></span>
<span class="pl-kos"><</span><span class="pl-ent">comp</span> <span class="pl-c1">ref</span>="<span class="pl-s">foo</span>"<span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">comp</span><span class="pl-kos">></span></pre></div>
<p dir="auto">Dynamic ref bindings are now also supported:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<comp :ref="dynamicRef"></comp>"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">comp</span> <span class="pl-c1">:ref</span>="<span class="pl-s">dynamicRef</span>"<span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">comp</span><span class="pl-kos">></span></pre></div>
</li>
<li>
<p dir="auto"><code class="notranslate">vm.$els</code> and <code class="notranslate">vm.$refs</code> are merged. When used on a normal element the ref will be the DOM element, and when used on a component the ref will be the component instance.</p>
</li>
<li>
<p dir="auto"><code class="notranslate">vm.$refs</code> are no longer reactive, because they are registered/updated during the render process itself. Making them reactive would require duplicate renders for every change.</p>
<p dir="auto">On the other hand, <code class="notranslate">$refs</code> are designed primarily for programmatic access in JavaScript - it is not recommended to rely on <code class="notranslate">$refs</code> in templates because it entails referring to state that does not belong to the instance itself.</p>
</li>
</ul>
<h4 dir="auto">Misc</h4>
<ul dir="auto">
<li>
<p dir="auto"><code class="notranslate">track-by</code> has been replaced with <code class="notranslate">key</code>. It now follows the same rule for binding an attribute: without <code class="notranslate">v-bind:</code> or <code class="notranslate">:</code> prefix, it is treated as a <strong>literal string</strong>. In most cases you'd want to use a dynamic binding, which expects a full expression instead of a string key. For example:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<!-- 1.x -->
<div v-for="item in items" track-by="id">
<!-- 2.0 -->
<div v-for="item in items" :key="item.id">"><pre class="notranslate"><span class="pl-c"><!-- 1.x --></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">v-for</span>="<span class="pl-s">item in items</span>" <span class="pl-c1">track-by</span>="<span class="pl-s">id</span>"<span class="pl-kos">></span>
<span class="pl-c"><!-- 2.0 --></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">v-for</span>="<span class="pl-s">item in items</span>" <span class="pl-c1">:key</span>="<span class="pl-s">item.id</span>"<span class="pl-kos">></span></pre></div>
</li>
<li>
<p dir="auto">Interpolation inside attributes are deprecated:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<!-- 1.x -->
<div id="{{ id }}">
<!-- 2.0 -->
<div :id="id">"><pre class="notranslate"><span class="pl-c"><!-- 1.x --></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">id</span>="<span class="pl-s">{{ id }}</span>"<span class="pl-kos">></span>
<span class="pl-c"><!-- 2.0 --></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">:id</span>="<span class="pl-s">id</span>"<span class="pl-kos">></span></pre></div>
</li>
<li>
<p dir="auto">Attribute binding behavior change: only <code class="notranslate">null</code>, <code class="notranslate">undefined</code> and <code class="notranslate">false</code> are considered falsy when binding attributes. This means <code class="notranslate">0</code> and empty strings will render as-is. For enumerated attributes. This means <code class="notranslate">:draggable="''"</code> will render as <code class="notranslate">draggable="true"</code>.</p>
<p dir="auto">Also, for enumerated attributes, in addition to the falsy values above, the string value of "false" will also render as attr="false".</p>
</li>
<li>
<p dir="auto">When used on a custom component, <code class="notranslate">v-on</code> now only listens to custom events $emitted by that component. (no longer listens to DOM events)</p>
</li>
<li>
<p dir="auto"><code class="notranslate">v-else</code> no longer works with <code class="notranslate">v-show</code> - just use negation expression.</p>
</li>
<li>
<p dir="auto">One time bindings (<code class="notranslate">{{* foo }}</code>) deprecated - use <code class="notranslate">v-once</code> instead.</p>
</li>
<li>
<p dir="auto">Array.prototype.$set/$remove deprecated (use Vue.set or Array.prototype.splice instead)</p>
</li>
<li>
<p dir="auto"><code class="notranslate">:style</code> no longer supports inline <code class="notranslate">!important</code></p>
</li>
<li>
<p dir="auto">root instance can no longer use template props (use <code class="notranslate">propsData</code> instead)</p>
</li>
<li>
<p dir="auto">The <code class="notranslate">el</code> option can no longer be used in <code class="notranslate">Vue.extend</code>. It can now only be used as an instance creation option.</p>
</li>
<li>
<p dir="auto"><code class="notranslate">Vue.set</code> and <code class="notranslate">Vue.delete</code> cannot work on Vue instances. It is now mandatory to properly declare all top-level reactive properties in the <code class="notranslate">data</code> option.</p>
</li>
<li>
<p dir="auto">It is now also prohibited to replace a component instance's root <code class="notranslate">$data</code>. This prevents some edge cases in the reactivity system and makes the component state more predictable (especially with type-checking systems).</p>
</li>
<li>
<p dir="auto">User watchers created via <code class="notranslate">vm.$watch</code> are now fired before the associated component re-renders. This gives the user a chance to further update other state before the component re-render, thus avoiding unnecessary updates. For example, you can watch a component prop and update the component's own data when the prop changes.</p>
<p dir="auto">To do something with the DOM after component updates, just use the updated lifecycle hook.</p>
</li>
</ul>
<h3 dir="auto">Upgrade Tips</h3>
<h4 dir="auto">How to Deal with Deprecation of <code class="notranslate">$dispatch</code> and <code class="notranslate">$broadcast</code>?</h4>
<p dir="auto">The reason that we are deprecating <code class="notranslate">$dispatch</code> and <code class="notranslate">$broadcast</code> is that event flows that depend on the components tree structure can be hard to reason about when the components tree becomes large (simply put: it doesn't scale well in large apps and we don't want to set you up for pain later). <code class="notranslate">$dispatch</code> and <code class="notranslate">$broadcast</code> also do not solve the communication between sibling components. Instead, you can use a pattern similar to the <a href="https://nodejs.org/api/events.html#events_class_eventemitter" rel="nofollow">EventEmitter in Node.js</a>: a centralized event hub that allows components to communicate, no matter where they are in the components tree. Because Vue instances implement the event emitter interface, you can actually use an empty Vue instance for that purpose:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var bus = new Vue()"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">bus</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">Vue</span><span class="pl-kos">(</span><span class="pl-kos">)</span></pre></div>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// in component A's method
bus.$emit('id-selected', 1)"><pre class="notranslate"><span class="pl-c">// in component A's method</span>
<span class="pl-s1">bus</span><span class="pl-kos">.</span><span class="pl-en">$emit</span><span class="pl-kos">(</span><span class="pl-s">'id-selected'</span><span class="pl-kos">,</span> <span class="pl-c1">1</span><span class="pl-kos">)</span></pre></div>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// in component B's created hook
bus.$on('id-selected', this.someMethod)"><pre class="notranslate"><span class="pl-c">// in component B's created hook</span>
<span class="pl-s1">bus</span><span class="pl-kos">.</span><span class="pl-en">$on</span><span class="pl-kos">(</span><span class="pl-s">'id-selected'</span><span class="pl-kos">,</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">someMethod</span><span class="pl-kos">)</span></pre></div>
<p dir="auto">And don't forget to use $off to unbind the event.</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// in component B's destroyed hook
bus.$off('id-selected', this.someMethod)"><pre class="notranslate"><span class="pl-c">// in component B's destroyed hook</span>
<span class="pl-s1">bus</span><span class="pl-kos">.</span><span class="pl-en">$off</span><span class="pl-kos">(</span><span class="pl-s">'id-selected'</span><span class="pl-kos">,</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">someMethod</span><span class="pl-kos">)</span></pre></div>
<p dir="auto">This pattern can serve as a replacement for <code class="notranslate">$dispatch</code> and <code class="notranslate">$broadcast</code> in simple scenarios. But for more complex cases, it is recommended to introduce a dedicated state management layer using <a href="https://github.com/vuejs/vuex">Vuex</a>.</p>
<h4 dir="auto">How to Deal with the Deprecation of Array Filters?</h4>
<p dir="auto">For list filtering with <code class="notranslate">v-for</code> - one of the more common usage of filters - it is now recommended to use computed properties that return a processed copy of the original Array (see <a href="https://github.com/vuejs/vue/blob/next/examples/grid/grid.js#L21-L41">updated data grid example</a>). The benefits is that you are no longer limited by the arbitrary filter syntax/API - it's just plain JavaScript now, and you naturally have access to the filtered result because it is a computed property.</p>
<p dir="auto">Also see <a href="https://github.com/vuejs/vue/issues/2756" data-hovercard-type="issue" data-hovercard-url="/vuejs/vue/issues/2756/hovercard">this discussion thread</a>.</p>
<h4 dir="auto">How to Deal with the Deprecation of <code class="notranslate">debounce</code> for <code class="notranslate">v-model</code>?</h4>
<p dir="auto">Debouncing is used to limit how often we execute Ajax requests and other expensive operations. Vue's <code class="notranslate">debounce</code> attribute parameter for <code class="notranslate">v-model</code> makes this easy, but it also debounces <em>state updates</em> rather than the expensive operations themselves, which comes with limitations.</p>
<p dir="auto">These limitations become apparent when designing a <a href="https://jsbin.com/zefawu/3/edit?html,output" rel="nofollow">search indicator</a>. Take a look at that example. Using the <code class="notranslate">debounce</code> attribute, there'd be no way to detect a dirty input before the search begins, because we'd lose access to the input's real-time state. By decoupling the debounce function from Vue, we're able to debounce <em>only</em> the operation we want to limit.</p>
<p dir="auto">There will be other times when debouncing isn't <em>quite</em> the right wrapper function. In the very common example of hitting an API for search suggestions, waiting to offer suggestions until after the user has stopped typing isn't an ideal experience. What you probably want instead is a <a href="https://jsbin.com/zefawu/5/edit?html,output" rel="nofollow">throttling function</a>. Now since you're already using a utility library like lodash for <code class="notranslate">debounce</code>, refactoring to use <code class="notranslate">throttle</code> instead takes only a few seconds!</p> | 0 |
<p dir="auto">PowerToys crashed silently twice, after opening it for the third time this error occured:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Version: 1.0.0
OS Version: Microsoft Windows NT 10.0.18363.0
IntPtr Length: 8
x64: True
Date: 08/05/2020 15:37:15
Exception:
System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'Timer'.
at System.Timers.Timer.set_Enabled(Boolean value)
at System.Timers.Timer.Start()
at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)
at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)
at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
at System.Windows.UIElement.UpdateIsVisibleCache()
at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)
at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)
at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)
at System.Windows.Window.SetRootVisual()
at System.Windows.Window.SetRootVisualAndUpdateSTC()
at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)
at System.Windows.Window.CreateSourceWindow(Boolean duringShow)
at System.Windows.Window.CreateSourceWindowDuringShow()
at System.Windows.Window.SafeCreateWindowDuringShow()
at System.Windows.Window.ShowHelper(Object booleanBox)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
[2020-08-05.txt](https://github.com/microsoft/PowerToys/files/5028753/2020-08-05.txt)
"><pre class="notranslate"><code class="notranslate">Version: 1.0.0
OS Version: Microsoft Windows NT 10.0.18363.0
IntPtr Length: 8
x64: True
Date: 08/05/2020 15:37:15
Exception:
System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'Timer'.
at System.Timers.Timer.set_Enabled(Boolean value)
at System.Timers.Timer.Start()
at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)
at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)
at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
at System.Windows.UIElement.UpdateIsVisibleCache()
at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)
at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)
at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)
at System.Windows.Window.SetRootVisual()
at System.Windows.Window.SetRootVisualAndUpdateSTC()
at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)
at System.Windows.Window.CreateSourceWindow(Boolean duringShow)
at System.Windows.Window.CreateSourceWindowDuringShow()
at System.Windows.Window.SafeCreateWindowDuringShow()
at System.Windows.Window.ShowHelper(Object booleanBox)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
[2020-08-05.txt](https://github.com/microsoft/PowerToys/files/5028753/2020-08-05.txt)
</code></pre></div> | <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">Apparently</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="plt.style.use('seaborn-colorblind')"><pre class="notranslate"><span class="pl-s1">plt</span>.<span class="pl-s1">style</span>.<span class="pl-en">use</span>(<span class="pl-s">'seaborn-colorblind'</span>)</pre></div>
<p dir="auto">yields a different color cycle than the one documented in the <a href="https://seaborn.pydata.org/tutorial/color_palettes.html#qualitative-color-palettes" rel="nofollow">seaborn docs</a>.<br>
Especially the greenish color at the second place can be confusing as we're used to 1. blue 2. orange 3. green colors and so on.</p>
<p dir="auto">I've translated the seaborn colors via</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[
''.join([f'{int(255 * h):02x}'.upper() for h in c])
for c in sns.color_palette('colorblind')
]
> ['0173B2', 'DE8F05', '029E73', 'D55E00', 'CC78BC', 'CA9161', 'FBAFE4', '949494', 'ECE133', '56B4E9']"><pre class="notranslate">[
<span class="pl-s">''</span>.<span class="pl-en">join</span>([<span class="pl-s">f'<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-en">int</span>(<span class="pl-c1">255</span> <span class="pl-c1">*</span> <span class="pl-s1">h</span>):02x<span class="pl-kos">}</span></span>'</span>.<span class="pl-en">upper</span>() <span class="pl-k">for</span> <span class="pl-s1">h</span> <span class="pl-c1">in</span> <span class="pl-s1">c</span>])
<span class="pl-k">for</span> <span class="pl-s1">c</span> <span class="pl-c1">in</span> <span class="pl-s1">sns</span>.<span class="pl-en">color_palette</span>(<span class="pl-s">'colorblind'</span>)
]
<span class="pl-c1">></span> [<span class="pl-s">'0173B2'</span>, <span class="pl-s">'DE8F05'</span>, <span class="pl-s">'029E73'</span>, <span class="pl-s">'D55E00'</span>, <span class="pl-s">'CC78BC'</span>, <span class="pl-s">'CA9161'</span>, <span class="pl-s">'FBAFE4'</span>, <span class="pl-s">'949494'</span>, <span class="pl-s">'ECE133'</span>, <span class="pl-s">'56B4E9'</span>]</pre></div>
<p dir="auto">I guess this should go into <a href="https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/mpl-data/stylelib/seaborn-colorblind.mplstyle">https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/mpl-data/stylelib/seaborn-colorblind.mplstyle</a>.</p> | <h3 dir="auto">Bug report</h3>
<p dir="auto"><strong>Bug summary</strong></p>
<p dir="auto">When using a combination of <code class="notranslate">plt.subplots</code> with <code class="notranslate">gridspec_kw/width_ratios</code> along with <code class="notranslate">plt.subplot2grid</code>, some of the axes disappear when one of the width ratios is (in this case) below 0.73.</p>
<p dir="auto"><strong>Code for reproduction</strong></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt
fig, ax = plt.subplots(2,3,sharex=True, sharey=True, gridspec_kw={'width_ratios':[1,1,0.7]})
axi = plt.subplot2grid((2,3),(0,2),rowspan=2)
plt.show()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span>
<span class="pl-s1">fig</span>, <span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">subplots</span>(<span class="pl-c1">2</span>,<span class="pl-c1">3</span>,<span class="pl-s1">sharex</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">sharey</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">gridspec_kw</span><span class="pl-c1">=</span>{<span class="pl-s">'width_ratios'</span>:[<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">0.7</span>]})
<span class="pl-s1">axi</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">subplot2grid</span>((<span class="pl-c1">2</span>,<span class="pl-c1">3</span>),(<span class="pl-c1">0</span>,<span class="pl-c1">2</span>),<span class="pl-s1">rowspan</span><span class="pl-c1">=</span><span class="pl-c1">2</span>)
<span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div>
<p dir="auto"><strong>Actual outcome</strong></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/8016552/41362532-9d776564-6eff-11e8-8e47-588f538e7229.png"><img src="https://user-images.githubusercontent.com/8016552/41362532-9d776564-6eff-11e8-8e47-588f538e7229.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Note that the axes only disappear with the call to <code class="notranslate">subplot2grid</code>. If I remove that line, all axes appear.</p>
<p dir="auto"><strong>Expected outcome</strong></p>
<p dir="auto">If <code class="notranslate">width_ratios</code> is instead <code class="notranslate">[1,1,0.8]</code>, all of the axes appear.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/8016552/41362560-aef98d3a-6eff-11e8-990d-3c3460365b3e.png"><img src="https://user-images.githubusercontent.com/8016552/41362560-aef98d3a-6eff-11e8-990d-3c3460365b3e.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">I can achieve the desired width ratios if I use <code class="notranslate">GridSpec</code> directly instead of using the wrappers, but it would be nice if the wrappers didn't fail based on the <code class="notranslate">width_ratios</code> parameter.</p>
<p dir="auto"><strong>Matplotlib version</strong></p>
<ul dir="auto">
<li>Operating system: Windows 10.0.15063</li>
<li>Matplotlib version: 2.1.0</li>
<li>Matplotlib backend: module://ipykernel.pylab.backend_inline</li>
<li>Python version: 3.6.3</li>
<li>IPython version: 6.1.0</li>
<li>Jupyter notebook server version: 5.4.1</li>
</ul>
<p dir="auto">mabplotlib and python installed via conda.</p> | 0 |
<h2 dir="auto">Bug Report</h2>
<h3 dir="auto">Which version of ShardingSphere did you use?</h3>
<p dir="auto">4.0.0-RC2</p>
<h3 dir="auto">Which project did you use? Sharding-JDBC or Sharding-Proxy?</h3>
<p dir="auto">sharding-jdbc-core</p>
<h3 dir="auto">Expected behavior</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="dsl.select(f1.Id)
.from(f1)
.where(f1.Id.le(id))
.limit(1)
// .getSQL()
.fetchOne().into(Long::class.java)"><pre class="notranslate"><code class="notranslate">dsl.select(f1.Id)
.from(f1)
.where(f1.Id.le(id))
.limit(1)
// .getSQL()
.fetchOne().into(Long::class.java)
</code></pre></div>
<h3 dir="auto">Actual behavior</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer
at org.jooq_3.13.0-SNAPSHOT.MYSQL.debug(Unknown Source)
at org.apache.shardingsphere.core.optimize.sharding.segment.select.pagination.Pagination.getValue(Pagination.java:60)
at org.apache.shardingsphere.core.optimize.sharding.segment.select.pagination.Pagination.<init>(Pagination.java:55)"><pre class="notranslate"><code class="notranslate">java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer
at org.jooq_3.13.0-SNAPSHOT.MYSQL.debug(Unknown Source)
at org.apache.shardingsphere.core.optimize.sharding.segment.select.pagination.Pagination.getValue(Pagination.java:60)
at org.apache.shardingsphere.core.optimize.sharding.segment.select.pagination.Pagination.<init>(Pagination.java:55)
</code></pre></div>
<h3 dir="auto">Reason analyze (If you can)</h3>
<p dir="auto">org.apache.shardingsphere.core.optimize.sharding.segment.select.pagination.Pagination<br>
line 60</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" private int getValue(final PaginationValueSegment paginationValueSegment, final List<Object> parameters) {
return paginationValueSegment instanceof ParameterMarkerPaginationValueSegment
? (int) parameters.get(((ParameterMarkerPaginationValueSegment) paginationValueSegment).getParameterIndex())
: ((NumberLiteralPaginationValueSegment) paginationValueSegment).getValue();
}
// ? (int) parameters.get(((ParameterMarkerPaginationValueSegment) paginationValueSegment).getParameterIndex())
// -> parameters.get(((ParameterMarkerPaginationValueSegment) paginationValueSegment).getParameterIndex()).intValue"><pre class="notranslate"><code class="notranslate"> private int getValue(final PaginationValueSegment paginationValueSegment, final List<Object> parameters) {
return paginationValueSegment instanceof ParameterMarkerPaginationValueSegment
? (int) parameters.get(((ParameterMarkerPaginationValueSegment) paginationValueSegment).getParameterIndex())
: ((NumberLiteralPaginationValueSegment) paginationValueSegment).getValue();
}
// ? (int) parameters.get(((ParameterMarkerPaginationValueSegment) paginationValueSegment).getParameterIndex())
// -> parameters.get(((ParameterMarkerPaginationValueSegment) paginationValueSegment).getParameterIndex()).intValue
</code></pre></div>
<h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.</h3>
<h3 dir="auto">Example codes for reproduce this issue (such as a github link).</h3>
<p dir="auto">JOOQ use <code class="notranslate">Number</code> as limit() parameter, and past <code class="notranslate">Long</code> to preparedstatement</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="dsl.select(f1.Id)
.from(f1)
.where(f1.Id.le(id))
.limit(1)
// .getSQL()
.fetchOne().into(Long::class.java)"><pre class="notranslate"><code class="notranslate">dsl.select(f1.Id)
.from(f1)
.where(f1.Id.le(id))
.limit(1)
// .getSQL()
.fetchOne().into(Long::class.java)
</code></pre></div> | <h2 dir="auto">Bug Report</h2>
<p dir="auto">Duplicate groups founded, due to the incorrect merge.</p>
<h3 dir="auto">Which version of ShardingSphere did you use?</h3>
<p dir="auto">4.1.1</p>
<h3 dir="auto">Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?</h3>
<p dir="auto">ShardingSphere-JDBC</p>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">from table_A order by group_name:</p>
<table role="table">
<thead>
<tr>
<th>group_name</th>
<th>count</th>
</tr>
</thead>
<tbody>
<tr>
<td>A</td>
<td>1</td>
</tr>
</tbody>
</table>
<p dir="auto">from table_B order by group_name:</p>
<table role="table">
<thead>
<tr>
<th>group_name</th>
<th>count</th>
</tr>
</thead>
<tbody>
<tr>
<td>a</td>
<td>1</td>
</tr>
<tr>
<td>A</td>
<td>1</td>
</tr>
</tbody>
</table>
<p dir="auto">the result should be:</p>
<table role="table">
<thead>
<tr>
<th>group_name</th>
<th>count</th>
</tr>
</thead>
<tbody>
<tr>
<td>A</td>
<td>2</td>
</tr>
<tr>
<td>a</td>
<td>1</td>
</tr>
</tbody>
</table>
<h3 dir="auto">Actual behavior</h3>
<table role="table">
<thead>
<tr>
<th>group_name</th>
<th>count</th>
</tr>
</thead>
<tbody>
<tr>
<td>A</td>
<td>1</td>
</tr>
<tr>
<td>a</td>
<td>1</td>
</tr>
<tr>
<td>A</td>
<td>1</td>
</tr>
</tbody>
</table>
<h3 dir="auto">Reason analyze (If you can)</h3>
<p dir="auto">the comparison result of the priority queue in class <a href="https://github.com/apache/shardingsphere/blob/8fd2507f4a7e18831f001687b118ad55ed57c307/features/sharding/core/src/main/java/org/apache/shardingsphere/sharding/merge/dql/orderby/OrderByStreamMergedResult.java#L42">OrderByStreamMergedResult</a> is different from the result of postgreSQL, as the <a href="https://github.com/apache/shardingsphere/blob/96375f420074a8a4cba5307f1a308f3a87b3c7bf/sharding-core/sharding-core-merge/src/main/java/org/apache/shardingsphere/sharding/merge/dql/orderby/OrderByValue.java#L70">getOrderValuesCaseSensitiveFromTables</a> in OrderByValue always returns true, it should be false as 'a' > 'A' according to the resultSet of PG, e.g.<br>
<code class="notranslate">select * from (values ('A'),('a')) as a(test) order by test</code></p>
<table role="table">
<thead>
<tr>
<th>test</th>
</tr>
</thead>
<tbody>
<tr>
<td>a</td>
</tr>
<tr>
<td>A</td>
</tr>
</tbody>
</table>
<p dir="auto">I solved this issue by forcing the <code class="notranslate">order by</code> case-sensitive, is there any other way? thx<br>
<code class="notranslate">select * from (values ('A'),('a')) as a(test) order by test collate "C"</code></p>
<table role="table">
<thead>
<tr>
<th>test</th>
</tr>
</thead>
<tbody>
<tr>
<td>A</td>
</tr>
<tr>
<td>a</td>
</tr>
</tbody>
</table> | 0 |
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=cblin" rel="nofollow">christophe blin</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-7395?redirect=false" rel="nofollow">SPR-7395</a></strong> and commented</p>
<p dir="auto">In the §3.13.2 <a href="http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/htmlsingle/spring-framework-reference.html#context-functionality-events" rel="nofollow">http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/htmlsingle/spring-framework-reference.html#context-functionality-events</a></p>
<p dir="auto">The BlackListNotifier class which implements the interface ApplicationListener is registered as a subscriber to the application context and will receive the BlackListEvent. In order to access properties specific to BlackListEvent, the listener must perform a downcast.</p>
<p dir="auto">This is not true because of the java generic.<br>
You simply have to write BlackListNotifier implements ApplicationListener<BlackListEvent></p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.0 GA</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="398106539" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12080" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12080/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12080">#12080</a> Document use of ApplicationEventPublisher (<em><strong>"duplicates"</strong></em>)</li>
</ul>
<p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/9008cf907ae2d537cc65640a79f0834823f113fb/hovercard" href="https://github.com/spring-projects/spring-framework/commit/9008cf907ae2d537cc65640a79f0834823f113fb"><tt>9008cf9</tt></a></p> | <p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=jtravis" rel="nofollow">Jon Travis</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-7422?redirect=false" rel="nofollow">SPR-7422</a></strong> and commented</p>
<p dir="auto">Section 3.13.2 (Standard and Custom Events) of the reference manual is out of date wrt best practices.</p>
<ul dir="auto">
<li>It does not talk about using ApplicationListener<T> with a type argument, thus removing instanceof checks in the event callback</li>
<li>It does not espouse the use of ApplicationEventPublisher and ApplicationEventPublisherAware</li>
</ul>
<p dir="auto">In both cases, the javadoc for the corresponding bits is correct and up-to-date, it simply needs to be referenced in the manual.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.0 GA</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="398106380" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12053" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12053/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12053">#12053</a> Document generic use of ApplicationListener interface (<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/9008cf907ae2d537cc65640a79f0834823f113fb/hovercard" href="https://github.com/spring-projects/spring-framework/commit/9008cf907ae2d537cc65640a79f0834823f113fb"><tt>9008cf9</tt></a></p> | 1 |
<p dir="auto">Hi,</p>
<p dir="auto">My Ubuntu 14.04 Atom cannot display Chinese (utf-8 files), but a series of strange square boxes. I tried to update the font to 細明體 but in ruin.</p>
<p dir="auto">Here is the output-<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/7088330/7361591/cc5969fa-ed8d-11e4-8116-72aa107c29ca.png"><img src="https://cloud.githubusercontent.com/assets/7088330/7361591/cc5969fa-ed8d-11e4-8116-72aa107c29ca.png" alt="screenshot from 2015-04-28 10 01 27" style="max-width: 100%;"></a></p> | <p dir="auto">Text:</p>
<blockquote>
<p dir="auto">这上面的夜的天空,奇怪而高,我生平没有见过这样奇怪而高的天空。他仿佛要离开人间而去,使人们仰面不再看见。然而现在却非常之蓝,闪闪地睒着几十个星星的眼,冷眼。他的口角上现出微笑,似乎自以为大有深意,而将繁霜洒在我的园里的野花草上。</p>
</blockquote>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/49931/6959354/a30f8266-d94a-11e4-9167-35ea308a5ad2.png"><img src="https://cloud.githubusercontent.com/assets/49931/6959354/a30f8266-d94a-11e4-9167-35ea308a5ad2.png" alt="3" style="max-width: 100%;"></a></p>
<p dir="auto">It happen after update to 0.189.0, and it's normal in 0.188.0 .</p>
<p dir="auto">I try disabled all community packages or star with <code class="notranslate">--safe</code> mode, still happen.</p>
<p dir="auto">Update: Ubuntu 14.04</p> | 1 |
<p dir="auto">Additional constructor that takes in HTMLFormElement as parameter as here:</p>
<p dir="auto"><a href="https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest/FormData" rel="nofollow">https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest/FormData</a></p>
<p dir="auto">declare var FormData: {<br>
prototype: FormData;<br>
new (): FormData;<br>
new (form: HTMLFormElement): FormData;<br>
};</p>
<p dir="auto">This is copied from <a href="https://typescript.codeplex.com/workitem/720" rel="nofollow">https://typescript.codeplex.com/workitem/720</a>, the fix isn't incorporated into TS v 1.4.<br>
It's possible to write the constructor in the optional form as well:<br>
new (form?: HTMLFormElement): FormData;</p>
<p dir="auto">Thanks in advance!</p> | <p dir="auto">i'm including a link to this codeplex issue since I believe it's a critical bug that's been incorrectly closed.</p>
<p dir="auto"><a href="https://typescript.codeplex.com/workitem/627" rel="nofollow">https://typescript.codeplex.com/workitem/627</a></p>
<p dir="auto">when combining output into a single .js file, the compiler should NEVER emit derived classes before their base class.</p>
<p dir="auto">this was reported 2 years ago, and it's still not fixed.</p> | 0 |
<p dir="auto">Hello, I'd like to suggest a flag for <code class="notranslate">npm init</code> which creates a project using <code class="notranslate">"type": "module"</code>. <code class="notranslate">--esm</code>, <code class="notranslate">--module</code>, or similar. Would this change be welcome? Assuming it's trivial in the way I imagine I'd consider opening the PR for it. Thanks in advance!</p> | <p dir="auto">See issue <a href="https://github.com/coreybutler/nvm-windows/issues/799" data-hovercard-type="issue" data-hovercard-url="/coreybutler/nvm-windows/issues/799/hovercard">Error installing NodeJS 14.19.2 with npm version 6.14.17</a>.</p>
<p dir="auto">NVM uses the URL <a href="https://github.com/npm/cli/archive/v6.14.17.zip">https://github.com/npm/cli/archive/v6.14.17.zip</a> to download npm.<br>
This URL typed into a browser returns the same "error" as mentioned in the issue:<br>
<code class="notranslate">the given path has multiple possibilities: #<Git::Ref:0x00007f49a98a1f98>, #<Git::Ref:0x00007f49a9891dc8></code></p>
<p dir="auto">Is there something you can do about this?</p> | 0 |
<p dir="auto">Help me with this Issue this code is not passing</p>
<p dir="auto">slotOne = Math.floor(Math.random() * (3-1+1))+1;<br>
slotTwo = Math.floor(Math.random() * (3-1+1))+1;<br>
slotThree = Math.floor(Math.random() * (3-1+1))+1;</p>
<h4 dir="auto">Challenge Name</h4>
<p dir="auto">assert((function(){if(editor.match(/Math.floor(\s_Math.random()\s_*\s_(\s_3\s_-\s_1\s_+\s_1\s_)\s_)\s_+\s_1/gi) !== null){return editor.match(/slot.<em>?=.</em>?(.<em>?).</em>?/gi).length >= 3;}else{return false;}})(), 'You should have used Math.floor(Math.random() * (3 - 1 + 1)) + 1; three times to generate your random numbers.')</p>
<h4 dir="auto">Issue Description</h4>
<p dir="auto">All checks pass but the fourth one and I used the code three times.</p>
<h4 dir="auto">Browser Information</h4>
<p dir="auto">HP Desktop using google chrome</p>
<h4 dir="auto">Your Code</h4>
<p dir="auto">slotOne = Math.floor(Math.random() * (3-1+1))+1;<br>
slotTwo = Math.floor(Math.random() * (3-1+1))+1;<br>
slotThree = Math.floor(Math.random() * (3-1+1))+1;</p> | <p dir="auto">Challenge <a href="https://www.freecodecamp.com/en/challenges/basic-javascript/create-a-javascript-slot-machine" rel="nofollow">create-a-javascript-slot-machine</a> has an issue.<br>
User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.101 Safari/537.36</code>.<br>
Please describe how to reproduce this issue, and include links to screenshots if possible.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" slotOne=Math.floor( Math.random() * ( 3 - 1 + 1)) + 1;
slotTwo=Math.floor( Math.random() * ( 3 - 1 + 1)) + 1;
slotThree=Math.floor( Math.random() * ( 3 - 1 + 1)) + 1;
```
the code should pass but the last assert function return false"><pre class="notranslate"><code class="notranslate"> slotOne=Math.floor( Math.random() * ( 3 - 1 + 1)) + 1;
slotTwo=Math.floor( Math.random() * ( 3 - 1 + 1)) + 1;
slotThree=Math.floor( Math.random() * ( 3 - 1 + 1)) + 1;
```
the code should pass but the last assert function return false
</code></pre></div> | 1 |
<p dir="auto">I want to restart the whole electron app when I press a button from the index.html. It is not just reload the html page. I want to restart the whole electron app. Is there a way?</p> | <p dir="auto">Currently there is no app.restart function. I think a simple method that restarts the app is quite useful.</p>
<p dir="auto">In my application, I do database updates after downloading a new version of an app.<br>
After those database updates, it's best to just restart the app to prevent database problems.</p>
<p dir="auto">The app.restart method can also be reused in the <code class="notranslate">auto-updater</code>.</p> | 1 |
<p dir="auto">For some platforms (ChromeOS, Fuschia), in order to have useful accessibility information, we need to be connected to the platform's accessibility API (at least to know when we need to turn on the accessibility modes in Flutter).</p> | <p dir="auto">This is an umbrella issue that covers the work being done to support accessibility for desktop Flutter applications.</p>
<h3 dir="auto">Design documents</h3>
<ul dir="auto">
<li>go/flutter-desktop-accessibility</li>
<li>go/accessibility-bridge-detailed-design</li>
</ul>
<h3 dir="auto">Related issues</h3>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="374585417" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/23601" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/23601/hovercard" href="https://github.com/flutter/flutter/issues/23601">#23601</a></li>
</ul>
<h3 dir="auto">Flutter Engine Changes</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Forked chromium accessibility code <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="758871081" data-permission-text="Title is private" data-url="https://github.com/flutter/engine/issues/22909" data-hovercard-type="pull_request" data-hovercard-url="/flutter/engine/pull/22909/hovercard" href="https://github.com/flutter/engine/pull/22909">flutter/engine#22909</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Initial import of accessibility code from Chromium <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="768091817" data-permission-text="Title is private" data-url="https://github.com/flutter/engine/issues/23087" data-hovercard-type="pull_request" data-hovercard-url="/flutter/engine/pull/23087/hovercard" href="https://github.com/flutter/engine/pull/23087">flutter/engine#23087</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Apply local patch to chromium accessibility code <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="769141206" data-permission-text="Title is private" data-url="https://github.com/flutter/engine/issues/23110" data-hovercard-type="pull_request" data-hovercard-url="/flutter/engine/pull/23110/hovercard" href="https://github.com/flutter/engine/pull/23110">flutter/engine#23110</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Implements accessibility bridge in common library <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="781518965" data-permission-text="Title is private" data-url="https://github.com/flutter/engine/issues/23491" data-hovercard-type="pull_request" data-hovercard-url="/flutter/engine/pull/23491/hovercard" href="https://github.com/flutter/engine/pull/23491">flutter/engine#23491</a></li>
</ul>
<p dir="auto">mac:</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Wires up accessibility bridge in macOS <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="792290105" data-permission-text="Title is private" data-url="https://github.com/flutter/engine/issues/23870" data-hovercard-type="pull_request" data-hovercard-url="/flutter/engine/pull/23870/hovercard" href="https://github.com/flutter/engine/pull/23870">flutter/engine#23870</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> selection announcement does not work for selectable text <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="828215261" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/77833" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/77833/hovercard" href="https://github.com/flutter/flutter/issues/77833">#77833</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> voice over does not announce feedback when typing in a text field <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="828219038" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/77834" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/77834/hovercard" href="https://github.com/flutter/flutter/issues/77834">#77834</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> text field should be activated when it receives a11y focus <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="828222662" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/77835" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/77835/hovercard" href="https://github.com/flutter/flutter/issues/77835">#77835</a></li>
</ul>
<p dir="auto">windows:</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Forked required windows component from chromium <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="828229500" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/77836" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/77836/hovercard" href="https://github.com/flutter/flutter/issues/77836">#77836</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Wires up accessibility bridge in Windows <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="828231889" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/77838" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/77838/hovercard" href="https://github.com/flutter/flutter/issues/77838">#77838</a></li>
</ul>
<h3 dir="auto">Chromium Changes</h3>
<ul dir="auto">
<li><a href="https://chromium-review.googlesource.com/c/chromium/src/+/2616901" rel="nofollow">https://chromium-review.googlesource.com/c/chromium/src/+/2616901</a></li>
</ul> | 1 |
<p dir="auto">Launched demo modal adds a second scroll bar.</p> | <p dir="auto">Hi, sorry for bad English. I want to tell that there is issue with opened modal (2 scrollbars) if javascripts included in head and not in the end of page as assumed in examples. The reason is here <a href="https://github.com/twbs/bootstrap/blob/3.0.0-wip/js/modal.js#L238">https://github.com/twbs/bootstrap/blob/3.0.0-wip/js/modal.js#L238</a> $body is empty</p> | 1 |
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import seaborn as sns
sns.regplot(x=[1], y=[1])"><pre class="notranslate"><code class="notranslate">import seaborn as sns
sns.regplot(x=[1], y=[1])
</code></pre></div>
<p dir="auto">will cause following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="IndexError Traceback (most recent call last)
<ipython-input-3-4dd949c43459> in <module>
----> 1 sns.regplot(x=[1], y=[1])
~/venv/lib/python3.7/site-packages/seaborn/regression.py in regplot(x, y, data, x_estimator, x_bins, x_ci, scatter, fit_reg, ci, n_boot, units, seed, order, logistic, lowess, robust, logx, x_partial, y_partial, truncate, dropna, x_jitter, y_jitter, label, color, marker, scatter_kws, line_kws, ax)
808 order, logistic, lowess, robust, logx,
809 x_partial, y_partial, truncate, dropna,
--> 810 x_jitter, y_jitter, color, label)
811
812 if ax is None:
~/venv/lib/python3.7/site-packages/seaborn/regression.py in __init__(self, x, y, data, x_estimator, x_bins, x_ci, scatter, fit_reg, ci, n_boot, units, seed, order, logistic, lowess, robust, logx, x_partial, y_partial, truncate, dropna, x_jitter, y_jitter, color, label)
112 # Drop null observations
113 if dropna:
--> 114 self.dropna("x", "y", "units", "x_partial", "y_partial")
115
116 # Regress nuisance variables out of the data
~/venv/lib/python3.7/site-packages/seaborn/regression.py in dropna(self, *vars)
64 val = getattr(self, var)
65 if val is not None:
---> 66 setattr(self, var, val[not_na])
67
68 def plot(self, ax):
IndexError: too many indices for array"><pre class="notranslate"><code class="notranslate">IndexError Traceback (most recent call last)
<ipython-input-3-4dd949c43459> in <module>
----> 1 sns.regplot(x=[1], y=[1])
~/venv/lib/python3.7/site-packages/seaborn/regression.py in regplot(x, y, data, x_estimator, x_bins, x_ci, scatter, fit_reg, ci, n_boot, units, seed, order, logistic, lowess, robust, logx, x_partial, y_partial, truncate, dropna, x_jitter, y_jitter, label, color, marker, scatter_kws, line_kws, ax)
808 order, logistic, lowess, robust, logx,
809 x_partial, y_partial, truncate, dropna,
--> 810 x_jitter, y_jitter, color, label)
811
812 if ax is None:
~/venv/lib/python3.7/site-packages/seaborn/regression.py in __init__(self, x, y, data, x_estimator, x_bins, x_ci, scatter, fit_reg, ci, n_boot, units, seed, order, logistic, lowess, robust, logx, x_partial, y_partial, truncate, dropna, x_jitter, y_jitter, color, label)
112 # Drop null observations
113 if dropna:
--> 114 self.dropna("x", "y", "units", "x_partial", "y_partial")
115
116 # Regress nuisance variables out of the data
~/venv/lib/python3.7/site-packages/seaborn/regression.py in dropna(self, *vars)
64 val = getattr(self, var)
65 if val is not None:
---> 66 setattr(self, var, val[not_na])
67
68 def plot(self, ax):
IndexError: too many indices for array
</code></pre></div>
<p dir="auto"><strong>This bug only exists in 0.10.0, but not in 0.9.0.</strong></p> | <p dir="auto">For example:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import numpy as np
import pandas as pd
import seaborn as sns
df = pd.DataFrame({
'col': np.append(np.random.choice(np.array(['a', 'b', 'c']), 10), ['d']),
'x': np.random.normal(size = 11),
'y': np.random.normal(size = 11),
})
sns.lmplot(x = 'x', y = 'y', col = 'col', data = df)"><pre class="notranslate"><code class="notranslate">import numpy as np
import pandas as pd
import seaborn as sns
df = pd.DataFrame({
'col': np.append(np.random.choice(np.array(['a', 'b', 'c']), 10), ['d']),
'x': np.random.normal(size = 11),
'y': np.random.normal(size = 11),
})
sns.lmplot(x = 'x', y = 'y', col = 'col', data = df)
</code></pre></div>
<p dir="auto">It raises <code class="notranslate">IndexError: invalid index to scalar variable</code> which is not very intuitive. I think this case can occur with any data coming from the real world, and would be much nicer to exclude this group automatically or simply plot the single dot without regression line.</p> | 1 |
<p dir="auto">Current functionality only allows splitting the input data into 2 parts i.e. "Train" and "Test" datasets.<br>
Extension to this functionality is to allow 3 splits of dataset i.e. Train, Test and Validation using the function call only once.<br>
High level impact assessment changes to :-</p>
<ol dir="auto">
<li>train_test_split()</li>
<li>Other modules may also be impacted - Assessment ongoing</li>
</ol> | <p dir="auto">Asking how to do a threefold split is the top sklearn question on stackoverflow:<br>
<a href="https://stackoverflow.com/questions/tagged/scikit-learn?sort=frequent&pageSize=50" rel="nofollow">https://stackoverflow.com/questions/tagged/scikit-learn?sort=frequent&pageSize=50</a></p>
<p dir="auto">We have discussed this before but I think this is a good reason to add it - the other option would be to document more explictly doing</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from sklearn.model_selection import train_test_split
X_trainval, X_test, y_trainval, y_test = train_test_split(X, y)
X_train, X_val, y_train, y_val = train_test_split(X_trainval, y_trainval)"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">model_selection</span> <span class="pl-k">import</span> <span class="pl-s1">train_test_split</span>
<span class="pl-v">X_trainval</span>, <span class="pl-v">X_test</span>, <span class="pl-s1">y_trainval</span>, <span class="pl-s1">y_test</span> <span class="pl-c1">=</span> <span class="pl-en">train_test_split</span>(<span class="pl-v">X</span>, <span class="pl-s1">y</span>)
<span class="pl-v">X_train</span>, <span class="pl-v">X_val</span>, <span class="pl-s1">y_train</span>, <span class="pl-s1">y_val</span> <span class="pl-c1">=</span> <span class="pl-en">train_test_split</span>(<span class="pl-v">X_trainval</span>, <span class="pl-s1">y_trainval</span>)</pre></div>
<p dir="auto">if that's the idiomatic way to do that.<br>
The "issue" with that way is that it's harder to figure out the ratios.</p>
<p dir="auto">If we want to add a threefold split method, there's three options:</p>
<ul dir="auto">
<li>add another parameter to <code class="notranslate">train_test_split</code> (not sure I like this)</li>
<li>create a new method that mirrors the interface of <code class="notranslate">train_test_split</code></li>
<li>create a new method with a better interface than <code class="notranslate">train_test_split</code></li>
</ul>
<p dir="auto">I kinda prefer the last one but it might be confusing to users. My ideal signature would not have <code class="notranslate">*args</code> and explicitly name X and y so we could stratify by default.<br>
Maybe<br>
<code class="notranslate">naming_is_hard(X=None, y=None, fit_parms=None, train_size=None, val_size=None, test_size=None)</code>.</p>
<p dir="auto">I'm not sure if it would make sense to pass a <code class="notranslate">cv</code> object here? or a CV class that's internally instantiated? Or we could have <code class="notranslate">stratify</code> and <code class="notranslate">grouped</code> options? Maybe the last makes most sense?</p> | 1 |
<p dir="auto">This is not a bug request, but rather, it's a discussion on the reasons why you named 2 prop types of <code class="notranslate">TextField</code> almost the same with one being upper case.<br>
According to <a href="https://material-ui-next.com/api/text-field/#textfield" rel="nofollow">TextField API</a>,<br>
<code class="notranslate">TextField</code> exposes two prop types with almost same names. <code class="notranslate">InputProps</code> and <code class="notranslate">inputProps</code>.<br>
Currently, my Eslint gives me an error for having duplicate prop type.<br>
Is there any reason to name 2 prop types almost the same?<br>
Can't we rename 1 of them to something more clarifying?<br>
This also gives headaches with linting tools.</p>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">Eslint or any other linting tool doesn't give me any duplicate error.(<code class="notranslate">react/jsx-no-duplicate-props</code>).</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">Eslint throwing duplicate prop error.</p>
<p dir="auto">Plugin is located <a href="https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-duplicate-props.md">here</a>.</p>
<p dir="auto">##Temporal solution<br>
Yes, you can set <code class="notranslate">ignoreCase</code> to false in <code class="notranslate">.eslintrc</code> but isn't it better to name our props in a more definitive way?<br>
Thank you.</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-beta30</td>
</tr>
<tr>
<td>React</td>
<td>^16.0.0</td>
</tr>
<tr>
<td>eslint</td>
<td>^4.8.0</td>
</tr>
</tbody>
</table> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<p dir="auto">I was thinking I could contribute a "solo field" to Material UI, if you're interested, and given you don't already have a solution for it already. The idea is to have a input field that can be used as the main search form in webapps. I have created a custom one that I use together with material-ui, and figured it would be cool to make a contribution to the project.</p>
<p dir="auto">First of all, does it make sense to have this as a component or is the idea that it is easy enough to change the existing TextField / AutoComplete components with the new <code class="notranslate">classes</code> API and <code class="notranslate">withStyles</code> HOC?</p>
<p dir="auto">Second, I was thinking of making it a separate component, but perhaps it's better to include it in the existing TextField component? Thoughts? Actually, when I think about it, it definitely needs to support auto-complete, so on a second thought it should probably rely on AutoComplete (which I assume in turn is based on TextField).</p>
<p dir="auto">It should support an icon (and potentially a drop down menu) and auto-complete.</p>
<p dir="auto">Examples:</p>
<ul dir="auto">
<li>Search for "solo fields" in the <a href="https://material.io/guidelines/components/text-fields.html#text-fields-field-variations" rel="nofollow">Text fields spec</a></li>
<li>Search for "Floating toolbar" in the <a href="https://material.io/guidelines/layout/structure.html#structure-toolbars" rel="nofollow">Layout/structure guideline</a></li>
<li><a href="https://www.google.com/maps/" rel="nofollow">Google Maps</a> - floating toolbar with solo field</li>
<li><a href="https://drive.google.com/drive/my-drive" rel="nofollow">Google Drive</a> - the search field in the toolbar</li>
</ul>
<p dir="auto">Screenshot examples:</p>
<p dir="auto">Floating toolbar with solo field:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/2538130/30308290-38b91576-9739-11e7-8b01-3cf9ce37f24f.png"><img src="https://user-images.githubusercontent.com/2538130/30308290-38b91576-9739-11e7-8b01-3cf9ce37f24f.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Regular toolbar/app bar with solo field:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/2538130/30308350-991b0d2a-9739-11e7-9494-b3aad78f4cf5.png"><img src="https://user-images.githubusercontent.com/2538130/30308350-991b0d2a-9739-11e7-9494-b3aad78f4cf5.png" alt="image" style="max-width: 100%;"></a></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: 10.0.18990.0
Windows Terminal version (if applicable): After 1909 release, built from master, latest commit: https://github.com/microsoft/terminal/commit/df26c677efcb815a3b66a974345c9d3483cab678
Any other software?"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 10.0.18990.0
Windows Terminal version (if applicable): After 1909 release, built from master, latest commit: https://github.com/microsoft/terminal/commit/df26c677efcb815a3b66a974345c9d3483cab678
Any other software?
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Resize the Terminal from the bottom or double click to make it full screen. Any vertical resizing will do it.</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">Everything draws properly and the background color fills the window.</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">The background doesn't fill and black rectangles fill it instead. Improper redrawing.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/48369326/66854980-3d2b5300-ef37-11e9-987d-84b94350b422.gif"><img src="https://user-images.githubusercontent.com/48369326/66854980-3d2b5300-ef37-11e9-987d-84b94350b422.gif" alt="verticalredrawbug" data-animated-image="" style="max-width: 100%;"></a></p> | <p dir="auto">You can't input Chinese using the Chinese input method that comes with WIndows 10.</p> | 0 |
<p dir="auto">The problem is that you can shoot yourself in the foot with the numpy version of <code class="notranslate">all</code>, because it is not consistent with the Python build-in <code class="notranslate">all</code> in return value when generator is passed to it:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [1]: import numpy
In [2]: numpy.all(a for a in [False])
Out[2]: <generator object <genexpr> at 0x7f22623eeaa0>
In [3]: bool(numpy.all(a for a in [False]))
Out[3]: True
In [4]: __builtin__.all(a for a in [False])
Out[4]: False"><pre class="notranslate"><code class="notranslate">In [1]: import numpy
In [2]: numpy.all(a for a in [False])
Out[2]: <generator object <genexpr> at 0x7f22623eeaa0>
In [3]: bool(numpy.all(a for a in [False]))
Out[3]: True
In [4]: __builtin__.all(a for a in [False])
Out[4]: False
</code></pre></div>
<p dir="auto">This is especially confusing when used with <code class="notranslate">ipython -pylab</code> in which case the <strong>buildin</strong>.all is shadowed with the numpy one:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ipython -pylab
... blah blah...
In [2]: all.func_code
Out[2]: <code object all at 0x7ff967d8c5b0, file "/usr/lib64/python2.7/site-packages
numpy/core/fromnumeric.py", line 1842>"><pre class="notranslate"><code class="notranslate">$ ipython -pylab
... blah blah...
In [2]: all.func_code
Out[2]: <code object all at 0x7ff967d8c5b0, file "/usr/lib64/python2.7/site-packages
numpy/core/fromnumeric.py", line 1842>
</code></pre></div> | <p dir="auto">Numpy's any() (and all()) functions should work with generator expressions to be consistent with basic python. I spent several hours trying to debug a case of this, which would work if I used a list, but not if I used a generator expression -- only to discover that it was because numpy's all() function was being used instead of the usual python one that works identically with both generators and lists.</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="lst = [0,1,2]
print any(i < 0 for i in lst) # False
from numpy import any
print any([i < 0 for i in lst]) # False
print any(i < 0 for i in lst) # <generator object <genexpr> at 0x1006bd500>"><pre class="notranslate"><span class="pl-s1">lst</span> <span class="pl-c1">=</span> [<span class="pl-c1">0</span>,<span class="pl-c1">1</span>,<span class="pl-c1">2</span>]
<span class="pl-k">print</span> <span class="pl-en">any</span>(<span class="pl-s1">i</span> <span class="pl-c1"><</span> <span class="pl-c1">0</span> <span class="pl-k">for</span> <span class="pl-s1">i</span> <span class="pl-c1">in</span> <span class="pl-s1">lst</span>) <span class="pl-c"># False</span>
<span class="pl-k">from</span> <span class="pl-s1">numpy</span> <span class="pl-k">import</span> <span class="pl-s1">any</span>
<span class="pl-k">print</span> <span class="pl-en">any</span>([<span class="pl-s1">i</span> <span class="pl-c1"><</span> <span class="pl-c1">0</span> <span class="pl-k">for</span> <span class="pl-s1">i</span> <span class="pl-c1">in</span> <span class="pl-s1">lst</span>]) <span class="pl-c"># False</span>
<span class="pl-k">print</span> <span class="pl-en">any</span>(<span class="pl-s1">i</span> <span class="pl-c1"><</span> <span class="pl-c1">0</span> <span class="pl-k">for</span> <span class="pl-s1">i</span> <span class="pl-c1">in</span> <span class="pl-s1">lst</span>) <span class="pl-c"># <generator object <genexpr> at 0x1006bd500></span></pre></div> | 1 |
<ul dir="auto">
<li>VSCode Version: 0.10.11</li>
<li>OS Version: Windows 8.1</li>
</ul>
<p dir="auto">Steps to Reproduce:</p>
<ol dir="auto">
<li>Install a big extension that is likely to take some time</li>
<li>Navigate away from VS Code and come back</li>
<li>No progress bar/indication if the extension is installing<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="135758146" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/3341" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/3341/hovercard" href="https://github.com/microsoft/vscode/issues/3341">#3341</a> deals with something similar to this but only a message was added as part of <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/microsoft/vscode/commit/83f1fe7f20b7c099246a8a8d62fd829bbf6d4840/hovercard" href="https://github.com/microsoft/vscode/commit/83f1fe7f20b7c099246a8a8d62fd829bbf6d4840"><tt>83f1fe7</tt></a></li>
</ol> | <p dir="auto">When downloading a larger extension you get no progress/status indication.</p> | 1 |
<p dir="auto">I've noticed an easy area to make a mistake in the language because of this <a href="http://stackoverflow.com/q/30467906/188246" rel="nofollow">SO question</a>. Take this example:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class MyClass {
@SetDefaultValue
filePath: string;
}
var c = new MyClass();
console.log(c.filePath);
function SetDefaultValue(defaultValue = "Example") {
return function (target: Object, propertyKey: string | symbol) {
target[propertyKey] = defaultValue;
};
}"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">MyClass</span> <span class="pl-kos">{</span>
@<span class="pl-smi">SetDefaultValue</span>
<span class="pl-c1">filePath</span>: <span class="pl-smi">string</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-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">MyClass</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">c</span><span class="pl-kos">.</span><span class="pl-c1">filePath</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">function</span> <span class="pl-smi">SetDefaultValue</span><span class="pl-kos">(</span><span class="pl-s1">defaultValue</span> <span class="pl-c1">=</span> <span class="pl-s">"Example"</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">target</span>: <span class="pl-smi">Object</span><span class="pl-kos">,</span> <span class="pl-s1">propertyKey</span>: <span class="pl-smi">string</span> <span class="pl-c1">|</span> <span class="pl-smi">symbol</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">target</span><span class="pl-kos">[</span><span class="pl-s1">propertyKey</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-s1">defaultValue</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">This compiles fine; however, this will output <code class="notranslate">undefined</code>. To fix this, the developer needs to remember to add parentheses:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class MyClass {
@SetDefaultValue()
filePath: string;
}"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">MyClass</span> <span class="pl-kos">{</span>
@<span class="pl-smi">SetDefaultValue</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
<span class="pl-c1">filePath</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Now it will output <code class="notranslate">Example</code>.</p>
<p dir="auto">This seems too sneaky to me. I can see this leading to incredibly annoying bugs in applications. Is there any way the compiler could get both ways to work or throw a compile error for one of them?</p> | <p dir="auto">As mentioned in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="60187635" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/2249" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/2249/hovercard?comment_id=104235451&comment_type=issue_comment" href="https://github.com/microsoft/TypeScript/issues/2249#issuecomment-104235451">#2249 (comment)</a>, consider this:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// decorator factory
function F(options?: {optional: boolean}) {
// returns a property decorator
return (target , propertyKey): void => {
// decorator implementation
}
}
class C {
@F() // OK, used as a factory
prop1;
@F // No error
prop2;
}"><pre class="notranslate"><span class="pl-c">// decorator factory</span>
<span class="pl-k">function</span> <span class="pl-smi">F</span><span class="pl-kos">(</span><span class="pl-s1">options</span>?: <span class="pl-kos">{</span><span class="pl-c1">optional</span>: <span class="pl-smi">boolean</span><span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-c">// returns a property decorator</span>
<span class="pl-k">return</span> <span class="pl-kos">(</span><span class="pl-s1">target</span> <span class="pl-kos">,</span> <span class="pl-s1">propertyKey</span><span class="pl-kos">)</span>: <span class="pl-smi"><span class="pl-k">void</span></span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-c">// decorator implementation</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">class</span> <span class="pl-smi">C</span> <span class="pl-kos">{</span>
@<span class="pl-smi">F</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c">// OK, used as a factory</span>
<span class="pl-c1">prop1</span><span class="pl-kos">;</span>
@<span class="pl-smi">F</span> <span class="pl-c">// No error</span>
<span class="pl-c1">prop2</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">The problem here is that the compiler compares the signature of the decorator factory <code class="notranslate">F</code> against <code class="notranslate">declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void;</code> which ends up to be assignable. I think we need a stronger check here to make sure we catch these issue.</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/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">When I click on a Select component, I don't expect my webpage scrollbar to disapear.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">Scrollbar disapear when a select is active.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6009968/31044626-1e648518-a5d3-11e7-84b7-2f2bf12361c8.jpg"><img src="https://user-images.githubusercontent.com/6009968/31044626-1e648518-a5d3-11e7-84b7-2f2bf12361c8.jpg" alt="arrow" style="max-width: 100%;"></a></p>
<h2 dir="auto">Context</h2>
<p dir="auto">This is very annoying as in some situations it changes the layout of the page.</p> | <p dir="auto">1.0 TextField ref return null</p>
<ul dir="auto">
<li>[x ] I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">1.0 TextField ref return null</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<ol dir="auto">
<li></li>
<li></li>
<li></li>
<li></li>
</ol>
<h2 dir="auto">Context</h2>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td></td>
</tr>
<tr>
<td>React</td>
<td></td>
</tr>
<tr>
<td>browser</td>
<td></td>
</tr>
<tr>
<td>etc</td>
<td></td>
</tr>
</tbody>
</table> | 0 |
<p dir="auto">When in strict mode (what's advised to use).<br>
E.g. ceil() and floor() calls in variables fail because the expressions inside them should be wrapped in extra parenthesis.<br>
Also ceil() calls in type.</p> | <p dir="auto">LESS 1.4 is currently beta but it wouldn't harm to prepare for its breaking changes.<br>
I only found problematic mathematical expressions that won't compile (correctly) with 1.4.0b (using the latest BS source):</p>
<ul dir="auto">
<li>panels ln 20 should be enclosed in parentheses</li>
<li>.make-column() will produce a width with NaN% for <a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/media/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/media">@media</a> (min-width: 768px)</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/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Context</h2>
<p dir="auto">We export a Next.js site using <code class="notranslate">next export</code> and deploy it to Netlify. We noticed that after deploying a new version of the site, all users who have the previous version open in the browser cannot follow links anymore.</p>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">The router's <code class="notranslate">onAppUpdated</code> event is triggered and causes a reload of the page by default, as documented in the README.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto"><code class="notranslate">onRouteChangeStart</code> is triggered, but <code class="notranslate">onAppUpdated</code> (or even <code class="notranslate">onRouteChangeError</code>) is never called. Instead, nothing user-visible happens. The browser developer tools reveal a failed <code class="notranslate"><script></code> request (because the build ID - and thus the JS chunk's path - changed) which is apparently not being acted upon.</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<ol dir="auto">
<li>Create a Next.js page with at least one (non-prefetch) link and create a listener for <code class="notranslate">onAppUpdated</code>.</li>
<li>Build it with <code class="notranslate">next export</code>, serve it (e.g. <code class="notranslate">npx server _build</code>) and visit it.</li>
<li>With the page open, rebuild the page (another <code class="notranslate">next export</code>).</li>
<li>Try clicking on the link you created. Nothing happens, and the <code class="notranslate">onAppUpdated</code> listener is not called.</li>
</ol>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>next</td>
<td>4.2.1</td>
</tr>
<tr>
<td>node</td>
<td>9.3.0</td>
</tr>
<tr>
<td>OS</td>
<td>macOS 10.13.1</td>
</tr>
<tr>
<td>browser</td>
<td>Any</td>
</tr>
</tbody>
</table> | <p dir="auto">I’m trying to render a nextjs page blob (from a HTTP POST) into an iframe src.</p>
<p dir="auto">I do a HTTP POST to an url in my next server. Then convert that html document into a blob using <code class="notranslate">const urlBlob = URL.createObjectURL(blob)</code> and passing that into an iframe <code class="notranslate"><iframe src={urlBlob}/></code></p>
<p dir="auto">I had to use <strong>assetPrefix</strong> in <strong>next.config.js</strong> to point to the host, in this case <code class="notranslate">http://localhost:3000</code></p>
<p dir="auto">In npm run dev the hmr is unavailable.<br>
After running <code class="notranslate">npm build</code> and <code class="notranslate">npm start</code> it renders the page on an iframe and the JS loads.</p>
<p dir="auto">The problem is that the router is breaking my JS.</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">Javascript should be functional. I expect the router to be disabled.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">Javascript crashes with the following error:</p>
<p dir="auto"><code class="notranslate">app.js:15 Failed to execute 'replaceState' on 'History': A history state object with URL 'tp://localhost:3000/2ada9931-0621-4f74-81ed-dc8255a340e6' cannot be created in a document with origin 'http://localhost:3000' and URL 'blob:http://localhost:3000/2ada9931-0621-4f74-81ed-dc8255a340e6'.</code></p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<ol dir="auto">
<li>HTTP Post to a NextJS page</li>
<li>Render the html blob into an iframe using Url.createObjectURL</li>
<li>Open browser's console and see the router errors.</li>
</ol>
<h2 dir="auto">Context</h2>
<p dir="auto">I am unable to use JS on iframes which are populated by blobs.</p>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>next</td>
<td>4.1.0</td>
</tr>
<tr>
<td>node</td>
<td>8.8.1</td>
</tr>
<tr>
<td>OS</td>
<td>OSX High Sierra</td>
</tr>
<tr>
<td>browser</td>
<td>Chrome 62</td>
</tr>
<tr>
<td>etc</td>
<td>...</td>
</tr>
</tbody>
</table> | 0 |
<p dir="auto"><strong>System information</strong></p>
<ul dir="auto">
<li>OS Platform: Win 10</li>
<li>TensorFlow installed from (source or binary): binary</li>
<li>TensorFlow version (use command below): b'v1.13.1-0-g6612da8951' 1.13.1</li>
<li>Python version: 3.6.7</li>
<li>CUDA/cuDNN version: CUDA V10.0.130, cuDNN 7.5</li>
<li>GPU model and memory: RTX 2070 8GB</li>
</ul>
<p dir="auto"><strong>Describe the current behavior</strong><br>
I've convert my keras network to tensorflow eager and this network dosn't learn anything. The network predicts only the same values. The performance is 2-3 times slower as the keras model.<br>
With tensorflow graph without eager execution everything works fine.</p>
<p dir="auto"><strong>Describe the expected behavior</strong><br>
I want to predict actions for various input images in reinforcement learning</p>
<p dir="auto"><strong>Code to reproduce the issue</strong><br>
<strong>Keras model</strong></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from keras.layers import *
from keras.models import Model
from keras.optimizers import Adam
import tensorflow as tf
class KerasTest:
def __init__(self, state_space, action_space, lr):
self.state_space = state_space
self.action_space = action_space
self.lr = lr
inputs = Input(shape=(84, 84, 4))
rewards = Input(shape=(1,))
x = Conv2D(32, kernel_size=[8, 8], padding='valid', strides=[4, 4], activation=None)(inputs)
x = BatchNormalization(trainable=True, epsilon=1e-5)(x)
x = Activation('relu')(x)
x = Conv2D(64, kernel_size=[4, 4], padding='valid', strides=[2, 2], activation=None)(x)
x = BatchNormalization(trainable=True, epsilon=1e-5)(x)
x = Activation('relu')(x)
x = Conv2D(64, kernel_size=(4, 4), padding='valid', strides=(2, 2), activation=None)(x)
x = BatchNormalization(trainable=True, epsilon=1e-5)(x)
x = Activation('relu')(x)
x = Flatten()(x)
x = Dense(512, activation='relu')(x)
x = Dropout(0.5)(x)
x = Dense(256, activation='relu')(x)
x = Dropout(0.3)(x)
x = Dense(128, activation='relu')(x)
x = Dropout(0.05)(x)
logits = Dense(self.action_space, activation=None)(x)
self.model = Model(inputs=[inputs, rewards], outputs=logits)
def policy_loss(r):
def loss(labels, logits):
policy = tf.nn.softmax(logits)
entropy = tf.nn.softmax_cross_entropy_with_logits_v2(labels=policy, logits=logits)
log = tf.nn.softmax_cross_entropy_with_logits_v2(labels=labels, logits=logits)
p_loss = log * tf.stop_gradient(r)
p_loss = p_loss - 0.01 * entropy
total_loss = tf.reduce_mean(p_loss)
return total_loss
return loss
self.model.compile(optimizer=Adam(lr=lr), loss=policy_loss(rewards))
self.model.summary()
def get_probs(self, s):
s = s[np.newaxis, :]
probs = self.model.predict([s, np.array([1])])
probs = probs.squeeze()
probs = self.softmax(probs)
return probs
def softmax(self, x):
e_x = np.exp(x - np.max(x))
return e_x / e_x.sum(axis=0)
def update_policy(self, s, r, a):
self.model.train_on_batch([s, r], a)"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">keras</span>.<span class="pl-s1">layers</span> <span class="pl-k">import</span> <span class="pl-c1">*</span>
<span class="pl-k">from</span> <span class="pl-s1">keras</span>.<span class="pl-s1">models</span> <span class="pl-k">import</span> <span class="pl-v">Model</span>
<span class="pl-k">from</span> <span class="pl-s1">keras</span>.<span class="pl-s1">optimizers</span> <span class="pl-k">import</span> <span class="pl-v">Adam</span>
<span class="pl-k">import</span> <span class="pl-s1">tensorflow</span> <span class="pl-k">as</span> <span class="pl-s1">tf</span>
<span class="pl-k">class</span> <span class="pl-v">KerasTest</span>:
<span class="pl-k">def</span> <span class="pl-en">__init__</span>(<span class="pl-s1">self</span>, <span class="pl-s1">state_space</span>, <span class="pl-s1">action_space</span>, <span class="pl-s1">lr</span>):
<span class="pl-s1">self</span>.<span class="pl-s1">state_space</span> <span class="pl-c1">=</span> <span class="pl-s1">state_space</span>
<span class="pl-s1">self</span>.<span class="pl-s1">action_space</span> <span class="pl-c1">=</span> <span class="pl-s1">action_space</span>
<span class="pl-s1">self</span>.<span class="pl-s1">lr</span> <span class="pl-c1">=</span> <span class="pl-s1">lr</span>
<span class="pl-s1">inputs</span> <span class="pl-c1">=</span> <span class="pl-v">Input</span>(<span class="pl-s1">shape</span><span class="pl-c1">=</span>(<span class="pl-c1">84</span>, <span class="pl-c1">84</span>, <span class="pl-c1">4</span>))
<span class="pl-s1">rewards</span> <span class="pl-c1">=</span> <span class="pl-v">Input</span>(<span class="pl-s1">shape</span><span class="pl-c1">=</span>(<span class="pl-c1">1</span>,))
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-v">Conv2D</span>(<span class="pl-c1">32</span>, <span class="pl-s1">kernel_size</span><span class="pl-c1">=</span>[<span class="pl-c1">8</span>, <span class="pl-c1">8</span>], <span class="pl-s1">padding</span><span class="pl-c1">=</span><span class="pl-s">'valid'</span>, <span class="pl-s1">strides</span><span class="pl-c1">=</span>[<span class="pl-c1">4</span>, <span class="pl-c1">4</span>], <span class="pl-s1">activation</span><span class="pl-c1">=</span><span class="pl-c1">None</span>)(<span class="pl-s1">inputs</span>)
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-v">BatchNormalization</span>(<span class="pl-s1">trainable</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">epsilon</span><span class="pl-c1">=</span><span class="pl-c1">1e-5</span>)(<span class="pl-s1">x</span>)
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-v">Activation</span>(<span class="pl-s">'relu'</span>)(<span class="pl-s1">x</span>)
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-v">Conv2D</span>(<span class="pl-c1">64</span>, <span class="pl-s1">kernel_size</span><span class="pl-c1">=</span>[<span class="pl-c1">4</span>, <span class="pl-c1">4</span>], <span class="pl-s1">padding</span><span class="pl-c1">=</span><span class="pl-s">'valid'</span>, <span class="pl-s1">strides</span><span class="pl-c1">=</span>[<span class="pl-c1">2</span>, <span class="pl-c1">2</span>], <span class="pl-s1">activation</span><span class="pl-c1">=</span><span class="pl-c1">None</span>)(<span class="pl-s1">x</span>)
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-v">BatchNormalization</span>(<span class="pl-s1">trainable</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">epsilon</span><span class="pl-c1">=</span><span class="pl-c1">1e-5</span>)(<span class="pl-s1">x</span>)
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-v">Activation</span>(<span class="pl-s">'relu'</span>)(<span class="pl-s1">x</span>)
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-v">Conv2D</span>(<span class="pl-c1">64</span>, <span class="pl-s1">kernel_size</span><span class="pl-c1">=</span>(<span class="pl-c1">4</span>, <span class="pl-c1">4</span>), <span class="pl-s1">padding</span><span class="pl-c1">=</span><span class="pl-s">'valid'</span>, <span class="pl-s1">strides</span><span class="pl-c1">=</span>(<span class="pl-c1">2</span>, <span class="pl-c1">2</span>), <span class="pl-s1">activation</span><span class="pl-c1">=</span><span class="pl-c1">None</span>)(<span class="pl-s1">x</span>)
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-v">BatchNormalization</span>(<span class="pl-s1">trainable</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">epsilon</span><span class="pl-c1">=</span><span class="pl-c1">1e-5</span>)(<span class="pl-s1">x</span>)
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-v">Activation</span>(<span class="pl-s">'relu'</span>)(<span class="pl-s1">x</span>)
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-v">Flatten</span>()(<span class="pl-s1">x</span>)
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-v">Dense</span>(<span class="pl-c1">512</span>, <span class="pl-s1">activation</span><span class="pl-c1">=</span><span class="pl-s">'relu'</span>)(<span class="pl-s1">x</span>)
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-v">Dropout</span>(<span class="pl-c1">0.5</span>)(<span class="pl-s1">x</span>)
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-v">Dense</span>(<span class="pl-c1">256</span>, <span class="pl-s1">activation</span><span class="pl-c1">=</span><span class="pl-s">'relu'</span>)(<span class="pl-s1">x</span>)
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-v">Dropout</span>(<span class="pl-c1">0.3</span>)(<span class="pl-s1">x</span>)
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-v">Dense</span>(<span class="pl-c1">128</span>, <span class="pl-s1">activation</span><span class="pl-c1">=</span><span class="pl-s">'relu'</span>)(<span class="pl-s1">x</span>)
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-v">Dropout</span>(<span class="pl-c1">0.05</span>)(<span class="pl-s1">x</span>)
<span class="pl-s1">logits</span> <span class="pl-c1">=</span> <span class="pl-v">Dense</span>(<span class="pl-s1">self</span>.<span class="pl-s1">action_space</span>, <span class="pl-s1">activation</span><span class="pl-c1">=</span><span class="pl-c1">None</span>)(<span class="pl-s1">x</span>)
<span class="pl-s1">self</span>.<span class="pl-s1">model</span> <span class="pl-c1">=</span> <span class="pl-v">Model</span>(<span class="pl-s1">inputs</span><span class="pl-c1">=</span>[<span class="pl-s1">inputs</span>, <span class="pl-s1">rewards</span>], <span class="pl-s1">outputs</span><span class="pl-c1">=</span><span class="pl-s1">logits</span>)
<span class="pl-k">def</span> <span class="pl-en">policy_loss</span>(<span class="pl-s1">r</span>):
<span class="pl-k">def</span> <span class="pl-en">loss</span>(<span class="pl-s1">labels</span>, <span class="pl-s1">logits</span>):
<span class="pl-s1">policy</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">nn</span>.<span class="pl-en">softmax</span>(<span class="pl-s1">logits</span>)
<span class="pl-s1">entropy</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">nn</span>.<span class="pl-en">softmax_cross_entropy_with_logits_v2</span>(<span class="pl-s1">labels</span><span class="pl-c1">=</span><span class="pl-s1">policy</span>, <span class="pl-s1">logits</span><span class="pl-c1">=</span><span class="pl-s1">logits</span>)
<span class="pl-s1">log</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">nn</span>.<span class="pl-en">softmax_cross_entropy_with_logits_v2</span>(<span class="pl-s1">labels</span><span class="pl-c1">=</span><span class="pl-s1">labels</span>, <span class="pl-s1">logits</span><span class="pl-c1">=</span><span class="pl-s1">logits</span>)
<span class="pl-s1">p_loss</span> <span class="pl-c1">=</span> <span class="pl-s1">log</span> <span class="pl-c1">*</span> <span class="pl-s1">tf</span>.<span class="pl-en">stop_gradient</span>(<span class="pl-s1">r</span>)
<span class="pl-s1">p_loss</span> <span class="pl-c1">=</span> <span class="pl-s1">p_loss</span> <span class="pl-c1">-</span> <span class="pl-c1">0.01</span> <span class="pl-c1">*</span> <span class="pl-s1">entropy</span>
<span class="pl-s1">total_loss</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">reduce_mean</span>(<span class="pl-s1">p_loss</span>)
<span class="pl-k">return</span> <span class="pl-s1">total_loss</span>
<span class="pl-k">return</span> <span class="pl-s1">loss</span>
<span class="pl-s1">self</span>.<span class="pl-s1">model</span>.<span class="pl-en">compile</span>(<span class="pl-s1">optimizer</span><span class="pl-c1">=</span><span class="pl-v">Adam</span>(<span class="pl-s1">lr</span><span class="pl-c1">=</span><span class="pl-s1">lr</span>), <span class="pl-s1">loss</span><span class="pl-c1">=</span><span class="pl-en">policy_loss</span>(<span class="pl-s1">rewards</span>))
<span class="pl-s1">self</span>.<span class="pl-s1">model</span>.<span class="pl-en">summary</span>()
<span class="pl-k">def</span> <span class="pl-en">get_probs</span>(<span class="pl-s1">self</span>, <span class="pl-s1">s</span>):
<span class="pl-s1">s</span> <span class="pl-c1">=</span> <span class="pl-s1">s</span>[<span class="pl-s1">np</span>.<span class="pl-s1">newaxis</span>, :]
<span class="pl-s1">probs</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-s1">model</span>.<span class="pl-en">predict</span>([<span class="pl-s1">s</span>, <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">1</span>])])
<span class="pl-s1">probs</span> <span class="pl-c1">=</span> <span class="pl-s1">probs</span>.<span class="pl-en">squeeze</span>()
<span class="pl-s1">probs</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-en">softmax</span>(<span class="pl-s1">probs</span>)
<span class="pl-k">return</span> <span class="pl-s1">probs</span>
<span class="pl-k">def</span> <span class="pl-en">softmax</span>(<span class="pl-s1">self</span>, <span class="pl-s1">x</span>):
<span class="pl-s1">e_x</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">exp</span>(<span class="pl-s1">x</span> <span class="pl-c1">-</span> <span class="pl-s1">np</span>.<span class="pl-en">max</span>(<span class="pl-s1">x</span>))
<span class="pl-k">return</span> <span class="pl-s1">e_x</span> <span class="pl-c1">/</span> <span class="pl-s1">e_x</span>.<span class="pl-en">sum</span>(<span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">0</span>)
<span class="pl-k">def</span> <span class="pl-en">update_policy</span>(<span class="pl-s1">self</span>, <span class="pl-s1">s</span>, <span class="pl-s1">r</span>, <span class="pl-s1">a</span>):
<span class="pl-s1">self</span>.<span class="pl-s1">model</span>.<span class="pl-en">train_on_batch</span>([<span class="pl-s1">s</span>, <span class="pl-s1">r</span>], <span class="pl-s1">a</span>)</pre></div>
<p dir="auto"><strong>Eager</strong></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import tensorflow as tf
from tensorflow.python.keras.layers import *
import numpy as np
tf.enable_eager_execution()
print(tf.executing_eagerly())
class EagerTest:
def __init__(self, state_space, action_space, lr):
self.action_space = action_space
self.lr = lr
inputs = Input(shape=(84, 84, 4))
rewards = Input(shape=(1,))
x = Conv2D(32, kernel_size=[8, 8], padding='valid', strides=[4, 4], activation=None)(inputs)
x = BatchNormalization(trainable=True, epsilon=1e-5)(x)
x = Activation('relu')(x)
x = Conv2D(64, kernel_size=[4, 4], padding='valid', strides=[2, 2], activation=None)(x)
x = BatchNormalization(trainable=True, epsilon=1e-5)(x)
x = Activation('relu')(x)
x = Conv2D(64, kernel_size=(4, 4), padding='valid', strides=(2, 2), activation=None)(x)
x = BatchNormalization(trainable=True, epsilon=1e-5)(x)
x = Activation('relu')(x)
x = Flatten()(x)
x = Dense(512, activation='relu')(x)
x = Dropout(0.5)(x)
x = Dense(256, activation='relu')(x)
x = Dropout(0.3)(x)
x = Dense(128, activation='relu')(x)
x = Dropout(0.05)(x)
logits = Dense(self.action_space, activation=None)(x)
self.model = tf.keras.Model(inputs=[inputs, rewards], outputs=logits)
def policy_loss(r):
def loss(labels, logits):
policy = tf.nn.softmax(logits)
entropy = tf.nn.softmax_cross_entropy_with_logits_v2(labels=policy, logits=logits)
log = tf.nn.softmax_cross_entropy_with_logits_v2(labels=labels, logits=logits)
p_loss = log * tf.stop_gradient(r)
p_loss = p_loss - 0.01 * entropy
total_loss = tf.reduce_mean(p_loss)
return total_loss
return loss
self.model.compile(optimizer=tf.train.AdamOptimizer(lr), loss=policy_loss(rewards))
self.model.summary()
def get_probs(self, s):
s = s[np.newaxis, :]
probs = self.model([s, np.array([1])]).numpy()
probs = probs.squeeze()
probs = self.softmax(probs)
return probs
def softmax(self, x):
e_x = np.exp(x - np.max(x))
return e_x / e_x.sum(axis=0)
def update_policy(self, s, r, a):
self.model.train_on_batch([s, r], a)
"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">tensorflow</span> <span class="pl-k">as</span> <span class="pl-s1">tf</span>
<span class="pl-k">from</span> <span class="pl-s1">tensorflow</span>.<span class="pl-s1">python</span>.<span class="pl-s1">keras</span>.<span class="pl-s1">layers</span> <span class="pl-k">import</span> <span class="pl-c1">*</span>
<span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-s1">tf</span>.<span class="pl-en">enable_eager_execution</span>()
<span class="pl-en">print</span>(<span class="pl-s1">tf</span>.<span class="pl-en">executing_eagerly</span>())
<span class="pl-k">class</span> <span class="pl-v">EagerTest</span>:
<span class="pl-k">def</span> <span class="pl-en">__init__</span>(<span class="pl-s1">self</span>, <span class="pl-s1">state_space</span>, <span class="pl-s1">action_space</span>, <span class="pl-s1">lr</span>):
<span class="pl-s1">self</span>.<span class="pl-s1">action_space</span> <span class="pl-c1">=</span> <span class="pl-s1">action_space</span>
<span class="pl-s1">self</span>.<span class="pl-s1">lr</span> <span class="pl-c1">=</span> <span class="pl-s1">lr</span>
<span class="pl-s1">inputs</span> <span class="pl-c1">=</span> <span class="pl-v">Input</span>(<span class="pl-s1">shape</span><span class="pl-c1">=</span>(<span class="pl-c1">84</span>, <span class="pl-c1">84</span>, <span class="pl-c1">4</span>))
<span class="pl-s1">rewards</span> <span class="pl-c1">=</span> <span class="pl-v">Input</span>(<span class="pl-s1">shape</span><span class="pl-c1">=</span>(<span class="pl-c1">1</span>,))
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-v">Conv2D</span>(<span class="pl-c1">32</span>, <span class="pl-s1">kernel_size</span><span class="pl-c1">=</span>[<span class="pl-c1">8</span>, <span class="pl-c1">8</span>], <span class="pl-s1">padding</span><span class="pl-c1">=</span><span class="pl-s">'valid'</span>, <span class="pl-s1">strides</span><span class="pl-c1">=</span>[<span class="pl-c1">4</span>, <span class="pl-c1">4</span>], <span class="pl-s1">activation</span><span class="pl-c1">=</span><span class="pl-c1">None</span>)(<span class="pl-s1">inputs</span>)
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-v">BatchNormalization</span>(<span class="pl-s1">trainable</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">epsilon</span><span class="pl-c1">=</span><span class="pl-c1">1e-5</span>)(<span class="pl-s1">x</span>)
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-v">Activation</span>(<span class="pl-s">'relu'</span>)(<span class="pl-s1">x</span>)
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-v">Conv2D</span>(<span class="pl-c1">64</span>, <span class="pl-s1">kernel_size</span><span class="pl-c1">=</span>[<span class="pl-c1">4</span>, <span class="pl-c1">4</span>], <span class="pl-s1">padding</span><span class="pl-c1">=</span><span class="pl-s">'valid'</span>, <span class="pl-s1">strides</span><span class="pl-c1">=</span>[<span class="pl-c1">2</span>, <span class="pl-c1">2</span>], <span class="pl-s1">activation</span><span class="pl-c1">=</span><span class="pl-c1">None</span>)(<span class="pl-s1">x</span>)
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-v">BatchNormalization</span>(<span class="pl-s1">trainable</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">epsilon</span><span class="pl-c1">=</span><span class="pl-c1">1e-5</span>)(<span class="pl-s1">x</span>)
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-v">Activation</span>(<span class="pl-s">'relu'</span>)(<span class="pl-s1">x</span>)
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-v">Conv2D</span>(<span class="pl-c1">64</span>, <span class="pl-s1">kernel_size</span><span class="pl-c1">=</span>(<span class="pl-c1">4</span>, <span class="pl-c1">4</span>), <span class="pl-s1">padding</span><span class="pl-c1">=</span><span class="pl-s">'valid'</span>, <span class="pl-s1">strides</span><span class="pl-c1">=</span>(<span class="pl-c1">2</span>, <span class="pl-c1">2</span>), <span class="pl-s1">activation</span><span class="pl-c1">=</span><span class="pl-c1">None</span>)(<span class="pl-s1">x</span>)
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-v">BatchNormalization</span>(<span class="pl-s1">trainable</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">epsilon</span><span class="pl-c1">=</span><span class="pl-c1">1e-5</span>)(<span class="pl-s1">x</span>)
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-v">Activation</span>(<span class="pl-s">'relu'</span>)(<span class="pl-s1">x</span>)
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-v">Flatten</span>()(<span class="pl-s1">x</span>)
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-v">Dense</span>(<span class="pl-c1">512</span>, <span class="pl-s1">activation</span><span class="pl-c1">=</span><span class="pl-s">'relu'</span>)(<span class="pl-s1">x</span>)
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-v">Dropout</span>(<span class="pl-c1">0.5</span>)(<span class="pl-s1">x</span>)
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-v">Dense</span>(<span class="pl-c1">256</span>, <span class="pl-s1">activation</span><span class="pl-c1">=</span><span class="pl-s">'relu'</span>)(<span class="pl-s1">x</span>)
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-v">Dropout</span>(<span class="pl-c1">0.3</span>)(<span class="pl-s1">x</span>)
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-v">Dense</span>(<span class="pl-c1">128</span>, <span class="pl-s1">activation</span><span class="pl-c1">=</span><span class="pl-s">'relu'</span>)(<span class="pl-s1">x</span>)
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-v">Dropout</span>(<span class="pl-c1">0.05</span>)(<span class="pl-s1">x</span>)
<span class="pl-s1">logits</span> <span class="pl-c1">=</span> <span class="pl-v">Dense</span>(<span class="pl-s1">self</span>.<span class="pl-s1">action_space</span>, <span class="pl-s1">activation</span><span class="pl-c1">=</span><span class="pl-c1">None</span>)(<span class="pl-s1">x</span>)
<span class="pl-s1">self</span>.<span class="pl-s1">model</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">keras</span>.<span class="pl-v">Model</span>(<span class="pl-s1">inputs</span><span class="pl-c1">=</span>[<span class="pl-s1">inputs</span>, <span class="pl-s1">rewards</span>], <span class="pl-s1">outputs</span><span class="pl-c1">=</span><span class="pl-s1">logits</span>)
<span class="pl-k">def</span> <span class="pl-en">policy_loss</span>(<span class="pl-s1">r</span>):
<span class="pl-k">def</span> <span class="pl-en">loss</span>(<span class="pl-s1">labels</span>, <span class="pl-s1">logits</span>):
<span class="pl-s1">policy</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">nn</span>.<span class="pl-en">softmax</span>(<span class="pl-s1">logits</span>)
<span class="pl-s1">entropy</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">nn</span>.<span class="pl-en">softmax_cross_entropy_with_logits_v2</span>(<span class="pl-s1">labels</span><span class="pl-c1">=</span><span class="pl-s1">policy</span>, <span class="pl-s1">logits</span><span class="pl-c1">=</span><span class="pl-s1">logits</span>)
<span class="pl-s1">log</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">nn</span>.<span class="pl-en">softmax_cross_entropy_with_logits_v2</span>(<span class="pl-s1">labels</span><span class="pl-c1">=</span><span class="pl-s1">labels</span>, <span class="pl-s1">logits</span><span class="pl-c1">=</span><span class="pl-s1">logits</span>)
<span class="pl-s1">p_loss</span> <span class="pl-c1">=</span> <span class="pl-s1">log</span> <span class="pl-c1">*</span> <span class="pl-s1">tf</span>.<span class="pl-en">stop_gradient</span>(<span class="pl-s1">r</span>)
<span class="pl-s1">p_loss</span> <span class="pl-c1">=</span> <span class="pl-s1">p_loss</span> <span class="pl-c1">-</span> <span class="pl-c1">0.01</span> <span class="pl-c1">*</span> <span class="pl-s1">entropy</span>
<span class="pl-s1">total_loss</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">reduce_mean</span>(<span class="pl-s1">p_loss</span>)
<span class="pl-k">return</span> <span class="pl-s1">total_loss</span>
<span class="pl-k">return</span> <span class="pl-s1">loss</span>
<span class="pl-s1">self</span>.<span class="pl-s1">model</span>.<span class="pl-en">compile</span>(<span class="pl-s1">optimizer</span><span class="pl-c1">=</span><span class="pl-s1">tf</span>.<span class="pl-s1">train</span>.<span class="pl-v">AdamOptimizer</span>(<span class="pl-s1">lr</span>), <span class="pl-s1">loss</span><span class="pl-c1">=</span><span class="pl-en">policy_loss</span>(<span class="pl-s1">rewards</span>))
<span class="pl-s1">self</span>.<span class="pl-s1">model</span>.<span class="pl-en">summary</span>()
<span class="pl-k">def</span> <span class="pl-en">get_probs</span>(<span class="pl-s1">self</span>, <span class="pl-s1">s</span>):
<span class="pl-s1">s</span> <span class="pl-c1">=</span> <span class="pl-s1">s</span>[<span class="pl-s1">np</span>.<span class="pl-s1">newaxis</span>, :]
<span class="pl-s1">probs</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-en">model</span>([<span class="pl-s1">s</span>, <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">1</span>])]).<span class="pl-en">numpy</span>()
<span class="pl-s1">probs</span> <span class="pl-c1">=</span> <span class="pl-s1">probs</span>.<span class="pl-en">squeeze</span>()
<span class="pl-s1">probs</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-en">softmax</span>(<span class="pl-s1">probs</span>)
<span class="pl-k">return</span> <span class="pl-s1">probs</span>
<span class="pl-k">def</span> <span class="pl-en">softmax</span>(<span class="pl-s1">self</span>, <span class="pl-s1">x</span>):
<span class="pl-s1">e_x</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">exp</span>(<span class="pl-s1">x</span> <span class="pl-c1">-</span> <span class="pl-s1">np</span>.<span class="pl-en">max</span>(<span class="pl-s1">x</span>))
<span class="pl-k">return</span> <span class="pl-s1">e_x</span> <span class="pl-c1">/</span> <span class="pl-s1">e_x</span>.<span class="pl-en">sum</span>(<span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">0</span>)
<span class="pl-k">def</span> <span class="pl-en">update_policy</span>(<span class="pl-s1">self</span>, <span class="pl-s1">s</span>, <span class="pl-s1">r</span>, <span class="pl-s1">a</span>):
<span class="pl-s1">self</span>.<span class="pl-s1">model</span>.<span class="pl-en">train_on_batch</span>([<span class="pl-s1">s</span>, <span class="pl-s1">r</span>], <span class="pl-s1">a</span>)</pre></div>
<p dir="auto"><strong>And same issue if I try to optimize manually</strong></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import tensorflow as tf
from tensorflow.python.keras.layers import *
import numpy as np
tf.enable_eager_execution()
print(tf.executing_eagerly())
class EagerSeqTest:
def __init__(self, state_space, action_space, lr):
self.state_space = state_space
self.action_space = action_space
self.model = tf.keras.Sequential()
self.model.add(InputLayer(input_shape=(84, 84, 4)))
# Conv
self.model.add(Conv2D(filters=32, kernel_size=(8, 8), strides=(4, 4), name='conv1'))
self.model.add(BatchNormalization(trainable=True, epsilon=1e-5, name='batch_norm1'))
self.model.add(ReLU(name='conv_1_out'))
self.model.add(Conv2D(filters=64, kernel_size=(4, 4), strides=(2, 2), name='conv2'))
self.model.add(BatchNormalization(trainable=True, epsilon=1e-5, name='batch_norm2'))
self.model.add(ReLU(name='conv_2_out'))
self.model.add(Conv2D(filters=64, kernel_size=(4, 4), strides=(2, 2), name='conv3'))
self.model.add(BatchNormalization(trainable=True, epsilon=1e-5, name='batch_norm3'))
self.model.add(ReLU(name='conv_3_out'))
self.model.add(Flatten(name='flatten'))
# Fully connected
self.model.add(Dense(units=512, activation='relu', name='fc1'))
self.model.add(Dropout(rate=0.4, name='dr1'))
self.model.add(Dense(units=256, activation='relu', name='fc2'))
self.model.add(Dropout(rate=0.3, name='dr2'))
self.model.add(Dense(units=64, activation='relu', name='fc3'))
self.model.add(Dropout(rate=0.03, name='dr3'))
# Logits
self.model.add(Dense(units=self.action_space, activation='linear', name='logits'))
self.model.summary()
# Optimizer
self.optimizer = tf.train.AdamOptimizer(learning_rate=lr)
def get_probs(self, s):
s = s[np.newaxis, :]
logits = self.model(s)
probs = tf.nn.softmax(logits).numpy().squeeze()
return probs
def update_policy(self, s, r, a):
with tf.GradientTape() as tape:
loss = self.calc_loss(s, r, a)
grads = tape.gradient(loss, self.model.trainable_variables)
self.optimizer.apply_gradients(zip(grads, self.model.trainable_variables))
def calc_loss(self, s, r, a):
logits = self.model(s)
policy_loss = tf.nn.softmax_cross_entropy_with_logits_v2(labels=a, logits=logits)
policy_loss = tf.reduce_mean(policy_loss * tf.stop_gradient(r))
return policy_loss"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">tensorflow</span> <span class="pl-k">as</span> <span class="pl-s1">tf</span>
<span class="pl-k">from</span> <span class="pl-s1">tensorflow</span>.<span class="pl-s1">python</span>.<span class="pl-s1">keras</span>.<span class="pl-s1">layers</span> <span class="pl-k">import</span> <span class="pl-c1">*</span>
<span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-s1">tf</span>.<span class="pl-en">enable_eager_execution</span>()
<span class="pl-en">print</span>(<span class="pl-s1">tf</span>.<span class="pl-en">executing_eagerly</span>())
<span class="pl-k">class</span> <span class="pl-v">EagerSeqTest</span>:
<span class="pl-k">def</span> <span class="pl-en">__init__</span>(<span class="pl-s1">self</span>, <span class="pl-s1">state_space</span>, <span class="pl-s1">action_space</span>, <span class="pl-s1">lr</span>):
<span class="pl-s1">self</span>.<span class="pl-s1">state_space</span> <span class="pl-c1">=</span> <span class="pl-s1">state_space</span>
<span class="pl-s1">self</span>.<span class="pl-s1">action_space</span> <span class="pl-c1">=</span> <span class="pl-s1">action_space</span>
<span class="pl-s1">self</span>.<span class="pl-s1">model</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">keras</span>.<span class="pl-v">Sequential</span>()
<span class="pl-s1">self</span>.<span class="pl-s1">model</span>.<span class="pl-en">add</span>(<span class="pl-v">InputLayer</span>(<span class="pl-s1">input_shape</span><span class="pl-c1">=</span>(<span class="pl-c1">84</span>, <span class="pl-c1">84</span>, <span class="pl-c1">4</span>)))
<span class="pl-c"># Conv</span>
<span class="pl-s1">self</span>.<span class="pl-s1">model</span>.<span class="pl-en">add</span>(<span class="pl-v">Conv2D</span>(<span class="pl-s1">filters</span><span class="pl-c1">=</span><span class="pl-c1">32</span>, <span class="pl-s1">kernel_size</span><span class="pl-c1">=</span>(<span class="pl-c1">8</span>, <span class="pl-c1">8</span>), <span class="pl-s1">strides</span><span class="pl-c1">=</span>(<span class="pl-c1">4</span>, <span class="pl-c1">4</span>), <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">'conv1'</span>))
<span class="pl-s1">self</span>.<span class="pl-s1">model</span>.<span class="pl-en">add</span>(<span class="pl-v">BatchNormalization</span>(<span class="pl-s1">trainable</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">epsilon</span><span class="pl-c1">=</span><span class="pl-c1">1e-5</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">'batch_norm1'</span>))
<span class="pl-s1">self</span>.<span class="pl-s1">model</span>.<span class="pl-en">add</span>(<span class="pl-v">ReLU</span>(<span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">'conv_1_out'</span>))
<span class="pl-s1">self</span>.<span class="pl-s1">model</span>.<span class="pl-en">add</span>(<span class="pl-v">Conv2D</span>(<span class="pl-s1">filters</span><span class="pl-c1">=</span><span class="pl-c1">64</span>, <span class="pl-s1">kernel_size</span><span class="pl-c1">=</span>(<span class="pl-c1">4</span>, <span class="pl-c1">4</span>), <span class="pl-s1">strides</span><span class="pl-c1">=</span>(<span class="pl-c1">2</span>, <span class="pl-c1">2</span>), <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">'conv2'</span>))
<span class="pl-s1">self</span>.<span class="pl-s1">model</span>.<span class="pl-en">add</span>(<span class="pl-v">BatchNormalization</span>(<span class="pl-s1">trainable</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">epsilon</span><span class="pl-c1">=</span><span class="pl-c1">1e-5</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">'batch_norm2'</span>))
<span class="pl-s1">self</span>.<span class="pl-s1">model</span>.<span class="pl-en">add</span>(<span class="pl-v">ReLU</span>(<span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">'conv_2_out'</span>))
<span class="pl-s1">self</span>.<span class="pl-s1">model</span>.<span class="pl-en">add</span>(<span class="pl-v">Conv2D</span>(<span class="pl-s1">filters</span><span class="pl-c1">=</span><span class="pl-c1">64</span>, <span class="pl-s1">kernel_size</span><span class="pl-c1">=</span>(<span class="pl-c1">4</span>, <span class="pl-c1">4</span>), <span class="pl-s1">strides</span><span class="pl-c1">=</span>(<span class="pl-c1">2</span>, <span class="pl-c1">2</span>), <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">'conv3'</span>))
<span class="pl-s1">self</span>.<span class="pl-s1">model</span>.<span class="pl-en">add</span>(<span class="pl-v">BatchNormalization</span>(<span class="pl-s1">trainable</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">epsilon</span><span class="pl-c1">=</span><span class="pl-c1">1e-5</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">'batch_norm3'</span>))
<span class="pl-s1">self</span>.<span class="pl-s1">model</span>.<span class="pl-en">add</span>(<span class="pl-v">ReLU</span>(<span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">'conv_3_out'</span>))
<span class="pl-s1">self</span>.<span class="pl-s1">model</span>.<span class="pl-en">add</span>(<span class="pl-v">Flatten</span>(<span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">'flatten'</span>))
<span class="pl-c"># Fully connected</span>
<span class="pl-s1">self</span>.<span class="pl-s1">model</span>.<span class="pl-en">add</span>(<span class="pl-v">Dense</span>(<span class="pl-s1">units</span><span class="pl-c1">=</span><span class="pl-c1">512</span>, <span class="pl-s1">activation</span><span class="pl-c1">=</span><span class="pl-s">'relu'</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">'fc1'</span>))
<span class="pl-s1">self</span>.<span class="pl-s1">model</span>.<span class="pl-en">add</span>(<span class="pl-v">Dropout</span>(<span class="pl-s1">rate</span><span class="pl-c1">=</span><span class="pl-c1">0.4</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">'dr1'</span>))
<span class="pl-s1">self</span>.<span class="pl-s1">model</span>.<span class="pl-en">add</span>(<span class="pl-v">Dense</span>(<span class="pl-s1">units</span><span class="pl-c1">=</span><span class="pl-c1">256</span>, <span class="pl-s1">activation</span><span class="pl-c1">=</span><span class="pl-s">'relu'</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">'fc2'</span>))
<span class="pl-s1">self</span>.<span class="pl-s1">model</span>.<span class="pl-en">add</span>(<span class="pl-v">Dropout</span>(<span class="pl-s1">rate</span><span class="pl-c1">=</span><span class="pl-c1">0.3</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">'dr2'</span>))
<span class="pl-s1">self</span>.<span class="pl-s1">model</span>.<span class="pl-en">add</span>(<span class="pl-v">Dense</span>(<span class="pl-s1">units</span><span class="pl-c1">=</span><span class="pl-c1">64</span>, <span class="pl-s1">activation</span><span class="pl-c1">=</span><span class="pl-s">'relu'</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">'fc3'</span>))
<span class="pl-s1">self</span>.<span class="pl-s1">model</span>.<span class="pl-en">add</span>(<span class="pl-v">Dropout</span>(<span class="pl-s1">rate</span><span class="pl-c1">=</span><span class="pl-c1">0.03</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">'dr3'</span>))
<span class="pl-c"># Logits</span>
<span class="pl-s1">self</span>.<span class="pl-s1">model</span>.<span class="pl-en">add</span>(<span class="pl-v">Dense</span>(<span class="pl-s1">units</span><span class="pl-c1">=</span><span class="pl-s1">self</span>.<span class="pl-s1">action_space</span>, <span class="pl-s1">activation</span><span class="pl-c1">=</span><span class="pl-s">'linear'</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">'logits'</span>))
<span class="pl-s1">self</span>.<span class="pl-s1">model</span>.<span class="pl-en">summary</span>()
<span class="pl-c"># Optimizer</span>
<span class="pl-s1">self</span>.<span class="pl-s1">optimizer</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">train</span>.<span class="pl-v">AdamOptimizer</span>(<span class="pl-s1">learning_rate</span><span class="pl-c1">=</span><span class="pl-s1">lr</span>)
<span class="pl-k">def</span> <span class="pl-en">get_probs</span>(<span class="pl-s1">self</span>, <span class="pl-s1">s</span>):
<span class="pl-s1">s</span> <span class="pl-c1">=</span> <span class="pl-s1">s</span>[<span class="pl-s1">np</span>.<span class="pl-s1">newaxis</span>, :]
<span class="pl-s1">logits</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-en">model</span>(<span class="pl-s1">s</span>)
<span class="pl-s1">probs</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">nn</span>.<span class="pl-en">softmax</span>(<span class="pl-s1">logits</span>).<span class="pl-en">numpy</span>().<span class="pl-en">squeeze</span>()
<span class="pl-k">return</span> <span class="pl-s1">probs</span>
<span class="pl-k">def</span> <span class="pl-en">update_policy</span>(<span class="pl-s1">self</span>, <span class="pl-s1">s</span>, <span class="pl-s1">r</span>, <span class="pl-s1">a</span>):
<span class="pl-k">with</span> <span class="pl-s1">tf</span>.<span class="pl-v">GradientTape</span>() <span class="pl-k">as</span> <span class="pl-s1">tape</span>:
<span class="pl-s1">loss</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-en">calc_loss</span>(<span class="pl-s1">s</span>, <span class="pl-s1">r</span>, <span class="pl-s1">a</span>)
<span class="pl-s1">grads</span> <span class="pl-c1">=</span> <span class="pl-s1">tape</span>.<span class="pl-en">gradient</span>(<span class="pl-s1">loss</span>, <span class="pl-s1">self</span>.<span class="pl-s1">model</span>.<span class="pl-s1">trainable_variables</span>)
<span class="pl-s1">self</span>.<span class="pl-s1">optimizer</span>.<span class="pl-en">apply_gradients</span>(<span class="pl-en">zip</span>(<span class="pl-s1">grads</span>, <span class="pl-s1">self</span>.<span class="pl-s1">model</span>.<span class="pl-s1">trainable_variables</span>))
<span class="pl-k">def</span> <span class="pl-en">calc_loss</span>(<span class="pl-s1">self</span>, <span class="pl-s1">s</span>, <span class="pl-s1">r</span>, <span class="pl-s1">a</span>):
<span class="pl-s1">logits</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-en">model</span>(<span class="pl-s1">s</span>)
<span class="pl-s1">policy_loss</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">nn</span>.<span class="pl-en">softmax_cross_entropy_with_logits_v2</span>(<span class="pl-s1">labels</span><span class="pl-c1">=</span><span class="pl-s1">a</span>, <span class="pl-s1">logits</span><span class="pl-c1">=</span><span class="pl-s1">logits</span>)
<span class="pl-s1">policy_loss</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">reduce_mean</span>(<span class="pl-s1">policy_loss</span> <span class="pl-c1">*</span> <span class="pl-s1">tf</span>.<span class="pl-en">stop_gradient</span>(<span class="pl-s1">r</span>))
<span class="pl-k">return</span> <span class="pl-s1">policy_loss</span></pre></div>
<p dir="auto"><strong>Other info / logs</strong><br>
<strong>Keras outputs first episode</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[0.33398542 0.32970214 0.33631247]
[0.33452868 0.32947394 0.33599734]
[0.33389196 0.32968676 0.3364213 ]
[0.33383334 0.32978088 0.33638576]
[0.33387497 0.3296482 0.33647686]
[0.33390424 0.32952887 0.33656695]
[0.33359385 0.32956737 0.33683875]
[0.33371714 0.32963908 0.3366438 ]
[0.33354157 0.32960638 0.33685204]
[0.33366755 0.32962722 0.33670527]
..."><pre class="notranslate"><code class="notranslate">[0.33398542 0.32970214 0.33631247]
[0.33452868 0.32947394 0.33599734]
[0.33389196 0.32968676 0.3364213 ]
[0.33383334 0.32978088 0.33638576]
[0.33387497 0.3296482 0.33647686]
[0.33390424 0.32952887 0.33656695]
[0.33359385 0.32956737 0.33683875]
[0.33371714 0.32963908 0.3366438 ]
[0.33354157 0.32960638 0.33685204]
[0.33366755 0.32962722 0.33670527]
...
</code></pre></div>
<p dir="auto"><strong>Keras outputs after 10 episodes</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[0.2601601 0.31925505 0.42058486]
[0.3081141 0.35050547 0.34138042]
[0.30224514 0.41226208 0.28549278]
[0.2596298 0.4011653 0.33920488]
[0.24976756 0.44619036 0.30404213]
[0.22203408 0.50170064 0.2762653 ]
[0.25094017 0.460491 0.28856885]
[0.25819647 0.44147474 0.30032873]
[0.26891825 0.42985788 0.30122384]
[0.24224553 0.46432737 0.2934271 ]
..."><pre class="notranslate"><code class="notranslate">[0.2601601 0.31925505 0.42058486]
[0.3081141 0.35050547 0.34138042]
[0.30224514 0.41226208 0.28549278]
[0.2596298 0.4011653 0.33920488]
[0.24976756 0.44619036 0.30404213]
[0.22203408 0.50170064 0.2762653 ]
[0.25094017 0.460491 0.28856885]
[0.25819647 0.44147474 0.30032873]
[0.26891825 0.42985788 0.30122384]
[0.24224553 0.46432737 0.2934271 ]
...
</code></pre></div>
<p dir="auto"><strong>Eager outputs first episode</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[0.32854515 0.33827797 0.33317688]
[0.3286925 0.33824813 0.3330594 ]
[0.3283261 0.33858737 0.33308655]
[0.328541 0.3381491 0.33330992]
[0.328702 0.33778957 0.3335084 ]
[0.32902354 0.3377183 0.33325812]
[0.32862762 0.33784387 0.3335285 ]
[0.3286057 0.3380287 0.33336568]
[0.32879072 0.33825696 0.33295232]
[0.3287569 0.33825108 0.33299205]
..."><pre class="notranslate"><code class="notranslate">[0.32854515 0.33827797 0.33317688]
[0.3286925 0.33824813 0.3330594 ]
[0.3283261 0.33858737 0.33308655]
[0.328541 0.3381491 0.33330992]
[0.328702 0.33778957 0.3335084 ]
[0.32902354 0.3377183 0.33325812]
[0.32862762 0.33784387 0.3335285 ]
[0.3286057 0.3380287 0.33336568]
[0.32879072 0.33825696 0.33295232]
[0.3287569 0.33825108 0.33299205]
...
</code></pre></div>
<p dir="auto"><strong>Eager outputs after 10, 20, 100, .... episodes</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[0.3276771 0.33870533 0.33361754]
[0.3276953 0.33861196 0.33369276]
[0.3273576 0.33890665 0.33373576]
[0.32751966 0.3387702 0.33371013]
[0.3276457 0.33878204 0.33357224]
[0.32758534 0.3388276 0.33358708]
[0.3277567 0.3381556 0.33408773]
[0.32765684 0.33842626 0.33391687]
[0.32840943 0.3379219 0.33366865]
[0.32794353 0.33860624 0.33345023]
..."><pre class="notranslate"><code class="notranslate">[0.3276771 0.33870533 0.33361754]
[0.3276953 0.33861196 0.33369276]
[0.3273576 0.33890665 0.33373576]
[0.32751966 0.3387702 0.33371013]
[0.3276457 0.33878204 0.33357224]
[0.32758534 0.3388276 0.33358708]
[0.3277567 0.3381556 0.33408773]
[0.32765684 0.33842626 0.33391687]
[0.32840943 0.3379219 0.33366865]
[0.32794353 0.33860624 0.33345023]
...
</code></pre></div> | <p dir="auto"><em>Please make sure that this is a bug. As per our <a href="https://github.com/tensorflow/tensorflow/blob/master/ISSUES.md">GitHub Policy</a>, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:bug_template</em></p>
<p dir="auto"><strong>System information</strong></p>
<ul dir="auto">
<li>Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Yes</li>
<li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 18.04.2 LTS (Bionic Beaver)</li>
<li>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: N/A</li>
<li>TensorFlow installed from (source or binary): source</li>
<li>TensorFlow version (use command below): 2.0.0-alpha0</li>
<li>Python version: 3.6.7</li>
<li>Bazel version (if compiling from source): N/A</li>
<li>GCC/Compiler version (if compiling from source): N/A</li>
<li>CUDA/cuDNN version: N/A</li>
<li>GPU model and memory: N/A</li>
</ul>
<p dir="auto">You can collect some of this information using our environment capture <a href="https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh">script</a><br>
You can also obtain the TensorFlow version with<br>
python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"</p>
<p dir="auto"><strong>Describe the current behavior</strong><br>
When training <code class="notranslate">tf.keras.fit(dataset)</code> with eager execution, where dataset is a <code class="notranslate">tf.data.Dataset</code>, I am finding a ~10x performance loss as compared to turning off eager execution.</p>
<p dir="auto"><strong>Describe the expected behavior</strong><br>
In the code attached below, I have tested training with and without eager execution, and with and without tf.data.Dataset.</p>
<p dir="auto">Here are the training times for one epoch of training on a 4 core CPU:<br>
Eager + tf.data.Dataset : 219s - 22ms/step<br>
Without Eager + tf.data.Dataset : 25s - 3ms/step<br>
Eager + numpy dataset : 26s - 259us/sample<br>
Without Eager + numpy dataset : 26s - 257us/sample</p>
<p dir="auto"><strong>Code to reproduce the issue</strong><br>
Provide a reproducible test case that is the bare minimum necessary to generate the problem.</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import tensorflow as tf
import numpy as np
use_eager = True
use_TFDataset = True
if not use_eager:
tf.compat.v1.disable_eager_execution()
# Build dataset
n_data = 10**5
my_data = np.random.random((n_data,10,1))
my_targets = np.random.randint(0,2,(n_data,1))
data = ({'x_input':my_data}, {'target':my_targets})
# Create tf.data.Dataset
BATCH_SIZE = 10
dataset = tf.data.Dataset.from_tensor_slices(data)
dataset = dataset.batch(BATCH_SIZE)
dataset = dataset.prefetch(1)
#Build model
x_input = tf.keras.layers.Input((None,1), name='x_input')
RNN = tf.keras.layers.SimpleRNN(100, name='RNN')(x_input)
hidden = tf.keras.layers.Dense(100, name='hidden')(RNN)
dense = tf.keras.layers.Dense(1, name='target')(hidden)
my_model = tf.keras.models.Model(inputs = [x_input], outputs = [dense])
my_model.compile(optimizer='SGD', loss = 'binary_crossentropy')
# Train model
if use_TFDataset:
my_model.fit(dataset, epochs = 1, steps_per_epoch=n_data//BATCH_SIZE) # divide by BATCH_SIZE to keep the number of training steps the same
else:
my_model.fit(x = my_data, y = my_targets, epochs = 1, batch_size= BATCH_SIZE)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">tensorflow</span> <span class="pl-k">as</span> <span class="pl-s1">tf</span>
<span class="pl-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">use_eager</span> <span class="pl-c1">=</span> <span class="pl-c1">True</span>
<span class="pl-s1">use_TFDataset</span> <span class="pl-c1">=</span> <span class="pl-c1">True</span>
<span class="pl-k">if</span> <span class="pl-c1">not</span> <span class="pl-s1">use_eager</span>:
<span class="pl-s1">tf</span>.<span class="pl-s1">compat</span>.<span class="pl-s1">v1</span>.<span class="pl-en">disable_eager_execution</span>()
<span class="pl-c"># Build dataset</span>
<span class="pl-s1">n_data</span> <span class="pl-c1">=</span> <span class="pl-c1">10</span><span class="pl-c1">**</span><span class="pl-c1">5</span>
<span class="pl-s1">my_data</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">random</span>((<span class="pl-s1">n_data</span>,<span class="pl-c1">10</span>,<span class="pl-c1">1</span>))
<span class="pl-s1">my_targets</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">randint</span>(<span class="pl-c1">0</span>,<span class="pl-c1">2</span>,(<span class="pl-s1">n_data</span>,<span class="pl-c1">1</span>))
<span class="pl-s1">data</span> <span class="pl-c1">=</span> ({<span class="pl-s">'x_input'</span>:<span class="pl-s1">my_data</span>}, {<span class="pl-s">'target'</span>:<span class="pl-s1">my_targets</span>})
<span class="pl-c"># Create tf.data.Dataset</span>
<span class="pl-v">BATCH_SIZE</span> <span class="pl-c1">=</span> <span class="pl-c1">10</span>
<span class="pl-s1">dataset</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">data</span>.<span class="pl-v">Dataset</span>.<span class="pl-en">from_tensor_slices</span>(<span class="pl-s1">data</span>)
<span class="pl-s1">dataset</span> <span class="pl-c1">=</span> <span class="pl-s1">dataset</span>.<span class="pl-en">batch</span>(<span class="pl-v">BATCH_SIZE</span>)
<span class="pl-s1">dataset</span> <span class="pl-c1">=</span> <span class="pl-s1">dataset</span>.<span class="pl-en">prefetch</span>(<span class="pl-c1">1</span>)
<span class="pl-c">#Build model</span>
<span class="pl-s1">x_input</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">keras</span>.<span class="pl-s1">layers</span>.<span class="pl-v">Input</span>((<span class="pl-c1">None</span>,<span class="pl-c1">1</span>), <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">'x_input'</span>)
<span class="pl-v">RNN</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">keras</span>.<span class="pl-s1">layers</span>.<span class="pl-v">SimpleRNN</span>(<span class="pl-c1">100</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">'RNN'</span>)(<span class="pl-s1">x_input</span>)
<span class="pl-s1">hidden</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">keras</span>.<span class="pl-s1">layers</span>.<span class="pl-v">Dense</span>(<span class="pl-c1">100</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">'hidden'</span>)(<span class="pl-v">RNN</span>)
<span class="pl-s1">dense</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">keras</span>.<span class="pl-s1">layers</span>.<span class="pl-v">Dense</span>(<span class="pl-c1">1</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">'target'</span>)(<span class="pl-s1">hidden</span>)
<span class="pl-s1">my_model</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">keras</span>.<span class="pl-s1">models</span>.<span class="pl-v">Model</span>(<span class="pl-s1">inputs</span> <span class="pl-c1">=</span> [<span class="pl-s1">x_input</span>], <span class="pl-s1">outputs</span> <span class="pl-c1">=</span> [<span class="pl-s1">dense</span>])
<span class="pl-s1">my_model</span>.<span class="pl-en">compile</span>(<span class="pl-s1">optimizer</span><span class="pl-c1">=</span><span class="pl-s">'SGD'</span>, <span class="pl-s1">loss</span> <span class="pl-c1">=</span> <span class="pl-s">'binary_crossentropy'</span>)
<span class="pl-c"># Train model</span>
<span class="pl-k">if</span> <span class="pl-s1">use_TFDataset</span>:
<span class="pl-s1">my_model</span>.<span class="pl-en">fit</span>(<span class="pl-s1">dataset</span>, <span class="pl-s1">epochs</span> <span class="pl-c1">=</span> <span class="pl-c1">1</span>, <span class="pl-s1">steps_per_epoch</span><span class="pl-c1">=</span><span class="pl-s1">n_data</span><span class="pl-c1">//</span><span class="pl-v">BATCH_SIZE</span>) <span class="pl-c"># divide by BATCH_SIZE to keep the number of training steps the same</span>
<span class="pl-k">else</span>:
<span class="pl-s1">my_model</span>.<span class="pl-en">fit</span>(<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">my_data</span>, <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">my_targets</span>, <span class="pl-s1">epochs</span> <span class="pl-c1">=</span> <span class="pl-c1">1</span>, <span class="pl-s1">batch_size</span><span class="pl-c1">=</span> <span class="pl-v">BATCH_SIZE</span>)</pre></div>
<p dir="auto"><strong>Other info / logs</strong><br>
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.</p> | 1 |
<p dir="auto">e.g. <a href="http://jenkins.kubernetes.io/job/kubernetes-e2e-gce/4289/" rel="nofollow">http://jenkins.kubernetes.io/job/kubernetes-e2e-gce/4289/</a></p> | <p dir="auto">Node e2e test should be run as part of the e2e conformance test suite.</p>
<ul dir="auto">
<li>figure out if the node e2e test should be run against every node in the cluster or just 1 node</li>
<li>support running tests using hooks provided by the cluster e2e framework for talking to the nodes</li>
<li>hook into existing test scripts</li>
<li>build node e2e with cluster e2e</li>
</ul> | 0 |
<p dir="auto">Hello dear HuggingFace team!<br>
According to the original paper, data2vec is not an actual model but more of a self-distilling training strategy. It takes an encoder model as backbone (RoBERTa for text, BEiT for vision, wav2vec for audio as mentioned in the paper) and pre-trains the encoder (student) to predict representations extracted from the EMA instance of the encoder (teacher), meaning the encoder can be any Transformer-based encoder model.<br>
After pretraining, in order to finetune or get predictions, the encoder itself is what matters and data2vec is of no use! (as seen <a href="https://github.com/pytorch/fairseq/tree/main/examples/data2vec#finetuning-data2vec-text-on-glue">here</a>)<br>
I reviewed data2vec implementation in HF transformers and noticed that you decided to use static encoders (BERT for text, BEiT for vision and wav2vec2 for audio) so for example, using Data2VecVisionModel for any task would be the same as using BEiTModel.<br>
Also I noticed that the encoders used for HF Data2Vec are not exactly the same models I mentioned above and there are some minor differences. The reason I'm wondering this, is because I was trying to copy the weights from your models to apply them to my own models in <a href="https://github.com/AryanShekarlaban/data2vec-pytorch">my own repo</a> and found out that I can't due to those incompatibilities.<br>
So my question is, what was the purpose behind all this? and did you train all those models or copied the weights from the original checkpoints in fairseq?</p>
<p dir="auto">Regards,<br>
Aryan</p> | <h1 dir="auto"><g-emoji class="g-emoji" alias="rocket" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f680.png">🚀</g-emoji> Not a Feature request, what am I here for then?</h1>
<p dir="auto">Well, mainly I'd just like to get some feedback from fellow software engineers. Some of the frustrations I've experienced might not have been big issues at all or there could have been easy ways to get around them which I've failed to notice. Getting roasted can be a good way for us to identify obvious flaws in our thought processes that aren't so obvious from our own often tunneled point of view.</p>
<h2 dir="auto">Motivation</h2>
<p dir="auto">Data loading in PyTorch requires the user to define the Dataset, collator, as well as a sampling strategy.<br>
I found it rather hard to stick to the framework when I have to deal with</p>
<ul dir="auto">
<li>Extremely large datasets that do not fit in system memory</li>
<li>The previous point + training with multiple processes and nodes</li>
</ul>
<p dir="auto">For Language Modeling and Machine Translation,</p>
<ul dir="auto">
<li>We often have to deal with large text/CSV files that are multiple times the size of system memory.</li>
<li>Also running training on a single GPU is often slow to the point of frustration.</li>
<li>Then we have to duplicate the extremely large dataset across each machine.</li>
<li>To format the data we have into a PyTorch Dataset, we simply just do a hack where we wrap an IO stream into a PyTorch Dataset</li>
<li>Or preprocess the entire dataset beforehand to speed up data loading.</li>
<li>Sometimes we would keep an index table to "lookup" the position of a data entry in a file which can be slow if not using SSD to perform random access.</li>
</ul>
<p dir="auto">Instead of trying to write code that fits into the format expected by PyTorch. I simply threw everything out the window and just made data loading a standalone service instead...</p>
<h2 dir="auto">Your contribution</h2>
<p dir="auto">Well, I've uploaded my work on <a href="https://github.com/mingruimingrui/data-loader-as-a-service-demo">https://github.com/mingruimingrui/data-loader-as-a-service-demo</a>.</p>
<p dir="auto">If you have taken your time to read up to this point, I would like to give you my gratitude as it had made me quite happy (^o^)<br>
I would also like to ask for you to leave some comments for me which can be any of the following.</p>
<ol dir="auto">
<li>Can you relate to the problems I've faced?</li>
<li>Which part of the Data Loading as a Service do you like?</li>
<li>Which part of the Data Loading as a Service do you not like or have problems agreeing with?</li>
<li>Any other comments would also be appreciated.</li>
</ol> | 0 |
<h3 dir="auto">Version</h3>
<p dir="auto">2.6.11</p>
<h3 dir="auto">Reproduction link</h3>
<p dir="auto">data:,see-steps-below</p>
<h3 dir="auto">Steps to reproduce</h3>
<p dir="auto">Step 1:</p>
<div class="highlight highlight-text-html-vue notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<template>
<div>
<textarea v-on:keypress.ctrl.enter="handleSubmit"></textarea>
</div>
</template>
<script type="module">
import Vue from 'https://cdnjs.cloudflare.com/ajax/libs/vue/2.6.11/vue.esm.browser.min.js';
let App={
methods: {
handleSubmit(event){
console.log('Ctrl Enter pressed');
},
}
};
new Vue(App).$mount(document.querySelector('template'));
</script>"><pre class="notranslate"><<span class="pl-ent">template</span>>
<<span class="pl-ent">div</span>>
<<span class="pl-ent">textarea</span> <span class="pl-e">v-on</span>:<span class="pl-e">keypress</span>.ctrl.<span class="pl-e">enter</span>=<span class="pl-s1"><span class="pl-pds">"</span>handleSubmit<span class="pl-pds">"</span></span>></<span class="pl-ent">textarea</span>>
</<span class="pl-ent">div</span>>
</<span class="pl-ent">template</span>>
<span class="pl-s1"><<span class="pl-ent">script</span> <span class="pl-e">type</span>=<span class="pl-s"><span class="pl-pds">"</span>module<span class="pl-pds">"</span></span>></span>
<span class="pl-s1"><span class="pl-k">import</span> <span class="pl-smi">Vue</span> <span class="pl-k">from</span> <span class="pl-s"><span class="pl-pds">'</span>https://cdnjs.cloudflare.com/ajax/libs/vue/2.6.11/vue.esm.browser.min.js<span class="pl-pds">'</span></span>;</span>
<span class="pl-s1"><span class="pl-k">let</span> App<span class="pl-k">=</span>{</span>
<span class="pl-s1"> methods<span class="pl-k">:</span> {</span>
<span class="pl-s1"> <span class="pl-en">handleSubmit</span>(<span class="pl-c1">event</span>){</span>
<span class="pl-s1"> <span class="pl-en">console</span>.<span class="pl-c1">log</span>(<span class="pl-s"><span class="pl-pds">'</span>Ctrl Enter pressed<span class="pl-pds">'</span></span>);</span>
<span class="pl-s1"> },</span>
<span class="pl-s1"> }</span>
<span class="pl-s1">};</span>
<span class="pl-s1"><span class="pl-k">new</span> <span class="pl-en">Vue</span>(App).<span class="pl-en">$mount</span>(<span class="pl-c1">document</span>.<span class="pl-c1">querySelector</span>(<span class="pl-s"><span class="pl-pds">'</span>template<span class="pl-pds">'</span></span>));</span>
<span class="pl-s1"></<span class="pl-ent">script</span>></span></pre></div>
<p dir="auto">Step 1:<br>
focus on the textarea and press Ctrl Enter</p>
<h3 dir="auto">What is expected?</h3>
<p dir="auto">the event handler <code class="notranslate">handleSubmit</code> would be invoked</p>
<h3 dir="auto">What is actually happening?</h3>
<p dir="auto">It doesn't work across browsers.</p>
<table role="table">
<thead>
<tr>
<th>event \ working \ browser</th>
<th>Chrome 90</th>
<th>Firefox 78</th>
</tr>
</thead>
<tbody>
<tr>
<td>v-on:keypress.ctrl.enter</td>
<td>N</td>
<td>Y</td>
</tr>
<tr>
<td>v-on:keypress.ctrl.10</td>
<td>Y</td>
<td>N</td>
</tr>
<tr>
<td>v-on:keypress.ctrl.13</td>
<td>N</td>
<td>Y</td>
</tr>
<tr>
<td>v-on:keypress.ctrl.10.13</td>
<td>Y</td>
<td>Y</td>
</tr>
</tbody>
</table>
<hr>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// v-on:keypress.ctrl.enter="handleInputEnter"
on: {
"keypress": function($event) {
if (!$event.type.indexOf('key') && _k($event.keyCode, "enter", 13, $event.key, "Enter"))
return null;
if (!$event.ctrlKey)
return null;
return handleInputEnter($event)
}
}"><pre class="notranslate"><span class="pl-c">// v-on:keypress.ctrl.enter="handleInputEnter"</span>
on: <span class="pl-kos">{</span>
<span class="pl-s">"keypress"</span>: <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">$event</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-c1">!</span><span class="pl-s1">$event</span><span class="pl-kos">.</span><span class="pl-c1">type</span><span class="pl-kos">.</span><span class="pl-en">indexOf</span><span class="pl-kos">(</span><span class="pl-s">'key'</span><span class="pl-kos">)</span> <span class="pl-c1">&&</span> <span class="pl-en">_k</span><span class="pl-kos">(</span><span class="pl-s1">$event</span><span class="pl-kos">.</span><span class="pl-c1">keyCode</span><span class="pl-kos">,</span> <span class="pl-s">"enter"</span><span class="pl-kos">,</span> <span class="pl-c1">13</span><span class="pl-kos">,</span> <span class="pl-s1">$event</span><span class="pl-kos">.</span><span class="pl-c1">key</span><span class="pl-kos">,</span> <span class="pl-s">"Enter"</span><span class="pl-kos">)</span><span class="pl-kos">)</span>
<span class="pl-k">return</span> <span class="pl-c1">null</span><span class="pl-kos">;</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-c1">!</span><span class="pl-s1">$event</span><span class="pl-kos">.</span><span class="pl-c1">ctrlKey</span><span class="pl-kos">)</span>
<span class="pl-k">return</span> <span class="pl-c1">null</span><span class="pl-kos">;</span>
<span class="pl-k">return</span> <span class="pl-en">handleInputEnter</span><span class="pl-kos">(</span><span class="pl-s1">$event</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Use <code class="notranslate">.enter</code> as an alias of <code class="notranslate">.13</code> is sometimes misleading. If event keyCode is 13, then you may say Enter key is pressed, but if Enter pressed, the keyCode may also be 10 if Ctrl pressed in the mean time.</p>
<p dir="auto">Currently I use <code class="notranslate">v-on:keypress.ctrl.10.13="handleInputEnter"</code> as a workaround.</p>
<p dir="auto">So my idea is: either to add a caveat note in docuemtation section <code class="notranslate">.enter</code>, or let the component template compiler handle <code class="notranslate">.enter</code> modifier correctly.</p> | <h3 dir="auto">Version</h3>
<p dir="auto">2.6.11</p>
<h3 dir="auto">Reproduction link</h3>
<p dir="auto"><a href="https://codesandbox.io/s/kind-water-hqs5f?file=/src/App.vue" rel="nofollow">https://codesandbox.io/s/kind-water-hqs5f?file=/src/App.vue</a></p>
<h3 dir="auto">Steps to reproduce</h3>
<p dir="auto">在任意输入框输入任意内容</p>
<h3 dir="auto">What is expected?</h3>
<p dir="auto">输入流畅</p>
<h3 dir="auto">What is actually happening?</h3>
<p dir="auto">输入卡顿</p>
<hr>
<p dir="auto">在v-for里面,绑定了$attrs的都会触发更新,引起不必要的渲染</p> | 0 |
<p dir="auto">When creating a form type class with a default validation_group (using validation_groups key in default options array), I found that the specified group is not taken into account when generating the form for the NotBlank assert annotation (and most liekly the NotNull one as well).</p>
<p dir="auto">When adding a NotBlank assert annotations to a model (or entity) class with a group application filter (groups attribute for the annotation) and generating a form view for this class (via a form type specifying the default validation group or another validation group), the Not Blank annotation is always processed before rendering the form and the field always ends up with a require="required" attribute.</p>
<p dir="auto">The validation_groups options of the form type class should always be taken into account when generating a form. Right now it is not correctly processed and the generated form does not match the expected result ; the only way I found to fix this behaviour without going into the symfony core classes was to render each field using an attribute "required" => false when rendering the field using the form_(row|widget) twig tag.</p> | <p dir="auto">The <code class="notranslate">ValidatorTypeGuesser</code> does not consider the current form's <code class="notranslate">validation_groups</code> option when guessing type. This could be fixed by passing the options array to the guesser methods. The signature of the <code class="notranslate">FormTypeGuesserInterface</code> methods would look like this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function guessType($class, $property, array $options = array());"><pre class="notranslate"><code class="notranslate">function guessType($class, $property, array $options = array());
</code></pre></div>
<p dir="auto">The default argument is provided for BC.</p> | 1 |
<p dir="auto">Trying to save an unpickled figure using <code class="notranslate">savefig</code> throws an<br>
<code class="notranslate">AttributeError: 'CallbackRegistry' object has no attribute 'callbacks' </code></p>
<p dir="auto">The issue is reproduced using the following code in python 2.7 (from WinPython2.7.10), Windows 8.1 (64bit), matplotlib 2.0.0</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt
import pickle
fig= plt.figure()
ax = fig.add_subplot(111)
ax.plot([9,8,7])
pickle.dump(fig, file('fig.pickle', 'w'))
plt.close("all")
fig_pickled1 = pickle.load(file('fig.pickle'))
plt.savefig(__file__+".png")
"><pre class="notranslate"><code class="notranslate">import matplotlib.pyplot as plt
import pickle
fig= plt.figure()
ax = fig.add_subplot(111)
ax.plot([9,8,7])
pickle.dump(fig, file('fig.pickle', 'w'))
plt.close("all")
fig_pickled1 = pickle.load(file('fig.pickle'))
plt.savefig(__file__+".png")
</code></pre></div>
<p dir="auto">The traceback of the call to this is</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
File "D:\Data\Computer\Entwicklung\python\test\SO_pickle_matplotlib.py", line 43, in <module>
plt.savefig(__file__+".png")
File "C:\WinPython\WinPython-64bit-2.7.10.3\python-2.7.10.amd64\lib\site-packages\matplotlib\pyplot.py", line 697, in savefig
res = fig.savefig(*args, **kwargs)
File "C:\WinPython\WinPython-64bit-2.7.10.3\python-2.7.10.amd64\lib\site-packages\matplotlib\figure.py", line 1572, in savefig
self.canvas.print_figure(*args, **kwargs)
File "C:\WinPython\WinPython-64bit-2.7.10.3\python-2.7.10.amd64\lib\site-packages\matplotlib\backends\backend_qt5agg.py", line 222, in print_figure
FigureCanvasAgg.print_figure(self, *args, **kwargs)
File "C:\WinPython\WinPython-64bit-2.7.10.3\python-2.7.10.amd64\lib\site-packages\matplotlib\backend_bases.py", line 2163, in print_figure
self.figure.dpi = dpi
File "C:\WinPython\WinPython-64bit-2.7.10.3\python-2.7.10.amd64\lib\site-packages\matplotlib\figure.py", line 416, in _set_dpi
self.callbacks.process('dpi_changed', self)
File "C:\WinPython\WinPython-64bit-2.7.10.3\python-2.7.10.amd64\lib\site-packages\matplotlib\cbook.py", line 546, in process
if s in self.callbacks:
AttributeError: 'CallbackRegistry' object has no attribute 'callbacks'
"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
File "D:\Data\Computer\Entwicklung\python\test\SO_pickle_matplotlib.py", line 43, in <module>
plt.savefig(__file__+".png")
File "C:\WinPython\WinPython-64bit-2.7.10.3\python-2.7.10.amd64\lib\site-packages\matplotlib\pyplot.py", line 697, in savefig
res = fig.savefig(*args, **kwargs)
File "C:\WinPython\WinPython-64bit-2.7.10.3\python-2.7.10.amd64\lib\site-packages\matplotlib\figure.py", line 1572, in savefig
self.canvas.print_figure(*args, **kwargs)
File "C:\WinPython\WinPython-64bit-2.7.10.3\python-2.7.10.amd64\lib\site-packages\matplotlib\backends\backend_qt5agg.py", line 222, in print_figure
FigureCanvasAgg.print_figure(self, *args, **kwargs)
File "C:\WinPython\WinPython-64bit-2.7.10.3\python-2.7.10.amd64\lib\site-packages\matplotlib\backend_bases.py", line 2163, in print_figure
self.figure.dpi = dpi
File "C:\WinPython\WinPython-64bit-2.7.10.3\python-2.7.10.amd64\lib\site-packages\matplotlib\figure.py", line 416, in _set_dpi
self.callbacks.process('dpi_changed', self)
File "C:\WinPython\WinPython-64bit-2.7.10.3\python-2.7.10.amd64\lib\site-packages\matplotlib\cbook.py", line 546, in process
if s in self.callbacks:
AttributeError: 'CallbackRegistry' object has no attribute 'callbacks'
</code></pre></div>
<p dir="auto">Using <code class="notranslate">plt.show()</code> instead of saving works fine; the figure is shown as expected.<br>
Using <code class="notranslate">pickle.dump(fig, open('fig.pickle', 'wb'))</code> for pickling and <code class="notranslate">fig_pickled1 = pickle.load(open('fig.pickle', "rb"))</code> does not change the behaviour.<br>
Also, moving the loading to a new file has no effect.<br>
Trying to save in other formats like <code class="notranslate">pdf</code> does not change anything.</p> | <p dir="auto">Using matplotlib version 1.5.1 installed from pip on Linux (Fedora 22 and CentOS 7).</p>
<p dir="auto">Trying to set certain attributes (e.g. cmap, clim) on a PatchCollection loaded from a pickle leads to an <code class="notranslate">AttributeError: 'CallbackRegistry' object has no attribute 'callbacks'</code>:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
File "mpl_pickle_pc_test.py", line 48, in <module>
pc_loaded.set_cmap(cmap)
File "<venv>/lib/python2.7/site-packages/matplotlib/cm.py", line 308, in set_cmap
self.changed()
File "<venv>/lib/python2.7/site-packages/matplotlib/cm.py", line 359, in changed
self.callbacksSM.process('changed', self)
File "<venv>/lib/python2.7/site-packages/matplotlib/cbook.py", line 560, in process
if s in self.callbacks:
AttributeError: 'CallbackRegistry' object has no attribute 'callbacks'"><pre class="notranslate"><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">"mpl_pickle_pc_test.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">48</span>, <span class="pl-s1">in</span> <span class="pl-c1"><</span><span class="pl-s1">module</span><span class="pl-c1">></span>
<span class="pl-s1">pc_loaded</span>.<span class="pl-en">set_cmap</span>(<span class="pl-s1">cmap</span>)
<span class="pl-v">File</span> <span class="pl-s">"<venv>/lib/python2.7/site-packages/matplotlib/cm.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">308</span>, <span class="pl-s1">in</span> <span class="pl-s1">set_cmap</span>
<span class="pl-s1">self</span>.<span class="pl-en">changed</span>()
<span class="pl-v">File</span> <span class="pl-s">"<venv>/lib/python2.7/site-packages/matplotlib/cm.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">359</span>, <span class="pl-s1">in</span> <span class="pl-s1">changed</span>
<span class="pl-s1">self</span>.<span class="pl-s1">callbacksSM</span>.<span class="pl-en">process</span>(<span class="pl-s">'changed'</span>, <span class="pl-s1">self</span>)
<span class="pl-v">File</span> <span class="pl-s">"<venv>/lib/python2.7/site-packages/matplotlib/cbook.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">560</span>, <span class="pl-s1">in</span> <span class="pl-s1">process</span>
<span class="pl-k">if</span> <span class="pl-s1">s</span> <span class="pl-c1">in</span> <span class="pl-s1">self</span>.<span class="pl-s1">callbacks</span>:
<span class="pl-v">AttributeError</span>: <span class="pl-s">'CallbackRegistry'</span> <span class="pl-s1">object</span> <span class="pl-s1">has</span> <span class="pl-s1">no</span> <span class="pl-s1">attribute</span> <span class="pl-s">'callbacks'</span></pre></div>
<p dir="auto">I've created a gist to reproduce this behavior: <a href="https://gist.github.com/jasoncpatton/c19d19b638ff10ece5d2">https://gist.github.com/jasoncpatton/c19d19b638ff10ece5d2</a></p>
<p dir="auto">Oddly, if you catch the AttributeError and ignore it (set <code class="notranslate">use_try = True</code> in the gist), the attribute is actually set on the PatchCollection. However, using any methods that take the PatchCollection as a parameter (e.g. <code class="notranslate">fig.colorbar()</code>) will also break your code.</p>
<p dir="auto">This behavior does not occur in version 1.4.3.</p> | 1 |
<p dir="auto">Checkpoints still showing syntax errors...</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/10119077/7834847/3111df3c-0439-11e5-9665-92ccfeca2115.PNG"><img src="https://cloud.githubusercontent.com/assets/10119077/7834847/3111df3c-0439-11e5-9665-92ccfeca2115.PNG" alt="error" style="max-width: 100%;"></a></p> | <p dir="auto">This issue is to track Syntax error popping up in the challenges.</p> | 1 |
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[X] bug report => search github for a similar issue or PR before submitting
[X] feature request
[ ] support request => 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 => search github for a similar issue or PR before submitting
[X] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong><br>
When listening to a native event such as <code class="notranslate">(window:mousemove)</code> the component is marked for check.</p>
<p dir="auto"><strong>Expected behavior</strong></p>
<blockquote>
<p dir="auto">When using OnPush detectors, then the framework will check an OnPush component when any of its input properties changes, when it fires an event, or when an observable fires an event</p>
</blockquote>
<p dir="auto"><strong>Note:</strong> It says that the angular will only check it if an input changes, it fires an output, or an observable fires an output. I can see how this could be considered an <code class="notranslate">observable</code> but I wouldn't think of a native event as <code class="notranslate">observable</code>.</p>
<p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br>
<a href="https://plnkr.co/edit/CEDANBqgbbKkBHSkHnDk?p=preview" rel="nofollow">https://plnkr.co/edit/CEDANBqgbbKkBHSkHnDk?p=preview</a></p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br>
If a component wants to listen to a native event it has to manually listen to that event using browser apis if it wants to avoid the change detector. This isn't great.</p>
<p dir="auto"><strong>Please tell us about your environment:</strong></p>
<ul dir="auto">
<li>
<p dir="auto"><strong>Angular version:</strong> 2.0.X<br>
2.0.2, 2.1.2</p>
</li>
<li>
<p dir="auto"><strong>Browser:</strong> [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]</p>
</li>
</ul>
<ul dir="auto">
<li>
<p dir="auto"><strong>Language:</strong> [all | TypeScript X.X | ES6/7 | ES5]</p>
</li>
<li>
<p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> =</p>
</li>
</ul> | <p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong></p>
<p dir="auto">Reposted from router v3 repo via <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/choeller/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/choeller">@choeller</a></p>
<p dir="auto">When having 2 router-outlets in a child-component the aux-functionality works well, but as soon as you want to leave the child-route the following exception is thrown and the router stops working:</p>
<p dir="auto"><code class="notranslate">EXCEPTION: Error: Uncaught (in promise): Error: Outlet is not activated</code><br>
the following plnkr demonstrates the behaviour:</p>
<p dir="auto"><a href="http://plnkr.co/edit/wnHZzoB4xj5BbKWNzXUK?p=preview" rel="nofollow">http://plnkr.co/edit/wnHZzoB4xj5BbKWNzXUK?p=preview</a></p>
<p dir="auto">the aux-outlet is defined in crisis-center.component.ts</p>
<p dir="auto">My use-case is to have an encapsulated part of my application that deals with "Tasks". When selecting a task I want to open a sidebar and display some important information about the task (JIRA-like). I already got this working in my application, but when once entering the "tasks" part I can never leave it again.</p>
<p dir="auto"><strong>Expected/desired behavior</strong></p>
<p dir="auto"><strong>Reproduction of the problem</strong><br>
If the current behavior is a bug or you can illustrate your feature request better with an example, please provide the steps to reproduce and if possible a minimal demo of the problem via <a href="https://plnkr.co" rel="nofollow">https://plnkr.co</a> or similar (you can use this template as a starting point: <a href="http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5" rel="nofollow">http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5</a>).</p>
<p dir="auto"><strong>What is the expected behavior?</strong></p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p>
<p dir="auto"><strong>Please tell us about your environment:</strong></p>
<ul dir="auto">
<li><strong>Angular version:</strong> 2.0.0-rc.X</li>
<li><strong>Browser:</strong> [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]</li>
<li><strong>Language:</strong> [all | TypeScript X.X | ES6/7 | ES5 | Dart]</li>
</ul> | 0 |
<p dir="auto">There was an original attempt to support exporting chart to image manually, which is a nice idea, but the implementation does not cover every chart and was inactive for long time, so I close the PR and created an issue to track the idea.<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="258918577" data-permission-text="Title is private" data-url="https://github.com/apache/superset/issues/3496" data-hovercard-type="pull_request" data-hovercard-url="/apache/superset/pull/3496/hovercard" href="https://github.com/apache/superset/pull/3496">#3496</a></p> | <p dir="auto">It's known that the Redis cache is already applied in query for query_context and viz, but there is a situation that makes it doesn’t work well, that’s when multi concurrent query requests to one dashboard or chart, come in at the same time, from different users. It will cause duplicated query request to our query engine, because the cache is not ready yet. As a result, it brings burden to cluster and waste resources.</p>
<p dir="auto">Since the superset is natively distributed, and the async task is supposed to run in multiple celery works, we come up with an assumption that, maybe the distributed lock can help, which should be acquired before cache retrieve and released after query complete, to make the queries with the same cache key execute in a serial way, instead of a concurrent way.</p>
<h3 dir="auto">Checklist</h3>
<p dir="auto">Make sure to follow these steps before submitting your issue - thank you!</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the superset logs for python stacktraces and included it here as text if there are any.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have reproduced the issue with at least the latest released version of superset.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the issue tracker for the same issue and I haven't found one similar.</li>
</ul> | 0 |
<p dir="auto"><strong>Is your feature request related to a problem? Please describe.</strong><br>
In version 2.x Quick Fix imports have suffixed the imports with the correct file extension now in 3.x I always have to add <code class="notranslate">.ts</code> etc manually which is painful.</p>
<p dir="auto"><strong>Describe the solution you'd like</strong><br>
Add the feature back which automatically handled the file extensions.</p> | <p dir="auto">This plugin is mostly doing pretty incredible, I've been having a small issue with imports the past few weeks.</p>
<p dir="auto">Given two files:<br>
<code class="notranslate">dep.ts</code></p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export const age = 28;"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">const</span> <span class="pl-s1">age</span> <span class="pl-c1">=</span> <span class="pl-c1">28</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">and <code class="notranslate">main.ts</code></p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="console.log(age);"><pre class="notranslate"><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">age</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">The LSP gives a helpful action to import when triggered on the age word:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/80852256/119562130-47b1fd80-bda6-11eb-94f2-d18fe50d557b.png"><img src="https://user-images.githubusercontent.com/80852256/119562130-47b1fd80-bda6-11eb-94f2-d18fe50d557b.png" alt="Screenshot 2021-05-25 at 22 05 46" style="max-width: 100%;"></a></p>
<p dir="auto">However, this is missing the .ts extension as should be added with Deno, which results in an error when importing.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/80852256/119562143-4c76b180-bda6-11eb-9122-5c03f198a418.png"><img src="https://user-images.githubusercontent.com/80852256/119562143-4c76b180-bda6-11eb-9122-5c03f198a418.png" alt="Screenshot 2021-05-25 at 22 06 18" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Versions</strong></p>
<p dir="auto">vscode: 1.57 deno: 1.10.2 extension: v3.4.0</p>
<p dir="auto">The screenshots are from nvim / coc.nvim but I confirmed the issue with vscode.</p> | 1 |
<h1 dir="auto"><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Bug</h1>
<h2 dir="auto">Information</h2>
<p dir="auto">Model I am using (Bert, XLNet ...): Roberta</p>
<p dir="auto">Language I am using the model on (English, Chinese ...): English</p>
<p dir="auto">The problem arises when using:</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> the official example scripts: (give details below)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> my own modified scripts: (give details below)</li>
</ul>
<p dir="auto">I'm trying to run <code class="notranslate">run_language_modelling.py</code> with my own tokenizer</p>
<p dir="auto">The tasks I am working on is:</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> an official GLUE/SQUaD task: (give the name)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> my own task or dataset: (give details below)</li>
</ul>
<h2 dir="auto">To reproduce</h2>
<p dir="auto">Steps to reproduce the behavior:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="!pip install transformers --upgrade
from transformers import AutoTokenizer
my_tokenizer = AutoTokenizer.from_pretrained("distilroberta-base")
!mkdir my_tokenizer
my_tokenizer.save_pretrained("my_tokenizer")
my_tokenizer2 = AutoTokenizer.from_pretrained("./my_tokenizer")"><pre class="notranslate"><code class="notranslate">!pip install transformers --upgrade
from transformers import AutoTokenizer
my_tokenizer = AutoTokenizer.from_pretrained("distilroberta-base")
!mkdir my_tokenizer
my_tokenizer.save_pretrained("my_tokenizer")
my_tokenizer2 = AutoTokenizer.from_pretrained("./my_tokenizer")
</code></pre></div>
<h3 dir="auto">Stack Trace:</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="---------------------------------------------------------------------------
OSError Traceback (most recent call last)
/usr/local/lib/python3.6/dist-packages/transformers/configuration_utils.py in get_config_dict(cls, pretrained_model_name_or_path, pretrained_config_archive_map, **kwargs)
246 resume_download=resume_download,
--> 247 local_files_only=local_files_only,
248 )
4 frames
/usr/local/lib/python3.6/dist-packages/transformers/file_utils.py in cached_path(url_or_filename, cache_dir, force_download, proxies, resume_download, user_agent, extract_compressed_file, force_extract, local_files_only)
260 # File, but it doesn't exist.
--> 261 raise EnvironmentError("file {} not found".format(url_or_filename))
262 else:
OSError: file ./my_tokenizer/config.json not found
During handling of the above exception, another exception occurred:
OSError Traceback (most recent call last)
<ipython-input-16-b699c4abfe8e> in <module>()
3 get_ipython().system('mkdir my_tokenizer')
4 my_tokenizer.save_pretrained("my_tokenizer")
----> 5 my_tokenizer2 = AutoTokenizer.from_pretrained("./my_tokenizer")
/usr/local/lib/python3.6/dist-packages/transformers/tokenization_auto.py in from_pretrained(cls, pretrained_model_name_or_path, *inputs, **kwargs)
184 config = kwargs.pop("config", None)
185 if not isinstance(config, PretrainedConfig):
--> 186 config = AutoConfig.from_pretrained(pretrained_model_name_or_path, **kwargs)
187
188 if "bert-base-japanese" in pretrained_model_name_or_path:
/usr/local/lib/python3.6/dist-packages/transformers/configuration_auto.py in from_pretrained(cls, pretrained_model_name_or_path, **kwargs)
185 """
186 config_dict, _ = PretrainedConfig.get_config_dict(
--> 187 pretrained_model_name_or_path, pretrained_config_archive_map=ALL_PRETRAINED_CONFIG_ARCHIVE_MAP, **kwargs
188 )
189
/usr/local/lib/python3.6/dist-packages/transformers/configuration_utils.py in get_config_dict(cls, pretrained_model_name_or_path, pretrained_config_archive_map, **kwargs)
268 )
269 )
--> 270 raise EnvironmentError(msg)
271
272 except json.JSONDecodeError:
OSError: Can't load './my_tokenizer'. Make sure that:
- './my_tokenizer' is a correct model identifier listed on 'https://huggingface.co/models'
- or './my_tokenizer' is the correct path to a directory containing a 'config.json' file"><pre class="notranslate"><code class="notranslate">---------------------------------------------------------------------------
OSError Traceback (most recent call last)
/usr/local/lib/python3.6/dist-packages/transformers/configuration_utils.py in get_config_dict(cls, pretrained_model_name_or_path, pretrained_config_archive_map, **kwargs)
246 resume_download=resume_download,
--> 247 local_files_only=local_files_only,
248 )
4 frames
/usr/local/lib/python3.6/dist-packages/transformers/file_utils.py in cached_path(url_or_filename, cache_dir, force_download, proxies, resume_download, user_agent, extract_compressed_file, force_extract, local_files_only)
260 # File, but it doesn't exist.
--> 261 raise EnvironmentError("file {} not found".format(url_or_filename))
262 else:
OSError: file ./my_tokenizer/config.json not found
During handling of the above exception, another exception occurred:
OSError Traceback (most recent call last)
<ipython-input-16-b699c4abfe8e> in <module>()
3 get_ipython().system('mkdir my_tokenizer')
4 my_tokenizer.save_pretrained("my_tokenizer")
----> 5 my_tokenizer2 = AutoTokenizer.from_pretrained("./my_tokenizer")
/usr/local/lib/python3.6/dist-packages/transformers/tokenization_auto.py in from_pretrained(cls, pretrained_model_name_or_path, *inputs, **kwargs)
184 config = kwargs.pop("config", None)
185 if not isinstance(config, PretrainedConfig):
--> 186 config = AutoConfig.from_pretrained(pretrained_model_name_or_path, **kwargs)
187
188 if "bert-base-japanese" in pretrained_model_name_or_path:
/usr/local/lib/python3.6/dist-packages/transformers/configuration_auto.py in from_pretrained(cls, pretrained_model_name_or_path, **kwargs)
185 """
186 config_dict, _ = PretrainedConfig.get_config_dict(
--> 187 pretrained_model_name_or_path, pretrained_config_archive_map=ALL_PRETRAINED_CONFIG_ARCHIVE_MAP, **kwargs
188 )
189
/usr/local/lib/python3.6/dist-packages/transformers/configuration_utils.py in get_config_dict(cls, pretrained_model_name_or_path, pretrained_config_archive_map, **kwargs)
268 )
269 )
--> 270 raise EnvironmentError(msg)
271
272 except json.JSONDecodeError:
OSError: Can't load './my_tokenizer'. Make sure that:
- './my_tokenizer' is a correct model identifier listed on 'https://huggingface.co/models'
- or './my_tokenizer' is the correct path to a directory containing a 'config.json' file
</code></pre></div>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">AutoTokenizer should be able to load the tokenizer from the file.</p>
<p dir="auto">Possible duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="483113043" data-permission-text="Title is private" data-url="https://github.com/huggingface/transformers/issues/1063" data-hovercard-type="issue" data-hovercard-url="/huggingface/transformers/issues/1063/hovercard" href="https://github.com/huggingface/transformers/issues/1063">#1063</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="601711222" data-permission-text="Title is private" data-url="https://github.com/huggingface/transformers/issues/3838" data-hovercard-type="issue" data-hovercard-url="/huggingface/transformers/issues/3838/hovercard" href="https://github.com/huggingface/transformers/issues/3838">#3838</a></p>
<h2 dir="auto">Environment info</h2>
<ul dir="auto">
<li><code class="notranslate">transformers</code> version:</li>
<li>Platform: Google Colab</li>
<li>Python version: 3.6.9</li>
<li>PyTorch version (GPU?): N/A</li>
<li>Tensorflow version (GPU?): N/A</li>
<li>Using GPU in script?: No</li>
<li>Using distributed or parallel set-up in script?: No</li>
</ul> | <h1 dir="auto">🐛 Bug</h1>
<p dir="auto">Hi,</p>
<p dir="auto">I noticed some strange behavior with the fast tokenizers in <code class="notranslate">v2.5.0</code>, which I think is a bug:<br>
It seems <code class="notranslate">BertTokenizerFast</code> is ignoring the <code class="notranslate">pad_to_max_length</code> argument, as shown below:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=">>> from transformers import AutoTokenizer, BertTokenizer
>>> tok_auto = AutoTokenizer.from_pretrained('bert-base-uncased')
>>> tok_bert = BertTokenizer.from_pretrained('bert-base-uncased')
>>> a, b = 'Sentence 1', 'Sentence 2'
>>>
>>> tok_bert.encode(a, b, max_length=10, pad_to_max_length=True)
[101, 6251, 1015, 102, 6251, 1016, 102, 0, 0, 0] # <-- Expected behavior
>>> tok_auto.encode(a, b, max_length=10, pad_to_max_length=True)
[101, 6251, 1015, 102, 6251, 1016, 102] # <-- Actual behavior"><pre class="notranslate"><span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-k">from</span> <span class="pl-s1">transformers</span> <span class="pl-k">import</span> <span class="pl-v">AutoTokenizer</span>, <span class="pl-v">BertTokenizer</span>
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">tok_auto</span> <span class="pl-c1">=</span> <span class="pl-v">AutoTokenizer</span>.<span class="pl-en">from_pretrained</span>(<span class="pl-s">'bert-base-uncased'</span>)
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">tok_bert</span> <span class="pl-c1">=</span> <span class="pl-v">BertTokenizer</span>.<span class="pl-en">from_pretrained</span>(<span class="pl-s">'bert-base-uncased'</span>)
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">a</span>, <span class="pl-s1">b</span> <span class="pl-c1">=</span> <span class="pl-s">'Sentence 1'</span>, <span class="pl-s">'Sentence 2'</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">tok_bert</span>.<span class="pl-en">encode</span>(<span class="pl-s1">a</span>, <span class="pl-s1">b</span>, <span class="pl-s1">max_length</span><span class="pl-c1">=</span><span class="pl-c1">10</span>, <span class="pl-s1">pad_to_max_length</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
[<span class="pl-c1">101</span>, <span class="pl-c1">6251</span>, <span class="pl-c1">1015</span>, <span class="pl-c1">102</span>, <span class="pl-c1">6251</span>, <span class="pl-c1">1016</span>, <span class="pl-c1">102</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>] <span class="pl-c"># <-- Expected behavior</span>
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">tok_auto</span>.<span class="pl-en">encode</span>(<span class="pl-s1">a</span>, <span class="pl-s1">b</span>, <span class="pl-s1">max_length</span><span class="pl-c1">=</span><span class="pl-c1">10</span>, <span class="pl-s1">pad_to_max_length</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
[<span class="pl-c1">101</span>, <span class="pl-c1">6251</span>, <span class="pl-c1">1015</span>, <span class="pl-c1">102</span>, <span class="pl-c1">6251</span>, <span class="pl-c1">1016</span>, <span class="pl-c1">102</span>] <span class="pl-c"># <-- Actual behavior</span></pre></div>
<p dir="auto">Also, can some please explain the reason for the warning below that's raised when I set <code class="notranslate">pad_to_max_length=False</code> (which is only there in the fast tokenizer)?</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=">>> tok_auto.encode(a, b, max_length=10, pad_to_max_length=False)
Disabled padding because no padding token set (pad_token: [PAD], pad_token_id: 0).
To remove this error, you can add a new pad token and then resize model embedding:
tokenizer.pad_token = '<PAD>'
model.resize_token_embeddings(len(tokenizer))
[101, 6251, 1015, 102, 6251, 1016, 102]
>>> tok_bert.encode(a, b, max_length=10, pad_to_max_length=False)
[101, 6251, 1015, 102, 6251, 1016, 102] # <-- No warning"><pre class="notranslate"><span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">tok_auto</span>.<span class="pl-en">encode</span>(<span class="pl-s1">a</span>, <span class="pl-s1">b</span>, <span class="pl-s1">max_length</span><span class="pl-c1">=</span><span class="pl-c1">10</span>, <span class="pl-s1">pad_to_max_length</span><span class="pl-c1">=</span><span class="pl-c1">False</span>)
<span class="pl-v">Disabled</span> <span class="pl-s1">padding</span> <span class="pl-s1">because</span> <span class="pl-s1">no</span> <span class="pl-s1">padding</span> <span class="pl-s1">token</span> <span class="pl-en">set</span> (<span class="pl-s1">pad_token</span>: [<span class="pl-v">PAD</span>], <span class="pl-s1">pad_token_id</span>: <span class="pl-c1">0</span>).
<span class="pl-v">To</span> <span class="pl-s1">remove</span> <span class="pl-s1">this</span> <span class="pl-s1">error</span>, <span class="pl-s1">you</span> <span class="pl-s1">can</span> <span class="pl-s1">add</span> <span class="pl-s1">a</span> <span class="pl-s1">new</span> <span class="pl-s1">pad</span> <span class="pl-s1">token</span> <span class="pl-c1">and</span> <span class="pl-s1">then</span> <span class="pl-s1">resize</span> <span class="pl-s1">model</span> <span class="pl-s1">embedding</span>:
<span class="pl-s1">tokenizer</span>.<span class="pl-s1">pad_token</span> <span class="pl-c1">=</span> <span class="pl-s">'<PAD>'</span>
<span class="pl-s1">model</span>.<span class="pl-en">resize_token_embeddings</span>(<span class="pl-en">len</span>(<span class="pl-s1">tokenizer</span>))
[<span class="pl-c1">101</span>, <span class="pl-c1">6251</span>, <span class="pl-c1">1015</span>, <span class="pl-c1">102</span>, <span class="pl-c1">6251</span>, <span class="pl-c1">1016</span>, <span class="pl-c1">102</span>]
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">tok_bert</span>.<span class="pl-en">encode</span>(<span class="pl-s1">a</span>, <span class="pl-s1">b</span>, <span class="pl-s1">max_length</span><span class="pl-c1">=</span><span class="pl-c1">10</span>, <span class="pl-s1">pad_to_max_length</span><span class="pl-c1">=</span><span class="pl-c1">False</span>)
[<span class="pl-c1">101</span>, <span class="pl-c1">6251</span>, <span class="pl-c1">1015</span>, <span class="pl-c1">102</span>, <span class="pl-c1">6251</span>, <span class="pl-c1">1016</span>, <span class="pl-c1">102</span>] <span class="pl-c"># <-- No warning</span></pre></div>
<p dir="auto">Thanks!</p> | 0 |
<h2 dir="auto">Bug Report</h2>
<p dir="auto"><strong>Current Behavior</strong><br>
babel/preset-env with option of targets={esmodules: true} generates infinite recursive call for async super method calls.</p>
<p dir="auto"><strong>Input Code</strong></p>
<ul dir="auto">
<li>REPL or Repo link if applicable:<br>
<a href="https://codesandbox.io/s/sparkling-sky-qqc0z" rel="nofollow">https://codesandbox.io/s/sparkling-sky-qqc0z</a></li>
</ul>
<p dir="auto">Example code:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class A {
async foo() {
console.log("A#foo");
}
}
class B extends A {
async foo() {
console.log("B#foo");
await super.foo();
}
}
new B().foo();"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">A</span> <span class="pl-kos">{</span>
<span class="pl-k">async</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">"A#foo"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">class</span> <span class="pl-v">B</span> <span class="pl-k">extends</span> <span class="pl-v">A</span> <span class="pl-kos">{</span>
<span class="pl-k">async</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">"B#foo"</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">foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">new</span> <span class="pl-v">B</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-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">The transpiled result of above becomes:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""use strict";
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
class A {
foo() {
return _asyncToGenerator(function* () {
console.log("A#foo");
})();
}
}
class B extends A {
foo() {
var _superprop_callFoo = function _superprop_callFoo() {
return _superprop_callFoo(...arguments);
};
return _asyncToGenerator(function* () {
console.log("B#foo");
yield _superprop_callFoo();
})();
}
}
new B().foo();"><pre class="notranslate"><span class="pl-s">"use strict"</span><span class="pl-kos">;</span>
<span class="pl-k">function</span> <span class="pl-en">asyncGeneratorStep</span><span class="pl-kos">(</span><span class="pl-s1">gen</span><span class="pl-kos">,</span> <span class="pl-s1">resolve</span><span class="pl-kos">,</span> <span class="pl-s1">reject</span><span class="pl-kos">,</span> <span class="pl-s1">_next</span><span class="pl-kos">,</span> <span class="pl-s1">_throw</span><span class="pl-kos">,</span> <span class="pl-s1">key</span><span class="pl-kos">,</span> <span class="pl-s1">arg</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">try</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">info</span> <span class="pl-c1">=</span> <span class="pl-s1">gen</span><span class="pl-kos">[</span><span class="pl-s1">key</span><span class="pl-kos">]</span><span class="pl-kos">(</span><span class="pl-s1">arg</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">value</span> <span class="pl-c1">=</span> <span class="pl-s1">info</span><span class="pl-kos">.</span><span class="pl-c1">value</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">catch</span> <span class="pl-kos">(</span><span class="pl-s1">error</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">reject</span><span class="pl-kos">(</span><span class="pl-s1">error</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">return</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">info</span><span class="pl-kos">.</span><span class="pl-c1">done</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">resolve</span><span class="pl-kos">(</span><span class="pl-s1">value</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">else</span> <span class="pl-kos">{</span> <span class="pl-v">Promise</span><span class="pl-kos">.</span><span class="pl-en">resolve</span><span class="pl-kos">(</span><span class="pl-s1">value</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">_next</span><span class="pl-kos">,</span> <span class="pl-s1">_throw</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">function</span> <span class="pl-en">_asyncToGenerator</span><span class="pl-kos">(</span><span class="pl-s1">fn</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">self</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">,</span> <span class="pl-s1">args</span> <span class="pl-c1">=</span> <span class="pl-smi">arguments</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-v">Promise</span><span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">resolve</span><span class="pl-kos">,</span> <span class="pl-s1">reject</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">gen</span> <span class="pl-c1">=</span> <span class="pl-s1">fn</span><span class="pl-kos">.</span><span class="pl-en">apply</span><span class="pl-kos">(</span><span class="pl-s1">self</span><span class="pl-kos">,</span> <span class="pl-s1">args</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">function</span> <span class="pl-en">_next</span><span class="pl-kos">(</span><span class="pl-s1">value</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">asyncGeneratorStep</span><span class="pl-kos">(</span><span class="pl-s1">gen</span><span class="pl-kos">,</span> <span class="pl-s1">resolve</span><span class="pl-kos">,</span> <span class="pl-s1">reject</span><span class="pl-kos">,</span> <span class="pl-s1">_next</span><span class="pl-kos">,</span> <span class="pl-s1">_throw</span><span class="pl-kos">,</span> <span class="pl-s">"next"</span><span class="pl-kos">,</span> <span class="pl-s1">value</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">_throw</span><span class="pl-kos">(</span><span class="pl-s1">err</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">asyncGeneratorStep</span><span class="pl-kos">(</span><span class="pl-s1">gen</span><span class="pl-kos">,</span> <span class="pl-s1">resolve</span><span class="pl-kos">,</span> <span class="pl-s1">reject</span><span class="pl-kos">,</span> <span class="pl-s1">_next</span><span class="pl-kos">,</span> <span class="pl-s1">_throw</span><span class="pl-kos">,</span> <span class="pl-s">"throw"</span><span class="pl-kos">,</span> <span class="pl-s1">err</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-en">_next</span><span class="pl-kos">(</span><span class="pl-c1">undefined</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">class</span> <span class="pl-v">A</span> <span class="pl-kos">{</span>
<span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-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-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">"A#foo"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">class</span> <span class="pl-v">B</span> <span class="pl-k">extends</span> <span class="pl-v">A</span> <span class="pl-kos">{</span>
<span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">var</span> <span class="pl-en">_superprop_callFoo</span> <span class="pl-c1">=</span> <span class="pl-k">function</span> <span class="pl-en">_superprop_callFoo</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_callFoo</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-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">"B#foo"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">yield</span> <span class="pl-en">_superprop_callFoo</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">new</span> <span class="pl-v">B</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-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Executed result of above:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ babel-node src/index.js
B#foo
(node:2329) UnhandledPromiseRejectionWarning: RangeError: Maximum call stack size exceeded
at Arguments.values (<anonymous>)
at _superprop_callFoo (/sandbox/src/index.js:8:15)
at _superprop_callFoo (/sandbox/src/index.js:8:15)
at _superprop_callFoo (/sandbox/src/index.js:8:15)
at _superprop_callFoo (/sandbox/src/index.js:8:15)
at _superprop_callFoo (/sandbox/src/index.js:8:15)
at _superprop_callFoo (/sandbox/src/index.js:8:15)
at _superprop_callFoo (/sandbox/src/index.js:8:15)
at _superprop_callFoo (/sandbox/src/index.js:8:15)
at _superprop_callFoo (/sandbox/src/index.js:8:15)
(node:2329) UnhandledPromiseRejectionWarning: Unhandled promise rejection. Thiserror originated either by throwing inside of an async function without a catchblock, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:2329) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code."><pre class="notranslate"><code class="notranslate">$ babel-node src/index.js
B#foo
(node:2329) UnhandledPromiseRejectionWarning: RangeError: Maximum call stack size exceeded
at Arguments.values (<anonymous>)
at _superprop_callFoo (/sandbox/src/index.js:8:15)
at _superprop_callFoo (/sandbox/src/index.js:8:15)
at _superprop_callFoo (/sandbox/src/index.js:8:15)
at _superprop_callFoo (/sandbox/src/index.js:8:15)
at _superprop_callFoo (/sandbox/src/index.js:8:15)
at _superprop_callFoo (/sandbox/src/index.js:8:15)
at _superprop_callFoo (/sandbox/src/index.js:8:15)
at _superprop_callFoo (/sandbox/src/index.js:8:15)
at _superprop_callFoo (/sandbox/src/index.js:8:15)
(node:2329) UnhandledPromiseRejectionWarning: Unhandled promise rejection. Thiserror originated either by throwing inside of an async function without a catchblock, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:2329) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
</code></pre></div>
<p dir="auto"><strong>Expected behavior</strong></p>
<p dir="auto">Expected result of the above example would be like this (if target is default es5 shows so).</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="B#foo
A#foo"><pre class="notranslate"><code class="notranslate">B#foo
A#foo
</code></pre></div>
<p dir="auto"><strong>Babel Configuration (.babelrc, package.json, cli command)</strong></p>
<ul dir="auto">
<li><code class="notranslate">babel.config.js</code></li>
</ul>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="module.exports = {
presets: [
[
"@babel/env",
{
targets: { esmodules: true }
}
]
]
};"><pre class="notranslate"><span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-c1">exports</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
<span class="pl-c1">presets</span>: <span class="pl-kos">[</span>
<span class="pl-kos">[</span>
<span class="pl-s">"@babel/env"</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span>
<span class="pl-c1">targets</span>: <span class="pl-kos">{</span> <span class="pl-c1">esmodules</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-kos">]</span>
<span class="pl-kos">]</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Environment</strong></p>
<ul dir="auto">
<li>Babel version(s): 7.4.4</li>
<li>Node/npm version: Node 10.15.3/yarn 1.13.0</li>
<li>How you are using Babel: cli</li>
</ul>
<p dir="auto"><strong>Possible Solution</strong></p>
<p dir="auto"><strong>Additional context/Screenshots</strong></p> | <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&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&build=&builtIns=false&spec=false&loose=false&code_lz=MYGwhgzhAECyCeBhcVoFMAeAXNA7AJjAEKRrKQwDeAUNNJPLsNCAPZj4CiuWAllvAAUASmg06dLAAteEAHQB3NACMI_NNAC89BWH7RpsuWw4B1FWpwiA3LQmH5AJzQAHVo6xyIaLIlYBbFzBcIQdFC3U5YACgkOFbCWgIAFcXNEdjdi4efiF4uwBfagKgA&debug=false&forceAllTransforms=false&shippedProposals=false&circleciRepo=&evaluate=false&fileSize=false&timeTravel=false&sourceType=module&lineWrap=true&presets=env&prettier=false&targets=&version=7.4.4&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); // <= 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">// <= 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 |
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="macro_rules! foo {
() => { foo!() }
}
foo!()"><pre class="notranslate"><span class="pl-k">macro_rules!</span> foo <span class="pl-kos">{</span>
<span class="pl-kos">(</span><span class="pl-kos">)</span> => <span class="pl-kos">{</span> foo!<span class="pl-kos">(</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-en">!</span><span class="pl-kos">(</span><span class="pl-kos">)</span></pre></div>
<p dir="auto">just eats memory continuously (until it either segfaults from stack-overflow or otherwise crashes from OOM, presumably).</p> | <p dir="auto">Defining macros recursively like so</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="macro_rules! recursive(
() => (
recursive!()
)
)
fn main() {
recursive!()
}"><pre class="notranslate"><span class="pl-k">macro_rules!</span> recursive<span class="pl-kos">(</span>
<span class="pl-kos">(</span><span class="pl-kos">)</span> => <span class="pl-kos">(</span>
recursive!<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-en">recursive</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">will lead rustc to cause a stack overflow.<br>
It would be useful to improve the error message for that problem.<br>
There is currently no error message specified for that issue.</p> | 1 |
<p dir="auto">For different dB, adding the same table name will result in an error. The source is two different dB, the index of tables table unique (table_ Name) should be changed to unique (database_id,table_name)I hope this problem can be corrected in the next version. Thank you</p> | <p dir="auto">A clear and concise description of what the bug is.</p>
<h3 dir="auto">Expected results</h3>
<p dir="auto">save two tables with the same names but which have different schemes.</p>
<h3 dir="auto">Actual results</h3>
<p dir="auto">when trying to call as different schema tables, we have an error.<br>
"Integrity error, probably unique constraint"</p>
<p dir="auto">what actually happens.</p>
<h4 dir="auto">Screenshots</h4>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/68624533/88449957-88a55280-ce21-11ea-9f9c-63418c97bf3b.gif"><img src="https://user-images.githubusercontent.com/68624533/88449957-88a55280-ce21-11ea-9f9c-63418c97bf3b.gif" alt="image" data-animated-image="" style="max-width: 100%;"></a></p>
<p dir="auto">If applicable, add screenshots to help explain your problem.</p>
<h4 dir="auto">How to reproduce the bug</h4>
<ol dir="auto">
<li>Go to 'Sources > Tables'</li>
<li>Click on '+New, Database-> Schema->Table Name '</li>
<li>Scroll down to '....'</li>
<li>See error</li>
</ol>
<h3 dir="auto">Environment</h3>
<p dir="auto">(please complete the following information):</p>
<ul dir="auto">
<li>superset version: 0.36.0</li>
<li>python version: Python 3.6.9</li>
<li>node.js version: v8.10.0</li>
</ul>
<h3 dir="auto">Checklist</h3>
<p dir="auto">Make sure these boxes are checked before submitting your issue - thank you!</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the superset logs for python stacktraces and included it here as text if there are any.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have reproduced the issue with at least the latest released version of superset.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the issue tracker for the same issue and I haven't found one similar.</li>
</ul>
<h3 dir="auto">Additional context</h3>
<p dir="auto">Add any other context about the problem here.</p> | 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.186.0<br>
<strong>System</strong>: Mac OS X 10.10.2<br>
<strong>Thrown From</strong>: Atom Core</p>
<h3 dir="auto">Stack Trace</h3>
<p dir="auto">Uncaught Error: Cannot find module 'dialog'<br>
Error: Cannot find module 'dialog'<br>
at Function.Module._resolveFilename (module.js:351:15)<br>
at Function.Module._load (module.js:293:25)<br>
at Module.require (module.js:380:17)<br>
at EventEmitter. (/Applications/Atom.app/Contents/Resources/atom/browser/lib/rpc-server.js:128:79)<br>
at EventEmitter.emit (events.js:119:17)<br>
at EventEmitter. (/Applications/Atom.app/Contents/Resources/atom/browser/api/lib/web-contents.js:99:23)<br>
at EventEmitter.emit (events.js:119:17)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At /Applications/Atom.app/Contents/Resources/atom/renderer/api/lib/remote.js:77
Error: Cannot find module 'dialog'
Error: Cannot find module 'dialog'
at Function.Module._resolveFilename (module.js:351:15)
at Function.Module._load (module.js:293:25)
at Module.require (module.js:380:17)
at EventEmitter.<anonymous> (/Applications/Atom.app/Contents/Resources/atom/browser/lib/rpc-server.js:128:79)
at EventEmitter.emit (events.js:119:17)
at EventEmitter.<anonymous> (/Applications/Atom.app/Contents/Resources/atom/browser/api/lib/web-contents.js:99:23)
at EventEmitter.emit (events.js:119:17)
at metaToValue (/Applications/Atom.app/Contents/Resources/atom/renderer/api/lib/remote.js:77:15)
at Object.exports.require (/Applications/Atom.app/Contents/Resources/atom/renderer/api/lib/remote.js:157:34)
at Atom.module.exports.Atom.confirm (/Applications/Atom.app/Contents/Resources/app/src/atom.js:705:23)
at /Applications/Atom.app/Contents/Resources/app/src/command-installer.js:73:29
at /Applications/Atom.app/Contents/Resources/app/src/command-installer.js:102:11
at FSReqWrap.oncomplete (fs.js:100:15)"><pre class="notranslate"><code class="notranslate">At /Applications/Atom.app/Contents/Resources/atom/renderer/api/lib/remote.js:77
Error: Cannot find module 'dialog'
Error: Cannot find module 'dialog'
at Function.Module._resolveFilename (module.js:351:15)
at Function.Module._load (module.js:293:25)
at Module.require (module.js:380:17)
at EventEmitter.<anonymous> (/Applications/Atom.app/Contents/Resources/atom/browser/lib/rpc-server.js:128:79)
at EventEmitter.emit (events.js:119:17)
at EventEmitter.<anonymous> (/Applications/Atom.app/Contents/Resources/atom/browser/api/lib/web-contents.js:99:23)
at EventEmitter.emit (events.js:119:17)
at metaToValue (/Applications/Atom.app/Contents/Resources/atom/renderer/api/lib/remote.js:77:15)
at Object.exports.require (/Applications/Atom.app/Contents/Resources/atom/renderer/api/lib/remote.js:157:34)
at Atom.module.exports.Atom.confirm (/Applications/Atom.app/Contents/Resources/app/src/atom.js:705:23)
at /Applications/Atom.app/Contents/Resources/app/src/command-installer.js:73:29
at /Applications/Atom.app/Contents/Resources/app/src/command-installer.js:102:11
at FSReqWrap.oncomplete (fs.js:100:15)
</code></pre></div>
<h3 dir="auto">Commands</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" -0:13.3 window:update-available (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-seti-syntax.theme-seti-ui)
-0:01.2 window:install-shell-commands (atom-text-editor.editor.is-focused)"><pre class="notranslate"><code class="notranslate"> -0:13.3 window:update-available (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-seti-syntax.theme-seti-ui)
-0:01.2 window:install-shell-commands (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="{
"core": {
"themes": [
"seti-ui",
"seti-syntax"
]
},
"editor": {
"invisibles": {}
}
}"><pre class="notranslate">{
<span class="pl-ent">"core"</span>: {
<span class="pl-ent">"themes"</span>: [
<span class="pl-s"><span class="pl-pds">"</span>seti-ui<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>seti-syntax<span class="pl-pds">"</span></span>
]
},
<span class="pl-ent">"editor"</span>: {
<span class="pl-ent">"invisibles"</span>: {}
}
}</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
seti-syntax, v0.2.1
seti-ui, v0.5.1
# Dev
No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span>
seti<span class="pl-k">-</span>syntax, v0.<span class="pl-ii">2</span>.<span class="pl-ii">1</span>
seti<span class="pl-k">-</span>ui, v0.<span class="pl-ii">5</span>.<span class="pl-ii">1</span>
<span class="pl-c"><span class="pl-c">#</span> Dev</span>
<span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div> | <p dir="auto">[Enter steps to reproduce below:]</p>
<ol dir="auto">
<li>Right-click a file in the left column. (The file I used was green, not added to Git, and empty.)</li>
<li>Click Delete.</li>
</ol>
<p dir="auto"><strong>Atom Version</strong>: 0.186.0<br>
<strong>System</strong>: Mac OS X 10.10.2<br>
<strong>Thrown From</strong>: <a href="https://github.com/atom/tree-view">tree-view</a> package, v0.164.0</p>
<h3 dir="auto">Stack Trace</h3>
<p dir="auto">Uncaught Error: Cannot find module 'dialog'<br>
Error: Cannot find module 'dialog'<br>
at Function.Module._resolveFilename (module.js:351:15)<br>
at Function.Module._load (module.js:293:25)<br>
at Module.require (module.js:380:17)<br>
at EventEmitter. (/Applications/Atom.app/Contents/Resources/atom/browser/lib/rpc-server.js:128:79)<br>
at EventEmitter.emit (events.js:119:17)<br>
at EventEmitter. (/Applications/Atom.app/Contents/Resources/atom/browser/api/lib/web-contents.js:99:23)<br>
at EventEmitter.emit (events.js:119:17)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At /Applications/Atom.app/Contents/Resources/atom/renderer/api/lib/remote.js:77
Error: Cannot find module 'dialog'
Error: Cannot find module 'dialog'
at Function.Module._resolveFilename (module.js:351:15)
at Function.Module._load (module.js:293:25)
at Module.require (module.js:380:17)
at EventEmitter.<anonymous> (/Applications/Atom.app/Contents/Resources/atom/browser/lib/rpc-server.js:128:79)
at EventEmitter.emit (events.js:119:17)
at EventEmitter.<anonymous> (/Applications/Atom.app/Contents/Resources/atom/browser/api/lib/web-contents.js:99:23)
at EventEmitter.emit (events.js:119:17)
at metaToValue (/Applications/Atom.app/Contents/Resources/atom/renderer/api/lib/remote.js:77:15)
at Object.exports.require (/Applications/Atom.app/Contents/Resources/atom/renderer/api/lib/remote.js:157:34)
at Atom.module.exports.Atom.confirm (/Applications/Atom.app/Contents/Resources/app/src/atom.js:705:23)
at TreeView.module.exports.TreeView.removeSelectedEntries (/Applications/Atom.app/Contents/Resources/app/node_modules/tree-view/lib/tree-view.js:895:19)
at atom-workspace.disposables.add.atom.commands.add.tree-view:remove (/Applications/Atom.app/Contents/Resources/app/node_modules/tree-view/lib/main.js:84:39)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:243:29)
at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:61)
at CommandRegistry.module.exports.CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:156:19)
at jQuery.fn.trigger (/Applications/Atom.app/Contents/Resources/app/src/space-pen-extensions.js:64:23)
at EventEmitter.<anonymous> (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:80:67)"><pre class="notranslate"><code class="notranslate">At /Applications/Atom.app/Contents/Resources/atom/renderer/api/lib/remote.js:77
Error: Cannot find module 'dialog'
Error: Cannot find module 'dialog'
at Function.Module._resolveFilename (module.js:351:15)
at Function.Module._load (module.js:293:25)
at Module.require (module.js:380:17)
at EventEmitter.<anonymous> (/Applications/Atom.app/Contents/Resources/atom/browser/lib/rpc-server.js:128:79)
at EventEmitter.emit (events.js:119:17)
at EventEmitter.<anonymous> (/Applications/Atom.app/Contents/Resources/atom/browser/api/lib/web-contents.js:99:23)
at EventEmitter.emit (events.js:119:17)
at metaToValue (/Applications/Atom.app/Contents/Resources/atom/renderer/api/lib/remote.js:77:15)
at Object.exports.require (/Applications/Atom.app/Contents/Resources/atom/renderer/api/lib/remote.js:157:34)
at Atom.module.exports.Atom.confirm (/Applications/Atom.app/Contents/Resources/app/src/atom.js:705:23)
at TreeView.module.exports.TreeView.removeSelectedEntries (/Applications/Atom.app/Contents/Resources/app/node_modules/tree-view/lib/tree-view.js:895:19)
at atom-workspace.disposables.add.atom.commands.add.tree-view:remove (/Applications/Atom.app/Contents/Resources/app/node_modules/tree-view/lib/main.js:84:39)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:243:29)
at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:61)
at CommandRegistry.module.exports.CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:156:19)
at jQuery.fn.trigger (/Applications/Atom.app/Contents/Resources/app/src/space-pen-extensions.js:64:23)
at EventEmitter.<anonymous> (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:80:67)
</code></pre></div>
<h3 dir="auto">Commands</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 6x -4:21.1 core:move-up (atom-text-editor.editor)
-4:19.1 core:move-left (atom-text-editor.editor)
-4:15.5 core:save (atom-text-editor.editor)
-2:19.6 core:backspace (atom-text-editor.editor)
3x -2:17.4 core:move-right (atom-text-editor.editor)
2x -2:07.9 editor:move-to-first-character-of-line (atom-text-editor.editor)
-2:07.4 core:select-down (atom-text-editor.editor)
-2:06.5 core:copy (atom-text-editor.editor)
-2:04.1 core:move-up (atom-text-editor.editor)
-2:03.9 core:move-down (atom-text-editor.editor)
-2:03.7 core:select-down (atom-text-editor.editor)
-2:03.4 core:copy (atom-text-editor.editor)
2x -2:00.7 editor:move-to-first-character-of-line (atom-text-editor.editor)
3x -2:00.3 core:select-down (atom-text-editor.editor)
-1:59.8 core:paste (atom-text-editor.editor)
3x -1:58.7 core:save (atom-text-editor.editor)"><pre class="notranslate"><code class="notranslate"> 6x -4:21.1 core:move-up (atom-text-editor.editor)
-4:19.1 core:move-left (atom-text-editor.editor)
-4:15.5 core:save (atom-text-editor.editor)
-2:19.6 core:backspace (atom-text-editor.editor)
3x -2:17.4 core:move-right (atom-text-editor.editor)
2x -2:07.9 editor:move-to-first-character-of-line (atom-text-editor.editor)
-2:07.4 core:select-down (atom-text-editor.editor)
-2:06.5 core:copy (atom-text-editor.editor)
-2:04.1 core:move-up (atom-text-editor.editor)
-2:03.9 core:move-down (atom-text-editor.editor)
-2:03.7 core:select-down (atom-text-editor.editor)
-2:03.4 core:copy (atom-text-editor.editor)
2x -2:00.7 editor:move-to-first-character-of-line (atom-text-editor.editor)
3x -2:00.3 core:select-down (atom-text-editor.editor)
-1:59.8 core:paste (atom-text-editor.editor)
3x -1:58.7 core:save (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="{
"core": {
"themes": [
"atom-dark-ui",
"atom-dark-syntax"
],
"destroyEmptyPanes": false
},
"tree-view": {}
}"><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">"destroyEmptyPanes"</span>: <span class="pl-c1">false</span>
},
<span class="pl-ent">"tree-view"</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
language-haml, v0.15.0
# Dev
No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span>
language<span class="pl-k">-</span>haml, v0.<span class="pl-ii">15</span>.<span class="pl-ii">0</span>
<span class="pl-c"><span class="pl-c">#</span> Dev</span>
<span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div> | 1 |
<p dir="auto">As a developer, I want to be able to write a service worker and use it both in clients (user agents / web browsers) and in servers.</p>
<p dir="auto">If <code class="notranslate">deno</code> adds support for installing service workers with support for <code class="notranslate">install</code>, <code class="notranslate">activate</code>, <code class="notranslate">fetch</code> and other <code class="notranslate">ServiceWorkerGlobalScope</code> events then isomorphic service workers become a possibility.</p> | <p dir="auto">To build a production ready cloudflare worker/ faas alternative with deno it would be very hard to use the current deno web worker implementation. (basically starting one webworker per handler and then dispatching messages from the main script)<br>
i see some pain points implementing the registration / update workflows that browsers have in the main script, but i think finding a good solution there would REALLY pay of well:</p>
<ul dir="auto">
<li>custom caching strategies for fetch events</li>
<li>resourceful lifetime management of external 'processes' like browsers do with service workers, without having to manually start and stop the web workers</li>
<li>handling, rewriting, transforming, monitoring the requests that imported files make (huge number of possibilities here)</li>
</ul>
<p dir="auto">would love to help, but i dont know rust (yet) and not even at what point in the architecture this would need to be implemented</p> | 1 |
<h1 dir="auto">Checklist</h1>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> This has already been asked to the <a href="https://groups.google.com/forum/#!forum/celery-users" rel="nofollow">discussion group</a> first.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the relevant section in the<br>
<a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br>
on reporting bugs.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br>
for similar or identical bug reports.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br>
for existing proposed fixes.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br>
to find out if the bug was already fixed in the master branch.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues<br>
in this issue (If there are none, check this box anyway).</li>
</ul>
<h2 dir="auto">Mandatory Debugging Information</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br>
(if you are not able to do this, then at least specify the Celery<br>
version affected).</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all the versions of all the external dependencies required<br>
to reproduce this bug.</li>
</ul>
<h2 dir="auto">Optional Debugging Information</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one Python version<br>
and/or implementation.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one message broker and/or<br>
result backend.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one version of the message<br>
broker and/or result backend.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one operating system.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one workers pool.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue with autoscaling, retries,<br>
ETA/Countdown & rate limits disabled.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue after downgrading<br>
and/or upgrading Celery and its dependencies.</li>
</ul>
<h2 dir="auto">Related Issues and Possible Duplicates</h2>
<h4 dir="auto">Related Issues</h4>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="712235183" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/6381" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/6381/hovercard" href="https://github.com/celery/celery/issues/6381">#6381</a></li>
</ul>
<h4 dir="auto">Possible Duplicates</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h2 dir="auto">Environment & Settings</h2>
<p dir="auto"><strong>Celery version</strong>: 5.0.0 (singularity)</p>
<details>
<summary><b><code class="notranslate">celery report</code> Output:</b></summary>
<p dir="auto">
</p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="celery report
software -> celery:5.0.0 (singularity) kombu:5.0.2 py:3.8.2
billiard:3.6.3.0 py-amqp:5.0.1
platform -> system:Linux arch:64bit, ELF
kernel version:5.4.0-48-generic imp:CPython
loader -> celery.loaders.default.Loader
settings -> transport:amqp results:disabled
deprecated_settings: None"><pre class="notranslate"><code class="notranslate">celery report
software -> celery:5.0.0 (singularity) kombu:5.0.2 py:3.8.2
billiard:3.6.3.0 py-amqp:5.0.1
platform -> system:Linux arch:64bit, ELF
kernel version:5.4.0-48-generic imp:CPython
loader -> celery.loaders.default.Loader
settings -> transport:amqp results:disabled
deprecated_settings: None
</code></pre></div>
<p dir="auto"></p>
</details>
<h1 dir="auto">Steps to Reproduce</h1>
<h2 dir="auto">Required Dependencies</h2>
<ul dir="auto">
<li><strong>Minimal Python Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Celery Version</strong>: 5.0.0</li>
<li><strong>Minimal Kombu Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Broker Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Result Backend Version</strong>: N/A or Unknown</li>
<li><strong>Minimal OS and/or Kernel Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Broker Client Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Result Backend Client Version</strong>: N/A or Unknown</li>
</ul>
<h3 dir="auto">Python Packages</h3>
<details>
<summary><b><code class="notranslate">pip freeze</code> Output:</b></summary>
<p dir="auto">
</p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="alabaster==0.7.12
amqp==5.0.1
appdirs==1.4.4
attrs==19.3.0
autoflake==1.3.1
autopep8==1.5.4
aws-xray-sdk==0.95
azure-common==1.1.5
azure-nspkg==3.0.2
azure-storage==0.36.0
azure-storage-common==1.1.0
azure-storage-nspkg==3.1.0
Babel==2.8.0
backcall==0.2.0
bandit==1.6.2
basho-erlastic==2.1.1
billiard==3.6.3.0
bleach==3.1.5
boto==2.49.0
boto3==1.13.26
botocore==1.16.26
bump2version==1.0.0
bumpversion==0.6.0
case==1.5.3
cassandra-driver==3.20.2
-e [email protected]:celery/celery.git@eab4bc3d28b5dc547bb6dfac981b01595c565c3a#egg=celery
certifi==2020.4.5.1
cffi==1.14.0
cfgv==3.1.0
chardet==3.0.4
click==7.1.2
click-didyoumean==0.0.3
click-repl==0.1.6
cmake-setuptools==0.1.3
codecov==2.1.8
colorama==0.4.3
couchbase==2.5.12
coverage==5.2
cryptography==3.0
DateTime==4.3
decorator==4.4.2
distlib==0.3.1
dnspython==1.16.0
docker==4.2.1
docutils==0.15.2
ecdsa==0.15
elasticsearch==7.8.1
ephem==3.7.7.1
eventlet==0.26.1
filelock==3.0.12
future==0.18.2
gevent==20.6.2
gitdb==4.0.5
GitPython==3.1.7
greenlet==0.4.16
identify==1.4.19
idna==2.9
imagesize==1.2.0
importlib-metadata==1.6.1
iniconfig==1.0.1
ipython==7.17.0
ipython-genutils==0.2.0
isort==5.0.9
jedi==0.17.2
jeepney==0.4.3
Jinja2==2.11.2
jmespath==0.10.0
jsondiff==1.1.1
jsonpickle==1.4.1
keyring==21.2.1
kombu==5.0.2
linecache2==1.0.0
MarkupSafe==1.1.1
mock==4.0.2
monotonic==1.5
more-itertools==8.3.0
moto==1.3.7
msgpack==1.0.0
nodeenv==1.4.0
nose==1.3.7
packaging==20.4
parso==0.7.1
pbr==5.4.5
pexpect==4.8.0
pickleshare==0.7.5
pkginfo==1.5.0.1
pluggy==0.13.1
pre-commit==2.5.1
prompt-toolkit==3.0.7
ptyprocess==0.6.0
py==1.9.0
pyaml==20.4.0
pyArango==1.3.4
pycodestyle==2.6.0
pycouchdb==1.14.1
pycparser==2.20
pycryptodome==3.9.7
pycurl==7.43.0.5
pydocumentdb==2.3.2
pyflakes==2.2.0
Pygments==2.6.1
pylibmc==1.6.1
pymongo==3.11.0
pyparsing==2.4.7
pytest==6.0.1
pytest-celery==0.0.0a1
pytest-cov==2.10.0
pytest-rerunfailures==9.0
pytest-sugar==0.9.4
pytest-timeout==1.4.2
pytest-travis-fold==1.3.0
python-consul==1.1.0
python-dateutil==2.8.1
python-jose==2.0.2
python-memcached==1.59
python3-protobuf==2.5.0
pytz==2020.1
pyupgrade==2.6.2
PyYAML==5.3.1
readme-renderer==26.0
redis==3.5.3
requests==2.23.0
requests-toolbelt==0.9.1
responses==0.10.14
rfc3986==1.4.0
riak==2.7.0
s3transfer==0.3.3
SecretStorage==3.1.2
simplejson==3.17.2
six==1.15.0
smmap==3.0.4
snowballstemmer==2.0.0
softlayer-messaging==1.0.3
Sphinx==3.0.4
sphinx-celery==2.0.0
sphinx-click==2.5.0
sphinx-testing==0.7.2
sphinxcontrib-applehelp==1.0.2
sphinxcontrib-devhelp==1.0.2
sphinxcontrib-htmlhelp==1.0.3
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.3
sphinxcontrib-serializinghtml==1.1.4
SQLAlchemy==1.3.18
stevedore==3.2.0
tblib==1.7.0
termcolor==1.1.0
tokenize-rt==4.0.0
toml==0.10.1
tox==3.20.0
tqdm==4.48.0
traceback2==1.4.0
traitlets==4.3.3
twine==3.2.0
typer==0.3.0
unittest2==1.1.0
urllib3==1.25.9
vine==5.0.0
virtualenv==20.0.31
wcwidth==0.2.5
webencodings==0.5.1
websocket-client==0.57.0
Werkzeug==1.0.1
wrapt==1.12.1
xar==19.4.22
xmltodict==0.12.0
zipp==3.1.0
zope.event==4.4
zope.interface==5.1.0"><pre class="notranslate"><code class="notranslate">alabaster==0.7.12
amqp==5.0.1
appdirs==1.4.4
attrs==19.3.0
autoflake==1.3.1
autopep8==1.5.4
aws-xray-sdk==0.95
azure-common==1.1.5
azure-nspkg==3.0.2
azure-storage==0.36.0
azure-storage-common==1.1.0
azure-storage-nspkg==3.1.0
Babel==2.8.0
backcall==0.2.0
bandit==1.6.2
basho-erlastic==2.1.1
billiard==3.6.3.0
bleach==3.1.5
boto==2.49.0
boto3==1.13.26
botocore==1.16.26
bump2version==1.0.0
bumpversion==0.6.0
case==1.5.3
cassandra-driver==3.20.2
-e [email protected]:celery/celery.git@eab4bc3d28b5dc547bb6dfac981b01595c565c3a#egg=celery
certifi==2020.4.5.1
cffi==1.14.0
cfgv==3.1.0
chardet==3.0.4
click==7.1.2
click-didyoumean==0.0.3
click-repl==0.1.6
cmake-setuptools==0.1.3
codecov==2.1.8
colorama==0.4.3
couchbase==2.5.12
coverage==5.2
cryptography==3.0
DateTime==4.3
decorator==4.4.2
distlib==0.3.1
dnspython==1.16.0
docker==4.2.1
docutils==0.15.2
ecdsa==0.15
elasticsearch==7.8.1
ephem==3.7.7.1
eventlet==0.26.1
filelock==3.0.12
future==0.18.2
gevent==20.6.2
gitdb==4.0.5
GitPython==3.1.7
greenlet==0.4.16
identify==1.4.19
idna==2.9
imagesize==1.2.0
importlib-metadata==1.6.1
iniconfig==1.0.1
ipython==7.17.0
ipython-genutils==0.2.0
isort==5.0.9
jedi==0.17.2
jeepney==0.4.3
Jinja2==2.11.2
jmespath==0.10.0
jsondiff==1.1.1
jsonpickle==1.4.1
keyring==21.2.1
kombu==5.0.2
linecache2==1.0.0
MarkupSafe==1.1.1
mock==4.0.2
monotonic==1.5
more-itertools==8.3.0
moto==1.3.7
msgpack==1.0.0
nodeenv==1.4.0
nose==1.3.7
packaging==20.4
parso==0.7.1
pbr==5.4.5
pexpect==4.8.0
pickleshare==0.7.5
pkginfo==1.5.0.1
pluggy==0.13.1
pre-commit==2.5.1
prompt-toolkit==3.0.7
ptyprocess==0.6.0
py==1.9.0
pyaml==20.4.0
pyArango==1.3.4
pycodestyle==2.6.0
pycouchdb==1.14.1
pycparser==2.20
pycryptodome==3.9.7
pycurl==7.43.0.5
pydocumentdb==2.3.2
pyflakes==2.2.0
Pygments==2.6.1
pylibmc==1.6.1
pymongo==3.11.0
pyparsing==2.4.7
pytest==6.0.1
pytest-celery==0.0.0a1
pytest-cov==2.10.0
pytest-rerunfailures==9.0
pytest-sugar==0.9.4
pytest-timeout==1.4.2
pytest-travis-fold==1.3.0
python-consul==1.1.0
python-dateutil==2.8.1
python-jose==2.0.2
python-memcached==1.59
python3-protobuf==2.5.0
pytz==2020.1
pyupgrade==2.6.2
PyYAML==5.3.1
readme-renderer==26.0
redis==3.5.3
requests==2.23.0
requests-toolbelt==0.9.1
responses==0.10.14
rfc3986==1.4.0
riak==2.7.0
s3transfer==0.3.3
SecretStorage==3.1.2
simplejson==3.17.2
six==1.15.0
smmap==3.0.4
snowballstemmer==2.0.0
softlayer-messaging==1.0.3
Sphinx==3.0.4
sphinx-celery==2.0.0
sphinx-click==2.5.0
sphinx-testing==0.7.2
sphinxcontrib-applehelp==1.0.2
sphinxcontrib-devhelp==1.0.2
sphinxcontrib-htmlhelp==1.0.3
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.3
sphinxcontrib-serializinghtml==1.1.4
SQLAlchemy==1.3.18
stevedore==3.2.0
tblib==1.7.0
termcolor==1.1.0
tokenize-rt==4.0.0
toml==0.10.1
tox==3.20.0
tqdm==4.48.0
traceback2==1.4.0
traitlets==4.3.3
twine==3.2.0
typer==0.3.0
unittest2==1.1.0
urllib3==1.25.9
vine==5.0.0
virtualenv==20.0.31
wcwidth==0.2.5
webencodings==0.5.1
websocket-client==0.57.0
Werkzeug==1.0.1
wrapt==1.12.1
xar==19.4.22
xmltodict==0.12.0
zipp==3.1.0
zope.event==4.4
zope.interface==5.1.0
</code></pre></div>
<p dir="auto"></p>
</details>
<h3 dir="auto">Other Dependencies</h3>
<details>
<p dir="auto">
A recent version of SystemD.
</p>
</details>
<h2 dir="auto">Minimally Reproducible Test Case</h2>
<details>
<p dir="auto">
</p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"></pre></div>
<p dir="auto"></p>
</details>
<h1 dir="auto">Expected Behavior</h1>
<p dir="auto">The service should start without error.</p>
<h1 dir="auto">Actual Behavior</h1>
<p dir="auto">The service crashes with the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="okt 06 18:13:53 nezzybuild systemd[1]: Started Celery Service.
okt 06 18:13:53 nezzybuild systemd[1]: celery.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
okt 06 18:13:53 nezzybuild systemd[1]: celery.service: Failed with result 'exit-code'."><pre class="notranslate"><code class="notranslate">okt 06 18:13:53 nezzybuild systemd[1]: Started Celery Service.
okt 06 18:13:53 nezzybuild systemd[1]: celery.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
okt 06 18:13:53 nezzybuild systemd[1]: celery.service: Failed with result 'exit-code'.
</code></pre></div> | <h1 dir="auto">Checklist</h1>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> This has already been asked to the <a href="https://github.com/celery/celery/discussions">discussions forum</a> first.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the relevant section in the<br>
<a href="https://docs.celeryq.dev/en/master/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br>
on reporting bugs.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br>
for similar or identical bug reports.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br>
for existing proposed fixes.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br>
to find out if the bug was already fixed in the master branch.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues<br>
in this issue (If there are none, check this box anyway).</li>
</ul>
<h2 dir="auto">Mandatory Debugging Information</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br>
(if you are not able to do this, then at least specify the Celery<br>
version affected).</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all the versions of all the external dependencies required<br>
to reproduce this bug.</li>
</ul>
<h2 dir="auto">Optional Debugging Information</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one Python version<br>
and/or implementation.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one message broker and/or<br>
result backend.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one version of the message<br>
broker and/or result backend.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue on more than one operating system.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one workers pool.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue with autoscaling, retries,<br>
ETA/Countdown & rate limits disabled.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue after downgrading<br>
and/or upgrading Celery and its dependencies.</li>
</ul>
<h2 dir="auto">Related Issues and Possible Duplicates</h2>
<h4 dir="auto">Related Issues</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h4 dir="auto">Possible Duplicates</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h2 dir="auto">Environment & Settings</h2>
<p dir="auto"><strong>Celery version</strong>: 5.3.0b1 (dawn-chorus)</p>
<details>
<summary><b><code class="notranslate">celery report</code> Output:</b></summary>
<p dir="auto">
</p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="software -> celery:5.3.0b1 (dawn-chorus) kombu:5.3.0b1 py:3.9.6
billiard:3.6.4.0 redis:4.3.4
platform -> system:Darwin arch:64bit
kernel version:20.6.0 imp:CPython
loader -> celery.loaders.app.AppLoader
settings -> transport:redis results:redis://localhost/
broker_url: 'redis://localhost:6379//'
result_backend: 'redis://localhost/'
deprecated_settings: None
worker_concurrency: 1
worker_prefetch_multiplier: 1
task_acks_late: True"><pre class="notranslate"><code class="notranslate">software -> celery:5.3.0b1 (dawn-chorus) kombu:5.3.0b1 py:3.9.6
billiard:3.6.4.0 redis:4.3.4
platform -> system:Darwin arch:64bit
kernel version:20.6.0 imp:CPython
loader -> celery.loaders.app.AppLoader
settings -> transport:redis results:redis://localhost/
broker_url: 'redis://localhost:6379//'
result_backend: 'redis://localhost/'
deprecated_settings: None
worker_concurrency: 1
worker_prefetch_multiplier: 1
task_acks_late: True
</code></pre></div>
<p dir="auto"></p>
</details>
<h1 dir="auto">Steps to Reproduce</h1>
<h2 dir="auto">Required Dependencies</h2>
<ul dir="auto">
<li><strong>Python Version</strong>: 3.9.6</li>
<li><strong>Celery Version</strong>: 5.3.0b1</li>
<li><strong>Kombu Version</strong>: 5.3.0b1</li>
<li><strong>Broker Version</strong>: redis 7.0.2</li>
<li><strong>Result Backend Version</strong>: redis 7.0.2</li>
<li><strong>OS and/or Kernel Version</strong>: MacOS: Darwin 20.6.0 Darwin Kernel Version 20.6.0: RELEASE_ARM64_T8101 arm64 arm Darwin</li>
<li><strong>Minimal Broker Client Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Result Backend Client Version</strong>: N/A or Unknown</li>
</ul>
<h3 dir="auto">Python Packages</h3>
<details>
<summary><b><code class="notranslate">pip freeze</code> Output:</b></summary>
<p dir="auto">
</p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="amqp==5.1.1
anyio==3.6.1
async-timeout==4.0.2
billiard==3.6.4.0
celery @ file:///Users/shahar/work/sources/celery
click==8.1.3
click-didyoumean==0.3.0
click-plugins==1.1.1
click-repl==0.2.0
Cython==0.29.32
Deprecated==1.2.13
fastapi==0.78.0
flower==1.0.0
greenlet==1.1.2
h11==0.13.0
humanize==4.2.0
idna==3.3
kombu==5.3.0b1
packaging==21.3
prometheus-client==0.14.1
prompt-toolkit==3.0.30
pydantic==1.9.1
pyparsing==3.0.9
pytz==2022.2.1
redis==4.3.4
six==1.16.0
sniffio==1.2.0
starlette==0.19.1
tornado==6.1
typing-extensions==4.2.0
uvicorn==0.18.1
vine==5.0.0
wcwidth==0.2.5
wrapt==1.14.1"><pre class="notranslate"><code class="notranslate">amqp==5.1.1
anyio==3.6.1
async-timeout==4.0.2
billiard==3.6.4.0
celery @ file:///Users/shahar/work/sources/celery
click==8.1.3
click-didyoumean==0.3.0
click-plugins==1.1.1
click-repl==0.2.0
Cython==0.29.32
Deprecated==1.2.13
fastapi==0.78.0
flower==1.0.0
greenlet==1.1.2
h11==0.13.0
humanize==4.2.0
idna==3.3
kombu==5.3.0b1
packaging==21.3
prometheus-client==0.14.1
prompt-toolkit==3.0.30
pydantic==1.9.1
pyparsing==3.0.9
pytz==2022.2.1
redis==4.3.4
six==1.16.0
sniffio==1.2.0
starlette==0.19.1
tornado==6.1
typing-extensions==4.2.0
uvicorn==0.18.1
vine==5.0.0
wcwidth==0.2.5
wrapt==1.14.1
</code></pre></div>
<p dir="auto"></p>
</details>
<h3 dir="auto">Other Dependencies</h3>
<details>
<p dir="auto">
using redis 7.0.2 as broker and backend.
</p>
</details>
<h2 dir="auto">Minimally Reproducible Test Case</h2>
<details>
<p dir="auto">
</p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from celery import Celery
import time
app = Celery('bug', broker='redis://localhost', backend='redis://localhost')
app.conf.worker_concurrency = 1
app.conf.worker_prefetch_multiplier = 1
app.conf.task_acks_late = True
@app.task
def func():
time.sleep(1)
def func_duration():
ts = time.perf_counter()
func.delay().get()
return time.perf_counter() - ts
def main(count=5):
func_duration()
latency = (sum(func_duration() for _ in range(count)) / count) - 1
print(f'{latency}')
if __name__ == '__main__':
main()"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">celery</span> <span class="pl-k">import</span> <span class="pl-v">Celery</span>
<span class="pl-k">import</span> <span class="pl-s1">time</span>
<span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">Celery</span>(<span class="pl-s">'bug'</span>, <span class="pl-s1">broker</span><span class="pl-c1">=</span><span class="pl-s">'redis://localhost'</span>, <span class="pl-s1">backend</span><span class="pl-c1">=</span><span class="pl-s">'redis://localhost'</span>)
<span class="pl-s1">app</span>.<span class="pl-s1">conf</span>.<span class="pl-s1">worker_concurrency</span> <span class="pl-c1">=</span> <span class="pl-c1">1</span>
<span class="pl-s1">app</span>.<span class="pl-s1">conf</span>.<span class="pl-s1">worker_prefetch_multiplier</span> <span class="pl-c1">=</span> <span class="pl-c1">1</span>
<span class="pl-s1">app</span>.<span class="pl-s1">conf</span>.<span class="pl-s1">task_acks_late</span> <span class="pl-c1">=</span> <span class="pl-c1">True</span>
<span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-s1">task</span></span>
<span class="pl-k">def</span> <span class="pl-en">func</span>():
<span class="pl-s1">time</span>.<span class="pl-en">sleep</span>(<span class="pl-c1">1</span>)
<span class="pl-k">def</span> <span class="pl-en">func_duration</span>():
<span class="pl-s1">ts</span> <span class="pl-c1">=</span> <span class="pl-s1">time</span>.<span class="pl-en">perf_counter</span>()
<span class="pl-s1">func</span>.<span class="pl-en">delay</span>().<span class="pl-en">get</span>()
<span class="pl-k">return</span> <span class="pl-s1">time</span>.<span class="pl-en">perf_counter</span>() <span class="pl-c1">-</span> <span class="pl-s1">ts</span>
<span class="pl-k">def</span> <span class="pl-en">main</span>(<span class="pl-s1">count</span><span class="pl-c1">=</span><span class="pl-c1">5</span>):
<span class="pl-en">func_duration</span>()
<span class="pl-s1">latency</span> <span class="pl-c1">=</span> (<span class="pl-en">sum</span>(<span class="pl-en">func_duration</span>() <span class="pl-k">for</span> <span class="pl-s1">_</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-s1">count</span>)) <span class="pl-c1">/</span> <span class="pl-s1">count</span>) <span class="pl-c1">-</span> <span class="pl-c1">1</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">latency</span><span class="pl-kos">}</span></span>'</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-en">main</span>()</pre></div>
<p dir="auto"></p>
</details>
<h1 dir="auto">Expected Behavior</h1>
<p dir="auto">I expect that enabling <code class="notranslate">task_acks_late</code> will not increase the latency by a factor of 10.</p>
<h1 dir="auto">Actual Behavior</h1>
<p dir="auto">Running the script with acks late disabled results in a ~20ms latency.<br>
Running the script iwht acks late enabled results in a ~500ms latency.</p>
<h1 dir="auto">Analysis</h1>
<p dir="auto">Running profiler reveals that our single worker, between sending the result of the previous task and popping the next task, spends most of its time in the event loop's poll: <a href="https://github.com/celery/kombu/blob/master/kombu/asynchronous/hub.py#L315">https://github.com/celery/kombu/blob/master/kombu/asynchronous/hub.py#L315</a></p>
<p dir="auto">The event loop will usually wait the default timeout of one whole second (when there's no pending event), even in the case where popping the next task should happen as soon as possible.</p>
<p dir="auto">Changing the order in the event loop so that the tick callbacks will be executed after the todo callbacks seems to resolve the issue.</p> | 0 |
<p dir="auto"><code class="notranslate">>>> special.chndtr(np.inf, 16, 30)</code><br>
(five minutes later) ^C^C^C no reaction<br>
ok, <code class="notranslate">kill -9</code></p>
<p dir="auto">this does not seem to depend on other parameters, same story with <code class="notranslate">>>> special.chndtr(np.inf, 16, 30)</code></p>
<p dir="auto">This is used for non-central chi-square:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=">>> stats.ncx2.cdf(np.inf, 8, 0.1)
1.0
>>> stats.ncx2._cdf(np.inf, 8, 0.1)"><pre class="notranslate"><code class="notranslate">>>> stats.ncx2.cdf(np.inf, 8, 0.1)
1.0
>>> stats.ncx2._cdf(np.inf, 8, 0.1)
</code></pre></div>
<p dir="auto">(hangs)</p>
<p dir="auto">and skellam, which only defines <code class="notranslate">_cdf</code>, so <code class="notranslate">sf</code> goes via the generic code path:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=">>> stats.skellam.cdf(np.inf, 10, 11)
1.0
>>> stats.skellam.sf(np.inf, 10, 11)"><pre class="notranslate"><code class="notranslate">>>> stats.skellam.cdf(np.inf, 10, 11)
1.0
>>> stats.skellam.sf(np.inf, 10, 11)
</code></pre></div>
<p dir="auto">(hangs)</p> | <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=">python -c "import numpy as np; from scipy import stats; stats.nct._sf(np.nan, 125.531223551, 2.82324307702)""><pre class="notranslate"><code class="notranslate">>python -c "import numpy as np; from scipy import stats; stats.nct._sf(np.nan, 125.531223551, 2.82324307702)"
</code></pre></div>
<p dir="auto">never comes back</p>
<p dir="auto">I was tracking an rootfinding that never came back that had bad starting values.</p>
<p dir="auto">scipy 0.9.0 and scipy 0.11.0</p> | 1 |
<ul dir="auto">
<li><strong>Electron Version:</strong><br>
4.0.2</li>
<li><strong>Operating System:</strong><br>
mac 10.14</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto"><a href="https://electronjs.org/docs/api/web-contents#contentssetdevtoolswebcontentsdevtoolswebcontents" rel="nofollow">sample code</a> doesn't work. the dev tool shows, but it's empty.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<html>
<head>
<style type="text/css">
* { margin: 0; }
#browser { height: 70%; }
#devtools { height: 30%; }
</style>
</head>
<body>
<webview id="browser" src="https://github.com"></webview>
<webview id="devtools"></webview>
<script>
const browserView = document.getElementById('browser')
const devtoolsView = document.getElementById('devtools')
browserView.addEventListener('dom-ready', () => {
const browser = browserView.getWebContents()
browser.setDevToolsWebContents(devtoolsView.getWebContents())
browser.openDevTools()
})
</script>
</body>
</html>"><pre class="notranslate"><code class="notranslate"><html>
<head>
<style type="text/css">
* { margin: 0; }
#browser { height: 70%; }
#devtools { height: 30%; }
</style>
</head>
<body>
<webview id="browser" src="https://github.com"></webview>
<webview id="devtools"></webview>
<script>
const browserView = document.getElementById('browser')
const devtoolsView = document.getElementById('devtools')
browserView.addEventListener('dom-ready', () => {
const browser = browserView.getWebContents()
browser.setDevToolsWebContents(devtoolsView.getWebContents())
browser.openDevTools()
})
</script>
</body>
</html>
</code></pre></div>
<h3 dir="auto">Screenshots</h3>
<p dir="auto">the dev tools show nothing.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/13174059/53564768-b8035180-3b92-11e9-815a-92160a730eef.png"><img src="https://user-images.githubusercontent.com/13174059/53564768-b8035180-3b92-11e9-815a-92160a730eef.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">after remove this line <code class="notranslate">browser.setDevToolsWebContents(devtoolsView.getWebContents())</code>, the devtool can show correctly.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/13174059/53565018-4d064a80-3b93-11e9-9d0e-6c56880bd775.png"><img src="https://user-images.githubusercontent.com/13174059/53565018-4d064a80-3b93-11e9-9d0e-6c56880bd775.png" alt="image" style="max-width: 100%;"></a></p> | <p dir="auto">It seems that Chromium disallows using guest view as devtools, I need to find out the code in Chromium to fix it.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="not ok 55 <webview> tag setDevToolsWebContents() API sets webContents of webview as devtools
AssertionError: expected '' to equal 'InspectorFrontendHostImpl'
at Context.it (/Users/zcbenz/codes/electron/spec/webview-spec.js:721:26)"><pre class="notranslate"><code class="notranslate">not ok 55 <webview> tag setDevToolsWebContents() API sets webContents of webview as devtools
AssertionError: expected '' to equal 'InspectorFrontendHostImpl'
at Context.it (/Users/zcbenz/codes/electron/spec/webview-spec.js:721:26)
</code></pre></div> | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.