text1
stringlengths
0
536k
text2
stringlengths
0
536k
label
int64
0
1
<ul dir="auto"> <li>VSCode Version: 0.10.11</li> <li>OS Version: Windows 10 1511</li> </ul> <p dir="auto">Steps to Reproduce:</p> <p dir="auto">In a typescript file, have</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let varName = &quot;&quot;; varName = &quot;a&quot;;"><pre class="notranslate"><span class="pl-k">let</span> <span class="pl-s1">varName</span> <span class="pl-c1">=</span> <span class="pl-s">""</span><span class="pl-kos">;</span> <span class="pl-s1">varName</span> <span class="pl-c1">=</span> <span class="pl-s">"a"</span><span class="pl-kos">;</span></pre></div> <p dir="auto">The issue is that the 'var' substring in <code class="notranslate">varName</code> is highlighted the way the <code class="notranslate">var</code> construct would ordinarily be.</p>
<p dir="auto"><em>From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/f111fei/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/f111fei">@f111fei</a> on February 23, 2016 6:14</em></p> <p dir="auto">version: 0.10.10<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/7069719/13243197/80630302-da37-11e5-9ccf-a63d6f23433d.png"><img src="https://cloud.githubusercontent.com/assets/7069719/13243197/80630302-da37-11e5-9ccf-a63d6f23433d.png" alt="2" style="max-width: 100%;"></a></p> <p dir="auto"><code class="notranslate">letter</code></p> <p dir="auto"><em>Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="135646950" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/3270" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/3270/hovercard" href="https://github.com/microsoft/vscode/issues/3270">microsoft/vscode#3270</a></em></p>
1
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 4.1.0</li> <li>Operating System / Platform =&gt; Linux 4.4.0</li> <li>Compiler =&gt; See below</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">On a multi-core system, <code class="notranslate">setNumThreads</code> doesn't seem to be taken into account. No matter what I try, my code and dependencies will spawn N threads whenever I call <code class="notranslate">cv2</code> functions, where N is the number of cores on the machine.</p> <p dir="auto">We're already taking care of parallelism by creating as many processes as we have cores (python code), so we don't need OpenCV to spawn threads on top of that in the background, it only creates more CPU contention.</p> <h5 dir="auto">Steps to reproduce</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; import cv2 &gt;&gt;&gt; cv2.setNumThreads(1) &gt;&gt;&gt; c = cv2.VideoCapture('/path/to/video/file')"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; import cv2 &gt;&gt;&gt; cv2.setNumThreads(1) &gt;&gt;&gt; c = cv2.VideoCapture('/path/to/video/file') </code></pre></div> <p dir="auto">At this point a <code class="notranslate">ps -eLf</code> in another terminal will show as many python threads as there are cores on the machine, instead of only 1 as per <code class="notranslate">setNumThreads(1)</code>.</p> <p dir="auto">So for instance on a machine with 64 cores, creating 64 processes (e.g. with <code class="notranslate">multiprocessing.Process</code>) will create 4096 threads in the background. Definitely not what we want. Creating only 1 process and 64 threads results in very poor performance as we have higher level work we need to parallelize.</p> <p dir="auto">NB: I've tried <code class="notranslate">export OMP_NUM_THREADS=1</code>, it doesn't seem to help either.</p> <hr> <p dir="auto">** SYSTEM AND BUILD INFO (this is a Deep Learning AMI on EC2)**</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ python Python 3.6.6 |Anaconda, Inc.| (default, Jun 28 2018, 17:14:51) [GCC 7.2.0] on linux Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information. &gt;&gt;&gt; import cv2 &gt;&gt;&gt; print(cv2.getBuildInformation()) General configuration for OpenCV 4.1.0 ===================================== Version control: 4.1.0 Extra modules: Location (extra): /io/opencv_contrib/modules Version control (extra): 4.1.0 Platform: Timestamp: 2019-04-11T17:07:54Z Host: Linux 4.4.0-101-generic x86_64 CMake: 3.9.0 CMake generator: Unix Makefiles CMake build tool: /usr/bin/gmake Configuration: Release CPU/HW features: Baseline: SSE SSE2 SSE3 requested: SSE3 Dispatched code generation: SSE4_1 SSE4_2 FP16 AVX AVX2 requested: SSE4_1 SSE4_2 AVX FP16 AVX2 AVX512_SKX SSE4_1 (13 files): + SSSE3 SSE4_1 SSE4_2 (1 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 (0 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX AVX (4 files): + SSSE3 SSE4_1 POPCNT SSE4_2 AVX AVX2 (27 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2 C/C++: Built as dynamic libs?: NO C++ Compiler: /usr/lib/ccache/compilers/c++ (ver 4.8.2) C++ flags (Release): -Wl,-strip-all -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wsign-promo -Wuninitialized -Winit-self -Wno-delete-non-virtual-dtor -Wno-comment -Wno-missing-field-initializers -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG C++ flags (Debug): -Wl,-strip-all -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wsign-promo -Wuninitialized -Winit-self -Wno-delete-non-virtual-dtor -Wno-comment -Wno-missing-field-initializers -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG C Compiler: /usr/lib/ccache/compilers/cc C flags (Release): -Wl,-strip-all -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wuninitialized -Winit-self -Wno-comment -Wno-missing-field-initializers -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -O3 -DNDEBUG -DNDEBUG C flags (Debug): -Wl,-strip-all -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wuninitialized -Winit-self -Wno-comment -Wno-missing-field-initializers -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -g -O0 -DDEBUG -D_DEBUG Linker flags (Release): -L/root/ffmpeg_build/lib -Wl,--gc-sections Linker flags (Debug): -L/root/ffmpeg_build/lib -Wl,--gc-sections ccache: YES Precompiled headers: NO Extra dependencies: ade /opt/Qt4.8.7/lib/libQtGui.so /opt/Qt4.8.7/lib/libQtTest.so /opt/Qt4.8.7/lib/libQtCore.so /lib64/libz.so /opt/libjpeg-turbo/lib64/libjpeg.a dl m pthread rt 3rdparty dependencies: ittnotify libprotobuf libwebp libpng libtiff libjasper IlmImf quirc OpenCV modules: To be built: aruco bgsegm bioinspired calib3d ccalib core datasets dnn dnn_objdetect dpm face features2d flann fuzzy gapi hfs highgui img_hash imgcodecs imgproc line_descriptor ml objdetect optflow phase_unwrapping photo plot python3 quality reg rgbd saliency shape stereo stitching structured_light superres surface_matching text tracking video videoio videostab xfeatures2d ximgproc xobjdetect xphoto Disabled: world Disabled by dependency: - Unavailable: cnn_3dobj cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev cvv freetype hdf java js matlab ovis python2 sfm ts viz Applications: - Documentation: NO Non-free algorithms: NO GUI: QT: YES (ver 4.8.7 EDITION = OpenSource) QT OpenGL support: NO GTK+: NO VTK support: NO Media I/O: ZLib: /lib64/libz.so (ver 1.2.3) JPEG: /opt/libjpeg-turbo/lib64/libjpeg.a (ver 62) WEBP: build (ver encoder: 0x020e) PNG: build (ver 1.6.36) TIFF: build (ver 42 - 4.0.10) JPEG 2000: build (ver 1.900.1) OpenEXR: build (ver 1.7.1) HDR: YES SUNRASTER: YES PXM: YES PFM: YES Video I/O: DC1394: NO FFMPEG: YES avcodec: YES (58.47.106) avformat: YES (58.26.101) avutil: YES (56.26.100) swscale: YES (5.4.100) avresample: NO GStreamer: NO v4l/v4l2: YES (linux/videodev2.h) Parallel framework: pthreads Trace: YES (with Intel ITT) Other third-party libraries: Lapack: NO Eigen: NO Custom HAL: NO Protobuf: build (3.5.1) OpenCL: YES (no extra features) Include path: /io/opencv/3rdparty/include/opencl/1.2 Link libraries: Dynamic load Python 3: Interpreter: /opt/python/cp36-cp36m/bin/python (ver 3.6.8) Libraries: libpython3.6m.a (ver 3.6.8) numpy: /opt/python/cp36-cp36m/lib/python3.6/site-packages/numpy/core/include (ver 1.11.3) install path: python Python (for build): /opt/python/cp36-cp36m/bin/python Java: ant: NO JNI: NO Java wrappers: NO Java tests: NO Install to: /io/_skbuild/linux-x86_64-3.6/cmake-install ----------------------------------------------------------------- "><pre class="notranslate">$ python Python 3.6.6 <span class="pl-k">|</span>Anaconda, Inc.<span class="pl-k">|</span> (default, Jun 28 2018, 17:14:51) [GCC 7.2.0] on linux Type <span class="pl-s"><span class="pl-pds">"</span>help<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>copyright<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>credits<span class="pl-pds">"</span></span> or <span class="pl-s"><span class="pl-pds">"</span>license<span class="pl-pds">"</span></span> <span class="pl-k">for</span> more information. &gt;&gt;&gt; import cv2 &gt;&gt;&gt; <span class="pl-en">print(cv2.getBuildInformation</span>()) General configuration <span class="pl-k">for</span> OpenCV 4.1.0 ===================================== Version control: 4.1.0 Extra modules: Location (extra): /io/opencv_contrib/modules Version control (extra): 4.1.0 Platform: Timestamp: 2019-04-11T17:07:54Z Host: Linux 4.4.0-101-generic x86_64 CMake: 3.9.0 CMake generator: Unix Makefiles CMake build tool: /usr/bin/gmake Configuration: Release CPU/HW features: Baseline: SSE SSE2 SSE3 requested: SSE3 Dispatched code generation: SSE4_1 SSE4_2 FP16 AVX AVX2 requested: SSE4_1 SSE4_2 AVX FP16 AVX2 AVX512_SKX SSE4_1 (13 files): + SSSE3 SSE4_1 SSE4_2 (1 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 (0 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX AVX (4 files): + SSSE3 SSE4_1 POPCNT SSE4_2 AVX AVX2 (27 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2 C/C++: Built as dynamic libs<span class="pl-k">?</span>: NO C++ Compiler: /usr/lib/ccache/compilers/c++ (ver 4.8.2) C++ flags (Release): -Wl,-strip-all -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wsign-promo -Wuninitialized -Winit-self -Wno-delete-non-virtual-dtor -Wno-comment -Wno-missing-field-initializers -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG C++ flags (Debug): -Wl,-strip-all -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wsign-promo -Wuninitialized -Winit-self -Wno-delete-non-virtual-dtor -Wno-comment -Wno-missing-field-initializers -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG C Compiler: /usr/lib/ccache/compilers/cc C flags (Release): -Wl,-strip-all -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wuninitialized -Winit-self -Wno-comment -Wno-missing-field-initializers -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -O3 -DNDEBUG -DNDEBUG C flags (Debug): -Wl,-strip-all -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wuninitialized -Winit-self -Wno-comment -Wno-missing-field-initializers -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -g -O0 -DDEBUG -D_DEBUG Linker flags (Release): -L/root/ffmpeg_build/lib -Wl,--gc-sections Linker flags (Debug): -L/root/ffmpeg_build/lib -Wl,--gc-sections ccache: YES Precompiled headers: NO Extra dependencies: ade /opt/Qt4.8.7/lib/libQtGui.so /opt/Qt4.8.7/lib/libQtTest.so /opt/Qt4.8.7/lib/libQtCore.so /lib64/libz.so /opt/libjpeg-turbo/lib64/libjpeg.a dl m pthread rt 3rdparty dependencies: ittnotify libprotobuf libwebp libpng libtiff libjasper IlmImf quirc OpenCV modules: To be built: aruco bgsegm bioinspired calib3d ccalib core datasets dnn dnn_objdetect dpm face features2d flann fuzzy gapi hfs highgui img_hash imgcodecs imgproc line_descriptor ml objdetect optflow phase_unwrapping photo plot python3 quality reg rgbd saliency shape stereo stitching structured_light superres surface_matching text tracking video videoio videostab xfeatures2d ximgproc xobjdetect xphoto Disabled: world Disabled by dependency: - Unavailable: cnn_3dobj cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev cvv freetype hdf java js matlab ovis python2 sfm ts viz Applications: - Documentation: NO Non-free algorithms: NO GUI: QT: YES (ver 4.8.7 EDITION = OpenSource) QT OpenGL support: NO GTK+: NO VTK support: NO Media I/O: ZLib: /lib64/libz.so (ver 1.2.3) JPEG: /opt/libjpeg-turbo/lib64/libjpeg.a (ver 62) WEBP: build (ver encoder: 0x020e) PNG: build (ver 1.6.36) TIFF: build (ver 42 - 4.0.10) JPEG 2000: build (ver 1.900.1) OpenEXR: build (ver 1.7.1) HDR: YES SUNRASTER: YES PXM: YES PFM: YES Video I/O: DC1394: NO FFMPEG: YES avcodec: YES (58.47.106) avformat: YES (58.26.101) avutil: YES (56.26.100) swscale: YES (5.4.100) avresample: NO GStreamer: NO v4l/v4l2: YES (linux/videodev2.h) Parallel framework: pthreads Trace: YES (with Intel ITT) Other third-party libraries: Lapack: NO Eigen: NO Custom HAL: NO Protobuf: build (3.5.1) OpenCL: YES (no extra features) Include path: /io/opencv/3rdparty/include/opencl/1.2 Link libraries: Dynamic load Python 3: Interpreter: /opt/python/cp36-cp36m/bin/python (ver 3.6.8) Libraries: libpython3.6m.a (ver 3.6.8) numpy: /opt/python/cp36-cp36m/lib/python3.6/site-packages/numpy/core/include (ver 1.11.3) install path: python Python (for build): /opt/python/cp36-cp36m/bin/python Java: ant: NO JNI: NO Java wrappers: NO Java tests: NO Install to: /io/_skbuild/linux-x86_64-3.6/cmake-install ----------------------------------------------------------------- </pre></div>
<h5 dir="auto">System information Raspberry PI 4 Centos7</h5> <ul dir="auto"> <li>OpenCV =&gt; 4.2</li> <li>Operating System / Platform =&gt; Centos 7 / ARMV7L</li> <li>Compiler =&gt; CMAKE3</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">In the installation process, after cloning openCV from official repository, I switched to branch 3.4, and ran CMAKE3, and it returned the following errors related to libraries, which I believe they are not available for AMRV7, Raspberry PI 4. Please see logs</p> <h5 dir="auto">Steps to reproduce</h5> <p dir="auto">[<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Rasp/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Rasp">@Rasp</a> opencv]$ git checkout 3.4<br> Branch 3.4 set up to track remote branch 3.4 from origin.<br> Switched to a new branch '3.4'<br> [<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Rasp/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Rasp">@Rasp</a> opencv]$ mkdir build<br> [<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Rasp/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Rasp">@Rasp</a> opencv]$ cd build/<br> [o@Rasp build]$ cmake3 -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D OPENCV_GENERATE_PKGCONFIG=ON -D OPENCV_EXTRA_MODULES_PATH=/usr/local/src/opencv_build/opencv_contrib/modules -D BUILD_EXAMPLES=ON ..<br> -- The CXX compiler identification is GNU 4.8.5<br> -- The C compiler identification is GNU 4.8.5<br> -- Check for working CXX compiler: /usr/bin/c++<br> -- Check for working CXX compiler: /usr/bin/c++ - works<br> -- Detecting CXX compiler ABI info<br> -- Detecting CXX compiler ABI info - done<br> -- Detecting CXX compile features<br> -- Detecting CXX compile features - done<br> -- Check for working C compiler: /usr/bin/cc<br> -- Check for working C compiler: /usr/bin/cc - works<br> -- Detecting C compiler ABI info<br> -- Detecting C compiler ABI info - done<br> -- Detecting C compile features<br> -- Detecting C compile features - done<br> -- Detected processor: armv7l<br> -- Performing Test HAVE_CXX11 (check file: cmake/checks/cxx11.cpp)<br> -- Performing Test HAVE_CXX11 - Failed<br> -- Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.5", minimum required is "2.7")<br> -- Found PythonLibs: /lib/libpython2.7.so (found suitable exact version "2.7.5")<br> -- Found PythonInterp: /usr/bin/python3 (found suitable version "3.6.8", minimum required is "3.2")<br> -- Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS) (Required is exact version "3.6.8")<br> -- Looking for ccache - not found<br> -- Performing Test HAVE_CXX_FSIGNED_CHAR<br> -- Performing Test HAVE_CXX_FSIGNED_CHAR - Success<br> -- Performing Test HAVE_C_FSIGNED_CHAR<br> -- Performing Test HAVE_C_FSIGNED_CHAR - Success<br> -- Performing Test HAVE_CXX_W<br> -- Performing Test HAVE_CXX_W - Success<br> -- Performing Test HAVE_C_W<br> -- Performing Test HAVE_C_W - Success<br> -- Performing Test HAVE_CXX_WALL<br> -- Performing Test HAVE_CXX_WALL - Success<br> -- Performing Test HAVE_C_WALL<br> -- Performing Test HAVE_C_WALL - Success<br> -- Performing Test HAVE_CXX_WERROR_RETURN_TYPE<br> -- Performing Test HAVE_CXX_WERROR_RETURN_TYPE - Success<br> -- Performing Test HAVE_C_WERROR_RETURN_TYPE<br> -- Performing Test HAVE_C_WERROR_RETURN_TYPE - Success<br> -- Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR<br> -- Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR - Success<br> -- Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR<br> -- Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR - Success<br> -- Performing Test HAVE_CXX_WERROR_ADDRESS<br> -- Performing Test HAVE_CXX_WERROR_ADDRESS - Success<br> -- Performing Test HAVE_C_WERROR_ADDRESS<br> -- Performing Test HAVE_C_WERROR_ADDRESS - Success<br> -- Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT<br> -- Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT - Success<br> -- Performing Test HAVE_C_WERROR_SEQUENCE_POINT<br> -- Performing Test HAVE_C_WERROR_SEQUENCE_POINT - Success<br> -- Performing Test HAVE_CXX_WFORMAT<br> -- Performing Test HAVE_CXX_WFORMAT - Success<br> -- Performing Test HAVE_C_WFORMAT<br> -- Performing Test HAVE_C_WFORMAT - Success<br> -- Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY<br> -- Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY - Success<br> -- Performing Test HAVE_C_WERROR_FORMAT_SECURITY<br> -- Performing Test HAVE_C_WERROR_FORMAT_SECURITY - Success<br> -- Performing Test HAVE_CXX_WMISSING_DECLARATIONS<br> -- Performing Test HAVE_CXX_WMISSING_DECLARATIONS - Success<br> -- Performing Test HAVE_C_WMISSING_DECLARATIONS<br> -- Performing Test HAVE_C_WMISSING_DECLARATIONS - Success<br> -- Performing Test HAVE_CXX_WMISSING_PROTOTYPES<br> -- Performing Test HAVE_CXX_WMISSING_PROTOTYPES - Failed<br> -- Performing Test HAVE_C_WMISSING_PROTOTYPES<br> -- Performing Test HAVE_C_WMISSING_PROTOTYPES - Success<br> -- Performing Test HAVE_CXX_WSTRICT_PROTOTYPES<br> -- Performing Test HAVE_CXX_WSTRICT_PROTOTYPES - Failed<br> -- Performing Test HAVE_C_WSTRICT_PROTOTYPES<br> -- Performing Test HAVE_C_WSTRICT_PROTOTYPES - Success<br> -- Performing Test HAVE_CXX_WUNDEF<br> -- Performing Test HAVE_CXX_WUNDEF - Success<br> -- Performing Test HAVE_C_WUNDEF<br> -- Performing Test HAVE_C_WUNDEF - Success<br> -- Performing Test HAVE_CXX_WINIT_SELF<br> -- Performing Test HAVE_CXX_WINIT_SELF - Success<br> -- Performing Test HAVE_C_WINIT_SELF<br> -- Performing Test HAVE_C_WINIT_SELF - Success<br> -- Performing Test HAVE_CXX_WPOINTER_ARITH<br> -- Performing Test HAVE_CXX_WPOINTER_ARITH - Success<br> -- Performing Test HAVE_C_WPOINTER_ARITH<br> -- Performing Test HAVE_C_WPOINTER_ARITH - Success<br> -- Performing Test HAVE_CXX_WSHADOW<br> -- Performing Test HAVE_CXX_WSHADOW - Success<br> -- Performing Test HAVE_C_WSHADOW<br> -- Performing Test HAVE_C_WSHADOW - Success<br> -- Performing Test HAVE_CXX_WSIGN_PROMO<br> -- Performing Test HAVE_CXX_WSIGN_PROMO - Success<br> -- Performing Test HAVE_C_WSIGN_PROMO<br> -- Performing Test HAVE_C_WSIGN_PROMO - Failed<br> -- Performing Test HAVE_CXX_WUNINITIALIZED<br> -- Performing Test HAVE_CXX_WUNINITIALIZED - Success<br> -- Performing Test HAVE_C_WUNINITIALIZED<br> -- Performing Test HAVE_C_WUNINITIALIZED - Success<br> -- Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR<br> -- Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR - Success<br> -- Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR<br> -- Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR - Failed<br> -- Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS<br> -- Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Failed<br> -- Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS<br> -- Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Failed<br> -- Performing Test HAVE_CXX_WNO_COMMENT<br> -- Performing Test HAVE_CXX_WNO_COMMENT - Success<br> -- Performing Test HAVE_C_WNO_COMMENT<br> -- Performing Test HAVE_C_WNO_COMMENT - Success<br> -- Performing Test HAVE_CXX_WNO_MISSING_FIELD_INITIALIZERS<br> -- Performing Test HAVE_CXX_WNO_MISSING_FIELD_INITIALIZERS - Success<br> -- Performing Test HAVE_C_WNO_MISSING_FIELD_INITIALIZERS<br> -- Performing Test HAVE_C_WNO_MISSING_FIELD_INITIALIZERS - Success<br> -- Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION<br> -- Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION - Success<br> -- Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION<br> -- Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION - Success<br> -- Performing Test HAVE_CXX_PTHREAD<br> -- Performing Test HAVE_CXX_PTHREAD - Success<br> -- Performing Test HAVE_C_PTHREAD<br> -- Performing Test HAVE_C_PTHREAD - Success<br> -- Performing Test HAVE_CXX_FOMIT_FRAME_POINTER<br> -- Performing Test HAVE_CXX_FOMIT_FRAME_POINTER - Success<br> -- Performing Test HAVE_C_FOMIT_FRAME_POINTER<br> -- Performing Test HAVE_C_FOMIT_FRAME_POINTER - Success<br> -- Performing Test HAVE_CXX_FFUNCTION_SECTIONS<br> -- Performing Test HAVE_CXX_FFUNCTION_SECTIONS - Success<br> -- Performing Test HAVE_C_FFUNCTION_SECTIONS<br> -- Performing Test HAVE_C_FFUNCTION_SECTIONS - Success<br> -- Performing Test HAVE_CXX_FDATA_SECTIONS<br> -- Performing Test HAVE_CXX_FDATA_SECTIONS - Success<br> -- Performing Test HAVE_C_FDATA_SECTIONS<br> -- Performing Test HAVE_C_FDATA_SECTIONS - Success<br> -- Performing Test HAVE_CXX_MFPU_VFPV3<br> -- Performing Test HAVE_CXX_MFPU_VFPV3 - Success<br> -- Performing Test HAVE_CPU_NEON_SUPPORT (check file: cmake/checks/cpu_neon.cpp)<br> -- Performing Test HAVE_CPU_NEON_SUPPORT - Failed<br> -- Performing Test HAVE_CXX_MFPU_NEON (check file: cmake/checks/cpu_neon.cpp)<br> -- Performing Test HAVE_CXX_MFPU_NEON - Success<br> -- Performing Test HAVE_CPU_FP16_SUPPORT (check file: cmake/checks/cpu_fp16.cpp)<br> -- Performing Test HAVE_CPU_FP16_SUPPORT - Failed<br> -- Performing Test HAVE_CXX_MFPU_NEON_FP16_MFP16_FORMAT_IEEE (check file: cmake/checks/cpu_fp16.cpp)<br> -- Performing Test HAVE_CXX_MFPU_NEON_FP16_MFP16_FORMAT_IEEE - Failed<br> -- FP16 is not supported by C++ compiler<br> -- Performing Test HAVE_CPU_BASELINE_FLAGS<br> -- Performing Test HAVE_CPU_BASELINE_FLAGS - Success<br> -- Performing Test HAVE_CXX_FVISIBILITY_HIDDEN<br> -- Performing Test HAVE_CXX_FVISIBILITY_HIDDEN - Success<br> -- Performing Test HAVE_C_FVISIBILITY_HIDDEN<br> -- Performing Test HAVE_C_FVISIBILITY_HIDDEN - Success<br> -- Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN<br> -- Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN - Success<br> -- Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN<br> -- Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN - Failed<br> -- Performing Test HAVE_LINK_AS_NEEDED<br> -- Performing Test HAVE_LINK_AS_NEEDED - Success<br> -- Looking for pthread.h<br> -- Looking for pthread.h - found<br> -- Looking for posix_memalign<br> -- Looking for posix_memalign - found<br> -- Looking for malloc.h<br> -- Looking for malloc.h - found<br> -- Looking for memalign<br> -- Looking for memalign - found<br> -- Check if the system is big endian<br> -- Searching 16 bit integer<br> -- Looking for sys/types.h<br> -- Looking for sys/types.h - found<br> -- Looking for stdint.h<br> -- Looking for stdint.h - found<br> -- Looking for stddef.h<br> -- Looking for stddef.h - found<br> -- Check size of unsigned short<br> -- Check size of unsigned short - done<br> -- Searching 16 bit integer - Using unsigned short<br> -- Check if the system is big endian - little endian<br> -- Found ZLIB: /lib/libz.so (found suitable version "1.2.7", minimum required is "1.2.3")<br> -- Found JPEG: /lib/libjpeg.so (found version "62")<br> -- Found TIFF: /lib/libtiff.so (found version "4.0.3")<br> -- Found WebP: /lib/libwebp.so<br> -- Found Jasper: /lib/libjasper.so (found version "1.900.1")<br> -- Found ZLIB: /lib/libz.so (found version "1.2.7")<br> -- Found PNG: /lib/libpng.so (found version "1.5.13")<br> -- Looking for /usr/include/libpng/png.h<br> -- Looking for /usr/include/libpng/png.h - not found<br> -- Found OpenEXR: /usr/lib/libIlmImf.so<br> -- Checking for module 'gtk+-3.0'<br> -- No package 'gtk+-3.0' found<br> -- Checking for module 'gtk+-2.0'<br> -- Found gtk+-2.0, version 2.24.31<br> -- Checking for module 'gthread-2.0'<br> -- Found gthread-2.0, version 2.56.1<br> -- Checking for modules 'gstreamer-base-1.0;gstreamer-video-1.0;gstreamer-app-1.0;gstreamer-riff-1.0;gstreamer-pbutils-1.0'<br> -- No package 'gstreamer-base-1.0' found<br> -- No package 'gstreamer-video-1.0' found<br> -- No package 'gstreamer-app-1.0' found<br> -- No package 'gstreamer-riff-1.0' found<br> -- No package 'gstreamer-pbutils-1.0' found<br> -- Checking for modules 'gstreamer-base-0.10;gstreamer-video-0.10;gstreamer-app-0.10;gstreamer-riff-0.10;gstreamer-pbutils-0.10'<br> -- Found gstreamer-base-0.10, version 0.10.36<br> -- Found gstreamer-video-0.10, version 0.10.36<br> -- Found gstreamer-app-0.10, version 0.10.36<br> -- Found gstreamer-riff-0.10, version 0.10.36<br> -- Found gstreamer-pbutils-0.10, version 0.10.36<br> -- Checking for module 'libdc1394-2'<br> -- Found libdc1394-2, version 2.2.2<br> -- Looking for linux/videodev.h<br> -- Looking for linux/videodev.h - not found<br> -- Looking for linux/videodev2.h<br> -- Looking for linux/videodev2.h - found<br> -- Looking for sys/videoio.h<br> -- Looking for sys/videoio.h - not found<br> -- Checking for modules 'libavcodec;libavformat;libavutil;libswscale'<br> -- No package 'libavcodec' found<br> -- No package 'libavformat' found<br> -- No package 'libavutil' found<br> -- No package 'libswscale' found<br> -- Checking for module 'libavresample'<br> -- No package 'libavresample' found<br> -- Could not find OpenBLAS include. Turning OpenBLAS_FOUND off<br> -- Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off<br> -- Could NOT find Atlas (missing: Atlas_CBLAS_INCLUDE_DIR Atlas_CLAPACK_INCLUDE_DIR Atlas_CBLAS_LIBRARY Atlas_BLAS_LIBRARY Atlas_LAPACK_LIBRARY)<br> -- Looking for sgemm_<br> -- Looking for sgemm_ - not found<br> -- Looking for pthread.h<br> -- Looking for pthread.h - found<br> -- Performing Test CMAKE_HAVE_LIBC_PTHREAD<br> -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success<br> -- Found Threads: TRUE<br> -- Could NOT find BLAS (missing: BLAS_LIBRARIES)<br> -- LAPACK requires BLAS<br> -- A library with LAPACK API not found. Please specify library location.<br> -- Performing Test HAVE_CXX_WNO_DEPRECATED<br> -- Performing Test HAVE_CXX_WNO_DEPRECATED - Success<br> -- Performing Test HAVE_CXX_WNO_MISSING_PROTOTYPES<br> -- Performing Test HAVE_CXX_WNO_MISSING_PROTOTYPES - Failed<br> -- Performing Test HAVE_CXX_WNO_MISSING_DECLARATIONS<br> -- Performing Test HAVE_CXX_WNO_MISSING_DECLARATIONS - Success<br> -- Performing Test HAVE_CXX_WNO_SHADOW<br> -- Performing Test HAVE_CXX_WNO_SHADOW - Success<br> -- Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER<br> -- Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER - Success<br> -- Performing Test HAVE_CXX_WNO_UNUSED_LOCAL_TYPEDEFS<br> -- Performing Test HAVE_CXX_WNO_UNUSED_LOCAL_TYPEDEFS - Success<br> -- Performing Test HAVE_CXX_WNO_SIGN_COMPARE<br> -- Performing Test HAVE_CXX_WNO_SIGN_COMPARE - Success<br> -- Performing Test HAVE_CXX_WNO_SIGN_PROMO<br> -- Performing Test HAVE_CXX_WNO_SIGN_PROMO - Success<br> -- Performing Test HAVE_CXX_WNO_UNDEF<br> -- Performing Test HAVE_CXX_WNO_UNDEF - Success<br> -- Performing Test HAVE_CXX_WNO_TAUTOLOGICAL_UNDEFINED_COMPARE<br> -- Performing Test HAVE_CXX_WNO_TAUTOLOGICAL_UNDEFINED_COMPARE - Failed<br> -- Performing Test HAVE_CXX_WNO_IGNORED_QUALIFIERS<br> -- Performing Test HAVE_CXX_WNO_IGNORED_QUALIFIERS - Success<br> -- Performing Test HAVE_CXX_WNO_EXTRA<br> -- Performing Test HAVE_CXX_WNO_EXTRA - Success<br> -- Performing Test HAVE_CXX_WNO_UNUSED_FUNCTION<br> -- Performing Test HAVE_CXX_WNO_UNUSED_FUNCTION - Success<br> -- Performing Test HAVE_CXX_WNO_UNUSED_CONST_VARIABLE<br> -- Performing Test HAVE_CXX_WNO_UNUSED_CONST_VARIABLE - Failed<br> -- Performing Test HAVE_CXX_WNO_SHORTEN_64_TO_32<br> -- Performing Test HAVE_CXX_WNO_SHORTEN_64_TO_32 - Failed<br> -- Performing Test HAVE_CXX_WNO_INVALID_OFFSETOF<br> -- Performing Test HAVE_CXX_WNO_INVALID_OFFSETOF - Success<br> -- Performing Test HAVE_CXX_WNO_ENUM_COMPARE_SWITCH<br> -- Performing Test HAVE_CXX_WNO_ENUM_COMPARE_SWITCH - Failed<br> -- Performing Test HAVE_CXX_WNO_SUGGEST_OVERRIDE<br> -- Performing Test HAVE_CXX_WNO_SUGGEST_OVERRIDE - Failed<br> -- Performing Test HAVE_CXX_WNO_INCONSISTENT_MISSING_OVERRIDE<br> -- Performing Test HAVE_CXX_WNO_INCONSISTENT_MISSING_OVERRIDE - Failed<br> -- Performing Test HAVE_CXX_WNO_IMPLICIT_FALLTHROUGH<br> -- Performing Test HAVE_CXX_WNO_IMPLICIT_FALLTHROUGH - Failed<br> -- Performing Test HAVE_CXX_WNO_ARRAY_BOUNDS<br> -- Performing Test HAVE_CXX_WNO_ARRAY_BOUNDS - Success<br> -- Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH)<br> -- Could NOT find Pylint (missing: PYLINT_EXECUTABLE)<br> -- Could NOT find Flake8 (missing: FLAKE8_EXECUTABLE)<br> -- VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file<br> -- Performing Test HAVE_C_WNO_UNUSED_VARIABLE<br> -- Performing Test HAVE_C_WNO_UNUSED_VARIABLE - Success<br> -- Performing Test HAVE_C_WNO_SHADOW<br> -- Performing Test HAVE_C_WNO_SHADOW - Success<br> -- Carotene: NEON is not available, disabling carotene...<br> -- Looking for dlerror in dl<br> -- Looking for dlerror in dl - found<br> -- Performing Test HAVE_C_WNO_IMPLICIT_FALLTHROUGH<br> -- Performing Test HAVE_C_WNO_IMPLICIT_FALLTHROUGH - Failed<br> -- Performing Test HAVE_C_WNO_UNDEF<br> -- Performing Test HAVE_C_WNO_UNDEF - Success<br> -- Performing Test HAVE_C_WNO_SIGN_COMPARE<br> -- Performing Test HAVE_C_WNO_SIGN_COMPARE - Success<br> calib3d<br> core</p> <blockquote> <p dir="auto">cudaarithm<br> cudabgsegm<br> cudacodec<br> cudafeatures2d<br> cudafilters<br> cudaimgproc<br> cudalegacy<br> cudaobjdetect<br> cudaoptflow<br> cudastereo<br> cudawarping<br> cudev<br> dnn<br> features2d<br> flann<br> highgui<br> imgcodecs<br> imgproc<br> java<br> js<br> ml<br> objdetect<br> photo<br> python<br> shape<br> stitching<br> superres<br> ts<br> video<br> videoio<br> videostab<br> viz<br> world<br> alphamat<br> aruco<br> bgsegm<br> bioinspired<br> ccalib<br> cnn_3dobj<br> cudaarithm<br> cudabgsegm<br> cudacodec<br> cudafeatures2d<br> cudafilters<br> cudaimgproc<br> cudalegacy<br> cudaobjdetect<br> cudaoptflow<br> cudastereo<br> cudawarping<br> cudev<br> cvv<br> datasets<br> dnn_objdetect<br> dnn_superres<br> dpm<br> face<br> freetype<br> fuzzy<br> hdf<br> hfs<br> img_hash<br> intensity_transform<br> julia<br> line_descriptor<br> matlab<br> mcc<br> optflow<br> ovis<br> phase_unwrapping<br> plot<br> quality<br> rapid<br> reg<br> rgbd<br> saliency<br> sfm<br> shape<br> stereo<br> structured_light<br> superres<br> surface_matching<br> text<br> tracking<br> videostab<br> viz<br> xfeatures2d<br> ximgproc<br> xobjdetect<br> xphoto<br> CMake Error at cmake/OpenCVModule.cmake:353 (message):<br> Duplicated modules NAMES has been found<br> Call Stack (most recent call first):<br> cmake/OpenCVModule.cmake:371 (_assert_uniqueness)<br> modules/CMakeLists.txt:7 (ocv_glob_modules)</p> </blockquote> <p dir="auto">-- Configuring incomplete, errors occurred!<br> See also "/usr/local/src/opencv_build/opencv/build/CMakeFiles/CMakeOutput.log".<br> See also "/usr/local/src/opencv_build/opencv/build/CMakeFiles/CMakeError.log".</p>
0
<h4 dir="auto">Code Sample</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; pd.to_timedelta(0.123_456_789, unit='s').components Components(days=0, hours=0, minutes=0, seconds=0, milliseconds=123, microseconds=457, nanoseconds=0) &gt;&gt;&gt; pd.to_timedelta(123.456_789, unit='ms').components Components(days=0, hours=0, minutes=0, seconds=0, milliseconds=123, microseconds=457, nanoseconds=0) &gt;&gt;&gt; pd.to_timedelta(123_456.789, unit='us').components Components(days=0, hours=0, minutes=0, seconds=0, milliseconds=123, microseconds=456, nanoseconds=789) &gt;&gt;&gt; pd.to_timedelta(123_456_789.0, unit='ns').components Components(days=0, hours=0, minutes=0, seconds=0, milliseconds=123, microseconds=456, nanoseconds=789)"><pre class="notranslate"><span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">pd</span>.<span class="pl-en">to_timedelta</span>(<span class="pl-c1">0.123_456_789</span>, <span class="pl-s1">unit</span><span class="pl-c1">=</span><span class="pl-s">'s'</span>).<span class="pl-s1">components</span> <span class="pl-v">Components</span>(<span class="pl-s1">days</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">hours</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">minutes</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">seconds</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">milliseconds</span><span class="pl-c1">=</span><span class="pl-c1">123</span>, <span class="pl-s1">microseconds</span><span class="pl-c1">=</span><span class="pl-c1">457</span>, <span class="pl-s1">nanoseconds</span><span class="pl-c1">=</span><span class="pl-c1">0</span>) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">pd</span>.<span class="pl-en">to_timedelta</span>(<span class="pl-c1">123.456_789</span>, <span class="pl-s1">unit</span><span class="pl-c1">=</span><span class="pl-s">'ms'</span>).<span class="pl-s1">components</span> <span class="pl-v">Components</span>(<span class="pl-s1">days</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">hours</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">minutes</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">seconds</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">milliseconds</span><span class="pl-c1">=</span><span class="pl-c1">123</span>, <span class="pl-s1">microseconds</span><span class="pl-c1">=</span><span class="pl-c1">457</span>, <span class="pl-s1">nanoseconds</span><span class="pl-c1">=</span><span class="pl-c1">0</span>) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">pd</span>.<span class="pl-en">to_timedelta</span>(<span class="pl-c1">123_456.789</span>, <span class="pl-s1">unit</span><span class="pl-c1">=</span><span class="pl-s">'us'</span>).<span class="pl-s1">components</span> <span class="pl-v">Components</span>(<span class="pl-s1">days</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">hours</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">minutes</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">seconds</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">milliseconds</span><span class="pl-c1">=</span><span class="pl-c1">123</span>, <span class="pl-s1">microseconds</span><span class="pl-c1">=</span><span class="pl-c1">456</span>, <span class="pl-s1">nanoseconds</span><span class="pl-c1">=</span><span class="pl-c1">789</span>) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">pd</span>.<span class="pl-en">to_timedelta</span>(<span class="pl-c1">123_456_789.0</span>, <span class="pl-s1">unit</span><span class="pl-c1">=</span><span class="pl-s">'ns'</span>).<span class="pl-s1">components</span> <span class="pl-v">Components</span>(<span class="pl-s1">days</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">hours</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">minutes</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">seconds</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">milliseconds</span><span class="pl-c1">=</span><span class="pl-c1">123</span>, <span class="pl-s1">microseconds</span><span class="pl-c1">=</span><span class="pl-c1">456</span>, <span class="pl-s1">nanoseconds</span><span class="pl-c1">=</span><span class="pl-c1">789</span>)</pre></div> <h4 dir="auto">Problem description</h4> <p dir="auto">I have an array of floats that represent the number of seconds since a reference time with (roughly) nanosecond precision. I want to convert to a timedelta series, but this rounds off the nanoseconds. I can work around the behavior with something like the following:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; pd.to_timedelta(array_seconds * 1_000_000, unit='us')"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; pd.to_timedelta(array_seconds * 1_000_000, unit='us') </code></pre></div> <h4 dir="auto">Expected Output</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; pd.to_timedelta(0.123_456_789, unit='s').components Components(days=0, hours=0, minutes=0, seconds=0, milliseconds=123, microseconds=456, nanoseconds=789) &gt;&gt;&gt; pd.to_timedelta(123.456_789, unit='ms').components Components(days=0, hours=0, minutes=0, seconds=0, milliseconds=123, microseconds=456, nanoseconds=789)"><pre class="notranslate"><span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">pd</span>.<span class="pl-en">to_timedelta</span>(<span class="pl-c1">0.123_456_789</span>, <span class="pl-s1">unit</span><span class="pl-c1">=</span><span class="pl-s">'s'</span>).<span class="pl-s1">components</span> <span class="pl-v">Components</span>(<span class="pl-s1">days</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">hours</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">minutes</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">seconds</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">milliseconds</span><span class="pl-c1">=</span><span class="pl-c1">123</span>, <span class="pl-s1">microseconds</span><span class="pl-c1">=</span><span class="pl-c1">456</span>, <span class="pl-s1">nanoseconds</span><span class="pl-c1">=</span><span class="pl-c1">789</span>) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">pd</span>.<span class="pl-en">to_timedelta</span>(<span class="pl-c1">123.456_789</span>, <span class="pl-s1">unit</span><span class="pl-c1">=</span><span class="pl-s">'ms'</span>).<span class="pl-s1">components</span> <span class="pl-v">Components</span>(<span class="pl-s1">days</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">hours</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">minutes</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">seconds</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">milliseconds</span><span class="pl-c1">=</span><span class="pl-c1">123</span>, <span class="pl-s1">microseconds</span><span class="pl-c1">=</span><span class="pl-c1">456</span>, <span class="pl-s1">nanoseconds</span><span class="pl-c1">=</span><span class="pl-c1">789</span>)</pre></div> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> <h2 dir="auto">pd.show_versions()<br> INSTALLED VERSIONS</h2> <p dir="auto">commit: None<br> python: 3.6.1.final.0<br> python-bits: 64<br> OS: Windows<br> OS-release: 10<br> machine: AMD64<br> processor: Intel64 Family 6 Model 94 Stepping 3, GenuineIntel<br> byteorder: little<br> LC_ALL: None<br> LANG: None<br> LOCALE: None.None<br> pandas: 0.20.1<br> pytest: 3.0.7<br> pip: 9.0.1<br> setuptools: 27.2.0<br> Cython: 0.25.2<br> numpy: 1.12.1<br> scipy: 0.19.0<br> xarray: 0.9.6<br> IPython: 5.3.0<br> sphinx: 1.5.6<br> patsy: 0.4.1<br> dateutil: 2.6.0<br> pytz: 2017.2<br> blosc: None<br> bottleneck: 1.2.1<br> tables: 3.2.2<br> numexpr: 2.6.2<br> feather: None<br> matplotlib: 2.0.2<br> openpyxl: 2.4.7<br> xlrd: 1.0.0<br> xlwt: 1.2.0<br> xlsxwriter: 0.9.6<br> lxml: 3.7.3<br> bs4: 4.6.0<br> html5lib: 0.999<br> sqlalchemy: 1.1.9<br> pymysql: None<br> psycopg2: None<br> jinja2: 2.9.6<br> s3fs: None<br> pandas_gbq: None<br> pandas_datareader: None</p> </details>
<p dir="auto">I think this is rounding prematurely, though not entirely sure. Could also just be loss of precision when converting from a float -&gt; int64.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [12]: pd.to_datetime(1434743731.8770001,unit='s') Out[12]: Timestamp('2015-06-19 19:55:31.877000') In [13]: pd.to_datetime(1434743731.8770001,unit='s').value Out[13]: 1434743731877000000 In [14]: (pd.Timestamp('2015-06-19 19:55:15.877000')+pd.Timedelta('1us')).value Out[14]: 1434743715877001000 "><pre class="notranslate"><code class="notranslate">In [12]: pd.to_datetime(1434743731.8770001,unit='s') Out[12]: Timestamp('2015-06-19 19:55:31.877000') In [13]: pd.to_datetime(1434743731.8770001,unit='s').value Out[13]: 1434743731877000000 In [14]: (pd.Timestamp('2015-06-19 19:55:15.877000')+pd.Timedelta('1us')).value Out[14]: 1434743715877001000 </code></pre></div>
1
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/scipy/ticket/1408" rel="nofollow">http://projects.scipy.org/scipy/ticket/1408</a> on 2011-03-11 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rgommers/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rgommers">@rgommers</a>, assigned to unknown.</em></p> <p dir="auto">Reported by Christoph Gohlke on the mailing list with Python 3.2 on 64-bit Windows:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="====================================================================== FAIL: minimum position 7 ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;X:\Python32\lib\site-packages\nose\case.py&quot;, line 188, in runTest self.test(*self.arg) File &quot;X:\Python32\lib\site-packages\scipy\ndimage\tests\test_measurements.py&quot;, line 701, in test_minimum_position07 assert_equal(output[0], (0, 1)) File &quot;X:\Python32\lib\site-packages\numpy\testing\utils.py&quot;, line 251, in assert_equal assert_equal(actual[k], desired[k], 'item=%r\n%s' % (k,err_msg), verbose) File &quot;X:\Python32\lib\site-packages\numpy\testing\utils.py&quot;, line 300, in assert_equal raise AssertionError(msg) AssertionError: Items are not equal: item=0 ACTUAL: nan DESIRED: 0"><pre class="notranslate"><code class="notranslate">====================================================================== FAIL: minimum position 7 ---------------------------------------------------------------------- Traceback (most recent call last): File "X:\Python32\lib\site-packages\nose\case.py", line 188, in runTest self.test(*self.arg) File "X:\Python32\lib\site-packages\scipy\ndimage\tests\test_measurements.py", line 701, in test_minimum_position07 assert_equal(output[0], (0, 1)) File "X:\Python32\lib\site-packages\numpy\testing\utils.py", line 251, in assert_equal assert_equal(actual[k], desired[k], 'item=%r\n%s' % (k,err_msg), verbose) File "X:\Python32\lib\site-packages\numpy\testing\utils.py", line 300, in assert_equal raise AssertionError(msg) AssertionError: Items are not equal: item=0 ACTUAL: nan DESIRED: 0 </code></pre></div>
<p dir="auto">the result is that it will raise an error when any of the sub-block has a 0 dimension.</p> File "/usr/local/lib/python2.7/dist-packages/scipy/sparse/construct.py", line 579, in bmat raise ValueError('blocks[:,%d] is all None' % bcol_lengths.argmin()) ValueError: blocks[:,0] is all None
0
<p dir="auto">I am using <code class="notranslate">pandas.__version__==0.14.0</code>.<br> This is my first bug report in github so excuse my possibly poorly formatted submission.</p> <p dir="auto">This bug report might be related to, or duplicate:</p> <ol dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="9712660" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/2646" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/2646/hovercard" href="https://github.com/pandas-dev/pandas/issues/2646">#2646</a></li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="28467007" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/6501" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/6501/hovercard" href="https://github.com/pandas-dev/pandas/issues/6501">#6501</a></li> </ol> <p dir="auto">It was explained to me by [http://stackoverflow.com/users/1427416/brenbarn] on the following StackOverflow question, <a href="http://stackoverflow.com/questions/24683023/having-issue-with-hierarchical-index-set-behavior/24684844#24684844" rel="nofollow">http://stackoverflow.com/questions/24683023/having-issue-with-hierarchical-index-set-behavior/24684844#24684844</a></p> <p dir="auto">Essentially, the following behavior is not desirable:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="print pd.__version__ WeirdIdx = pd.MultiIndex(levels=[[0], [1]],labels=[[0, 0], [0,0]],names=[u'X', u'Y']) print WeirdIdx print (0, 0) in WeirdIdx print (1, 0) in WeirdIdx print (100, 0) in WeirdIdx print (100, 100) in WeirdIdx"><pre class="notranslate"><code class="notranslate">print pd.__version__ WeirdIdx = pd.MultiIndex(levels=[[0], [1]],labels=[[0, 0], [0,0]],names=[u'X', u'Y']) print WeirdIdx print (0, 0) in WeirdIdx print (1, 0) in WeirdIdx print (100, 0) in WeirdIdx print (100, 100) in WeirdIdx </code></pre></div> <p dir="auto">since it prints:<br> 0.14.0<br> X Y<br> 0 1<br> 1<br> True<br> True<br> True<br> True</p> <p dir="auto">despite the fact that <code class="notranslate">(100,0)</code> and <code class="notranslate">(100,100)</code> are unambiguously not part of the index.</p>
<p dir="auto">Timestamp stores the value in a <code class="notranslate">datetime64[ns]</code> internal representation. For most purposes this is fine, but I'd love if I could choose the internal precision, for example to use <code class="notranslate">datetime64[s]</code> instead.</p> <p dir="auto">When I do timeseries manipulations that span more than a day, I generally do not need sub-second resolution and I could definitely use the extended range instead. But, more conveniently, this would also allow to pretty-print the result without a ton of trailing zeros without setting some arbitrary threshold.</p> <p dir="auto">Incidentally, this would remove the limit of ~500 years, but it's more of an ergonomic change than an actual need. For example, when I need to perform direct manipulations of the values in a DatetimeIndex, I often have to scale up to seconds if I want to perform meaningful fitting and avoid numerical instability. When plotting, it's an extra indirection I need to care about.</p>
0
<p dir="auto"><strong>Is this a request for help?</strong> (If yes, you should use our troubleshooting guide and community support channels, see <a href="http://kubernetes.io/docs/troubleshooting/" rel="nofollow">http://kubernetes.io/docs/troubleshooting/</a>.):</p> <p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.):<br> severity,container log</p> <hr> <p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one):</p> <ul dir="auto"> <li>FEATURE REQUEST</li> </ul> <p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):</p> <ul dir="auto"> <li>1.3.6</li> </ul> <p dir="auto"><strong>Environment</strong>:</p> <ul dir="auto"> <li><strong>Cloud provider or hardware configuration</strong>:<br> Google Cloud Platform</li> <li><strong>OS</strong> (e.g. from /etc/os-release):<br> Ubuntu14:04</li> <li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>):<br> 3.16.0-4-amd64</li> <li><strong>Install tools</strong>:</li> <li><strong>Others</strong>:<br> GKE(Google Container Engine)</li> </ul> <p dir="auto"><strong>What happened</strong>:<br> How to specify "severity" to container logs?<br> I'm running with kubernetes on gce.<br> And I want to specify "severity" to container logs.</p> <p dir="auto">I know that normally the logs written to stdout got tagged with the INFO severity and logs written to stderr got tagged with the ERROR severity.</p> <p dir="auto">I have a question.<br> In the future, container log Will be able to specify the severity?</p> <p dir="auto"><strong>What you expected to happen</strong>:<br> Is there any plan to specification of container log is improved, if that is I want to hear whether the planned release time.</p> <p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):</p> <p dir="auto"><strong>Anything else do we need to know</strong>:</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="144290180" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/23576" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/23576/hovercard" href="https://github.com/kubernetes/kubernetes/pull/23576">#23576</a> added an annotation to support DNS on Route53 on AWS. To <em>really</em> do this right, we need to think harder about how we want to evolve Service and Ingress. In the mean time, it seems reasonable to do the same trick with GCE Cloud DNS. add an annotation and watch DNS appear.</p> <p dir="auto">This would be a great opportunity for a community-contributed patch, if anyone is looking for ideas.</p>
0
<p dir="auto">I've been writing a custom debug adapter for vscode and have been running into the following issue:</p> <p dir="auto">When deploying your extension in server mode ( at least I haven't tested on extension host mode ), and the you drop stop the client abruptly, for any reason, whilst the front-end is still awaiting a request that affects the variables debug view, then even after the client has stopped, whatever values were in the view remain there and become locked. Starting a new debug session does not clear them, you have to open a new window with the project in order for them to clear.</p> <p dir="auto">These screenshots illustrate :</p> <blockquote> <p dir="auto">While debugging on the client, at the same time I have the adapter project being debugger on server mode, and paused while there is still a scopesRequest or variablesRequest response unfulfilled.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/11462418/13276706/90a40976-da98-11e5-94ec-646f19645ef0.gif"><img src="https://cloud.githubusercontent.com/assets/11462418/13276706/90a40976-da98-11e5-94ec-646f19645ef0.gif" width="600" data-animated-image="" style="max-width: 100%;"></a></p> <p dir="auto">I've stopped the server without completing the request. The client's variables view remains locked with whatever was last in it.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/11462418/13276707/924df264-da98-11e5-810d-954ccbb5765e.gif"><img src="https://cloud.githubusercontent.com/assets/11462418/13276707/924df264-da98-11e5-810d-954ccbb5765e.gif" width="600" data-animated-image="" style="max-width: 100%;"></a></p> </blockquote> <p dir="auto">It's happened both in the January and insider's build.</p>
<p dir="auto">Whenever there is a long running debug adapter request and a spinner appears in the UI, this spinner does not disappear when the session is terminated (in fact the full variables viewlet does not disappear in this case). Since starting a new debug session does not work in this situation, only a window reload helps.</p>
1
<p dir="auto">I was trying to compile my project directly to ES6 and use <a href="https://github.com/zloirock/core-js">core-js</a> for shims (they seem to cover a lot more than es6-shim), but it looks like I get a an error:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="TypeError: Cannot convert undefined or null to object angular2.min.js:26Uncaught TypeError: Cannot read property 'getOptional' of undefinedu @ angular2.min.js:26t._initApp @ angular2.min.js:26t.application @ angular2.min.js:26n @ angular2.min.js:26(anonymous function) @ bootstrap.ts:37(anonymous function) @ bootstrap.ts:37U @ system.src.js:4597c.execute @ system.src.js:4597i @ system.src.js:4597n @ system.src.js:4597execute @ system.src.js:4597y @ system.src.js:4597w @ system.src.js:4597p @ system.src.js:4597h @ system.src.js:4597(anonymous function) @ system.src.js:4597n.run @ angular2.min.js:1(anonymous function) @ angular2.min.js:1I @ angular2.min.js:1A @ angular2.min.js:1R @ angular2.min.js:1(anonymous function) @ angular2.min.js:1n.run @ angular2.min.js:1(anonymous function) @ angular2.min.js:1h @ angular2.min.js:1h @ core.js:3055(anonymous function) @ core.js:3066e @ core.js:3310 core.js:3055 Uncaught TypeError: Cannot read property 'getOptional' of undefined Evaluating http://localhost:3000/app/bootstrap.js Error loading http://localhost:3000/app/bootstrap.jsh @ core.js:3055(anonymous function) @ core.js:3066e @ core.js:3310"><pre class="notranslate">TypeError: <span class="pl-v">Cannot</span> <span class="pl-s1">convert</span> <span class="pl-c1">undefined</span> <span class="pl-s1">or</span> <span class="pl-c1">null</span> <span class="pl-s1">to</span> <span class="pl-s1">object</span> <span class="pl-s1">angular2</span><span class="pl-kos">.</span><span class="pl-c1">min</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">26</span><span class="pl-v">Uncaught</span> <span class="pl-v">TypeError</span>: <span class="pl-v">Cannot</span> <span class="pl-s1">read</span> <span class="pl-s1">property</span> <span class="pl-s">'getOptional'</span> <span class="pl-s1">of</span> <span class="pl-s1">undefinedu</span> @ <span class="pl-s1">angular2</span><span class="pl-kos">.</span><span class="pl-c1">min</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">26</span><span class="pl-s1">t</span><span class="pl-kos">.</span><span class="pl-c1">_initApp</span> @ <span class="pl-s1">angular2</span><span class="pl-kos">.</span><span class="pl-c1">min</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">26</span><span class="pl-s1">t</span><span class="pl-kos">.</span><span class="pl-c1">application</span> @ <span class="pl-s1">angular2</span><span class="pl-kos">.</span><span class="pl-c1">min</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">26n</span> @ <span class="pl-s1">angular2</span><span class="pl-kos">.</span><span class="pl-c1">min</span><span class="pl-kos">.</span><span class="pl-en">js</span>:<span class="pl-c1">26</span><span class="pl-kos">(</span><span class="pl-s1">anonymous</span> <span class="pl-s1">function</span><span class="pl-kos">)</span> @ <span class="pl-s1">bootstrap</span><span class="pl-kos">.</span><span class="pl-en">ts</span>:<span class="pl-c1">37</span><span class="pl-kos">(</span><span class="pl-s1">anonymous</span> <span class="pl-s1">function</span><span class="pl-kos">)</span> @ <span class="pl-s1">bootstrap</span><span class="pl-kos">.</span><span class="pl-c1">ts</span>:<span class="pl-c1">37</span><span class="pl-v">U</span> @ <span class="pl-s1">system</span><span class="pl-kos">.</span><span class="pl-c1">src</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">4597</span><span class="pl-s1">c</span><span class="pl-kos">.</span><span class="pl-c1">execute</span> @ <span class="pl-s1">system</span><span class="pl-kos">.</span><span class="pl-c1">src</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">4597</span><span class="pl-s1">i</span> @ <span class="pl-s1">system</span><span class="pl-kos">.</span><span class="pl-c1">src</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">4597n</span> @ <span class="pl-s1">system</span><span class="pl-kos">.</span><span class="pl-c1">src</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">4597</span><span class="pl-s1">execute</span> @ <span class="pl-s1">system</span><span class="pl-kos">.</span><span class="pl-c1">src</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">4597</span><span class="pl-s1">y</span> @ <span class="pl-s1">system</span><span class="pl-kos">.</span><span class="pl-c1">src</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">4597</span><span class="pl-s1">w</span> @ <span class="pl-s1">system</span><span class="pl-kos">.</span><span class="pl-c1">src</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">4597</span><span class="pl-s1">p</span> @ <span class="pl-s1">system</span><span class="pl-kos">.</span><span class="pl-c1">src</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">4597</span><span class="pl-s1">h</span> @ <span class="pl-s1">system</span><span class="pl-kos">.</span><span class="pl-c1">src</span><span class="pl-kos">.</span><span class="pl-en">js</span>:<span class="pl-c1">4597</span><span class="pl-kos">(</span><span class="pl-s1">anonymous</span> <span class="pl-s1">function</span><span class="pl-kos">)</span> @ <span class="pl-s1">system</span><span class="pl-kos">.</span><span class="pl-c1">src</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">4597n</span><span class="pl-kos">.</span><span class="pl-c1">run</span> @ <span class="pl-s1">angular2</span><span class="pl-kos">.</span><span class="pl-c1">min</span><span class="pl-kos">.</span><span class="pl-en">js</span>:<span class="pl-c1">1</span><span class="pl-kos">(</span><span class="pl-s1">anonymous</span> <span class="pl-s1">function</span><span class="pl-kos">)</span> @ <span class="pl-s1">angular2</span><span class="pl-kos">.</span><span class="pl-c1">min</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">1</span><span class="pl-v">I</span> @ <span class="pl-s1">angular2</span><span class="pl-kos">.</span><span class="pl-c1">min</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">1</span><span class="pl-v">A</span> @ <span class="pl-s1">angular2</span><span class="pl-kos">.</span><span class="pl-c1">min</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">1</span><span class="pl-v">R</span> @ <span class="pl-s1">angular2</span><span class="pl-kos">.</span><span class="pl-c1">min</span><span class="pl-kos">.</span><span class="pl-en">js</span>:<span class="pl-c1">1</span><span class="pl-kos">(</span><span class="pl-s1">anonymous</span> <span class="pl-s1">function</span><span class="pl-kos">)</span> @ <span class="pl-s1">angular2</span><span class="pl-kos">.</span><span class="pl-c1">min</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">1n</span><span class="pl-kos">.</span><span class="pl-c1">run</span> @ <span class="pl-s1">angular2</span><span class="pl-kos">.</span><span class="pl-c1">min</span><span class="pl-kos">.</span><span class="pl-en">js</span>:<span class="pl-c1">1</span><span class="pl-kos">(</span><span class="pl-s1">anonymous</span> <span class="pl-s1">function</span><span class="pl-kos">)</span> @ <span class="pl-s1">angular2</span><span class="pl-kos">.</span><span class="pl-c1">min</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">1</span><span class="pl-s1">h</span> @ <span class="pl-s1">angular2</span><span class="pl-kos">.</span><span class="pl-c1">min</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">1</span><span class="pl-s1">h</span> @ <span class="pl-s1">core</span><span class="pl-kos">.</span><span class="pl-en">js</span>:<span class="pl-c1">3055</span><span class="pl-kos">(</span><span class="pl-s1">anonymous</span> <span class="pl-s1">function</span><span class="pl-kos">)</span> @ <span class="pl-s1">core</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">3066</span><span class="pl-s1">e</span> @ <span class="pl-s1">core</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">3310</span> <span class="pl-s1">core</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">3055</span> <span class="pl-v">Uncaught</span> <span class="pl-v">TypeError</span>: <span class="pl-v">Cannot</span> <span class="pl-s1">read</span> <span class="pl-s1">property</span> '<span class="pl-s1">getOptional</span>' <span class="pl-k">of</span> <span class="pl-c1">undefined</span> <span class="pl-v">Evaluating</span> <span class="pl-s1">http</span>:<span class="pl-c">//localhost:3000/app/bootstrap.js</span> <span class="pl-v">Error</span> <span class="pl-s1">loading</span> <span class="pl-s1">http</span>:<span class="pl-c">//localhost:3000/app/bootstrap.jsh @ core.js:3055(anonymous function) @ core.js:3066e @ core.js:3310</span></pre></div> <p dir="auto">Not sure why though. If I compile to ES5, it works perfectly fine.</p> <p dir="auto">Here is my <code class="notranslate">tsconfig.json</code> for reference:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;compilerOptions&quot;: { &quot;emitDecoratorMetadata&quot;: true, &quot;experimentalDecorators&quot;: true, &quot;module&quot;: &quot;commonjs&quot;, &quot;moduleResolution&quot;: &quot;node&quot;, &quot;noImplicitAny&quot;: false, &quot;sourceMap&quot;: true, &quot;target&quot;: &quot;es5&quot; } }"><pre class="notranslate"><span class="pl-kos">{</span> <span class="pl-s">"compilerOptions"</span>: <span class="pl-kos">{</span> <span class="pl-s">"emitDecoratorMetadata"</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-s">"experimentalDecorators"</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-s">"module"</span>: <span class="pl-s">"commonjs"</span><span class="pl-kos">,</span> <span class="pl-s">"moduleResolution"</span>: <span class="pl-s">"node"</span><span class="pl-kos">,</span> <span class="pl-s">"noImplicitAny"</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span> <span class="pl-s">"sourceMap"</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-s">"target"</span>: <span class="pl-s">"es5"</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div>
<p dir="auto">Is there a reason for not using <a href="https://github.com/zloirock/core-js">core-js</a>? From the <a href="http://kangax.github.io/compat-table/es6/#typescript" rel="nofollow">es6 compat table</a> core-js covers a lot more than <a href="http://kangax.github.io/compat-table/es6/#es6shim" rel="nofollow">es6-shim</a>.</p>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <p dir="auto">I've been using styled-jsx in some components and it worked well. Now I tried using it directly in a page like this:</p> <p dir="auto"><strong>product.js</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import React from 'react'; import Page from './page'; import HeadInclude from './headinc'; class ProductPage extends Page { render() { return ( &lt;div&gt; &lt;HeadInclude /&gt; &lt;h2&gt;bleh&lt;/h2&gt; &lt;style jsx&gt;{` h2 { color: blue; } `} &lt;/style&gt; &lt;/div&gt; ); } } export default ProductPage;"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-v">React</span> <span class="pl-k">from</span> <span class="pl-s">'react'</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-v">Page</span> <span class="pl-k">from</span> <span class="pl-s">'./page'</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-v">HeadInclude</span> <span class="pl-k">from</span> <span class="pl-s">'./headinc'</span><span class="pl-kos">;</span> <span class="pl-k">class</span> <span class="pl-v">ProductPage</span> <span class="pl-k">extends</span> <span class="pl-v">Page</span> <span class="pl-kos">{</span> <span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-kos">(</span> <span class="pl-c1">&lt;</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">HeadInclude</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">h2</span><span class="pl-c1">&gt;</span>bleh<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">h2</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">style</span> <span class="pl-c1">jsx</span><span class="pl-c1">&gt;</span><span class="pl-kos">{</span><span class="pl-s">`</span> <span class="pl-s"> h2 {</span> <span class="pl-s"> color: blue;</span> <span class="pl-s"> }</span> <span class="pl-s"> `</span><span class="pl-kos">}</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">style</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-v">ProductPage</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>page.js</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { Component } from 'react'; import Local from '../src/local'; class Page extends Component { static getInitialProps() { return { local: Local.de_DE, }; } } export default Page;"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-v">Component</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'react'</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-v">Local</span> <span class="pl-k">from</span> <span class="pl-s">'../src/local'</span><span class="pl-kos">;</span> <span class="pl-k">class</span> <span class="pl-v">Page</span> <span class="pl-k">extends</span> <span class="pl-v">Component</span> <span class="pl-kos">{</span> <span class="pl-k">static</span> <span class="pl-en">getInitialProps</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">local</span>: <span class="pl-v">Local</span><span class="pl-kos">.</span><span class="pl-c1">de_DE</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-v">Page</span><span class="pl-kos">;</span></pre></div> <p dir="auto">If I open <code class="notranslate">localhost:3000/product</code> I suddenly get this error:</p> <div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Error in /pages/product.js?entry Module build failed: TypeError: /pages/product.js?entry: Cannot read property 'start' of undefined at processCss (/node_modules/next/node_modules/styled-jsx/dist/_utils.js:447:49) at PluginPass.exit (/node_modules/next/node_modules/styled-jsx/dist/babel.js:232:51) at newFn (/node_modules/babel-traverse/lib/visitors.js:276:21) at NodePath._call (/node_modules/babel-traverse/lib/path/context.js:76:18) at NodePath.call (/node_modules/babel-traverse/lib/path/context.js:48:17) at NodePath.visit (/node_modules/babel-traverse/lib/path/context.js:117:8) at TraversalContext.visitQueue (/node_modules/babel-traverse/lib/context.js:150:16) at TraversalContext.visitMultiple (/node_modules/babel-traverse/lib/context.js:103:17) at TraversalContext.visit (/node_modules/babel-traverse/lib/context.js:190:19) at Function.traverse.node (/node_modules/babel-traverse/lib/index.js:114:17)"><pre class="notranslate"><span class="pl-c1">Error in /pages/product.js?entry</span> <span class="pl-c1">Module build failed: TypeError: /pages/product.js?entry: Cannot read property 'start' of undefined</span> <span class="pl-c1"> at processCss (/node_modules/next/node_modules/styled-jsx/dist/_utils.js:447:49)</span> <span class="pl-c1"> at PluginPass.exit (/node_modules/next/node_modules/styled-jsx/dist/babel.js:232:51)</span> <span class="pl-c1"> at newFn (/node_modules/babel-traverse/lib/visitors.js:276:21)</span> <span class="pl-c1"> at NodePath._call (/node_modules/babel-traverse/lib/path/context.js:76:18)</span> <span class="pl-c1"> at NodePath.call (/node_modules/babel-traverse/lib/path/context.js:48:17)</span> <span class="pl-c1"> at NodePath.visit (/node_modules/babel-traverse/lib/path/context.js:117:8)</span> <span class="pl-c1"> at TraversalContext.visitQueue (/node_modules/babel-traverse/lib/context.js:150:16)</span> <span class="pl-c1"> at TraversalContext.visitMultiple (/node_modules/babel-traverse/lib/context.js:103:17)</span> <span class="pl-c1"> at TraversalContext.visit (/node_modules/babel-traverse/lib/context.js:190:19)</span> <span class="pl-c1"> at Function.traverse.node (/node_modules/babel-traverse/lib/index.js:114:17)</span></pre></div> <p dir="auto">What's wrong? Everything else was working perfectly fine until I added <code class="notranslate">&lt;style jsx&gt;</code>. Also, I noticed that if I remove "jsx" so it only reads <code class="notranslate">&lt;style&gt;</code> it works as well but styles aren't scoped then. From what I understand there is an issue with babel but I don't quite understand what?</p> <p dir="auto">I'm using:</p> <ul dir="auto"> <li>npm 5.3.0</li> <li>node 8.2.1</li> <li>next 4.1.4</li> <li>react 16.1</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> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">I'd expect a way to configure <code class="notranslate">babel-preset-env</code> to support a narrower range of browsers, and thus use more native ES6 features. I'd like to rely on native browser implementations of classes, generators, and other commonly-supported-in-edge features. The babel-preset-env project allows for this configurability, but its encapsulation within <code class="notranslate">next/babel</code> prevents users from configuring.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">There is no route to adjusting the amount of transpilation, so ES6 code is compiled down to the lowest-common-denominator always.</p> <h2 dir="auto">Context</h2> <p dir="auto">My product uses generators - as part of the product - so that's one guarantee that I can rely on, and accordingly use generators in the code. Right now the over-aggressive transpilation means, among other things, that <a href="http://incaseofstairs.com/six-speed/" rel="nofollow">performance is decreased on features like for of</a>, and sourcemap debugging is less effective.</p> <p dir="auto">I see that there <a href="https://github.com/zeit/next.js/pull/1808" data-hovercard-type="pull_request" data-hovercard-url="/vercel/next.js/pull/1808/hovercard">was already a PR suggesting this behavior</a>, but it was closed by its author. There was also <a href="https://github.com/zeit/next.js/issues/2021" data-hovercard-type="issue" data-hovercard-url="/vercel/next.js/issues/2021/hovercard">a feature request</a>, also closed. I'm more than happy to reimplement / update that PR and push this to completion, because it's important for my usecase.</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>3.2.2</td> </tr> <tr> <td>node</td> <td>8.4.0</td> </tr> <tr> <td>OS</td> <td>macOS</td> </tr> <tr> <td>browser</td> <td>Google Chrome</td> </tr> </tbody> </table>
0
<p dir="auto">I'm finding a very odd issue that I was able to replicate on multiple machines.</p> <p dir="auto">I have an html+js app that I wrapped around with Electron. I am having problem with the MacOS distribution.<br> There is one HTML text field that won't let me paste text into it. This bug only happens after I follow the procedure to distribute the app (copy my app/ folder into Electron.app).</p> <p dir="auto">In all the other instances, I can copy or paste just fine :</p> <ul dir="auto"> <li>when I run it via npm start (mac and win)</li> <li>when I run it by doubleclicking electron.app and dragging app/ over it</li> <li>on windows</li> </ul> <p dir="auto">I wonder, what can be the difference there? How can I debug something like this?</p>
<p dir="auto">I’ve run into an <a href="https://github.com/coolwanglu/neovim.as/issues/7" data-hovercard-type="issue" data-hovercard-url="/coolwanglu/neovim-e/issues/7/hovercard">odd issue testing the <em>Neovim.AS</em> Atom Shell app</a>, where I cannot get its window to accept keyboard input on OS X 10.10.2 when I start it via the <em>atom-shell</em> CLI; instead, all keyboard input goes to the last active application – in the case of the screenshot, the shell in which <em>Neovim.AS</em> was started:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/80906/6232019/c3640e22-b6c9-11e4-87c2-ba6f09075326.png"><img src="https://cloud.githubusercontent.com/assets/80906/6232019/c3640e22-b6c9-11e4-87c2-ba6f09075326.png" alt="neovim" style="max-width: 100%;"></a></p> <p dir="auto">I also can’t switch to the window with <code class="notranslate">Cmd-Tab</code>, its OS X menu does not display, and the only way to quit it is issuing <code class="notranslate">^C</code> in the originating shell. I have reproduced the issue with <a href="https://github.com/pamods/pamm-atom">another, more straightforward Atom Shell app, <em>pamm-atom</em></a>, incidentally showing that the apps are responding to mouse input (Vim not being a really good object to judge that :)).</p> <p dir="auto">If I start <em>pamm-atom</em> via the GUI, none of the above occurs (not testable with <em>Neovim.AS</em> due to the Grunt requirement and lack of <code class="notranslate">app</code> folder).</p> <p dir="auto"><strong>Configuration:</strong></p> <ul dir="auto"> <li>OS X 10.10.2 German locale, German keyboard input. I’ve tried disabling my input hacks (specifically, <a href="https://pqrs.org/osx/karabiner/seil.html.en" rel="nofollow">Seil</a> and <a href="https://pqrs.org/osx/karabiner/index.html.en" rel="nofollow">Karabiner</a>) and switching to a US keyboard map, but none of that helped.</li> <li><em>atom-shell</em> version 0.21.2 64 bit without symbols, downloaded from the Releases pages. The Atom Shell app runs without a hitch by itself, as does <em>Atom</em> the editor (which accepts my keyboard input like a champ, I hasten to add).</li> <li>OS X stock Terminal.app running the system <em>bash</em> (<code class="notranslate">GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin14)</code>). The above screenshot shows a version running with <em>TotalTerminal</em> injected, but the same issue occurs within standard terminal windows [EDIT: and in iTerm 2].</li> </ul>
1
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=kdonald" rel="nofollow">Keith Donald</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-4747?redirect=false" rel="nofollow">SPR-4747</a></strong> and commented</p> <p dir="auto">Web Flow 2 introduces the following prefixes for specifying a location to redirect to, either via the flow itself using an externalRedirect: or a managing FlowHandler, which is a Spring MVC integration class. It should be possible to get the same level of control in Spring MVC, and we should try to make the semantics as consistent as possible between MVC and Web Flow:</p> <p dir="auto">Web Flow 2 location redirect rules:</p> <ul dir="auto"> <li>The following prefixes are supported for qualifying the returned location string:</li> <li></li> </ul> <p dir="auto">&lt;ul&gt;<br> *</p> <p dir="auto">&lt;li&gt;servletRelative: - the location is relative to the current servlet&lt;/li&gt;<br> *</p> <p dir="auto">&lt;li&gt;contextRelative: - the location is relative to the current web application&lt;/li&gt;<br> *</p> <p dir="auto">&lt;li&gt;serverRelative: - the location is relative to the server root&lt;/li&gt;<br> *</p> <p dir="auto">&lt;li&gt;url: - the location is a fully qualified URL to an external resource&lt;/li&gt;<br> *</p> <p dir="auto">&lt;/ul&gt;</p> <ul dir="auto"> <li>Also, if the returned location no prefix, for example "/hotels/index", the location is treated as relative to the</li> <li>current servlet by default.</li> <li></li> </ul> <p dir="auto">&lt;p&gt;</p> <ul dir="auto"> <li>For servlet-relative, context-relative, and server-relative URLs, a leading slash is optional.</li> </ul> <p dir="auto">Within an XML flow, the externalRedirect directive to request a redirect to a location would look like this:</p> <p dir="auto">externalRedirect:/servlet-relative-path<br> externalRedirect:servletRelative:/path<br> externalRedirect:contextRelative:/path<br> externalRedirect:serverRelative:/path<br> externalRedirect:url:<a href="http://whatever" rel="nofollow">http://whatever</a></p> <hr> <p dir="auto"><strong>Affects:</strong> 2.5.3</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="398105355" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11888" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11888/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11888">#11888</a> Add a shortcut for specifying the application context root in logical view name in a Controller. (<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="398071674" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/7380" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/7380/hovercard" href="https://github.com/spring-projects/spring-framework/issues/7380">#7380</a> RedirectView with more flexible URL-building</li> </ul> <p dir="auto">4 votes, 6 watchers</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=robertm" rel="nofollow">Robert Macaulay</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-3398?redirect=false" rel="nofollow">SPR-3398</a></strong> and commented</p> <p dir="auto">If you make a call to preventTransaction() in a subclass of AbstractTransactionalSpringContextTests , its onSetup method wont call onSetUpBeforeTransaction or onSetUpInTransaction, leaving your testcase without a setup method(since all the others are overridden final).</p> <p dir="auto">If you use the annotation NoTransaction or call preventTransaction in constructor, the same behavior will occur. The onSetup() method in the AbstractTransactionalSpringContextTests will notice that there is no transaction, and will not run any setup method.</p> <p dir="auto">A fix would be to insert a call to onSetupBeforeTransaction in onSetup() before the two tests of transactionManager or transactionDefinition, which would give you a setup method to call.</p> <hr> <p dir="auto"><strong>Affects:</strong> 2.0.4</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="398068137" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/6964" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/6964/hovercard" href="https://github.com/spring-projects/spring-framework/issues/6964">#6964</a> Provide non-transactional onSetup* hook in AbstractTransactionalSpringContextTests (<em><strong>"duplicates"</strong></em>)</li> </ul>
0
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Feature Idea</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">azure_rm_common.py</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">The current definition of the azure_rm common module utils doesn't allow overriding the various built-in endpoints (auth, table/blob storage, service bus, etc). This will be necessary to allow connection to other Azure instances (eg, AzureChinaCloud, private Azure Stack instances).</p> <p dir="auto">The new Python SDK seems to support overriding the endpoints via host_base, so we should add the override capability to the env credential mapping and common module utility code.</p> <p dir="auto">List of AzureChinaCloud endpoint URLs is at: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="57563350" data-permission-text="Title is private" data-url="https://github.com/Azure/azure-sdk-for-python/issues/284" data-hovercard-type="issue" data-hovercard-url="/Azure/azure-sdk-for-python/issues/284/hovercard" href="https://github.com/Azure/azure-sdk-for-python/issues/284">Azure/azure-sdk-for-python#284</a></p>
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">lineinfile in combination with_items</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.3.2.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides python version = 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609]"><pre class="notranslate"><code class="notranslate">ansible 2.3.2.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides python version = 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609] </code></pre></div> <h5 dir="auto">SUMMARY</h5> <p dir="auto">Ansible does not insert line if the identical value has been used before in loop, but only if the value of line is different.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="--- - hosts: localhost tasks: - name: create test file copy: dest: /tmp/example.txt content: | 1 2 3 4 - name: broken lineinfile lineinfile: path: /tmp/example.txt insertafter: &quot;{{ item.regex }}&quot; line: &quot;{{ item.replace }}&quot; unsafe_writes: yes with_items: - { regex: '1', replace: 'bar' } - { regex: '2', replace: 'bar' } - { regex: '3', replace: 'br' } - { regex: '4', replace: 'bar' } "><pre class="notranslate">--- - <span class="pl-ent">hosts</span>: <span class="pl-s">localhost</span> <span class="pl-ent">tasks</span>: - <span class="pl-ent">name</span>: <span class="pl-s">create test file</span> <span class="pl-ent">copy</span>: <span class="pl-ent">dest</span>: <span class="pl-s">/tmp/example.txt</span> <span class="pl-ent">content</span>: <span class="pl-s">|</span> <span class="pl-s"> 1</span> <span class="pl-s"> </span> <span class="pl-s"> 2</span> <span class="pl-s"> </span> <span class="pl-s"> 3</span> <span class="pl-s"> </span> <span class="pl-s"> 4</span> <span class="pl-s"> </span> <span class="pl-s"></span> <span class="pl-s"></span> - <span class="pl-ent">name</span>: <span class="pl-s">broken lineinfile</span> <span class="pl-ent">lineinfile</span>: <span class="pl-ent">path</span>: <span class="pl-s">/tmp/example.txt</span> <span class="pl-ent">insertafter</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ item.regex }}<span class="pl-pds">"</span></span> <span class="pl-ent">line</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ item.replace }}<span class="pl-pds">"</span></span> <span class="pl-ent">unsafe_writes</span>: <span class="pl-s">yes</span> <span class="pl-ent">with_items</span>: - <span class="pl-s">{ regex: '1', replace: 'bar' }</span> - <span class="pl-s">{ regex: '2', replace: 'bar' }</span> - <span class="pl-s">{ regex: '3', replace: 'br' }</span> - <span class="pl-s">{ regex: '4', replace: 'bar' }</span> </pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="1 bar 2 bar 3 br 4 bar"><pre class="notranslate"><code class="notranslate">1 bar 2 bar 3 br 4 bar </code></pre></div> <h5 dir="auto">ACTUAL RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="1 bar 2 3 br 4"><pre class="notranslate"><code class="notranslate">1 bar 2 3 br 4 </code></pre></div>
0
<p dir="auto">From <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="53765208" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/3318" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/3318/hovercard" href="https://github.com/kubernetes/kubernetes/pull/3318">#3318</a>:</p> <blockquote> <p dir="auto">In the short term a pre creation hook can convert volume object characteristics (I am a persistent volume that is a GCE disk, therefore I require one unit of "storage" attach) and move that into the container resources as a summation, which the scheduler would look at as an arbitrary resource. The binder can do this once we have finalization mechanisms</p> </blockquote> <p dir="auto">Above is from <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/smarterclayton/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/smarterclayton">@smarterclayton</a>. Discussed something similar with <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/thockin/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/thockin">@thockin</a> and <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bgrant0607/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bgrant0607">@bgrant0607</a> a while back.</p> <p dir="auto">I understand what we want to do, but lack the technical design to make it happen.</p> <p dir="auto">How does a pod/volume communicate what kind of "slot" is consumes? Is this all contained in the scheduler (it is counting all resources consumed and placed)? Where do the rules go (e.g, 16 GCE disks per node)?</p> <p dir="auto">Feedback is requested, please.</p>
<p dir="auto">Currently all flags are defined in the binary which makes a big mess. We need some way to deal with duplicate names.</p> <p dir="auto">cc @kubernetes/goog-control-plane</p>
0
<p dir="auto">Hi! I can install jax but not jaxlib on debian stretch with python3.9.</p> <p dir="auto">What version do I need to get this to work? Is it even possible?</p> <p dir="auto">Thanks for any help!!</p> <p dir="auto">Dockerfile:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="RUN echo &quot;Installing dependencies...&quot; &amp;&amp; \ apt-get update &amp;&amp; apt-get install -y \ build-essential \ git WORKDIR /usr/src/app COPY requirements.txt . RUN python3 -m pip install --upgrade pip RUN python3 -m pip install --upgrade Pillow RUN pip3 install -r requirements.txt RUN pip3 install --upgrade &quot;jax[cuda]&quot; -f https://storage.googleapis.com/jax-releases/jax_releases.html COPY . . CMD sleep infinity"><pre class="notranslate"><code class="notranslate">RUN echo "Installing dependencies..." &amp;&amp; \ apt-get update &amp;&amp; apt-get install -y \ build-essential \ git WORKDIR /usr/src/app COPY requirements.txt . RUN python3 -m pip install --upgrade pip RUN python3 -m pip install --upgrade Pillow RUN pip3 install -r requirements.txt RUN pip3 install --upgrade "jax[cuda]" -f https://storage.googleapis.com/jax-releases/jax_releases.html COPY . . CMD sleep infinity </code></pre></div> <p dir="auto">I get this error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR: Could not find a version that satisfies the requirement jaxlib (from versions: none) ERROR: No matching distribution found for jaxlib"><pre class="notranslate"><code class="notranslate">ERROR: Could not find a version that satisfies the requirement jaxlib (from versions: none) ERROR: No matching distribution found for jaxlib </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="The above exception was the direct cause of the following exception: Traceback (most recent call last): File &quot;/usr/src/app/app.py&quot;, line 8, in &lt;module&gt; import jax File &quot;/usr/local/lib/python3.9/site-packages/jax/__init__.py&quot;, line 37, in &lt;module&gt; from . import config as _config_module File &quot;/usr/local/lib/python3.9/site-packages/jax/config.py&quot;, line 18, in &lt;module&gt; from jax._src.config import config File &quot;/usr/local/lib/python3.9/site-packages/jax/_src/config.py&quot;, line 27, in &lt;module&gt; from jax._src import lib File &quot;/usr/local/lib/python3.9/site-packages/jax/_src/lib/__init__.py&quot;, line 39, in &lt;module&gt; raise ModuleNotFoundError( ModuleNotFoundError: jax requires jaxlib to be installed. See https://github.com/google/jax#installation for installation instructions."><pre class="notranslate"><code class="notranslate">The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/src/app/app.py", line 8, in &lt;module&gt; import jax File "/usr/local/lib/python3.9/site-packages/jax/__init__.py", line 37, in &lt;module&gt; from . import config as _config_module File "/usr/local/lib/python3.9/site-packages/jax/config.py", line 18, in &lt;module&gt; from jax._src.config import config File "/usr/local/lib/python3.9/site-packages/jax/_src/config.py", line 27, in &lt;module&gt; from jax._src import lib File "/usr/local/lib/python3.9/site-packages/jax/_src/lib/__init__.py", line 39, in &lt;module&gt; raise ModuleNotFoundError( ModuleNotFoundError: jax requires jaxlib to be installed. See https://github.com/google/jax#installation for installation instructions. </code></pre></div>
<p dir="auto">Potentially related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="916640295" data-permission-text="Title is private" data-url="https://github.com/google/jax/issues/6932" data-hovercard-type="issue" data-hovercard-url="/google/jax/issues/6932/hovercard" href="https://github.com/google/jax/issues/6932">#6932</a> or <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="927516918" data-permission-text="Title is private" data-url="https://github.com/google/jax/issues/7052" data-hovercard-type="issue" data-hovercard-url="/google/jax/issues/7052/hovercard" href="https://github.com/google/jax/issues/7052">#7052</a>.</p> <p dir="auto">I am using a heterogeneous cluster with various different compute options. I got Jax and Flax installed fine on the CPU system. Then I tried using a GPU node (specifically dual socket Cavium ThunderX2 99xx 32-core processors with two NVIDIA Tesla V100 GPUs), but am unable to install jaxlib:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ pip install --upgrade jax jaxlib==0.1.68+cuda111 -f https://storage.googleapis.com/jax-releases/jax_releases.html Looking in links: https://storage.googleapis.com/jax-releases/jax_releases.html Requirement already satisfied: jax in /home/southworth/.conda/envs/jax_arch/lib/python3.7/site-packages (0.2.16) ERROR: Could not find a version that satisfies the requirement jaxlib==0.1.68+cuda111 (from versions: none) ERROR: No matching distribution found for jaxlib==0.1.68+cuda111"><pre class="notranslate"><code class="notranslate">$ pip install --upgrade jax jaxlib==0.1.68+cuda111 -f https://storage.googleapis.com/jax-releases/jax_releases.html Looking in links: https://storage.googleapis.com/jax-releases/jax_releases.html Requirement already satisfied: jax in /home/southworth/.conda/envs/jax_arch/lib/python3.7/site-packages (0.2.16) ERROR: Could not find a version that satisfies the requirement jaxlib==0.1.68+cuda111 (from versions: none) ERROR: No matching distribution found for jaxlib==0.1.68+cuda111 </code></pre></div> <p dir="auto">or even</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pip install jaxlib ERROR: Could not find a version that satisfies the requirement jaxlib (from versions: none) ERROR: No matching distribution found for jaxlib"><pre class="notranslate"><code class="notranslate">pip install jaxlib ERROR: Could not find a version that satisfies the requirement jaxlib (from versions: none) ERROR: No matching distribution found for jaxlib </code></pre></div> <p dir="auto">Below is my pip version, which is up to date. Pip also installs other libraries fine (numpy, scipy, etc.)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ pip --version pip 21.1.2 from /home/southworth/.conda/envs/jax_arch/lib/python3.7/site-packages/pip (python 3.7)"><pre class="notranslate"><code class="notranslate">$ pip --version pip 21.1.2 from /home/southworth/.conda/envs/jax_arch/lib/python3.7/site-packages/pip (python 3.7) </code></pre></div>
1
<h3 dir="auto">Bug report</h3> <p dir="auto">Using FuncAnimation with a generator causes a crash when the generator raises a StopIteration.</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 import numpy as np from matplotlib.animation import FuncAnimation fig, ax = plt.subplots() plt.plot([1,2,3],[2,4,3]) def update(frame): print(frame) return [] animation = FuncAnimation(fig, update, frames=iter(range(10)), blit=True, interval=100) 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-k">from</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">animation</span> <span class="pl-k">import</span> <span class="pl-v">FuncAnimation</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-s1">plt</span>.<span class="pl-en">plot</span>([<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>],[<span class="pl-c1">2</span>,<span class="pl-c1">4</span>,<span class="pl-c1">3</span>]) <span class="pl-k">def</span> <span class="pl-en">update</span>(<span class="pl-s1">frame</span>): <span class="pl-en">print</span>(<span class="pl-s1">frame</span>) <span class="pl-k">return</span> [] <span class="pl-s1">animation</span> <span class="pl-c1">=</span> <span class="pl-v">FuncAnimation</span>(<span class="pl-s1">fig</span>, <span class="pl-s1">update</span>, <span class="pl-s1">frames</span><span class="pl-c1">=</span><span class="pl-en">iter</span>(<span class="pl-en">range</span>(<span class="pl-c1">10</span>)), <span class="pl-s1">blit</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">interval</span><span class="pl-c1">=</span><span class="pl-c1">100</span>) <span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div> <p dir="auto">Output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ python animation_crash.py 0 1 2 3 4 5 6 7 8 9 Traceback (most recent call last): File &quot;/usr/lib/python3.7/site-packages/matplotlib/backend_bases.py&quot;, line 1238, in _on_timer ret = func(*args, **kwargs) File &quot;/usr/lib/python3.7/site-packages/matplotlib/animation.py&quot;, line 1462, in _step self._init_draw() File &quot;/usr/lib/python3.7/site-packages/matplotlib/animation.py&quot;, line 1740, in _init_draw self._draw_frame(next(self.new_frame_seq())) StopIteration Abgebrochen (Speicherabzug geschrieben)"><pre class="notranslate"><code class="notranslate">$ python animation_crash.py 0 1 2 3 4 5 6 7 8 9 Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/matplotlib/backend_bases.py", line 1238, in _on_timer ret = func(*args, **kwargs) File "/usr/lib/python3.7/site-packages/matplotlib/animation.py", line 1462, in _step self._init_draw() File "/usr/lib/python3.7/site-packages/matplotlib/animation.py", line 1740, in _init_draw self._draw_frame(next(self.new_frame_seq())) StopIteration Abgebrochen (Speicherabzug geschrieben) </code></pre></div> <p dir="auto"><strong>Matplotlib version</strong><br> Operating System: Arch linux, 64-bit<br> Matplotlib version: 3.0.3-1 (using pacman)<br> Matplotlib backend: Qt5Agg</p> <p dir="auto">Coredump:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[Current thread is 1 (Thread 0x7f2d24492600 (LWP 25813))] (gdb) info stack #0 0x00007f2d249d0d7f in raise () at /usr/lib/libc.so.6 #1 0x00007f2d249bb672 in abort () at /usr/lib/libc.so.6 #2 0x00007f2d1f79a7fc in () at /usr/lib/libQt5Core.so.5 #3 0x00007f2d1fd2b048 in () at /usr/lib/python3.7/site-packages/PyQt5/QtCore.so #4 0x00007f2d1fe8b216 in () at /usr/lib/python3.7/site-packages/PyQt5/QtCore.so #5 0x00007f2d1fe8bcd0 in () at /usr/lib/python3.7/site-packages/PyQt5/QtCore.so #6 0x00007f2d1f9bb94d in QMetaObject::activate(QObject*, int, int, void**) () at /usr/lib/libQt5Core.so.5 #7 0x00007f2d1f9c7ab8 in QTimer::timeout(QTimer::QPrivateSignal) () at /usr/lib/libQt5Core.so.5 #8 0x00007f2d1fe34c9c in () at /usr/lib/python3.7/site-packages/PyQt5/QtCore.so #9 0x00007f2d1f9bc10b in QObject::event(QEvent*) () at /usr/lib/libQt5Core.so.5 #10 0x00007f2d1fe34b4c in () at /usr/lib/python3.7/site-packages/PyQt5/QtCore.so #11 0x00007f2d1ba68e24 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5 #12 0x00007f2d1ba706e1 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5 #13 0x00007f2d1c114b3f in () at /usr/lib/python3.7/site-packages/PyQt5/QtWidgets.so #14 0x00007f2d1f990e99 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5 #15 0x00007f2d1f9e6095 in QTimerInfoList::activateTimers() () at /usr/lib/libQt5Core.so.5 #16 0x00007f2d1f9e6922 in () at /usr/lib/libQt5Core.so.5 #17 0x00007f2d20dd3a2f in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0 #18 0x00007f2d20dd55e9 in () at /usr/lib/libglib-2.0.so.0 #19 0x00007f2d20dd562e in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0 #20 0x00007f2d1f9e6ce9 in QEventDispatcherGlib::processEvents(QFlags&lt;QEventLoop::ProcessEventsFlag&gt;) () at /usr/lib/libQt5Core.so.5 #21 0x00007f2d1f98fb2c in QEventLoop::exec(QFlags&lt;QEventLoop::ProcessEventsFlag&gt;) () at /usr/lib/libQt5Core.so.5 #22 0x00007f2d1f997e36 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5 #23 0x00007f2d1c1135cd in () at /usr/lib/python3.7/site-packages/PyQt5/QtWidgets.so #24 0x00007f2d24775a78 in _PyMethodDef_RawFastCallKeywords () at /usr/lib/libpython3.7m.so.1.0 #25 0x00007f2d24775d11 in _PyCFunction_FastCallKeywords () at /usr/lib/libpython3.7m.so.1.0 #26 0x00007f2d247ec8eb in _PyEval_EvalFrameDefault () at /usr/lib/libpython3.7m.so.1.0 #27 0x00007f2d247752eb in _PyFunction_FastCallKeywords () at /usr/lib/libpython3.7m.so.1.0 #28 0x00007f2d247ec2b3 in _PyEval_EvalFrameDefault () at /usr/lib/libpython3.7m.so.1.0 --Type &lt;RET&gt; for more, q to quit, c to continue without paging-- #29 0x00007f2d2472eb99 in _PyEval_EvalCodeWithName () at /usr/lib/libpython3.7m.so.1.0 #30 0x00007f2d2472fdec in _PyFunction_FastCallDict () at /usr/lib/libpython3.7m.so.1.0 #31 0x00007f2d2473f908 in _PyObject_Call_Prepend () at /usr/lib/libpython3.7m.so.1.0 #32 0x00007f2d2473033b in PyObject_Call () at /usr/lib/libpython3.7m.so.1.0 #33 0x00007f2d247e943c in _PyEval_EvalFrameDefault () at /usr/lib/libpython3.7m.so.1.0 #34 0x00007f2d2472eb99 in _PyEval_EvalCodeWithName () at /usr/lib/libpython3.7m.so.1.0 #35 0x00007f2d24775492 in _PyFunction_FastCallKeywords () at /usr/lib/libpython3.7m.so.1.0 #36 0x00007f2d247ec2b3 in _PyEval_EvalFrameDefault () at /usr/lib/libpython3.7m.so.1.0 #37 0x00007f2d2472eb99 in _PyEval_EvalCodeWithName () at /usr/lib/libpython3.7m.so.1.0 #38 0x00007f2d2472fab4 in PyEval_EvalCodeEx () at /usr/lib/libpython3.7m.so.1.0 #39 0x00007f2d2472fadc in PyEval_EvalCode () at /usr/lib/libpython3.7m.so.1.0 #40 0x00007f2d24859c94 in () at /usr/lib/libpython3.7m.so.1.0 #41 0x00007f2d2485b8be in PyRun_FileExFlags () at /usr/lib/libpython3.7m.so.1.0 #42 0x00007f2d2485cc75 in PyRun_SimpleFileExFlags () at /usr/lib/libpython3.7m.so.1.0 #43 0x00007f2d2485eeb7 in () at /usr/lib/libpython3.7m.so.1.0 #44 0x00007f2d2485f0fc in _Py_UnixMain () at /usr/lib/libpython3.7m.so.1.0 #45 0x00007f2d249bd223 in __libc_start_main () at /usr/lib/libc.so.6 #46 0x0000561e1056f05e in _start ()"><pre class="notranslate"><code class="notranslate">[Current thread is 1 (Thread 0x7f2d24492600 (LWP 25813))] (gdb) info stack #0 0x00007f2d249d0d7f in raise () at /usr/lib/libc.so.6 #1 0x00007f2d249bb672 in abort () at /usr/lib/libc.so.6 #2 0x00007f2d1f79a7fc in () at /usr/lib/libQt5Core.so.5 #3 0x00007f2d1fd2b048 in () at /usr/lib/python3.7/site-packages/PyQt5/QtCore.so #4 0x00007f2d1fe8b216 in () at /usr/lib/python3.7/site-packages/PyQt5/QtCore.so #5 0x00007f2d1fe8bcd0 in () at /usr/lib/python3.7/site-packages/PyQt5/QtCore.so #6 0x00007f2d1f9bb94d in QMetaObject::activate(QObject*, int, int, void**) () at /usr/lib/libQt5Core.so.5 #7 0x00007f2d1f9c7ab8 in QTimer::timeout(QTimer::QPrivateSignal) () at /usr/lib/libQt5Core.so.5 #8 0x00007f2d1fe34c9c in () at /usr/lib/python3.7/site-packages/PyQt5/QtCore.so #9 0x00007f2d1f9bc10b in QObject::event(QEvent*) () at /usr/lib/libQt5Core.so.5 #10 0x00007f2d1fe34b4c in () at /usr/lib/python3.7/site-packages/PyQt5/QtCore.so #11 0x00007f2d1ba68e24 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5 #12 0x00007f2d1ba706e1 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5 #13 0x00007f2d1c114b3f in () at /usr/lib/python3.7/site-packages/PyQt5/QtWidgets.so #14 0x00007f2d1f990e99 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5 #15 0x00007f2d1f9e6095 in QTimerInfoList::activateTimers() () at /usr/lib/libQt5Core.so.5 #16 0x00007f2d1f9e6922 in () at /usr/lib/libQt5Core.so.5 #17 0x00007f2d20dd3a2f in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0 #18 0x00007f2d20dd55e9 in () at /usr/lib/libglib-2.0.so.0 #19 0x00007f2d20dd562e in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0 #20 0x00007f2d1f9e6ce9 in QEventDispatcherGlib::processEvents(QFlags&lt;QEventLoop::ProcessEventsFlag&gt;) () at /usr/lib/libQt5Core.so.5 #21 0x00007f2d1f98fb2c in QEventLoop::exec(QFlags&lt;QEventLoop::ProcessEventsFlag&gt;) () at /usr/lib/libQt5Core.so.5 #22 0x00007f2d1f997e36 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5 #23 0x00007f2d1c1135cd in () at /usr/lib/python3.7/site-packages/PyQt5/QtWidgets.so #24 0x00007f2d24775a78 in _PyMethodDef_RawFastCallKeywords () at /usr/lib/libpython3.7m.so.1.0 #25 0x00007f2d24775d11 in _PyCFunction_FastCallKeywords () at /usr/lib/libpython3.7m.so.1.0 #26 0x00007f2d247ec8eb in _PyEval_EvalFrameDefault () at /usr/lib/libpython3.7m.so.1.0 #27 0x00007f2d247752eb in _PyFunction_FastCallKeywords () at /usr/lib/libpython3.7m.so.1.0 #28 0x00007f2d247ec2b3 in _PyEval_EvalFrameDefault () at /usr/lib/libpython3.7m.so.1.0 --Type &lt;RET&gt; for more, q to quit, c to continue without paging-- #29 0x00007f2d2472eb99 in _PyEval_EvalCodeWithName () at /usr/lib/libpython3.7m.so.1.0 #30 0x00007f2d2472fdec in _PyFunction_FastCallDict () at /usr/lib/libpython3.7m.so.1.0 #31 0x00007f2d2473f908 in _PyObject_Call_Prepend () at /usr/lib/libpython3.7m.so.1.0 #32 0x00007f2d2473033b in PyObject_Call () at /usr/lib/libpython3.7m.so.1.0 #33 0x00007f2d247e943c in _PyEval_EvalFrameDefault () at /usr/lib/libpython3.7m.so.1.0 #34 0x00007f2d2472eb99 in _PyEval_EvalCodeWithName () at /usr/lib/libpython3.7m.so.1.0 #35 0x00007f2d24775492 in _PyFunction_FastCallKeywords () at /usr/lib/libpython3.7m.so.1.0 #36 0x00007f2d247ec2b3 in _PyEval_EvalFrameDefault () at /usr/lib/libpython3.7m.so.1.0 #37 0x00007f2d2472eb99 in _PyEval_EvalCodeWithName () at /usr/lib/libpython3.7m.so.1.0 #38 0x00007f2d2472fab4 in PyEval_EvalCodeEx () at /usr/lib/libpython3.7m.so.1.0 #39 0x00007f2d2472fadc in PyEval_EvalCode () at /usr/lib/libpython3.7m.so.1.0 #40 0x00007f2d24859c94 in () at /usr/lib/libpython3.7m.so.1.0 #41 0x00007f2d2485b8be in PyRun_FileExFlags () at /usr/lib/libpython3.7m.so.1.0 #42 0x00007f2d2485cc75 in PyRun_SimpleFileExFlags () at /usr/lib/libpython3.7m.so.1.0 #43 0x00007f2d2485eeb7 in () at /usr/lib/libpython3.7m.so.1.0 #44 0x00007f2d2485f0fc in _Py_UnixMain () at /usr/lib/libpython3.7m.so.1.0 #45 0x00007f2d249bd223 in __libc_start_main () at /usr/lib/libc.so.6 #46 0x0000561e1056f05e in _start () </code></pre></div>
<p dir="auto">Using the widget "Cursor" with "use but=True" occurs the occurrence of duplicate crosshairs.<br> When "useblit=False" work correct."Cursor" is activated in the event of a button (PyQt5)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="self.btnQuit.clicked.connect(self.cur) ****************************************** def cur(self): self.cursor = Cursor(self.ax, useblit=True, color='magenta', linewidth=1)"><pre class="notranslate"><code class="notranslate">self.btnQuit.clicked.connect(self.cur) ****************************************** def cur(self): self.cursor = Cursor(self.ax, useblit=True, color='magenta', linewidth=1) </code></pre></div> <p dir="auto">I place GIF animation as it [happens.<br> <a href="https://ibb.co/F5Hhc46" rel="nofollow">https://ibb.co/F5Hhc46</a></p>
0
<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 <a href="https://www.github.com/electron/electron/issues">issue tracker</a> for a feature request that matches the one I want to file, without success.</li> </ul> <h3 dir="auto">Problem Description</h3> <p dir="auto">the only way to get localstorage is to invoke executeJavascript() in webContent , this is not useful to get localstorage from partitions which are lot.</p> <h3 dir="auto">Proposed Solution</h3> <p dir="auto">add localStorage property to session like cookie.</p> <h3 dir="auto">Alternatives Considered</h3> <p dir="auto">add fromPartition() method to webConetent.</p> <h3 dir="auto">Additional Information</h3> <p dir="auto">is there anyway to export localstorage data from persist partition webview</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 <a href="https://www.github.com/electron/electron/issues">issue tracker</a> for a feature request that matches the one I want to file, without success.</li> </ul> <h3 dir="auto">Problem Description</h3> <p dir="auto">session object has cookie object, but does not have localstorage object .<br> If i want to access localstorage , i have to use webcontents executeJavascript, this is not useful in a situation that i want to get localstorage from partition</p> <h3 dir="auto">Proposed Solution</h3> <p dir="auto">add localStorage object like cookie to session</p> <h3 dir="auto">Alternatives Considered</h3> <p dir="auto">add fromPartition method to webContent</p> <h3 dir="auto">Additional Information</h3> <p dir="auto">.</p>
1
<p dir="auto">This surprised me; happens at both the REPL and in scripts (and no startup file).</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; 1*2 2 julia&gt; a*b = b*a # errors as I expect: ERROR: error in method definition: function Base.* must be explicitly imported to be extended Stacktrace: [1] top-level scope @ none:0 [2] top-level scope @ REPL[2]:1 julia&gt; 1=&gt;2 1 =&gt; 2 julia&gt; a=&gt;b = b=&gt;a Error showing value of type UnionAll: ERROR: SYSTEM (REPL): showing an error caused an error ERROR: SYSTEM (REPL): caught exception of type StackOverflowError while trying to handle a nested exception; giving up julia&gt; ┌ Error: Error in the keymap │ exception = │ StackOverflowError: │ Stacktrace: │ [1] Pair(a::Int64, b::Int64) │ @ Main ./REPL[4]:1 └ @ REPL.LineEdit ~/Julia/master/usr/share/julia/stdlib/v1.7/REPL/src/LineEdit.jl:2536 julia&gt; ERROR: fatal: error thrown and no exception handler available. StackOverflowError() Pair at ./REPL[4]:1 Pair at ./REPL[4]:1 # repeated many thousands of times... and crash $ echo $? 1"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-c1">1</span><span class="pl-k">*</span><span class="pl-c1">2</span> <span class="pl-c1">2</span> julia<span class="pl-k">&gt;</span> a<span class="pl-k">*</span>b <span class="pl-k">=</span> b<span class="pl-k">*</span>a <span class="pl-c"><span class="pl-c">#</span> errors as I expect:</span> ERROR<span class="pl-k">:</span> error <span class="pl-k">in</span> method definition<span class="pl-k">:</span> <span class="pl-k">function</span> Base<span class="pl-k">.*</span> must be explicitly imported to be extended Stacktrace<span class="pl-k">:</span> [<span class="pl-c1">1</span>] top<span class="pl-k">-</span>level scope @ none<span class="pl-k">:</span><span class="pl-c1">0</span> [<span class="pl-c1">2</span>] top<span class="pl-k">-</span>level scope @ REPL[<span class="pl-c1">2</span>]<span class="pl-k">:</span><span class="pl-c1">1</span> julia<span class="pl-k">&gt;</span> <span class="pl-c1">1</span><span class="pl-k">=&gt;</span><span class="pl-c1">2</span> <span class="pl-c1">1</span> <span class="pl-k">=&gt;</span> <span class="pl-c1">2</span> julia<span class="pl-k">&gt;</span> a<span class="pl-k">=&gt;</span>b <span class="pl-k">=</span> b<span class="pl-k">=&gt;</span>a Error showing value of type UnionAll<span class="pl-k">:</span> ERROR<span class="pl-k">:</span> SYSTEM (REPL)<span class="pl-k">:</span> showing an error caused an error ERROR<span class="pl-k">:</span> SYSTEM (REPL)<span class="pl-k">:</span> caught exception of type StackOverflowError <span class="pl-k">while</span> trying to handle a nested exception; giving up julia<span class="pl-k">&gt;</span> ┌ Error<span class="pl-k">:</span> Error <span class="pl-k">in</span> the keymap │ exception <span class="pl-k">=</span> │ StackOverflowError<span class="pl-k">:</span> │ Stacktrace<span class="pl-k">:</span> │ [<span class="pl-c1">1</span>] <span class="pl-c1">Pair</span>(a<span class="pl-k">::</span><span class="pl-c1">Int64</span>, b<span class="pl-k">::</span><span class="pl-c1">Int64</span>) │ @ Main <span class="pl-k">./</span>REPL[<span class="pl-c1">4</span>]<span class="pl-k">:</span><span class="pl-c1">1</span> └ @ REPL<span class="pl-k">.</span>LineEdit <span class="pl-k">~</span><span class="pl-k">/</span>Julia<span class="pl-k">/</span>master<span class="pl-k">/</span>usr<span class="pl-k">/</span>share<span class="pl-k">/</span>julia<span class="pl-k">/</span>stdlib<span class="pl-k">/</span>v1.<span class="pl-c1">7</span><span class="pl-k">/</span>REPL<span class="pl-k">/</span>src<span class="pl-k">/</span>LineEdit<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">2536</span> julia<span class="pl-k">&gt;</span> ERROR<span class="pl-k">:</span> fatal<span class="pl-k">:</span> error thrown and no exception handler available. <span class="pl-c1">StackOverflowError</span>() Pair at <span class="pl-k">./</span>REPL[<span class="pl-c1">4</span>]<span class="pl-k">:</span><span class="pl-c1">1</span> Pair at <span class="pl-k">./</span>REPL[<span class="pl-c1">4</span>]<span class="pl-k">:</span><span class="pl-c1">1</span> <span class="pl-c"><span class="pl-c">#</span> repeated many thousands of times... and crash</span> <span class="pl-k">$</span> echo <span class="pl-k">$</span>? <span class="pl-c1">1</span></pre></div>
<p dir="auto">Not sure if this is intended:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; UUID ERROR: UndefVarError: UUID not defined julia&gt; using Random: UUID julia&gt; UUID(x::String) = UUID(rand(UInt128)) # OK? UUID julia&gt; UUID(&quot;foo&quot;) 8c68d00a-33d1-777d-c4a1-0a41759d1581 julia&gt; using Base: getindex julia&gt; struct Foo end julia&gt; getindex(::Foo) = print(&quot;Hello&quot;) ERROR: error in method definition: function Base.getindex must be explicitly imported to be extended"><pre class="notranslate">julia<span class="pl-k">&gt;</span> UUID ERROR<span class="pl-k">:</span> UndefVarError<span class="pl-k">:</span> UUID not defined julia<span class="pl-k">&gt;</span> <span class="pl-k">using</span> Random<span class="pl-k">:</span> UUID julia<span class="pl-k">&gt;</span> <span class="pl-en">UUID</span>(x<span class="pl-k">::</span><span class="pl-c1">String</span>) <span class="pl-k">=</span> <span class="pl-c1">UUID</span>(<span class="pl-c1">rand</span>(UInt128)) <span class="pl-c"><span class="pl-c">#</span> OK?</span> UUID julia<span class="pl-k">&gt;</span> <span class="pl-c1">UUID</span>(<span class="pl-s"><span class="pl-pds">"</span>foo<span class="pl-pds">"</span></span>) <span class="pl-c1">8</span>c68d00a<span class="pl-k">-</span><span class="pl-c1">33</span>d1<span class="pl-k">-</span><span class="pl-c1">777</span>d<span class="pl-k">-</span>c4a1<span class="pl-k">-</span><span class="pl-c1">0</span>a41759d1581 julia<span class="pl-k">&gt;</span> <span class="pl-k">using</span> Base<span class="pl-k">:</span> getindex julia<span class="pl-k">&gt;</span> <span class="pl-k">struct</span> Foo <span class="pl-k">end</span> julia<span class="pl-k">&gt;</span> <span class="pl-en">getindex</span>(<span class="pl-k">::</span><span class="pl-c1">Foo</span>) <span class="pl-k">=</span> <span class="pl-c1">print</span>(<span class="pl-s"><span class="pl-pds">"</span>Hello<span class="pl-pds">"</span></span>) ERROR<span class="pl-k">:</span> error <span class="pl-k">in</span> method definition<span class="pl-k">:</span> <span class="pl-k">function</span> Base<span class="pl-k">.</span>getindex must be explicitly imported to be extended</pre></div>
1
<p dir="auto">I keep on trying to do courses but seem to be unable to open any section. (JavaScript, Html j Query and so on) . Keep on getting the same error "Oops! Something went wrong. Please try again later"</p>
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-bring-your-javascript-slot-machine-to-life" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-bring-your-javascript-slot-machine-to-life</a> has an issue.</p> <p dir="auto">When trying to edit the code to update the slot boxes with appropriate values the browser will crash when trying to run the code half complete.</p>
0
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="728455034" data-permission-text="Title is private" data-url="https://github.com/denodrivers/mysql/issues/87" data-hovercard-type="issue" data-hovercard-url="/denodrivers/mysql/issues/87/hovercard" href="https://github.com/denodrivers/mysql/issues/87">denodrivers/mysql#87</a><br> I have used <code class="notranslate">setTimeout</code> to implement the idle connection timeout for the connection pool.<br> But when user write some short-running app like this:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const client = new Client().connect(/* ... */); console.log(await client.query(&quot;SELECT ...&quot;)); // End of file, but Deno won't exit"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">client</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">Client</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">connect</span><span class="pl-kos">(</span><span class="pl-c">/* ... */</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-k">await</span> <span class="pl-s1">client</span><span class="pl-kos">.</span><span class="pl-en">query</span><span class="pl-kos">(</span><span class="pl-s">"SELECT ..."</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// End of file, but Deno won't exit</span></pre></div> <p dir="auto">Deno won't exit after it finishes querying. It still waits for some timer (by <code class="notranslate">setTimeout</code>) that can close pooled connection when it stayed idle for too long.</p> <p dir="auto">I think there should be a timer API that won't prevent Deno from exiting automatically.</p>
<p dir="auto"><strong>Use case</strong>: As a a module developer, I want to run periodic tasks during the execution of my module. This can be accomplished via <code class="notranslate">setTimeout</code> or <code class="notranslate">setInterval</code> for example. However, I do not want these timers to block the exiting of my module. <code class="notranslate">setInterval</code> in particular will cause the module to run forever until the <code class="notranslate">id</code> associated with it is cleared.</p> <p dir="auto"><strong>Specific use case</strong>: <code class="notranslate">std/log</code> file handler now uses a buffer to write log messages. Google and Go's glog implementations both use a log daemon to flush the buffer automatically every 30 seconds. It would be good for <code class="notranslate">std/log</code> file handler to use <code class="notranslate">setInterval</code> to flush the buffer every 30 seconds as well to mimic this but not block module exit. (see also ref <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="631737804" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/6127" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/6127/hovercard" href="https://github.com/denoland/deno/pull/6127">#6127</a>)</p> <p dir="auto">For starters, there is already support for <a href="https://github.com/denoland/deno/blob/master/core/ops.rs#L20">async unref ops</a> within Deno which would likely be used in this solution.</p>
1
<p dir="auto">by <strong><a href="mailto:[email protected]">[email protected]</a></strong>:</p> <pre class="notranslate">Add a function to reflect which allows a channel to be created via reflection given the type of the element it should contain. Should obviously also include the ability to specify buffering and direction where desired.</pre>
<pre class="notranslate">src/pkg/path/filepath/path_windows.go says that "ListSeparator = ':'". This is an error because paths are separated by ';' in Windows.</pre>
0
<p dir="auto"><strong>Migrated issue, originally created by Michael Bayer (<a href="https://github.com/zzzeek">@zzzeek</a>)</strong></p> <p dir="auto">use case:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from sqlalchemy import * from sqlalchemy.orm import * from sqlalchemy.ext.declarative import declarative_base, declared_attr, cascading_declared_attr Base = declarative_base() class HasId(object): @cascading_declared_attr def id(cls): if cls.__name__=='Content': return Column('id', Integer, primary_key=True) else: return Column('id', Integer, ForeignKey('content.id'), primary_key=True) class Content(HasId, Base): content_type = Column(String(20)) @cascading_declared_attr def __tablename__(cls): return cls.__name__.lower() class Project(Content): currency = Column(String(3)) target = Column(Integer) current = Column(Integer) #!diff diff --git a/lib/sqlalchemy/ext/declarative/__init__.py b/lib/sqlalchemy/ext/declarative/__init__.py index 0ee4e33..4566324 100644 --- a/lib/sqlalchemy/ext/declarative/__init__.py +++ b/lib/sqlalchemy/ext/declarative/__init__.py @@ -1300,7 +1300,7 @@ Mapped instances then make usage of from .api import declarative_base, synonym_for, comparable_using, \ instrument_declarative, ConcreteBase, AbstractConcreteBase, \ DeclarativeMeta, DeferredReflection, has_inherited_table,\ - declared_attr, as_declarative + declared_attr, cascading_declared_attr, as_declarative __all__ = ['synonym_for', 'has_inherited_table', diff --git a/lib/sqlalchemy/ext/declarative/api.py b/lib/sqlalchemy/ext/declarative/api.py index 2418c6e..dc6c42b 100644 --- a/lib/sqlalchemy/ext/declarative/api.py +++ b/lib/sqlalchemy/ext/declarative/api.py @@ -162,6 +162,26 @@ class declared_attr(interfaces._MappedAttribute, property): def __get__(desc, self, cls): return desc.fget(cls) +class cascading_declared_attr(declared_attr): + &quot;&quot;&quot;A :class:`.declared_attr` that will be invoked for all subclasses. + + Use :class:`.cascading_declared_attr` when a particular ``@declared_attr`` + needs to be invoked individually for each subclass in a hierarchy:: + + class HasId(object): + @cascading_declared_attr + def id(cls): + if has_inherited_table(cls): + return Column(Integer, ForeignKey(&quot;content.id&quot;), primary_key=True) + else: + return Column(Integer, primary_key=True) + + class Content(HasId, Base): + pass + + class SubContent(Content): + pass + &quot;&quot;&quot; def declarative_base(bind=None, metadata=None, mapper=None, cls=object, name='Base', constructor=_declarative_constructor, diff --git a/lib/sqlalchemy/ext/declarative/base.py b/lib/sqlalchemy/ext/declarative/base.py index 4fda9c7..a8702cc 100644 --- a/lib/sqlalchemy/ext/declarative/base.py +++ b/lib/sqlalchemy/ext/declarative/base.py @@ -31,7 +31,7 @@ def _declared_mapping_info(cls): def _as_declarative(cls, classname, dict_): - from .api import declared_attr + from .api import declared_attr, cascading_declared_attr # dict_ will be a dictproxy, which we can't write to, and we need to! dict_ = dict(dict_) @@ -96,6 +96,12 @@ def _as_declarative(cls, classname, dict_): &quot;not applying to subclass %s.&quot; % (base.__name__, name, base, cls)) continue + elif isinstance(obj, cascading_declared_attr): + ret = obj.__get__(obj, cls) + dict_[name] = column_copies[obj] = ret + if isinstance(ret, (Column, MapperProperty)) and \ + ret.doc is None: + ret.doc = obj.__doc__ elif base is not cls: # we're a mixin. if isinstance(obj, Column): @@ -125,8 +131,8 @@ def _as_declarative(cls, classname, dict_): &quot;be declared as @declared_attr callables &quot; &quot;on declarative mixin classes.&quot;) elif isinstance(obj, declarative_props): - dict_[name](name) = ret = \ - column_copies[obj] = getattr(cls, name) + ret = getattr(cls, name) + dict_[name] = column_copies[obj] = ret if isinstance(ret, (Column, MapperProperty)) and \ ret.doc is None: ret.doc = obj.__doc__"><pre class="notranslate"><code class="notranslate">from sqlalchemy import * from sqlalchemy.orm import * from sqlalchemy.ext.declarative import declarative_base, declared_attr, cascading_declared_attr Base = declarative_base() class HasId(object): @cascading_declared_attr def id(cls): if cls.__name__=='Content': return Column('id', Integer, primary_key=True) else: return Column('id', Integer, ForeignKey('content.id'), primary_key=True) class Content(HasId, Base): content_type = Column(String(20)) @cascading_declared_attr def __tablename__(cls): return cls.__name__.lower() class Project(Content): currency = Column(String(3)) target = Column(Integer) current = Column(Integer) #!diff diff --git a/lib/sqlalchemy/ext/declarative/__init__.py b/lib/sqlalchemy/ext/declarative/__init__.py index 0ee4e33..4566324 100644 --- a/lib/sqlalchemy/ext/declarative/__init__.py +++ b/lib/sqlalchemy/ext/declarative/__init__.py @@ -1300,7 +1300,7 @@ Mapped instances then make usage of from .api import declarative_base, synonym_for, comparable_using, \ instrument_declarative, ConcreteBase, AbstractConcreteBase, \ DeclarativeMeta, DeferredReflection, has_inherited_table,\ - declared_attr, as_declarative + declared_attr, cascading_declared_attr, as_declarative __all__ = ['synonym_for', 'has_inherited_table', diff --git a/lib/sqlalchemy/ext/declarative/api.py b/lib/sqlalchemy/ext/declarative/api.py index 2418c6e..dc6c42b 100644 --- a/lib/sqlalchemy/ext/declarative/api.py +++ b/lib/sqlalchemy/ext/declarative/api.py @@ -162,6 +162,26 @@ class declared_attr(interfaces._MappedAttribute, property): def __get__(desc, self, cls): return desc.fget(cls) +class cascading_declared_attr(declared_attr): + """A :class:`.declared_attr` that will be invoked for all subclasses. + + Use :class:`.cascading_declared_attr` when a particular ``@declared_attr`` + needs to be invoked individually for each subclass in a hierarchy:: + + class HasId(object): + @cascading_declared_attr + def id(cls): + if has_inherited_table(cls): + return Column(Integer, ForeignKey("content.id"), primary_key=True) + else: + return Column(Integer, primary_key=True) + + class Content(HasId, Base): + pass + + class SubContent(Content): + pass + """ def declarative_base(bind=None, metadata=None, mapper=None, cls=object, name='Base', constructor=_declarative_constructor, diff --git a/lib/sqlalchemy/ext/declarative/base.py b/lib/sqlalchemy/ext/declarative/base.py index 4fda9c7..a8702cc 100644 --- a/lib/sqlalchemy/ext/declarative/base.py +++ b/lib/sqlalchemy/ext/declarative/base.py @@ -31,7 +31,7 @@ def _declared_mapping_info(cls): def _as_declarative(cls, classname, dict_): - from .api import declared_attr + from .api import declared_attr, cascading_declared_attr # dict_ will be a dictproxy, which we can't write to, and we need to! dict_ = dict(dict_) @@ -96,6 +96,12 @@ def _as_declarative(cls, classname, dict_): "not applying to subclass %s." % (base.__name__, name, base, cls)) continue + elif isinstance(obj, cascading_declared_attr): + ret = obj.__get__(obj, cls) + dict_[name] = column_copies[obj] = ret + if isinstance(ret, (Column, MapperProperty)) and \ + ret.doc is None: + ret.doc = obj.__doc__ elif base is not cls: # we're a mixin. if isinstance(obj, Column): @@ -125,8 +131,8 @@ def _as_declarative(cls, classname, dict_): "be declared as @declared_attr callables " "on declarative mixin classes.") elif isinstance(obj, declarative_props): - dict_[name](name) = ret = \ - column_copies[obj] = getattr(cls, name) + ret = getattr(cls, name) + dict_[name] = column_copies[obj] = ret if isinstance(ret, (Column, MapperProperty)) and \ ret.doc is None: ret.doc = obj.__doc__ </code></pre></div>
<p dir="auto"><strong>Migrated issue, originally created by Michael Bayer (<a href="https://github.com/zzzeek">@zzzeek</a>)</strong></p> <p dir="auto">poc should allow us to consolidate <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="384627265" data-permission-text="Title is private" data-url="https://github.com/sqlalchemy/sqlalchemy/issues/2670" data-hovercard-type="issue" data-hovercard-url="/sqlalchemy/sqlalchemy/issues/2670/hovercard" href="https://github.com/sqlalchemy/sqlalchemy/issues/2670">#2670</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="384629557" data-permission-text="Title is private" data-url="https://github.com/sqlalchemy/sqlalchemy/issues/2952" data-hovercard-type="issue" data-hovercard-url="/sqlalchemy/sqlalchemy/issues/2952/hovercard" href="https://github.com/sqlalchemy/sqlalchemy/issues/2952">#2952</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="384631430" data-permission-text="Title is private" data-url="https://github.com/sqlalchemy/sqlalchemy/issues/3149" data-hovercard-type="issue" data-hovercard-url="/sqlalchemy/sqlalchemy/issues/3149/hovercard" href="https://github.com/sqlalchemy/sqlalchemy/issues/3149">#3149</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="384630495" data-permission-text="Title is private" data-url="https://github.com/sqlalchemy/sqlalchemy/issues/3050" data-hovercard-type="issue" data-hovercard-url="/sqlalchemy/sqlalchemy/issues/3050/hovercard" href="https://github.com/sqlalchemy/sqlalchemy/issues/3050">#3050</a>.</p> <p dir="auto">the new descriptors include the ability to cache the result per class, or to do "cascade", guarantees that the callable fn is called only once per target class, as well as to name attributes that are set up after the mapping is complete, so that relationship and column_property declared_attrs have the whole mapping to work with when they are called. and the whole thing doesn't modify any existing functionality, only adds new things we can take time to stabilize. win win win win.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from sqlalchemy import * from sqlalchemy.orm import * from sqlalchemy.ext.declarative import declarative_base, declared_attr, has_inherited_table Base = declarative_base() class VehicleModel(Base): __tablename__ = &quot;vehicle_model&quot; id = Column(Integer, primary_key=True) name = Column(String(20)) class VehicleInfo(object): vehicle_plate_region = Column(String(5)) vehicle_plate = Column(String(20)) @declared_attr.column def vehicle_model_id(cls): return Column(Integer, ForeignKey(&quot;vehicle_model.id&quot;)) @declared_attr.property def vehicle_model(cls): # 1. called after the class is fully mapped # 2. called only once for each class assert cls.__table__ is not None and \ cls.__table__.c.vehicle_model_id.shares_lineage( cls.vehicle_model_id.__clause_element__() ) return relationship(VehicleModel, foreign_keys=[cls.vehicle_model_id]) @declared_attr.column.cascading def id(cls): if has_inherited_table(cls): return Column(Integer, ForeignKey(&quot;vehicle.id&quot;), primary_key=True) else: return Column(Integer, primary_key=True) class Vehicle(VehicleInfo, Base): __tablename__ = 'vehicle' class SubVehicle(Vehicle): __tablename__ = 'subveh' @declared_attr.property def some_other_thing(cls): # called way at the end assert cls.id.__clause_element__().references(Vehicle.__table__.c.id) return column_property(cls.id) configure_mappers() "><pre class="notranslate"><code class="notranslate">from sqlalchemy import * from sqlalchemy.orm import * from sqlalchemy.ext.declarative import declarative_base, declared_attr, has_inherited_table Base = declarative_base() class VehicleModel(Base): __tablename__ = "vehicle_model" id = Column(Integer, primary_key=True) name = Column(String(20)) class VehicleInfo(object): vehicle_plate_region = Column(String(5)) vehicle_plate = Column(String(20)) @declared_attr.column def vehicle_model_id(cls): return Column(Integer, ForeignKey("vehicle_model.id")) @declared_attr.property def vehicle_model(cls): # 1. called after the class is fully mapped # 2. called only once for each class assert cls.__table__ is not None and \ cls.__table__.c.vehicle_model_id.shares_lineage( cls.vehicle_model_id.__clause_element__() ) return relationship(VehicleModel, foreign_keys=[cls.vehicle_model_id]) @declared_attr.column.cascading def id(cls): if has_inherited_table(cls): return Column(Integer, ForeignKey("vehicle.id"), primary_key=True) else: return Column(Integer, primary_key=True) class Vehicle(VehicleInfo, Base): __tablename__ = 'vehicle' class SubVehicle(Vehicle): __tablename__ = 'subveh' @declared_attr.property def some_other_thing(cls): # called way at the end assert cls.id.__clause_element__().references(Vehicle.__table__.c.id) return column_property(cls.id) configure_mappers() </code></pre></div> <p dir="auto">poc patch, however still needs integration for <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="384627265" data-permission-text="Title is private" data-url="https://github.com/sqlalchemy/sqlalchemy/issues/2670" data-hovercard-type="issue" data-hovercard-url="/sqlalchemy/sqlalchemy/issues/2670/hovercard" href="https://github.com/sqlalchemy/sqlalchemy/issues/2670">#2670</a>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="diff --git a/lib/sqlalchemy/ext/declarative/api.py b/lib/sqlalchemy/ext/declarative/api.py index daf8bff..251b06f 100644 --- a/lib/sqlalchemy/ext/declarative/api.py +++ b/lib/sqlalchemy/ext/declarative/api.py @@ -13,7 +13,7 @@ from ...orm import synonym as _orm_synonym, mapper,\ interfaces, properties from ...orm.util import polymorphic_union from ...orm.base import _mapper_or_none -from ...util import OrderedDict +from ...util import OrderedDict, classproperty from ... import exc import weakref @@ -164,6 +164,45 @@ class declared_attr(interfaces._MappedAttribute, property): def __get__(desc, self, cls): return desc.fget(cls) + @classproperty + def column(cls): + return _declared_column + + @classproperty + def property(cls): + return _declared_property + + defer_defer_defer = False + + +class _memoized_declared_attr(declared_attr): + def __init__(self, fget, cascading=False): + super(_memoized_declared_attr, self).__init__(fget) + self.reg = weakref.WeakKeyDictionary() + self._cascading = cascading + + def __get__(desc, self, cls): + if desc.defer_defer_defer: + return desc + elif cls in desc.reg: + return desc.reg[cls] + else: + desc.reg[cls] = obj = desc.fget(cls) + return obj + + @classproperty + def cascading(cls): + return lambda decorated: cls(decorated, cascading=True) + + +class _declared_column(_memoized_declared_attr): + pass + + +class _declared_property(_memoized_declared_attr): + defer_defer_defer = True + + def declarative_base(bind=None, metadata=None, mapper=None, cls=object, name='Base', constructor=_declarative_constructor, diff --git a/lib/sqlalchemy/ext/declarative/base.py b/lib/sqlalchemy/ext/declarative/base.py index 94baeeb..cee2263 100644 --- a/lib/sqlalchemy/ext/declarative/base.py +++ b/lib/sqlalchemy/ext/declarative/base.py @@ -33,7 +33,7 @@ def _declared_mapping_info(cls): def _as_declarative(cls, classname, dict_): - from .api import declared_attr + from .api import declared_attr, _memoized_declared_attr # dict_ will be a dictproxy, which we can't write to, and we need to! dict_ = dict(dict_) @@ -132,6 +132,14 @@ def _as_declarative(cls, classname, dict_): &quot;column_property(), relationship(), etc.) must &quot; &quot;be declared as @declared_attr callables &quot; &quot;on declarative mixin classes.&quot;) + elif isinstance(obj, _memoized_declared_attr): # and \ + if obj._cascading: + dict_[name] = ret = obj.__get__(obj, cls) + else: + dict_[name] = ret = getattr(cls, name) + if isinstance(ret, (Column, MapperProperty)) and \ + ret.doc is None: + ret.doc = obj.__doc__ elif isinstance(obj, declarative_props): dict_[name] = ret = \ column_copies[obj] = getattr(cls, name) @@ -148,6 +156,7 @@ def _as_declarative(cls, classname, dict_): clsregistry.add_class(classname, cls) our_stuff = util.OrderedDict() + add_later = util.OrderedDict() for k in list(dict_): @@ -157,7 +166,10 @@ def _as_declarative(cls, classname, dict_): value = dict_[k] if isinstance(value, declarative_props): - value = getattr(cls, k) + if value.defer_defer_defer: + add_later[k] = value + else: + value = getattr(cls, k) elif isinstance(value, QueryableAttribute) and \ value.class_ is not cls and \ @@ -324,7 +336,8 @@ def _as_declarative(cls, classname, dict_): declared_columns, column_copies, our_stuff, - mapper_args_fn) + mapper_args_fn, + add_later) if not defer_map: mt.map() @@ -339,7 +352,8 @@ class _MapperConfig(object): inherits, declared_columns, column_copies, - properties, mapper_args_fn): + properties, mapper_args_fn, + add_later): self.mapper_cls = mapper_cls self.cls = cls self.local_table = table @@ -348,6 +362,7 @@ class _MapperConfig(object): self.mapper_args_fn = mapper_args_fn self.declared_columns = declared_columns self.column_copies = column_copies + self.add_later = add_later def _prepare_mapper_arguments(self): properties = self.properties @@ -410,6 +425,8 @@ class _MapperConfig(object): self.local_table, **mapper_args ) + for k, v in self.add_later.items(): + setattr(self.cls, k, v.fget(self.cls)) class _DeferredMapperConfig(_MapperConfig): diff --git a/lib/sqlalchemy/sql/schema.py b/lib/sqlalchemy/sql/schema.py index f3af46c..ea8c32f 100644 --- a/lib/sqlalchemy/sql/schema.py +++ b/lib/sqlalchemy/sql/schema.py @@ -1161,8 +1161,10 @@ class Column(SchemaItem, ColumnClause): existing = getattr(self, 'table', None) if existing is not None and existing is not table: raise exc.ArgumentError( - &quot;Column object already assigned to Table '%s'&quot; % - existing.description) + &quot;Column object '%s' already assigned to Table '%s'&quot; % ( + self.key, + existing.description + )) if self.key in table._columns: col = table._columns.get(self.key)"><pre class="notranslate"><code class="notranslate">diff --git a/lib/sqlalchemy/ext/declarative/api.py b/lib/sqlalchemy/ext/declarative/api.py index daf8bff..251b06f 100644 --- a/lib/sqlalchemy/ext/declarative/api.py +++ b/lib/sqlalchemy/ext/declarative/api.py @@ -13,7 +13,7 @@ from ...orm import synonym as _orm_synonym, mapper,\ interfaces, properties from ...orm.util import polymorphic_union from ...orm.base import _mapper_or_none -from ...util import OrderedDict +from ...util import OrderedDict, classproperty from ... import exc import weakref @@ -164,6 +164,45 @@ class declared_attr(interfaces._MappedAttribute, property): def __get__(desc, self, cls): return desc.fget(cls) + @classproperty + def column(cls): + return _declared_column + + @classproperty + def property(cls): + return _declared_property + + defer_defer_defer = False + + +class _memoized_declared_attr(declared_attr): + def __init__(self, fget, cascading=False): + super(_memoized_declared_attr, self).__init__(fget) + self.reg = weakref.WeakKeyDictionary() + self._cascading = cascading + + def __get__(desc, self, cls): + if desc.defer_defer_defer: + return desc + elif cls in desc.reg: + return desc.reg[cls] + else: + desc.reg[cls] = obj = desc.fget(cls) + return obj + + @classproperty + def cascading(cls): + return lambda decorated: cls(decorated, cascading=True) + + +class _declared_column(_memoized_declared_attr): + pass + + +class _declared_property(_memoized_declared_attr): + defer_defer_defer = True + + def declarative_base(bind=None, metadata=None, mapper=None, cls=object, name='Base', constructor=_declarative_constructor, diff --git a/lib/sqlalchemy/ext/declarative/base.py b/lib/sqlalchemy/ext/declarative/base.py index 94baeeb..cee2263 100644 --- a/lib/sqlalchemy/ext/declarative/base.py +++ b/lib/sqlalchemy/ext/declarative/base.py @@ -33,7 +33,7 @@ def _declared_mapping_info(cls): def _as_declarative(cls, classname, dict_): - from .api import declared_attr + from .api import declared_attr, _memoized_declared_attr # dict_ will be a dictproxy, which we can't write to, and we need to! dict_ = dict(dict_) @@ -132,6 +132,14 @@ def _as_declarative(cls, classname, dict_): "column_property(), relationship(), etc.) must " "be declared as @declared_attr callables " "on declarative mixin classes.") + elif isinstance(obj, _memoized_declared_attr): # and \ + if obj._cascading: + dict_[name] = ret = obj.__get__(obj, cls) + else: + dict_[name] = ret = getattr(cls, name) + if isinstance(ret, (Column, MapperProperty)) and \ + ret.doc is None: + ret.doc = obj.__doc__ elif isinstance(obj, declarative_props): dict_[name] = ret = \ column_copies[obj] = getattr(cls, name) @@ -148,6 +156,7 @@ def _as_declarative(cls, classname, dict_): clsregistry.add_class(classname, cls) our_stuff = util.OrderedDict() + add_later = util.OrderedDict() for k in list(dict_): @@ -157,7 +166,10 @@ def _as_declarative(cls, classname, dict_): value = dict_[k] if isinstance(value, declarative_props): - value = getattr(cls, k) + if value.defer_defer_defer: + add_later[k] = value + else: + value = getattr(cls, k) elif isinstance(value, QueryableAttribute) and \ value.class_ is not cls and \ @@ -324,7 +336,8 @@ def _as_declarative(cls, classname, dict_): declared_columns, column_copies, our_stuff, - mapper_args_fn) + mapper_args_fn, + add_later) if not defer_map: mt.map() @@ -339,7 +352,8 @@ class _MapperConfig(object): inherits, declared_columns, column_copies, - properties, mapper_args_fn): + properties, mapper_args_fn, + add_later): self.mapper_cls = mapper_cls self.cls = cls self.local_table = table @@ -348,6 +362,7 @@ class _MapperConfig(object): self.mapper_args_fn = mapper_args_fn self.declared_columns = declared_columns self.column_copies = column_copies + self.add_later = add_later def _prepare_mapper_arguments(self): properties = self.properties @@ -410,6 +425,8 @@ class _MapperConfig(object): self.local_table, **mapper_args ) + for k, v in self.add_later.items(): + setattr(self.cls, k, v.fget(self.cls)) class _DeferredMapperConfig(_MapperConfig): diff --git a/lib/sqlalchemy/sql/schema.py b/lib/sqlalchemy/sql/schema.py index f3af46c..ea8c32f 100644 --- a/lib/sqlalchemy/sql/schema.py +++ b/lib/sqlalchemy/sql/schema.py @@ -1161,8 +1161,10 @@ class Column(SchemaItem, ColumnClause): existing = getattr(self, 'table', None) if existing is not None and existing is not table: raise exc.ArgumentError( - "Column object already assigned to Table '%s'" % - existing.description) + "Column object '%s' already assigned to Table '%s'" % ( + self.key, + existing.description + )) if self.key in table._columns: col = table._columns.get(self.key) </code></pre></div>
1
<p dir="auto"><strong>Description</strong><br> Symfony currently uses:</p> <p dir="auto"><code class="notranslate">if ('\\' !== DIRECTORY_SEPARATOR) { // PHP does not run in Windows }</code></p> <p dir="auto">in many places. This could be changed to something like:</p> <p dir="auto"><code class="notranslate">if (OperatingSystem::WINDOWS !== $os-&gt;getType()) { // PHP does not run in Windows }</code></p> <p dir="auto">Is it worth my time to try to build something small like <a href="https://packagist.org/packages/operating-system/operating-system" rel="nofollow">https://packagist.org/packages/operating-system/operating-system</a> into Symfony? But since this simple thing was not done yet I suppose there is a good reason for it?</p> <p dir="auto">My pros:</p> <ul dir="auto"> <li>Better readability</li> <li>One single place to change the detection (very unlikely that this will be needed)</li> </ul> <p dir="auto">My cons:</p> <ul dir="auto"> <li>Performance loss</li> <li>More complexity</li> </ul> <p dir="auto"><strong>Example</strong><br> see "Description"</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="430118081" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/30955" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/30955/hovercard" href="https://github.com/symfony/symfony/pull/30955">#30955</a> is proposing adding a new event to hook into the password verification process and allow listeners to deal with clear text passwords. Thinking a bit about this approach, I have a different one to propose here.</p> <p dir="auto">The most important drawback of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="430118081" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/30955" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/30955/hovercard" href="https://github.com/symfony/symfony/pull/30955">#30955</a> is that it's still up to the application to implement some custom code to run a "needs rehash" logic then a "persist new encoded password" one. The 2nd drawback is that this gives a trivial way to hook into the process to leak clear text passwords (inadvertently or not).</p> <p dir="auto">The boilerplate of a listener shouldn't be needed: security should be first class by default, and this means progressive migration of passwords should be built in and the default behavior.</p> <p dir="auto">Instead of adding this hook, I'd suggest adding two new interfaces (names/etc are draft):</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface UpgradablePasswordInterface { public function upgradePassword(string $encoded): void; } interface RehashAwarePasswordEncoderInterface extends PasswordEncoderInterface { public function needsRehash(string $encoded): bool; }"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-v">UpgradablePasswordInterface</span> { <span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">upgradePassword</span>(<span class="pl-smi">string</span> <span class="pl-s1"><span class="pl-c1">$</span>encoded</span>): <span class="pl-smi">void</span>; } <span class="pl-k">interface</span> <span class="pl-v">RehashAwarePasswordEncoderInterface</span> <span class="pl-k">extends</span> <span class="pl-v">PasswordEncoderInterface</span> { <span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">needsRehash</span>(<span class="pl-smi">string</span> <span class="pl-s1"><span class="pl-c1">$</span>encoded</span>): <span class="pl-smi">bool</span>; }</pre></div> <p dir="auto">Then, a <code class="notranslate">UserPasswordEncoder</code> could call both methods when applicable inside its <code class="notranslate">isPasswordValid</code> method, and done.</p> <p dir="auto">WDYT?</p>
0
<p dir="auto">Have I written custom code: Yes<br> OS Platform and Distribution: Linux Ubuntu 17.04<br> TensorFlow installed from: source<br> TensorFlow version: 1.6.0-rc1<br> Python version: 3.6<br> Bazel version: 0.10<br> GCC/Compiler version: 6.0<br> CUDA/cuDNN version: CUDA 9.1 cuDNN 7.0.5<br> GPU model and memory: NVIDIA Titan Z 12GB<br> <code class="notranslate">Exact</code> command to reproduce: multi_gpu_model(model, gpus=2)</p> <p dir="auto">Just upgraded from rc0 to rc1 of release 1.6.0 and I'm now getting the following crash when running the multi_gpu_model function (was working fine with rc0):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="parallel_model = multi_gpu_model(model, gpus=2)"><pre class="notranslate"><code class="notranslate">parallel_model = multi_gpu_model(model, gpus=2) </code></pre></div> <p dir="auto">File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/_impl/keras/utils/training_utils.py", line 207, in multi_gpu_model</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="return Model(model.inputs, merged)"><pre class="notranslate"><code class="notranslate">return Model(model.inputs, merged) </code></pre></div> <p dir="auto">File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/_impl/keras/engine/topology.py", line 694, in <strong>init</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="self._init_graph_network(*args, **kwargs)"><pre class="notranslate"><code class="notranslate">self._init_graph_network(*args, **kwargs) </code></pre></div> <p dir="auto">File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/_impl/keras/engine/topology.py", line 733, in _init_graph_network</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="if layer.is_placeholder:"><pre class="notranslate"><code class="notranslate">if layer.is_placeholder: </code></pre></div> <p dir="auto">AttributeError: 'Lambda' object has no attribute 'is_placeholder'</p> <p dir="auto">I rolled back to the 1.5 branch and I'm not having any issues running multi_gpu_model there.</p>
<h3 dir="auto">System information</h3> <ul dir="auto"> <li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>:</li> <li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>:<br> Linux Ubuntu 16.04</li> <li><strong>TensorFlow installed from (source or binary)</strong>:<br> Built from source</li> <li><strong>TensorFlow version (use command below)</strong>:<br> v1.6.0-rc0-19-gecec1d8 1.6.0-rc1<br> master</li> <li><strong>Python version</strong>: 3.5.2</li> <li><strong>Bazel version (if compiling from source)</strong>: 0.10.0</li> <li><strong>GCC/Compiler version (if compiling from source)</strong>: 5.4.0</li> <li><strong>CUDA/cuDNN version</strong>: 9.1.85/7.0.5.15</li> <li><strong>GPU model and memory</strong>:<br> GeForce GTX 1080 Ti<br> totalMemory: 10.91GiB freeMemory: 8.36GiB</li> </ul> <h3 dir="auto">Describe the problem</h3> <p dir="auto">If tf1.6 is compiled with <code class="notranslate">--march=native</code> then running inference on a large model ends up with crash with cryptic stack trace, 100% reproducible, no matter with or without CUDA (whether CUDA_VISIBLE_DEVICES="" or absent).</p> <p dir="auto">If compiled <strong>without</strong> avx512 support (i.e. <code class="notranslate">-O3 -msse4.2 -mavx2 -mfma</code> only), then everything works fine.<br> TF emits a warning though:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2018-02-15 14:03:54.237530: I tensorflow/core/platform/cpu_feature_guard.cc:140] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX512F"><pre class="notranslate"><code class="notranslate">2018-02-15 14:03:54.237530: I tensorflow/core/platform/cpu_feature_guard.cc:140] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX512F </code></pre></div> <p dir="auto">I checked another issue with 64 byte alignment (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="284180657" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/15588" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/15588/hovercard" href="https://github.com/tensorflow/tensorflow/issues/15588">#15588</a>), but it does not help.</p> <p dir="auto">Here is a crash trace, if it may help.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(gdb) bt #0 0x00007fdea3c5c9d5 in Eigen::internal::gemm_pack_lhs&lt;float, long, Eigen::internal::TensorContractionSubMapper&lt;float, long, 1, Eigen::TensorEvaluator&lt;Eigen::TensorMap&lt;Eigen::Tensor&lt;float const, 2, 1, long&gt;, 16, Eigen::MakePointer&gt; const, Eigen::ThreadPoolDevice&gt;, Eigen::array&lt;long, 1ul&gt;, Eigen::array&lt;long, 1ul&gt;, 16, true, false, 0, Eigen::MakePointer&gt;, 48, 16, 0, false, false&gt;::operator()(float*, Eigen::internal::TensorContractionSubMapper&lt;float, long, 1, Eigen::TensorEvaluator&lt;Eigen::TensorMap&lt;Eigen::Tensor&lt;float const, 2, 1, long&gt;, 16, Eigen::MakePointer&gt; const, Eigen::ThreadPoolDevice&gt;, Eigen::array&lt;long, 1ul&gt;, Eigen::array&lt;long, 1ul&gt;, 16, true, false, 0, Eigen::MakePointer&gt; const&amp;, long, long, long, long) () from /home/zbr/.local/lib/python3.5/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so #1 0x00007fdea3cd0fc4 in Eigen::TensorEvaluator&lt;Eigen::TensorContractionOp&lt;Eigen::array&lt;Eigen::IndexPair&lt;long&gt;, 1ul&gt; const, Eigen::TensorMap&lt;Eigen::Tensor&lt;float const, 2, 1, long&gt;, 16, Eigen::MakePointer&gt; const, Eigen::TensorMap&lt;Eigen::Tensor&lt;float const, 2, 1, long&gt;, 16, Eigen::MakePointer&gt; const&gt; const, Eigen::ThreadPoolDevice&gt;::Context&lt;Eigen::internal::gemm_pack_lhs&lt;float, long, Eigen::internal::TensorContractionSubMapper&lt;float, long, 1, Eigen::TensorEvaluator&lt;Eigen::TensorMap&lt;Eigen::Tensor&lt;float const, 2, 1, long&gt;, 16, Eigen::MakePointer&gt; const, Eigen::ThreadPoolDevice&gt;, Eigen::array&lt;long, 1ul&gt;, Eigen::array&lt;long, 1ul&gt;, 16, true, false, 0, Eigen::MakePointer&gt;, 48, 16, 0, false, false&gt;, Eigen::internal::gemm_pack_rhs&lt;float, long, Eigen::internal::TensorContractionSubMapper&lt;float, long, 0, Eigen::TensorEvaluator&lt;Eigen::TensorMap&lt;Eigen::Tensor&lt;float const, 2, 1, long&gt;, 16, Eigen::MakePointer&gt; const, Eigen::ThreadPoolDevice&gt;, Eigen::array&lt;long, 1ul&gt;, Eigen::array&lt;long, 1ul&gt;, 16, true, false, 0, Eigen::MakePointer&gt;, 4, 0, false, false&gt;, Eigen::internal::gebp_kernel&lt;float, float, long, Eigen::internal::blas_data_mapper&lt;float, long, 0, 0&gt;, 48, 4, false, false&gt;, Eigen::internal::TensorContractionInputMapper&lt;float, long, 1, Eigen::TensorEvaluator&lt;Eigen::TensorMap&lt;Eigen::Tensor&lt;float const, 2, 1, long&gt;, 16, Eigen::MakePointer&gt; const, Eigen::ThreadPoolDevice&gt;, Eigen::array&lt;long, 1ul&gt;, Eigen::array&lt;long, 1ul&gt;, 16, true, false, 0, Eigen::MakePointer&gt;, Eigen::internal::TensorContractionInputMapper&lt;float, long, 0, Eigen::TensorEvaluator&lt;Eigen::TensorMap&lt;Eigen::Tensor&lt;float const, 2, 1, long&gt;, 16, Eigen::MakePointer&gt; const, Eigen::ThreadPoolDevice&gt;, Eigen::array&lt;long, 1ul&gt;, Eigen::array&lt;long, 1ul&gt;, 16, true, false, 0, Eigen::MakePointer&gt;, Eigen::internal::blas_data_mapper&lt;float, long, 0, 0&gt; &gt;::enqueue_packing_helper(long, long, long, bool) () from /home/zbr/.local/lib/python3.5/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so #2 0x00007fdea06232d1 in Eigen::NonBlockingThreadPoolTempl&lt;tensorflow::thread::EigenEnvironment&gt;::WorkerLoop(int) () from /home/zbr/.local/lib/python3.5/site-packages/tensorflow/python/../libtensorflow_framework.so #3 0x00007fdea06210e7 in std::_Function_handler&lt;void (), tensorflow::thread::EigenEnvironment::CreateThread(std::function&lt;void ()&gt;)::{lambda()#1}&gt;::_M_invoke(std::_Any_data const&amp;) () from /home/zbr/.local/lib/python3.5/site-packages/tensorflow/python/../libtensorflow_framework.so #4 0x00007fde96afbc80 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #5 0x00007fded77d76ba in start_thread (arg=0x7fdeb87d8700) at pthread_create.c:333 #6 0x00007fded750d41d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109 (gdb)"><pre class="notranslate"><code class="notranslate">(gdb) bt #0 0x00007fdea3c5c9d5 in Eigen::internal::gemm_pack_lhs&lt;float, long, Eigen::internal::TensorContractionSubMapper&lt;float, long, 1, Eigen::TensorEvaluator&lt;Eigen::TensorMap&lt;Eigen::Tensor&lt;float const, 2, 1, long&gt;, 16, Eigen::MakePointer&gt; const, Eigen::ThreadPoolDevice&gt;, Eigen::array&lt;long, 1ul&gt;, Eigen::array&lt;long, 1ul&gt;, 16, true, false, 0, Eigen::MakePointer&gt;, 48, 16, 0, false, false&gt;::operator()(float*, Eigen::internal::TensorContractionSubMapper&lt;float, long, 1, Eigen::TensorEvaluator&lt;Eigen::TensorMap&lt;Eigen::Tensor&lt;float const, 2, 1, long&gt;, 16, Eigen::MakePointer&gt; const, Eigen::ThreadPoolDevice&gt;, Eigen::array&lt;long, 1ul&gt;, Eigen::array&lt;long, 1ul&gt;, 16, true, false, 0, Eigen::MakePointer&gt; const&amp;, long, long, long, long) () from /home/zbr/.local/lib/python3.5/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so #1 0x00007fdea3cd0fc4 in Eigen::TensorEvaluator&lt;Eigen::TensorContractionOp&lt;Eigen::array&lt;Eigen::IndexPair&lt;long&gt;, 1ul&gt; const, Eigen::TensorMap&lt;Eigen::Tensor&lt;float const, 2, 1, long&gt;, 16, Eigen::MakePointer&gt; const, Eigen::TensorMap&lt;Eigen::Tensor&lt;float const, 2, 1, long&gt;, 16, Eigen::MakePointer&gt; const&gt; const, Eigen::ThreadPoolDevice&gt;::Context&lt;Eigen::internal::gemm_pack_lhs&lt;float, long, Eigen::internal::TensorContractionSubMapper&lt;float, long, 1, Eigen::TensorEvaluator&lt;Eigen::TensorMap&lt;Eigen::Tensor&lt;float const, 2, 1, long&gt;, 16, Eigen::MakePointer&gt; const, Eigen::ThreadPoolDevice&gt;, Eigen::array&lt;long, 1ul&gt;, Eigen::array&lt;long, 1ul&gt;, 16, true, false, 0, Eigen::MakePointer&gt;, 48, 16, 0, false, false&gt;, Eigen::internal::gemm_pack_rhs&lt;float, long, Eigen::internal::TensorContractionSubMapper&lt;float, long, 0, Eigen::TensorEvaluator&lt;Eigen::TensorMap&lt;Eigen::Tensor&lt;float const, 2, 1, long&gt;, 16, Eigen::MakePointer&gt; const, Eigen::ThreadPoolDevice&gt;, Eigen::array&lt;long, 1ul&gt;, Eigen::array&lt;long, 1ul&gt;, 16, true, false, 0, Eigen::MakePointer&gt;, 4, 0, false, false&gt;, Eigen::internal::gebp_kernel&lt;float, float, long, Eigen::internal::blas_data_mapper&lt;float, long, 0, 0&gt;, 48, 4, false, false&gt;, Eigen::internal::TensorContractionInputMapper&lt;float, long, 1, Eigen::TensorEvaluator&lt;Eigen::TensorMap&lt;Eigen::Tensor&lt;float const, 2, 1, long&gt;, 16, Eigen::MakePointer&gt; const, Eigen::ThreadPoolDevice&gt;, Eigen::array&lt;long, 1ul&gt;, Eigen::array&lt;long, 1ul&gt;, 16, true, false, 0, Eigen::MakePointer&gt;, Eigen::internal::TensorContractionInputMapper&lt;float, long, 0, Eigen::TensorEvaluator&lt;Eigen::TensorMap&lt;Eigen::Tensor&lt;float const, 2, 1, long&gt;, 16, Eigen::MakePointer&gt; const, Eigen::ThreadPoolDevice&gt;, Eigen::array&lt;long, 1ul&gt;, Eigen::array&lt;long, 1ul&gt;, 16, true, false, 0, Eigen::MakePointer&gt;, Eigen::internal::blas_data_mapper&lt;float, long, 0, 0&gt; &gt;::enqueue_packing_helper(long, long, long, bool) () from /home/zbr/.local/lib/python3.5/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so #2 0x00007fdea06232d1 in Eigen::NonBlockingThreadPoolTempl&lt;tensorflow::thread::EigenEnvironment&gt;::WorkerLoop(int) () from /home/zbr/.local/lib/python3.5/site-packages/tensorflow/python/../libtensorflow_framework.so #3 0x00007fdea06210e7 in std::_Function_handler&lt;void (), tensorflow::thread::EigenEnvironment::CreateThread(std::function&lt;void ()&gt;)::{lambda()#1}&gt;::_M_invoke(std::_Any_data const&amp;) () from /home/zbr/.local/lib/python3.5/site-packages/tensorflow/python/../libtensorflow_framework.so #4 0x00007fde96afbc80 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #5 0x00007fded77d76ba in start_thread (arg=0x7fdeb87d8700) at pthread_create.c:333 #6 0x00007fded750d41d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109 (gdb) </code></pre></div>
1
<p dir="auto">I'm building scipy from the latest source for the first time, running on Ubuntu in WSL2 on Windows 11. I tried following <a href="https://scipy.github.io/devdocs/dev/contributor/conda_guide.html#conda-guide" rel="nofollow">the conda guide</a>, but am getting errors when building. Searching around for the error it seems like it might be a unix/dos file ending mismatch, but I'm not sure how to fix it.</p> <p dir="auto">Terminal output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(scipy-dev) scott@DESKTOP-M5S4AGS:/mnt/c/Users/Scott/Documents/Documents/Coding/scipy$ python dev.py build 💻 ninja -C /mnt/c/Users/Scott/Documents/Documents/Coding/scipy/build ninja: Entering directory `/mnt/c/Users/Scott/Documents/Documents/Coding/scipy/build' [1/1533] Generating 'scipy/_lib/_ccallback_c.cpython-310-x86_64-linux-gnu.so.p/_ccallback_c.c'. FAILED: scipy/_lib/_ccallback_c.cpython-310-x86_64-linux-gnu.so.p/_ccallback_c.c /mnt/c/Users/Scott/Documents/Documents/Coding/scipy/scipy/_build_utils/cythoner.py ../scipy/_lib/_ccallback_c.pyx scipy/_lib/_ccallback_c.cpython-310-x86_64-linux-gnu.so.p/_ccallback_c.c /usr/bin/env: ‘python3\r’: No such file or directory [2/1533] Generating 'scipy/_lib/_test_deprecation_call.cpython-310-x86_64-linux-gnu.so.p/_test_deprecation_call.c'. FAILED: scipy/_lib/_test_deprecation_call.cpython-310-x86_64-linux-gnu.so.p/_test_deprecation_call.c /mnt/c/Users/Scott/Documents/Documents/Coding/scipy/scipy/_build_utils/cythoner.py ../scipy/_lib/_test_deprecation_call.pyx scipy/_lib/_test_deprecation_call.cpython-310-x86_64-linux-gnu.so.p/_test_deprecation_call.c /usr/bin/env: ‘python3\r’: No such file or directory [3/1533] Generating 'scipy/_lib/_test_deprecation_def.cpython-310-x86_64-linux-gnu.so.p/_test_deprecation_def.c'. FAILED: scipy/_lib/_test_deprecation_def.cpython-310-x86_64-linux-gnu.so.p/_test_deprecation_def.c /mnt/c/Users/Scott/Documents/Documents/Coding/scipy/scipy/_build_utils/cythoner.py ../scipy/_lib/_test_deprecation_def.pyx scipy/_lib/_test_deprecation_def.cpython-310-x86_64-linux-gnu.so.p/_test_deprecation_def.c /usr/bin/env: ‘python3\r’: No such file or directory [4/1533] Generating 'scipy/_lib/messagestream.cpython-310-x86_64-linux-gnu.so.p/messagestream.c'. FAILED: scipy/_lib/messagestream.cpython-310-x86_64-linux-gnu.so.p/messagestream.c /mnt/c/Users/Scott/Documents/Documents/Coding/scipy/scipy/_build_utils/cythoner.py ../scipy/_lib/messagestream.pyx scipy/_lib/messagestream.cpython-310-x86_64-linux-gnu.so.p/messagestream.c /usr/bin/env: ‘python3\r’: No such file or directory [6/1533] Generating scipy/generate-version with a custom command fatal: bad revision '^v1.8.0' [10/1533] Compiling C object scipy/special/libcephes.a.p/cephes_gamma.c.o ninja: build stopped: subcommand failed. Build failed!"><pre class="notranslate"><code class="notranslate">(scipy-dev) scott@DESKTOP-M5S4AGS:/mnt/c/Users/Scott/Documents/Documents/Coding/scipy$ python dev.py build 💻 ninja -C /mnt/c/Users/Scott/Documents/Documents/Coding/scipy/build ninja: Entering directory `/mnt/c/Users/Scott/Documents/Documents/Coding/scipy/build' [1/1533] Generating 'scipy/_lib/_ccallback_c.cpython-310-x86_64-linux-gnu.so.p/_ccallback_c.c'. FAILED: scipy/_lib/_ccallback_c.cpython-310-x86_64-linux-gnu.so.p/_ccallback_c.c /mnt/c/Users/Scott/Documents/Documents/Coding/scipy/scipy/_build_utils/cythoner.py ../scipy/_lib/_ccallback_c.pyx scipy/_lib/_ccallback_c.cpython-310-x86_64-linux-gnu.so.p/_ccallback_c.c /usr/bin/env: ‘python3\r’: No such file or directory [2/1533] Generating 'scipy/_lib/_test_deprecation_call.cpython-310-x86_64-linux-gnu.so.p/_test_deprecation_call.c'. FAILED: scipy/_lib/_test_deprecation_call.cpython-310-x86_64-linux-gnu.so.p/_test_deprecation_call.c /mnt/c/Users/Scott/Documents/Documents/Coding/scipy/scipy/_build_utils/cythoner.py ../scipy/_lib/_test_deprecation_call.pyx scipy/_lib/_test_deprecation_call.cpython-310-x86_64-linux-gnu.so.p/_test_deprecation_call.c /usr/bin/env: ‘python3\r’: No such file or directory [3/1533] Generating 'scipy/_lib/_test_deprecation_def.cpython-310-x86_64-linux-gnu.so.p/_test_deprecation_def.c'. FAILED: scipy/_lib/_test_deprecation_def.cpython-310-x86_64-linux-gnu.so.p/_test_deprecation_def.c /mnt/c/Users/Scott/Documents/Documents/Coding/scipy/scipy/_build_utils/cythoner.py ../scipy/_lib/_test_deprecation_def.pyx scipy/_lib/_test_deprecation_def.cpython-310-x86_64-linux-gnu.so.p/_test_deprecation_def.c /usr/bin/env: ‘python3\r’: No such file or directory [4/1533] Generating 'scipy/_lib/messagestream.cpython-310-x86_64-linux-gnu.so.p/messagestream.c'. FAILED: scipy/_lib/messagestream.cpython-310-x86_64-linux-gnu.so.p/messagestream.c /mnt/c/Users/Scott/Documents/Documents/Coding/scipy/scipy/_build_utils/cythoner.py ../scipy/_lib/messagestream.pyx scipy/_lib/messagestream.cpython-310-x86_64-linux-gnu.so.p/messagestream.c /usr/bin/env: ‘python3\r’: No such file or directory [6/1533] Generating scipy/generate-version with a custom command fatal: bad revision '^v1.8.0' [10/1533] Compiling C object scipy/special/libcephes.a.p/cephes_gamma.c.o ninja: build stopped: subcommand failed. Build failed! </code></pre></div>
<p dir="auto">I ran into a problem running <code class="notranslate">dev.py</code> that appears to be caused by the shebang line <code class="notranslate">#!python3</code> in the file <code class="notranslate">scipy/_build_utils/cythoner.py</code>. If I change it to <code class="notranslate">#!/usr/bin/env python</code> then the build works fine.</p> <p dir="auto">Most files in scipy with a shebang line use <code class="notranslate">#!/usr/bin/env python</code>. Only files in the <code class="notranslate">_build_utils</code> use <code class="notranslate">#!python3</code>.</p> <p dir="auto">Error message when running <code class="notranslate">python dev.py build</code>:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Meson build setup OK 💻 ninja -C /mnt/c/Users/Jozsef/OSS/scipy-test/build ninja: Entering directory `/mnt/c/Users/Jozsef/OSS/scipy-test/build' [3/1562] Generating 'scipy/_lib/_ccallback_c.cpython-310-x86_64-linux-gnu.so.p/_ccallback_c.c'. FAILED: scipy/_lib/_ccallback_c.cpython-310-x86_64-linux-gnu.so.p/_ccallback_c.c /mnt/c/Users/Jozsef/OSS/scipy-test/scipy/_build_utils/cythoner.py ../scipy/_lib/_ccallback_c.pyx scipy/_lib/_ccallback_c.cpython-310-x86_64-linux-gnu.so.p/_ccallback_c.c /bin/sh: 1: /mnt/c/Users/Jozsef/OSS/scipy-test/scipy/_build_utils/cythoner.py: not found [12/1562] Compiling C++ object scipy/_lib/_uarray/_uarray.cpython-310-x86_64-linux-gnu.so.p/_uarray_dispatch.cxx.o ninja: build stopped: subcommand failed. Build failed!"><pre class="notranslate">Meson build setup OK 💻 ninja -C /mnt/c/Users/Jozsef/OSS/scipy-test/build ninja: Entering directory <span class="pl-s"><span class="pl-pds">`</span>/mnt/c/Users/Jozsef/OSS/scipy-test/build<span class="pl-s"><span class="pl-pds">'</span></span></span> <span class="pl-s"><span class="pl-s">[3/1562] Generating <span class="pl-pds">'</span></span>scipy/_lib/_ccallback_c.cpython-310-x86_64-linux-gnu.so.p/_ccallback_c.c<span class="pl-s"><span class="pl-pds">'</span>.</span></span> <span class="pl-s"><span class="pl-s">FAILED: scipy/_lib/_ccallback_c.cpython-310-x86_64-linux-gnu.so.p/_ccallback_c.c</span></span> <span class="pl-s"><span class="pl-s">/mnt/c/Users/Jozsef/OSS/scipy-test/scipy/_build_utils/cythoner.py ../scipy/_lib/_ccallback_c.pyx scipy/_lib/_ccallback_c.cpython-310-x86_64-linux-gnu.so.p/_ccallback_c.c</span></span> <span class="pl-s"><span class="pl-s">/bin/sh: 1: /mnt/c/Users/Jozsef/OSS/scipy-test/scipy/_build_utils/cythoner.py: not found</span></span> <span class="pl-s"><span class="pl-s">[12/1562] Compiling C++ object scipy/_lib/_uarray/_uarray.cpython-310-x86_64-linux-gnu.so.p/_uarray_dispatch.cxx.o</span></span> <span class="pl-s"><span class="pl-s">ninja: build stopped: subcommand failed.</span></span> <span class="pl-s"><span class="pl-s">Build failed!</span></span></pre></div> <p dir="auto">If I try running <code class="notranslate">cythoner.py</code> directly:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="-bash: /mnt/c/Users/Jozsef/OSS/scipy-conda/scipy/_build_utils/cythoner.py: python3: bad interpreter: No such file or directory"><pre class="notranslate">-bash: /mnt/c/Users/Jozsef/OSS/scipy-conda/scipy/_build_utils/cythoner.py: python3: bad interpreter: No such file or directory</pre></div> <p dir="auto">I'm using conda with WSL (Ubuntu).</p>
1
<p dir="auto">This has started to happen to me yesterday out of the blue. I have Mac Pro OS v 10.9.5. Now I can't even provision my machines properly - Mac just reboots (it hangs on the first run, after I ^C and run another one - it reboots).<br> I've tried applying fix from the note above to sshpass 1.05 and tried to bing 1.04 (which doesn't work at all).<br> Are there any solutions for the Mac users?<br> I've tried to provide pass in the HOSTS file and with --ask-pass - same result</p> <p dir="auto">[This is the same issue that was discussed here - https://github.com/<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="23120845" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible/issues/5007" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible/issues/5007/hovercard" href="https://github.com/ansible/ansible/issues/5007">/issues/5007</a>]</p>
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <ul dir="auto"> <li>Dependencies</li> <li>Conditionals</li> <li>Playbooks</li> </ul> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.3.1.0 config file = /opt/uss/ansible/config/test.cfg configured module search path = [u'/usr/share/ansible'] python version = 2.7.5 (default, Oct 11 2015, 17:47:16) [GCC 4.8.3 20140911 (Red Hat 4.8.3-9)]"><pre class="notranslate"><code class="notranslate">ansible 2.3.1.0 config file = /opt/uss/ansible/config/test.cfg configured module search path = [u'/usr/share/ansible'] python version = 2.7.5 (default, Oct 11 2015, 17:47:16) [GCC 4.8.3 20140911 (Red Hat 4.8.3-9)] </code></pre></div> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">N/A</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">If a server is skipped in a playbook, the dependencies for subsequent roles do not run.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="----- hosts.yml ------ dev # rhel box centtest # rhel box cent6test # rhel box sles # suse box ----- site.yml ----- - hosts: all roles: - { role: upgrade_kernel, when: ansible_os_family != 'Suse' } - { role: uptodate } ----- roles/upgrade_kernel/meta/main.yml ----- allow_duplicates: yes dependencies: - { role: preinstall } ----- roles/uptodate/meta/main.yml ----- allow_duplicates: yes dependencies: - { role: preinstall } ----- roles/preinstall/tasks/main.yml ----- - name: (main) Preinstall Checks include: &quot;{{ ansible_pkg_mgr }}.yml&quot; ----- roles/preinstall/tasks/yum.yml ------ - name: (yum) [1/2] Cache is dispelled file: path: &quot;/var/cache/yum/&quot; state: absent - name: (yum) [2/2] Execute yum clean command: /usr/bin/yum clean all ----- roles/preinstall/tasks/zypper.yml ----- - name: (zypper) [1/1] Cache is dispelled file: path: &quot;/var/cache/zypper/&quot; state: absent "><pre class="notranslate">---<span class="pl-s">-- hosts.yml ------</span> <span class="pl-s">dev </span><span class="pl-c"><span class="pl-c">#</span> rhel box</span> <span class="pl-s">centtest </span><span class="pl-c"><span class="pl-c">#</span> rhel box</span> <span class="pl-s">cent6test </span><span class="pl-c"><span class="pl-c">#</span> rhel box</span> <span class="pl-s">sles </span><span class="pl-c"><span class="pl-c">#</span> suse box</span> ---<span class="pl-s">-- site.yml -----</span> - <span class="pl-ent">hosts</span>: <span class="pl-s">all</span> <span class="pl-ent">roles</span>: - <span class="pl-s">{ role: upgrade_kernel, when: ansible_os_family != 'Suse' }</span> - <span class="pl-s">{ role: uptodate }</span> ---<span class="pl-s">-- roles/upgrade_kernel/meta/main.yml -----</span> <span class="pl-ent">allow_duplicates</span>: <span class="pl-s">yes</span> <span class="pl-ent">dependencies</span>: - <span class="pl-s">{ role: preinstall }</span> ---<span class="pl-s">-- roles/uptodate/meta/main.yml -----</span> <span class="pl-ent">allow_duplicates</span>: <span class="pl-s">yes</span> <span class="pl-ent">dependencies</span>: - <span class="pl-s">{ role: preinstall }</span> ---<span class="pl-s">-- roles/preinstall/tasks/main.yml -----</span> - <span class="pl-ent">name</span>: <span class="pl-s">(main) Preinstall Checks</span> <span class="pl-ent">include</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ ansible_pkg_mgr }}.yml<span class="pl-pds">"</span></span> ---<span class="pl-s">-- roles/preinstall/tasks/yum.yml ------</span> - <span class="pl-ent">name</span>: <span class="pl-s">(yum) [1/2] Cache is dispelled</span> <span class="pl-ent">file</span>: <span class="pl-ent">path</span>: <span class="pl-s"><span class="pl-pds">"</span>/var/cache/yum/<span class="pl-pds">"</span></span> <span class="pl-ent">state</span>: <span class="pl-s">absent</span> - <span class="pl-ent">name</span>: <span class="pl-s">(yum) [2/2] Execute yum clean</span> <span class="pl-ent">command</span>: <span class="pl-s">/usr/bin/yum clean all</span> ---<span class="pl-s">-- roles/preinstall/tasks/zypper.yml -----</span> - <span class="pl-ent">name</span>: <span class="pl-s">(zypper) [1/1] Cache is dispelled</span> <span class="pl-ent">file</span>: <span class="pl-ent">path</span>: <span class="pl-s"><span class="pl-pds">"</span>/var/cache/zypper/<span class="pl-pds">"</span></span> <span class="pl-ent">state</span>: <span class="pl-s">absent</span> </pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">I expected that even though a SUSE box would be skipped for the first role in the playbook, that when it ran the second time, it would have its dependency run.</p> <h5 dir="auto">ACTUAL RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK [preinstall : (main) Preinstall Checks] ****************************** task path: /ansible/orchest/ansible-orchestrator-roles/preinstall/tasks/main.yml:3 skipping: [sles] =&gt; { &quot;changed&quot;:false, &quot;skip_reason&quot;: &quot;Conditional result was False&quot;, &quot;skipped&quot;: true } included: /ansible/orchest/ansible-orchestrator-roles/preinstall/tasks/yum.yml for cent6test, dev, centtest # # # The three servers run preinstall successfully, and then the rest of upgrade_kernel runs and finishes successfully # # TASK [preinstall : (main) Preinstall Checks] ************************* task path: /ansible/orchest/ansible-orchestrator-roles/preinstall/tasks/main.yml:3 included: /ansible/orchest/ansible-orchestrator-roles/preinstall/tasks/zypper.yml for sles META: noop META: noop TASK [preinstall : (zypper) [1/1] Cache is dispelled] **************************** task path: /ansible/orchest/ansible-orchestrator-roles/preinstall/tasks/zypper.yml:3 META: noop skipping: [sles] =&gt; { &quot;changed&quot;: false, &quot;skip_reason&quot;: &quot;Conditional result was False&quot;, &quot;skipped&quot;: true } META: noop META: noop TASK [uptodate : (main) [1/1] Update all packages] ******************************* task path: /ansible/orchest/ansible-orchestrator-roles/uptodate/tasks/main.yml:3 included: /ansible/orchest/ansible-orchestrator-roles/uptodate/tasks/yum.yml for cent6test, dev, centtest included: /ansible/orchest/ansible-orchestrator-roles/uptodate/tasks/zypper.yml for sles"><pre class="notranslate"><code class="notranslate">TASK [preinstall : (main) Preinstall Checks] ****************************** task path: /ansible/orchest/ansible-orchestrator-roles/preinstall/tasks/main.yml:3 skipping: [sles] =&gt; { "changed":false, "skip_reason": "Conditional result was False", "skipped": true } included: /ansible/orchest/ansible-orchestrator-roles/preinstall/tasks/yum.yml for cent6test, dev, centtest # # # The three servers run preinstall successfully, and then the rest of upgrade_kernel runs and finishes successfully # # TASK [preinstall : (main) Preinstall Checks] ************************* task path: /ansible/orchest/ansible-orchestrator-roles/preinstall/tasks/main.yml:3 included: /ansible/orchest/ansible-orchestrator-roles/preinstall/tasks/zypper.yml for sles META: noop META: noop TASK [preinstall : (zypper) [1/1] Cache is dispelled] **************************** task path: /ansible/orchest/ansible-orchestrator-roles/preinstall/tasks/zypper.yml:3 META: noop skipping: [sles] =&gt; { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } META: noop META: noop TASK [uptodate : (main) [1/1] Update all packages] ******************************* task path: /ansible/orchest/ansible-orchestrator-roles/uptodate/tasks/main.yml:3 included: /ansible/orchest/ansible-orchestrator-roles/uptodate/tasks/yum.yml for cent6test, dev, centtest included: /ansible/orchest/ansible-orchestrator-roles/uptodate/tasks/zypper.yml for sles </code></pre></div> <h5 dir="auto">Workaround</h5> <p dir="auto">Switch the order of the playbooks. This way all servers' dependencies are accepted initially.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- hosts: all roles: - { role: uptodate } - { role: upgrade_kernel, when: ansible_os_family != 'Suse' }"><pre class="notranslate"><code class="notranslate">- hosts: all roles: - { role: uptodate } - { role: upgrade_kernel, when: ansible_os_family != 'Suse' } </code></pre></div> <p dir="auto">This does not seem scalable, and does seem prone to error.</p> <h5 dir="auto">See Also</h5> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="132996888" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible/issues/14438" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible/issues/14438/hovercard" href="https://github.com/ansible/ansible/issues/14438">#14438</a></p> <p dir="auto"><a href="https://groups.google.com/forum/#!topic/ansible-project/24k-m1h4nnk" rel="nofollow">https://groups.google.com/forum/#!topic/ansible-project/24k-m1h4nnk</a></p>
0
<p dir="auto">Enable a filtered query to apply filter to both parent and child documents but return parent documents for has_child query.</p> <p dir="auto">e.g.<br> curl -X PUT "<a href="http://localhost:9200/foobar" rel="nofollow">http://localhost:9200/foobar</a>" -d "{"mappings":{"Foo":{},"Bar":{"_parent":{"type":"Foo"}}}}"</p> <p dir="auto">curl -X PUT "<a href="http://localhost:9200/foobar/Foo/1" rel="nofollow">http://localhost:9200/foobar/Foo/1</a>" -d "{"foo":"abc","access":"yes"}"</p> <p dir="auto">curl -X PUT "<a href="http://localhost:9200/foobar/Bar/2?parent=1" rel="nofollow">http://localhost:9200/foobar/Bar/2?parent=1</a>" -d "{"bar":"xyz","access":"no"}"</p> <p dir="auto">The following filtered query would not return a result, since the filter would be applied to both the parent and child documents; however, as implemented now, the parent document would be returned, since the filter is not applied to the child document.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;query&quot;: { &quot;filtered&quot;: { &quot;query&quot;: { &quot;has_child&quot;: { &quot;type&quot;: &quot;Bar&quot;, &quot;query&quot;: { &quot;term&quot;: { &quot;bar&quot;: &quot;xyz&quot; } } } }, &quot;filter&quot;: { &quot;term&quot;: { &quot;access&quot;: &quot;yes&quot; } } } } }"><pre class="notranslate"><code class="notranslate">{ "query": { "filtered": { "query": { "has_child": { "type": "Bar", "query": { "term": { "bar": "xyz" } } } }, "filter": { "term": { "access": "yes" } } } } } </code></pre></div> <p dir="auto">Perhaps an additional filtered_query strategy could be specified which would apply the filter first to both parent and child documents.</p>
<p dir="auto">this issue is based on the thread at location<br> <a href="https://groups.google.com/forum/?hl=en&amp;fromgroups#!topic/elasticsearch/VCwQoZ1Aj4I" rel="nofollow">https://groups.google.com/forum/?hl=en&amp;fromgroups#!topic/elasticsearch/VCwQoZ1Aj4I</a></p> <p dir="auto">requesting to allow using update API (using scripts) in bulk via the bulk request API.</p>
0
<p dir="auto">Microsoft Windows [Versión 10.0.18363.836]<br> PowerToys Release v0.18.1<br> PowerToys Run Module</p> <p dir="auto">PowerToys Run Shortcut doesn't work at all. try to call it with different shortcuts, but it never pops up.</p> <p dir="auto">The v0.18 worked well. I have uninstalled and reinstalled and everything still the same.</p>
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: [Version 10.0.18362.836] PowerToys version: v0.18.1 PowerToys: PowerToys Run"><pre class="notranslate"><code class="notranslate">Windows build number: [Version 10.0.18362.836] PowerToys version: v0.18.1 PowerToys: PowerToys Run </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">With PowerToys installed and running, press <kbd>Alt</kbd> + <kbd>Space</kbd> from any screen.</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">PowerToys Run popup shows up to start typing a command or a search term</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">window menu (Restore / Move / Size / Minimize / Maximize / Close) shows up in the top left corner of the focused window if the focus is on a window or nothing at all if the focus is on the desktop.</p> <h1 dir="auto">Screenshots</h1> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/7889660/82753718-c1905f00-9dbf-11ea-9c59-00d439b9aece.png"><img src="https://user-images.githubusercontent.com/7889660/82753718-c1905f00-9dbf-11ea-9c59-00d439b9aece.png" alt="capture" style="max-width: 100%;"></a></p>
1
<p dir="auto"><strong>I'm submitting a ...</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report"><pre class="notranslate"><code class="notranslate">[x] bug report </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> Errors that occur within an <code class="notranslate">*ngIf="condition"</code>, where <code class="notranslate">condition</code> is made truthy via a promise are swallowed (not logged to console).</p> <p dir="auto"><strong>Expected behavior</strong><br> All uncaught errors should be logged to console (when using default <code class="notranslate">ErrorHandler</code>).</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p> <p dir="auto">The following code will not log <em>test error!</em> to the console:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { Component } from '@angular/core'; @Component({ selector: 'my-app', template: `&lt;div *ngIf=&quot;condition&quot;&gt;{{ fail() }}&lt;/div&gt;` }) export class AppComponent { condition = false; ngOnInit() { Promise.resolve().then(() =&gt; { this.condition = true; }); } fail() { console.log('should fail...'); throw new Error('test error!'); } }"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">Component</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@angular/core'</span><span class="pl-kos">;</span> @<span class="pl-smi">Component</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">selector</span>: <span class="pl-s">'my-app'</span><span class="pl-kos">,</span> <span class="pl-c1">template</span>: <span class="pl-s">`&lt;div *ngIf="condition"&gt;{{ fail() }}&lt;/div&gt;`</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-smi">AppComponent</span> <span class="pl-kos">{</span> <span class="pl-c1">condition</span> <span class="pl-c1">=</span> <span class="pl-c1">false</span><span class="pl-kos">;</span> <span class="pl-en">ngOnInit</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">Promise</span><span class="pl-kos">.</span><span class="pl-en">resolve</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">condition</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-en">fail</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">'should fail...'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">throw</span> <span class="pl-k">new</span> <span class="pl-smi">Error</span><span class="pl-kos">(</span><span class="pl-s">'test error!'</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>Plunker</strong>: <a href="http://plnkr.co/edit/4I93tFxiKIBf8qvqcyzZ?p=preview" rel="nofollow">http://plnkr.co/edit/4I93tFxiKIBf8qvqcyzZ?p=preview</a></p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p> <p dir="auto">Debugging code in components and templates that involve promises.</p> <p dir="auto"><strong>Please tell us about your environment:</strong></p> <ul dir="auto"> <li><strong>Angular version:</strong> 4.0.2</li> <li><strong>Browser:</strong> all</li> <li><strong>Language:</strong> TypeScript 2.2</li> </ul> <hr> <p dir="auto"><strong>EDIT:</strong> I narrowed down the issue (it has nothing to do with observables)</p>
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ X] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[ X] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong></p> <p dir="auto">An error inside a template is swallowed if the template was rendered as a response to a promise resolution.</p> <p dir="auto">In other cases the same exception is properly logged. Exception in .then() is OK. Exception in template that was not rendered in response to a promise is OK</p> <p dir="auto"><strong>Expected behavior</strong></p> <p dir="auto">The exception should either be passed to the .catch-function or logged.</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p> <p dir="auto"><a href="http://plnkr.co/edit/ilqlcUUnrRpvFEFuzQc6?p=preview&amp;open=app%2Fapp.component.ts" rel="nofollow">http://plnkr.co/edit/ilqlcUUnrRpvFEFuzQc6?p=preview&amp;open=app%2Fapp.component.ts</a></p> <p dir="auto">Run the plunkr and see that there is no exeption.</p> <p dir="auto">Comment out Mark2 and put back in Mark1 or Mark3 and see that the error is handled properly.</p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p> <p dir="auto">When the error inside templates silently fails It makes it much harder for me to figure out why the template does not finish rendering.</p> <ul dir="auto"> <li> <p dir="auto"><strong>Angular version:</strong> 4.0.0</p> </li> <li> <p dir="auto"><strong>Browser:</strong> Chrome, bot probably all.</p> </li> </ul>
1
<p dir="auto">Compiling the following code:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&quot;use strict&quot;; export default class {};"><pre class="notranslate"><span class="pl-s">"use strict"</span><span class="pl-kos">;</span> <span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-k">class</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div> <p dir="auto">Using the command line <code class="notranslate">tsc --t es6 --m commonjs</code> produces illegal JavaScript:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&quot;use strict&quot;; class { } exports.default = default_1 ;"><pre class="notranslate"><span class="pl-s">"use strict"</span><span class="pl-kos">;</span> <span class="pl-k">class</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-c1">default</span> <span class="pl-c1">=</span> <span class="pl-s1">default_1</span> <span class="pl-kos">;</span></pre></div> <p dir="auto">I realize this is a weird combination of switches, however it seems necessary to target current versions of Node.js/V8 that don't yet natively support ES6 modules.</p>
<p dir="auto">Reported by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/kuon/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/kuon">@kuon</a> in:<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="86226862" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript-Sublime-Plugin/issues/220" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript-Sublime-Plugin/issues/220/hovercard" href="https://github.com/microsoft/TypeScript-Sublime-Plugin/issues/220">microsoft/TypeScript-Sublime-Plugin#220</a></p> <p dir="auto">When I use autoformat, the following block get the following indentation:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="toolsElement = h.div({ className: &quot;row-tools&quot; }, h.button({ className: &quot;add-node&quot;, onClick: () =&gt; DataController.createNode(this.props.parentId) }, &quot;Create new node&quot;) );"><pre class="notranslate"><code class="notranslate">toolsElement = h.div({ className: "row-tools" }, h.button({ className: "add-node", onClick: () =&gt; DataController.createNode(this.props.parentId) }, "Create new node") ); </code></pre></div> <p dir="auto">While I expect (Last line should be to the left):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="toolsElement = h.div({ className: &quot;row-tools&quot; }, h.button({ className: &quot;add-node&quot;, onClick: () =&gt; DataController.createNode(this.props.parentId) }, &quot;Create new node&quot;) );"><pre class="notranslate"><code class="notranslate">toolsElement = h.div({ className: "row-tools" }, h.button({ className: "add-node", onClick: () =&gt; DataController.createNode(this.props.parentId) }, "Create new node") ); </code></pre></div> <p dir="auto">Another example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="return ( h.div({ className: &quot;view-node-row&quot;, style: { width: width, height: rowHeight } }, backgroundElement, centerElement, toolsElement, h.div({ className: &quot;nodes&quot; }, items) ) );"><pre class="notranslate"><code class="notranslate">return ( h.div({ className: "view-node-row", style: { width: width, height: rowHeight } }, backgroundElement, centerElement, toolsElement, h.div({ className: "nodes" }, items) ) ); </code></pre></div> <p dir="auto">While I expect:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="return ( h.div({ className: &quot;view-node-row&quot;, style: { width: width, height: rowHeight } }, backgroundElement, centerElement, toolsElement, h.div({ className: &quot;nodes&quot; }, items) ) );"><pre class="notranslate"><code class="notranslate">return ( h.div({ className: "view-node-row", style: { width: width, height: rowHeight } }, backgroundElement, centerElement, toolsElement, h.div({ className: "nodes" }, items) ) ); </code></pre></div> <p dir="auto">PS: I'm doing react without JSX because TypeScript &gt; JSX, but proper indentation is really crucial to readability.</p>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/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: mac</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/13311001/69123200-b93b2c80-0adb-11ea-90df-89868d248893.png"><img src="https://user-images.githubusercontent.com/13311001/69123200-b93b2c80-0adb-11ea-90df-89868d248893.png" alt="image" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/13311001/69123211-bcceb380-0adb-11ea-99a7-ff96313d7b1e.png"><img src="https://user-images.githubusercontent.com/13311001/69123211-bcceb380-0adb-11ea-99a7-ff96313d7b1e.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.<br> <a href="https://github.com/kiwiflydream/study-example/blob/master/study-dubbo-example/study-dubbo-example-provider/src/main/java/cn/coder4j/study/example/dubbo/provider/HelloTelnetHandler.java">DEMO url</a></p>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.6</li> <li>Operating System version: win10</li> <li>Java version: 1.8</li> </ul> <p dir="auto">nacos cloud 集成dubbo 启动报错<br> 2020-09-29 11:30:54.661 ERROR 2728 --- [ main] .a.d.m.s.InMemoryWritableMetadataService : [DUBBO] publishProvider interfaceName is empty . providerUrl: consumer://192.168.5.10/com.alibaba.cloud.dubbo.service.DubboMetadataService?application=dubbo-consumer&amp;check=false&amp;dubbo=2.0.2&amp;generic=true&amp;group=dubbo-service1&amp;interface=com.alibaba.cloud.dubbo.service.DubboMetadataService&amp;pid=2728&amp;qos.enable=false&amp;release=2.7.6&amp;side=consumer&amp;sticky=false&amp;timestamp=1601350253658&amp;version=1.0.0, dubbo version: 2.7.6, current host: 192.168.5.10</p> <p dir="auto">错误尽管不影响运行,但这个错误有什么办法可以解决么</p>
0
<p dir="auto">If you know how to fix the issue, make a pull request instead.</p> <ul class="contains-task-list"> <li>[x ] 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>[x ] 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>[x ] <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/huhuanming/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/huhuanming">@huhuanming</a></li> </ul> </li> </ul> <p dir="auto">may be repeatedly dependent on <code class="notranslate">@react-native</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" &quot;dependencies&quot;: { &quot;@types/react&quot;: &quot;*&quot;, &quot;@types/react-native&quot;: &quot;*&quot; }"><pre class="notranslate"><code class="notranslate"> "dependencies": { "@types/react": "*", "@types/react-native": "*" } </code></pre></div> <p dir="auto">and<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/22516157/47431258-09a76400-d7ce-11e8-86e0-3c88d0829dc5.png"><img src="https://user-images.githubusercontent.com/22516157/47431258-09a76400-d7ce-11e8-86e0-3c88d0829dc5.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">and i remove <code class="notranslate">@types/react-navigation</code> then errors disappears</p>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> 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"> 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"> <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: @....</li> </ul> </li> </ul> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/andy-ms/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/andy-ms">@andy-ms</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/RyanCavanaugh/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/RyanCavanaugh">@RyanCavanaugh</a></p> <p dir="auto">A while ago all dependents have been tested also in CI. This was a pain for node as it resulted in timeouts and unrelated fails as it took too long to test all of them with all typescript version.<br> To my understanding this was improved via <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="271617256" data-permission-text="Title is private" data-url="https://github.com/microsoft/types-publisher/issues/398" data-hovercard-type="pull_request" data-hovercard-url="/microsoft/types-publisher/pull/398/hovercard" href="https://github.com/microsoft/types-publisher/pull/398">microsoft/types-publisher#398</a> to test dependents just with typescript@next.</p> <p dir="auto">Now it looks like that dependents are not tested at all anymore. is this intended?<br> See e.g. <a href="https://travis-ci.org/DefinitelyTyped/DefinitelyTyped/builds/316119572?utm_source=github_status&amp;utm_medium=notification" rel="nofollow">https://travis-ci.org/DefinitelyTyped/DefinitelyTyped/builds/316119572?utm_source=github_status&amp;utm_medium=notification</a></p>
0
<p dir="auto">I'm getting the following error:</p> <p dir="auto"><code class="notranslate">Uncaught SecurityError: Blocked a frame with origin "http://localhost:8080" from accessing a frame with origin "https://w.soundcloud.com". The frame requesting access has a protocol of "http", the frame being accessed has a protocol of "https". Protocols must match.</code></p> <p dir="auto">I have a simple app that can display a list of sound cloud players.</p> <p dir="auto">Steps to reproduce:</p> <p dir="auto">Clone my repo <code class="notranslate">https://github.com/samu/vue-playground</code>, then <code class="notranslate">npm install &amp;&amp; npm run dev</code></p> <p dir="auto">In the browser you'll see a bunch of buttons labeled with <code class="notranslate">x</code>: Click the very last one and the exception will be thrown.</p>
<h3 dir="auto">Version</h3> <p dir="auto">2.6.14</p> <h3 dir="auto">Reproduction link</h3> <p dir="auto"><a href="https://codepen.io/toshirin/pen/GROapeK" rel="nofollow">codepen.io</a></p> <h3 dir="auto">Steps to reproduce</h3> <ol dir="auto"> <li>Go to: <a href="https://codepen.io/toshirin/pen/GROapeK" rel="nofollow">https://codepen.io/toshirin/pen/GROapeK</a></li> <li>Type something to text box.</li> <li>Duplicated text appears.</li> </ol> <p dir="auto">It may happen when initial text is empty("").If there is some text in the initial text, it doesn't happen.</p> <h3 dir="auto">What is expected?</h3> <p dir="auto">No duplicated text is displayed.<br> Display the text same as I was typed.</p> <h3 dir="auto">What is actually happening?</h3> <p dir="auto">Duplicates text which was not typed by me is appeared.</p> <hr> <p dir="auto">In my investigation, I found updateChildren()'s addVnodes()(see below) causes this.<br> <a href="https://github.com/vuejs/vue/blob/dev/src/core/vdom/patch.js#L470">https://github.com/vuejs/vue/blob/dev/src/core/vdom/patch.js#L470</a><br> During the issue is occuring, the debbuger says:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="oldCh=[]; newCh=[&lt;vnode&gt;]; (which includes typed text) oldStartIdx=0; oldEndIdx=-1;"><pre class="notranslate"><code class="notranslate">oldCh=[]; newCh=[&lt;vnode&gt;]; (which includes typed text) oldStartIdx=0; oldEndIdx=-1; </code></pre></div> <p dir="auto">So L468's condition <code class="notranslate">oldStartIdx &gt; oldEndIdx</code> seem to be true.<br> But I don't know how I fix.</p>
0
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/scipy/ticket/1564" rel="nofollow">http://projects.scipy.org/scipy/ticket/1564</a> on 2011-11-20 by trac user laserson, assigned to unknown.</em></p> <p dir="auto">Hi all,</p> <p dir="auto">I have been looking for the source of some segfaults I have been getting when trying to use the linkage function in scipy.cluster.hierarchy, and I finally found the reason (with the help of our cluster's IT person, Chris Walker).</p> <p dir="auto">In the 'linkage' function in hierarchy.c, the three variables <code class="notranslate">n</code>, <code class="notranslate">np</code>, and <code class="notranslate">npc2</code>, are declared as int types. However, if <code class="notranslate">n=50000</code>, which is the case with my input files, then the value of NCHOOSE2(n) overflows, leading <code class="notranslate">malloc</code> to return a null pointer because the requested number of bytes is negative.</p> <p dir="auto">If you uncomment the debug message at l. 461, you will find this to be true.</p> <p dir="auto">These three variables should be changed to be long ints, or something similar, to accomodate larger input matrices.</p> <p dir="auto">Thanks!<br> Uri</p>
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/scipy/ticket/720" rel="nofollow">http://projects.scipy.org/scipy/ticket/720</a> on 2008-08-08 by trac user aisaac, assigned to unknown.</em></p> <p dir="auto">NumPy has <code class="notranslate">trapz</code> in the <code class="notranslate">function_base</code> module.<br> SciPy has <code class="notranslate">cumtrapz</code> in the <code class="notranslate">quadrature</code> module.<br> The code is essentially identical.<br> Presumably this duplication should be eliminated<br> by having SciPy import the NumPy function?</p>
0
<p dir="auto">First of all, thanks for provide great tools for e2e testing</p> <p dir="auto">But do it possible do thing like in cypress components test currently ?</p> <p dir="auto"><a href="https://docs.cypress.io/guides/component-testing/introduction" rel="nofollow">https://docs.cypress.io/guides/component-testing/introduction</a></p> <p dir="auto">Just render the react component and assert the results?</p>
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: v1.32.0</li> <li>Operating System: macOS 13.2</li> <li>Browser: Chromium</li> </ul> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="test('Associated Content Editable', async ({ page, }, testInfo) =&gt; { testInfo.snapshotSuffix = ''; await page.goto('localhost:3000/archimedes.html'); const elementCoordinates = await page.locator(`#main-editor [data-id=&quot;mc_FL74IM4XB00006_vhX7FK&quot;]`).boundingBox(); //Putting cursor at the start of 2nd associated content const xPos = elementCoordinates.x; const yPos = elementCoordinates.y; await page.mouse.click(xPos, yPos); //Third Backspace should do nothing - prevent pushing associated //content tag within another associated content tag. await keyPress(page, `Backspace`); await waitForTime(page, 200); await keyPress(page, `Backspace`); await waitForTime(page, 200); await keyPress(page, `Backspace`); await waitForTime(page, 200); const editor = await page.waitForSelector('#main-editor'); const fieldValue = await editor.evaluate((el) =&gt; el.innerHTML, editor); expect(fieldValue).toMatchSnapshot(); await page.close(); });"><pre class="notranslate"><span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">'Associated Content Editable'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> page<span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-s1">testInfo</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-s1">testInfo</span><span class="pl-kos">.</span><span class="pl-c1">snapshotSuffix</span> <span class="pl-c1">=</span> <span class="pl-s">''</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span><span class="pl-s">'localhost:3000/archimedes.html'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">elementCoordinates</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">locator</span><span class="pl-kos">(</span><span class="pl-s">`#main-editor [data-id="mc_FL74IM4XB00006_vhX7FK"]`</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">boundingBox</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">//Putting cursor at the start of 2nd associated content</span> <span class="pl-k">const</span> <span class="pl-s1">xPos</span> <span class="pl-c1">=</span> <span class="pl-s1">elementCoordinates</span><span class="pl-kos">.</span><span class="pl-c1">x</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">yPos</span> <span class="pl-c1">=</span> <span class="pl-s1">elementCoordinates</span><span class="pl-kos">.</span><span class="pl-c1">y</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-c1">mouse</span><span class="pl-kos">.</span><span class="pl-en">click</span><span class="pl-kos">(</span><span class="pl-s1">xPos</span><span class="pl-kos">,</span> <span class="pl-s1">yPos</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">//Third Backspace should do nothing - prevent pushing associated</span> <span class="pl-c">//content tag within another associated content tag.</span> <span class="pl-k">await</span> <span class="pl-en">keyPress</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">,</span> <span class="pl-s">`Backspace`</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-en">waitForTime</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">,</span> <span class="pl-c1">200</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-en">keyPress</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">,</span> <span class="pl-s">`Backspace`</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-en">waitForTime</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">,</span> <span class="pl-c1">200</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-en">keyPress</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">,</span> <span class="pl-s">`Backspace`</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-en">waitForTime</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">,</span> <span class="pl-c1">200</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">editor</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">waitForSelector</span><span class="pl-kos">(</span><span class="pl-s">'#main-editor'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">fieldValue</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">editor</span><span class="pl-kos">.</span><span class="pl-en">evaluate</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">el</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-s1">el</span><span class="pl-kos">.</span><span class="pl-c1">innerHTML</span><span class="pl-kos">,</span> <span class="pl-s1">editor</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">fieldValue</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toMatchSnapshot</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">close</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
<h3 dir="auto">Is this a bug report or feature request?</h3> <p dir="auto">Bug</p> <p dir="auto"><a href="https://github.com/julien-f/issue-babel-env-duplicate">Repro repo</a>.</p> <h3 dir="auto">Input Code</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export default class { method ({ ...object }) {} }"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-k">class</span> <span class="pl-kos">{</span> <span class="pl-en">method</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> ...<span class="pl-s1">object</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> <h3 dir="auto">Babel/Babylon Configuration (.babelrc, package.json, cli command)</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;presets&quot;: [ [ &quot;@babel/env&quot;, { &quot;shippedProposals&quot;: true, &quot;targets&quot;: { &quot;node&quot;: 8 }, &quot;useBuiltIns&quot;: &quot;usage&quot; } ] ] }"><pre class="notranslate"><span class="pl-kos">{</span> <span class="pl-s">"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-s">"shippedProposals"</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-s">"targets"</span>: <span class="pl-kos">{</span> <span class="pl-s">"node"</span>: <span class="pl-c1">8</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-s">"useBuiltIns"</span>: <span class="pl-s">"usage"</span> <span class="pl-kos">}</span> <span class="pl-kos">]</span> <span class="pl-kos">]</span> <span class="pl-kos">}</span></pre></div> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">Should compile.</p> <h3 dir="auto">Current Behavior</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TypeError: index.js: Duplicate declaration &quot;object&quot; 1 | export default class { &gt; 2 | method ({ ...object }) {} | ^ 3 | } 4 | at File.buildCodeFrameError (issue-babel-env-duplicate/node_modules/@babel/core/lib/transformation/file/file.js:209:12) at Scope.checkBlockScopedCollisions (issue-babel-env-duplicate/node_modules/@babel/traverse/lib/scope/index.js:303:27) at Scope.registerBinding (issue-babel-env-duplicate/node_modules/@babel/traverse/lib/scope/index.js:485:16) at Scope.registerDeclaration (issue-babel-env-duplicate/node_modules/@babel/traverse/lib/scope/index.js:404:14) at Object.BlockScoped (issue-babel-env-duplicate/node_modules/@babel/traverse/lib/scope/index.js:146:28) at Object.newFn (issue-babel-env-duplicate/node_modules/@babel/traverse/lib/visitors.js:266:17) at NodePath._call (issue-babel-env-duplicate/node_modules/@babel/traverse/lib/path/context.js:64:19) at NodePath.call (issue-babel-env-duplicate/node_modules/@babel/traverse/lib/path/context.js:34:14) at NodePath.visit (issue-babel-env-duplicate/node_modules/@babel/traverse/lib/path/context.js:99:12) at TraversalContext.visitQueue (issue-babel-env-duplicate/node_modules/@babel/traverse/lib/context.js:139:18)"><pre class="notranslate"><code class="notranslate">TypeError: index.js: Duplicate declaration "object" 1 | export default class { &gt; 2 | method ({ ...object }) {} | ^ 3 | } 4 | at File.buildCodeFrameError (issue-babel-env-duplicate/node_modules/@babel/core/lib/transformation/file/file.js:209:12) at Scope.checkBlockScopedCollisions (issue-babel-env-duplicate/node_modules/@babel/traverse/lib/scope/index.js:303:27) at Scope.registerBinding (issue-babel-env-duplicate/node_modules/@babel/traverse/lib/scope/index.js:485:16) at Scope.registerDeclaration (issue-babel-env-duplicate/node_modules/@babel/traverse/lib/scope/index.js:404:14) at Object.BlockScoped (issue-babel-env-duplicate/node_modules/@babel/traverse/lib/scope/index.js:146:28) at Object.newFn (issue-babel-env-duplicate/node_modules/@babel/traverse/lib/visitors.js:266:17) at NodePath._call (issue-babel-env-duplicate/node_modules/@babel/traverse/lib/path/context.js:64:19) at NodePath.call (issue-babel-env-duplicate/node_modules/@babel/traverse/lib/path/context.js:34:14) at NodePath.visit (issue-babel-env-duplicate/node_modules/@babel/traverse/lib/path/context.js:99:12) at TraversalContext.visitQueue (issue-babel-env-duplicate/node_modules/@babel/traverse/lib/context.js:139:18) </code></pre></div> <h3 dir="auto">Possible Solution</h3> <h3 dir="auto">Context</h3> <h3 dir="auto">Your Environment</h3> <table role="table"> <thead> <tr> <th>software</th> <th>version(s)</th> </tr> </thead> <tbody> <tr> <td>Babel</td> <td>7.0.0-beta.39</td> </tr> <tr> <td>Babylon</td> <td></td> </tr> <tr> <td>node</td> <td>9.4.0</td> </tr> <tr> <td>npm</td> <td></td> </tr> <tr> <td>Operating System</td> <td></td> </tr> </tbody> </table>
<p dir="auto">See: <a href="https://github.com/babel/babel/pull/7869/files#r189395861">https://github.com/babel/babel/pull/7869/files#r189395861</a></p> <blockquote> <p dir="auto">Hey all, I'm concerned about this. Now that we've defined the ability to pass options to Babylon plugins, ordering becomes critical. What if some other piece of tooling injected a syntax plugin into the plugin list after this one, or before? Which one should take priority? For instance for <a href="https://github.com/babel/babel/pull/7934/files#diff-3a8233bcd2766d2c7d87f23f944f7726R12">https://github.com/babel/babel/pull/7934/files#diff-3a8233bcd2766d2c7d87f23f944f7726R12</a>, say the user's framework auto-enables flow, but the user wants to enable all, which comes first?</p> <p dir="auto">So far we've avoided this problem by not having options, and not worrying about duplicates. Now it will matter very much both what order your Babel plugins are in, but also what order they enable Babylon plugins in.</p> <p dir="auto">At a minimum, have we verified that the ordering on these is consistent with the ordering of visitors? e.g. If two plugins are enabled with different options, whichever one's visitors run first, is also the one who's Babylon configuration takes affect?</p> </blockquote> <p dir="auto">The plugin map logic in <a href="https://github.com/babel/babel/pull/7869/files#diff-8b7138068ab1dfcbfafe8422f16505cbR45">https://github.com/babel/babel/pull/7869/files#diff-8b7138068ab1dfcbfafe8422f16505cbR45</a> will always take the last set of options. If I'm piecing things together in my head correctly, that'll be a problem, because the <em>first</em> plugin in the list will run its visitors first, but the <em>last</em> plugin in the list will be the thing specifying the options to Babylon.</p>
0
<h5 dir="auto">Description of the problem</h5> <p dir="auto">It would be great to have the option to render in grayscale. It could be implemented as a new tonemapping type and set in renderer.tonemapping.</p>
<p dir="auto">I see that there's been some work done in the past in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="386811031" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/15360" data-hovercard-type="pull_request" data-hovercard-url="/mrdoob/three.js/pull/15360/hovercard" href="https://github.com/mrdoob/three.js/pull/15360">#15360</a> and <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/greggman/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/greggman">@greggman</a> has put together a nice article on the topic <a href="https://threejsfundamentals.org/threejs/lessons/threejs-post-processing-3dlut.html" rel="nofollow">here</a>. It's not entirely clear to me why the previous PR was closed but I wanted to bring this up as a nice addition to three.js. The utility has been better explained in the two links above but 3DLUTs are great for controlling the look and feel of a scene.</p> <p dir="auto">3DLUTs are supported in a variety of 3d engines and video editing software include <a href="https://docs.unity3d.com/Packages/[email protected]/manual/Color-Grading.html" rel="nofollow">Unity</a>, <a href="https://docs.unrealengine.com/en-US/Engine/Rendering/PostProcessEffects/UsingLUTs/index.html" rel="nofollow">Unreal Engine</a>, and <a href="https://doc.babylonjs.com/api/classes/babylon.colorgradingtexture" rel="nofollow">Babylonjs</a>. There are also a couple existing file formats for them including <a href="https://wwwimages2.adobe.com/content/dam/acom/en/products/speedgrade/cc/pdfs/cube-lut-specification-1.0.pdf" rel="nofollow">.cube</a> and <a href="http://community.foundry.com/discuss/topic/103636/format-spec-for-3dl?mode=Post&amp;postID=895258" rel="nofollow">.3dl</a> (though 3dl looks relatively undocumented).</p> <p dir="auto">These formats are available online and can also be <a href="https://helpx.adobe.com/photoshop/using/export-color-lookup-tables.html" rel="nofollow">created in tools like Photoshop</a> and would enable more artistic control over the look of the final scene.</p> <p dir="auto">I figure that just like gamma correction there could be a postprocessing effect and WebGLRenderer support that adds the LUT application to the end of the built in shaders:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const lut = new LUTLoader().load( '../path/to/lut.3dl' ); renderer.colorLUT3D = lut;"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">lut</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">LUTLoader</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">(</span> <span class="pl-s">'../path/to/lut.3dl'</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-c1">colorLUT3D</span> <span class="pl-c1">=</span> <span class="pl-s1">lut</span><span class="pl-kos">;</span></pre></div>
1
<p dir="auto">Add ability to flip from vertical to horizontal bar charts</p>
<p dir="auto">Make sure these boxes are checked before submitting your issue - thank you!</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the superset logs for python stacktraces and included it here as text if any</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have reproduced the issue with at least the latest released version of superset</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the issue tracker for the same issue and I haven't found one similar</li> </ul> <h3 dir="auto">Superset version</h3> <p dir="auto">Latest one, I'm pretty sure</p> <h3 dir="auto">Expected results</h3> <ul dir="auto"> <li>There is no horizontal bar chart visualization type. I was thinking it would be nice to add a "Transpose" checkbox under the Style tab to do this.</li> </ul> <h3 dir="auto">Actual results</h3> <p dir="auto">No horizontal bar chart option:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/e06e2e0814b8384853a1e4182e45c40f89512a10683e2e01b0366d91dc43b8cb/68747470733a2f2f692e696d6775722e636f6d2f3368475361786f2e706e67"><img src="https://camo.githubusercontent.com/e06e2e0814b8384853a1e4182e45c40f89512a10683e2e01b0366d91dc43b8cb/68747470733a2f2f692e696d6775722e636f6d2f3368475361786f2e706e67" alt="" data-canonical-src="https://i.imgur.com/3hGSaxo.png" style="max-width: 100%;"></a></p> <p dir="auto">Where I suggest putting the Transpose option:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/c460b640eb55df3ccc1d9ec613c6aece0ad972ddba5dedcfc2322fba71166c85/68747470733a2f2f692e696d6775722e636f6d2f6c536b4e5a4b632e706e67"><img src="https://camo.githubusercontent.com/c460b640eb55df3ccc1d9ec613c6aece0ad972ddba5dedcfc2322fba71166c85/68747470733a2f2f692e696d6775722e636f6d2f6c536b4e5a4b632e706e67" alt="" data-canonical-src="https://i.imgur.com/lSkNZKc.png" style="max-width: 100%;"></a></p> <h3 dir="auto">Steps to reproduce</h3> <ul dir="auto"> <li>Go to a chart, then see screenshots above</li> </ul>
1
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong></p> <p dir="auto">bug</p> <p dir="auto"><strong>What is the current behavior?</strong></p> <p dir="auto">Setup:</p> <ul dir="auto"> <li>A Component with a counter in it to track the number of renders.</li> <li>A container Component with a counter in it</li> <li>A container PureComponent with with a counter in it.</li> </ul> <p dir="auto"><em>All three of the above components accept children.</em></p> <ul dir="auto"> <li>A main component that has a button in it that updates the state of some string value once</li> </ul> <p dir="auto">Scenario 1:</p> <ul dir="auto"> <li>I use the regular container component with a single child: the string value state</li> <li>I click the button multiple times</li> <li>It updates each time as expected</li> </ul> <p dir="auto">Scenario 2:</p> <ul dir="auto"> <li>I use the PureComponentContainer with a single child: a static string</li> <li>I click the button multiple times</li> <li>it has only renders 1 times (it's initial render) as expected</li> </ul> <p dir="auto">Scenario 3:</p> <ul dir="auto"> <li>I use the PureComponentContainer with a single child: the string value state</li> <li>I click the button multiple times</li> <li>it has only renders 2 times (it's initial render, and updated render) as expected</li> </ul> <p dir="auto">Scenario 4:</p> <ul dir="auto"> <li>I use the PureComponentContainer with a two children: the string value state, and a static value</li> <li>I click the button multiple times</li> <li>it updates each time I click, although the state value has changed only once. This is not expected</li> </ul> <p dir="auto">Here is an example where I implement each scenario as well as show a comparison using === and reacts shallowEquals</p> <p dir="auto"><a href="https://codesandbox.io/s/w0vvkk92nl" rel="nofollow">https://codesandbox.io/s/w0vvkk92nl</a></p> <p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than React. Paste the link to your JSFiddle (<a href="https://jsfiddle.net/Luktwrdm/" rel="nofollow">https://jsfiddle.net/Luktwrdm/</a>) or CodeSandbox (<a href="https://codesandbox.io/s/new" rel="nofollow">https://codesandbox.io/s/new</a>) example below:</strong></p> <p dir="auto"><strong>What is the expected behavior?</strong></p> <p dir="auto">I may not fully understand the expected behavior of a PureComponent. I would assume due to the nature of how shallowEqual works it would validate as expected, whether or not the props has the same reference. In my example I show what happens when I compare two example props that both have the same values, but difference references. When I use normal === it doesn't validate if the ref is different, in shallowEqual is validates as long as the values are the same even if the refs are different.</p> <p dir="auto">In my second example, the values are the same, and the reference to props doesn't change as expected<br> In my third example, the values are again the same and the reference to the props again doesn't change as expected</p> <p dir="auto">In my final example, the values are the same, but the reference changes.</p> <p dir="auto">From this I am lead to believe it's not validating even before it gets to the shallowEqual check.</p> <p dir="auto">Maybe my implementation is wrong?</p> <p dir="auto"><strong>Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?</strong></p> <p dir="auto">Google Chrome Version 70.0.3538.67 (Official Build) beta (64-bit)</p> <p dir="auto">16.5.2, I also tested on 16.6.0 alpha.</p> <p dir="auto">Mac OS 10.12.6</p> <p dir="auto">I haven't verified on previous versions</p>
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong><br> Bug</p> <p dir="auto"><strong>What is the current behavior?</strong><br> A specific order of unmounting and remounting <code class="notranslate">unstable_createReturn</code>s from <code class="notranslate">react-call-return</code> causes an invariant violation in <code class="notranslate">unmountHostComponents</code>.</p> <p dir="auto"><strong>Reproduce</strong><br> The following sandbox example crashes with an invariant violation when both the <code class="notranslate">min</code> and <code class="notranslate">cycle</code> props are <em>odd</em> numbers greater than zero.</p> <p dir="auto"><a href="https://codesandbox.io/s/llyjz19rz7" rel="nofollow">https://codesandbox.io/s/llyjz19rz7</a></p> <p dir="auto"><strong>What is the expected behavior?</strong><br> The app does not crash and cycles the number of items in the list.</p> <p dir="auto"><strong>Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?</strong><br> <code class="notranslate">react</code> and <code class="notranslate">react-dom</code> versions 16.1 and newer, <code class="notranslate">react-call-return</code> version 0.5.0</p>
0
<p dir="auto">The e2e test <code class="notranslate">Load capacity [Feature:Performance] should be able to handle 30 pods per node</code> fails frequently in the scalability test suite with the error: <code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/density.go:144 There should be no high-latency requests Expected : 1 not to be &gt; : 0</code></p> <p dir="auto">Recent failures:</p> <ul dir="auto"> <li><a href="http://kubekins.dls.corp.google.com/view/Critical%20Builds/job/kubernetes-e2e-gce-scalability/4961/" rel="nofollow">http://kubekins.dls.corp.google.com/view/Critical%20Builds/job/kubernetes-e2e-gce-scalability/4961/</a></li> <li><a href="http://kubekins.dls.corp.google.com/view/Critical%20Builds/job/kubernetes-e2e-gce-scalability/4954/" rel="nofollow">http://kubekins.dls.corp.google.com/view/Critical%20Builds/job/kubernetes-e2e-gce-scalability/4954/</a></li> <li><a href="http://kubekins.dls.corp.google.com/view/Critical%20Builds/job/kubernetes-e2e-gce-scalability/4949/" rel="nofollow">http://kubekins.dls.corp.google.com/view/Critical%20Builds/job/kubernetes-e2e-gce-scalability/4949/</a></li> <li><a href="http://kubekins.dls.corp.google.com/view/Critical%20Builds/job/kubernetes-e2e-gce-scalability/4916/" rel="nofollow">http://kubekins.dls.corp.google.com/view/Critical%20Builds/job/kubernetes-e2e-gce-scalability/4916/</a></li> <li><a href="http://kubekins.dls.corp.google.com/view/Critical%20Builds/job/kubernetes-e2e-gce-scalability/4891/" rel="nofollow">http://kubekins.dls.corp.google.com/view/Critical%20Builds/job/kubernetes-e2e-gce-scalability/4891/</a></li> <li><a href="http://kubekins.dls.corp.google.com/view/Critical%20Builds/job/kubernetes-e2e-gce-scalability/4841/" rel="nofollow">http://kubekins.dls.corp.google.com/view/Critical%20Builds/job/kubernetes-e2e-gce-scalability/4841/</a></li> </ul>
<p dir="auto">Examples:<br> <a href="http://kubekins.dls.corp.google.com/view/Critical%20Builds/job/kubernetes-e2e-gce-scalability/4970/" rel="nofollow">http://kubekins.dls.corp.google.com/view/Critical%20Builds/job/kubernetes-e2e-gce-scalability/4970/</a><br> <a href="http://kubekins.dls.corp.google.com/view/Critical%20Builds/job/kubernetes-e2e-gce-scalability/4955/" rel="nofollow">http://kubekins.dls.corp.google.com/view/Critical%20Builds/job/kubernetes-e2e-gce-scalability/4955/</a><br> <a href="http://kubekins.dls.corp.google.com/view/Critical%20Builds/job/kubernetes-e2e-gce-scalability/4967/" rel="nofollow">http://kubekins.dls.corp.google.com/view/Critical%20Builds/job/kubernetes-e2e-gce-scalability/4967/</a></p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gmarek/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gmarek">@gmarek</a></p>
1
<p dir="auto">Hi, I am the maintainer of the <a href="https://github.com/Sh1d0w/multi_image_picker">multi_image_picker</a> plugin. A developer has reported an issue, where when you return from an Activity, a TextField no longer can open the keyboard if you focus the text field.</p> <p dir="auto">When you invoke the image picker, then the user is taken to an image selection (another activity is spawned) and after he returns back to the flutter app after selecting the images, focusing the text field no longer brings the keyboard up.</p> <p dir="auto">The developer also discovered that invoking</p> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="FocusScope.of(context).requestFocus(new FocusNode());"><pre class="notranslate"><span class="pl-c1">FocusScope</span>.<span class="pl-en">of</span>(context).<span class="pl-en">requestFocus</span>(<span class="pl-k">new</span> <span class="pl-c1">FocusNode</span>());</pre></div> <p dir="auto">just before invoking the Activity to pick the images, solves the problem. So I guess the Flutter app does not correctly regain focus after returning from the other Activity.</p> <h2 dir="auto">Steps to Reproduce</h2> <p dir="auto">The POC can be observed in the original issue here <a href="https://github.com/Sh1d0w/multi_image_picker/issues/27">https://github.com/Sh1d0w/multi_image_picker/issues/27</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="flutter doctor -v [✓] Flutter (Channel beta, v0.10.2, on Mac OS X 10.14 18A391, locale en-BG) • Flutter version 0.10.2 at /Users/radoslav/Projects/flutter • Framework revision d8cbb80206 (2 weeks ago), 2018-10-26 01:30:21 -0400 • Engine revision 6c2ade9fa2 • Dart version 2.1.0-dev.8.0.flutter-bf26f760b1 [✓] Android toolchain - develop for Android devices (Android SDK 27.0.1) • Android SDK at /Users/radoslav/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-28, build-tools 27.0.1 • 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 1.9.2 • 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 Community Edition (version 2018.2.5) • IntelliJ at /Applications/IntelliJ IDEA CE.app • Flutter plugin version 30.0.2 • Dart plugin version 182.5124 [✓] VS Code (version 1.28.2) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 2.20.0 [!] Connected device ! No devices available ! Doctor found issues in 1 category."><pre class="notranslate"><code class="notranslate">flutter doctor -v [✓] Flutter (Channel beta, v0.10.2, on Mac OS X 10.14 18A391, locale en-BG) • Flutter version 0.10.2 at /Users/radoslav/Projects/flutter • Framework revision d8cbb80206 (2 weeks ago), 2018-10-26 01:30:21 -0400 • Engine revision 6c2ade9fa2 • Dart version 2.1.0-dev.8.0.flutter-bf26f760b1 [✓] Android toolchain - develop for Android devices (Android SDK 27.0.1) • Android SDK at /Users/radoslav/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-28, build-tools 27.0.1 • 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 1.9.2 • 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 Community Edition (version 2018.2.5) • IntelliJ at /Applications/IntelliJ IDEA CE.app • Flutter plugin version 30.0.2 • Dart plugin version 182.5124 [✓] VS Code (version 1.28.2) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 2.20.0 [!] Connected device ! No devices available ! Doctor found issues in 1 category. </code></pre></div>
<p dir="auto">Running flutter gallery, in text_field_demo.dart, if I type any string of letters into the Name field, an underline appears beneath them. After I press enter, this underline persists. However, once I click the field again, the underline disappears, and does not reappear after pressing enter a second time. It seems to occasionally take more than one opening/closing of the field before the underline disappears. If the underline disappears and I then click back in and type more text, the previously-typed text becomes duplicated and underlined along with the new text, after the first copy of the previously-typed text which is still not underlined.</p> <p dir="auto">These issues appear to only be present when typing unhidden letters, rather than numbers or any hidden characters. With numbers and hidden characters (the phone number and password fields of text_field_demo.dart), there is never an underline at all. This is what I would expect.</p>
0
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=juan.farre" rel="nofollow">Juan Antonio Farré Basurte</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8123?redirect=false" rel="nofollow">SPR-8123</a></strong> and commented</p> <p dir="auto">I've noticed that SimpleClientHttpResponse.close() (which it is documented you MUST always call it after completing the request) invokes HttpURLConnection.disconnect() for the wrapped connection.<br> JDK javadoc for HttpURLConnection states the following:</p> <p dir="auto">Calling the close() methods on the InputStream or OutputStream of an HttpURLConnection after a request may free network resources associated with this instance but has no effect on any shared persistent connection. Calling the disconnect() method may close the underlying socket if a persistent connection is otherwise idle at that time.</p> <p dir="auto">So, when you close SimpleClientHttpResponse you may be disconnecting the underlying socket for a connection that could otherwise be reused (not the HttpURLConnection instance itself, but the underlying socket connection).<br> I believe close should close any open InputStreams (if either HttpURLConnection.getErrorStream() or URLConnection.getInputStream() were invoked), but not invoke the disconnect method.<br> If such functionality is required to be available for users of SimpleHttpUrlConnection, then I believe a new method should be added (for example disconnect()) that is not required to be called.</p> <p dir="auto">Thanks,</p> <p dir="auto">Juan</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.0.5</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="398190693" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/18612" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/18612/hovercard" href="https://github.com/spring-projects/spring-framework/issues/18612">#18612</a> HTTP persistent connections for HTTP Invoker and RestTemplate (<em><strong>"duplicates"</strong></em>)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398232750" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/21717" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/21717/hovercard" href="https://github.com/spring-projects/spring-framework/issues/21717">#21717</a> SimpleClientHttpResponse.close() does not call close() on URLConnection.getInputStream() if SimpleClientHttpResponse.getBody() was not called before</li> </ul>
<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-2359?redirect=false" rel="nofollow">SPR-2359</a></strong> and commented</p> <p dir="auto">I'm trying out 2.0 rc3-SNAPSHOT build 88. I'm running a webapp using Eclipse WTP. The application works fine with RC1. When I upgraded to the SNAPSHOT everything continues to work fine when I launch my server in non degug mode. But when I launch my server in debug mode I get a StackOverflowError. I know my problem sounds suspect but I can switch my version of spring from RC1 to RC3-SNAPSHOT and consistently have no error with RC1 and always get the stackoverflow error with the RC3-SNAPSHOT build 88. Below is the stacktrace, serviceLoader.xml, and a snippet of web.xml. All other context files are empty. By setting a break point in the middle of the findPathMatchingResources loop I can see the resource it is trying to resolve is the "classpath*:/service-context/**/*Context.xml" of serviceContext.</p> <p dir="auto">--------------------------web.xml snippet--------------------<br> &lt;context-param&gt;<br> &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;<br> &lt;param-value&gt;<br> /WEB-INF/view-context/**/*Context.xml<br> &lt;/param-value&gt;<br> &lt;/context-param&gt;<br> &lt;context-param&gt;<br> &lt;param-name&gt;locatorFactorySelector&lt;/param-name&gt;<br> &lt;param-value&gt;<br> classpath*:/org/lds/stack/service/serviceLoader.xml<br> &lt;/param-value&gt;<br> &lt;/context-param&gt;<br> &lt;context-param&gt;<br> &lt;param-name&gt;parentContextKey&lt;/param-name&gt;<br> &lt;param-value&gt;serviceContext&lt;/param-value&gt;<br> &lt;/context-param&gt;</p> <p dir="auto">--------------serviceLoader.xml--------------------------</p> <p dir="auto">&lt;?xml version="1.0" encoding="UTF-8"?&gt;</p> <p dir="auto">&lt;beans xmlns="<a href="http://www.springframework.org/schema/beans" rel="nofollow">http://www.springframework.org/schema/beans</a>"<br> xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow">http://www.w3.org/2001/XMLSchema-instance</a>"<br> xsi:schemaLocation="<a href="http://www.springframework.org/schema/beans" rel="nofollow">http://www.springframework.org/schema/beans</a> <a href="http://www.springframework.org/schema/beans/spring-beans.xsd%22%3E" rel="nofollow">http://www.springframework.org/schema/beans/spring-beans.xsd"&gt;</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;!-- Application context for Service layer of app. Created to help stop leaking of Web layer spring beans Into Service layer. Should never have to modify this file.--&gt; &lt;bean id=&quot;serviceContext&quot; lazy-init=&quot;true&quot; class=&quot;org.springframework.context.support.ClassPathXmlApplicationContext&quot;&gt; &lt;constructor-arg&gt; &lt;list&gt; &lt;!-- all the XML files to include in a default application's service application Context. --&gt; &lt;value&gt;classpath*:/service-context/**/*Context.xml&lt;/value&gt; &lt;/list&gt; &lt;/constructor-arg&gt; &lt;/bean&gt;"><pre class="notranslate"><code class="notranslate">&lt;!-- Application context for Service layer of app. Created to help stop leaking of Web layer spring beans Into Service layer. Should never have to modify this file.--&gt; &lt;bean id="serviceContext" lazy-init="true" class="org.springframework.context.support.ClassPathXmlApplicationContext"&gt; &lt;constructor-arg&gt; &lt;list&gt; &lt;!-- all the XML files to include in a default application's service application Context. --&gt; &lt;value&gt;classpath*:/service-context/**/*Context.xml&lt;/value&gt; &lt;/list&gt; &lt;/constructor-arg&gt; &lt;/bean&gt; </code></pre></div> <p dir="auto">&lt;/beans&gt;</p> <p dir="auto">--------------------------Stacktrace-------------------------------<br> 09:42:46,156 ERROR ContextLoader: Context initialization failed<br> org.springframework.beans.factory.access.BootstrapException: Unable to return specified BeanFactory instance: factory key [serviceContext], from group with resource name [classpath*:/org/lds/stack/service/serviceLoader.xml]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serviceContext' defined in URL [jar:file:/C:/projects/Stack/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/webapps/joe/WEB-INF/lib/stack-code-2.0-SNAPSHOT.jar!/org/lds/stack/service/serviceLoader.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is java.lang.StackOverflowError<br> Caused by:<br> org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serviceContext' defined in URL [jar:file:/C:/projects/Stack/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/webapps/joe/WEB-INF/lib/stack-code-2.0-SNAPSHOT.jar!/org/lds/stack/service/serviceLoader.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is java.lang.StackOverflowError<br> Caused by:<br> org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is java.lang.StackOverflowError<br> Caused by:<br> java.lang.StackOverflowError<br> at java.lang.String.indexOf(String.java:1564)<br> at java.lang.String.indexOf(String.java:1546)<br> at org.springframework.core.io.support.PathMatchingResourcePatternResolver.determineRootDir(PathMatchingResourcePatternResolver.java:353)<br> at org.springframework.core.io.support.PathMatchingResourcePatternResolver.findPathMatchingResources(PathMatchingResourcePatternResolver.java:321)<br> at org.springframework.core.io.support.PathMatchingResourcePatternResolver.getResources(PathMatchingResourcePatternResolver.java:265)<br> at org.springframework.core.io.support.PathMatchingResourcePatternResolver.findPathMatchingResources(PathMatchingResourcePatternResolver.java:323)<br> at org.springframework.core.io.support.PathMatchingResourcePatternResolver.getResources(PathMatchingResourcePatternResolver.java:265)<br> at org.springframework.core.io.support.PathMatchingResourcePatternResolver.findPathMatchingResources(PathMatchingResourcePatternResolver.java:323)<br> at org.springframework.core.io.support.PathMatchingResourcePatternResolver.getResources(PathMatchingResourcePatternResolver.java:265)<br> at org.springframework.core.io.support.PathMatchingResourcePatternResolver.findPathMatchingResources(PathMatchingResourcePatternResolver.java:323)<br> at org.springframework.core.io.support.PathMatchingResourcePatternResolver.getResources(PathMatchingResourcePatternResolver.java:265)<br> at org.springframework.core.io.support.PathMatchingResourcePatternResolver.findPathMatchingResources(PathMatchingResourcePatternResolver.java:323)<br> at org.springframework.core.io.support.PathMatchingResourcePatternResolver.getResources(PathMatchingResourcePatternResolver.java:265)<br> at org.springframework.core.io.support.PathMatchingResourcePatternResolver.findPathMatchingResources(PathMatchingResourcePatternResolver.java:323)<br> at org.springframework.core.io.support.PathMatchingResourcePatternResolver.getResources(PathMatchingResourcePatternResolver.java:265)</p> <hr> <p dir="auto"><strong>Affects:</strong> 2.0 RC3</p> <p dir="auto"><strong>Attachments:</strong></p> <ul dir="auto"> <li><a href="https://jira.spring.io/secure/attachment/11843/TestClassPathXmlApplicationContext.zip" rel="nofollow">TestClassPathXmlApplicationContext.zip</a> (<em>3.32 kB</em>)</li> </ul>
0
<h1 dir="auto">Summary of the new feature/enhancement</h1> <h1 dir="auto">Proposed technical implementation details (optional)</h1>
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">Currently, if I put a window into a zone, then take it out of the zone, it retains the size of the zone. There should be an option for it to go back to it's original, or "pre-zoned" size.</p> <h1 dir="auto">Proposed technical implementation details (optional)</h1> <p dir="auto">Essentially providing an option (and I think it should be an option, not a forced feature) that's similar to the way Windows' built-in window snapping works. By default on Windows 10, if you snap into the left or right, or in 1 of 4 grids, and then drag the window out of it, it'll return to it's pre-snap size. It will also help it feel like a more built-in feature.</p>
0
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=kdonald" rel="nofollow">Keith Donald</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-7544?redirect=false" rel="nofollow">SPR-7544</a></strong> and commented</p> <p dir="auto">Currently empty form fields are mapped to "" (empty string). This has several issues:</p> <ol dir="auto"> <li>Neither a <code class="notranslate">@NotNull</code> JSR-303 constraint or a "not null" relational DB constraint fails in this case. You're left with defining a min <code class="notranslate">@Size</code> constraint or relying on a implementation-specific <code class="notranslate">@NotEmpty</code>. In addition, there is no DB min constraint you can define at the Db level. Simply mapping "" to null would solve these problems and we could just rely on <code class="notranslate">@NotNull</code>/not null.</li> </ol> <hr> <p dir="auto"><strong>Affects:</strong> 3.0.4</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="398112227" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12969" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12969/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12969">#12969</a> Formatter subsystem's ParserConverter skips Parser invocation if input string is empty</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398092797" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10090" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10090/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10090">#10090</a> With binder.setRequiredFields constraint set, submitting an empty value for a required request parameter not binding an empty string to backing JavaBean</li> </ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=kdonald" rel="nofollow">Keith Donald</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-7380?redirect=false" rel="nofollow">SPR-7380</a></strong> and commented</p> <p dir="auto">ParserConverter, which invokes parser.parse(String, Locale) on the Parser/Formatter SPIs maps [null] and "" inputs to [null]. The target Parser is not invoked in this case (and never sees the "" value).</p> <p dir="auto">This leads to an inconsistency when doing a form binding, where some properties are formatted and others are not. In the formatted case, empty form fields always result in [null] property values, even if the target property is a String. In the default case, empty form fields result in empty string "" values when the target property is a String.</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.0.3</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="398112227" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12969" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12969/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12969">#12969</a> Formatter subsystem's ParserConverter skips Parser invocation if input string is empty</li> </ul>
1
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: [v1.36]</li> <li>Operating System: [All, Windows 11, Ubuntu 20, macOS 13.2, etc.]</li> <li>Browser: [All, Chromium, Firefox, WebKit]</li> <li>Other info:</li> </ul> <h3 dir="auto">Source code</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I provided exact source code that allows reproducing the issue locally.<br> Looks like global teardown takes about 30 sec, but test execution takes 1 sec. I took a simple test from CLI tools and added just the project to the config file.<br> Important to notice: if I execute by <code class="notranslate">testMatch =/.*.spec.ts/</code>, all work as required</li> </ul> <p dir="auto"><a href="https://github.com/AlexeyCL/Playwright-teardown">https://github.com/AlexeyCL/Playwright-teardown</a></p> <p dir="auto"><strong>Link to the GitHub repository with the repro</strong></p> <p dir="auto">[https://github.com/your_profile/playwright_issue_title]</p> <p dir="auto">or</p> <p dir="auto"><strong>Config file</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// playwright.config.ts import { PlaywrightTestConfig } from '@playwright/test'; /** * See https://playwright.dev/docs/test-configuration. */ const config: PlaywrightTestConfig = { projects: [ { name: 'test', testMatch: '*tests/*.spec.ts', }, ], testMatch: /.*.spec.ts/, /* Maximum time one test can run for. */ timeout: 60 * 1000, expect: { /** * Maximum time expect() should wait for the condition to be met. * For example in `await expect(locator).toHaveText();` */ timeout: 20000, }, /* Run tests in files in parallel */ fullyParallel: !!process.env.CI, /* Fail the build on CI if you accidentally left test.only in the source code. */ forbidOnly: !!process.env.CI, /* Retry on CI only */ retries: process.env.CI ? 0 : 0, /* Opt out of parallel tests on CI. */ workers: process.env.CI ? 5 : 1, /* Reporter to use. See https://playwright.dev/docs/test-reporters */ reporter: [['list']], /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */ use: { channel: process.env.DOCKER ? 'chromium' : 'chrome', headless: !!process.env.CI, viewport: { width: 1280, height: 720 }, ignoreHTTPSErrors: true, baseURL: 'https://playwright.dev/', /* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */ actionTimeout: 30000, /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ trace: 'retain-on-failure', video: 'retain-on-failure', screenshot: 'only-on-failure', }, /* Folder for test artifacts such as screenshots, videos, traces, etc. */ outputDir: 'test-results/', }; export default config; "><pre class="notranslate"><span class="pl-c">// playwright.config.ts</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-v">PlaywrightTestConfig</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@playwright/test'</span><span class="pl-kos">;</span> <span class="pl-c">/**</span> <span class="pl-c"> * See https://playwright.dev/docs/test-configuration.</span> <span class="pl-c"> */</span> <span class="pl-k">const</span> <span class="pl-s1">config</span>: <span class="pl-v">PlaywrightTestConfig</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">projects</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">'test'</span><span class="pl-kos">,</span> <span class="pl-c1">testMatch</span>: <span class="pl-s">'*tests/*.spec.ts'</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">testMatch</span>: <span class="pl-pds"><span class="pl-c1">/</span>.<span class="pl-c1">*</span>.spec.ts<span class="pl-c1">/</span></span><span class="pl-kos">,</span> <span class="pl-c">/* Maximum time one test can run for. */</span> <span class="pl-c1">timeout</span>: <span class="pl-c1">60</span> <span class="pl-c1">*</span> <span class="pl-c1">1000</span><span class="pl-kos">,</span> <span class="pl-c1">expect</span>: <span class="pl-kos">{</span> <span class="pl-c">/**</span> <span class="pl-c"> * Maximum time expect() should wait for the condition to be met.</span> <span class="pl-c"> * For example in `await expect(locator).toHaveText();`</span> <span class="pl-c"> */</span> <span class="pl-c1">timeout</span>: <span class="pl-c1">20000</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c">/* Run tests in files in parallel */</span> <span class="pl-c1">fullyParallel</span>: <span class="pl-c1">!</span><span class="pl-c1">!</span><span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">env</span><span class="pl-kos">.</span><span class="pl-c1">CI</span><span class="pl-kos">,</span> <span class="pl-c">/* Fail the build on CI if you accidentally left test.only in the source code. */</span> <span class="pl-c1">forbidOnly</span>: <span class="pl-c1">!</span><span class="pl-c1">!</span><span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">env</span><span class="pl-kos">.</span><span class="pl-c1">CI</span><span class="pl-kos">,</span> <span class="pl-c">/* Retry on CI only */</span> <span class="pl-c1">retries</span>: <span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">env</span><span class="pl-kos">.</span><span class="pl-c1">CI</span> ? <span class="pl-c1">0</span> : <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-c">/* Opt out of parallel tests on CI. */</span> <span class="pl-c1">workers</span>: <span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">env</span><span class="pl-kos">.</span><span class="pl-c1">CI</span> ? <span class="pl-c1">5</span> : <span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c">/* Reporter to use. See https://playwright.dev/docs/test-reporters */</span> <span class="pl-c1">reporter</span>: <span class="pl-kos">[</span><span class="pl-kos">[</span><span class="pl-s">'list'</span><span class="pl-kos">]</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c">/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */</span> <span class="pl-c1">use</span>: <span class="pl-kos">{</span> <span class="pl-c1">channel</span>: <span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">env</span><span class="pl-kos">.</span><span class="pl-c1">DOCKER</span> ? <span class="pl-s">'chromium'</span> : <span class="pl-s">'chrome'</span><span class="pl-kos">,</span> <span class="pl-c1">headless</span>: <span class="pl-c1">!</span><span class="pl-c1">!</span><span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">env</span><span class="pl-kos">.</span><span class="pl-c1">CI</span><span class="pl-kos">,</span> <span class="pl-c1">viewport</span>: <span class="pl-kos">{</span> <span class="pl-c1">width</span>: <span class="pl-c1">1280</span><span class="pl-kos">,</span> <span class="pl-c1">height</span>: <span class="pl-c1">720</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">ignoreHTTPSErrors</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">baseURL</span>: <span class="pl-s">'https://playwright.dev/'</span><span class="pl-kos">,</span> <span class="pl-c">/* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */</span> <span class="pl-c1">actionTimeout</span>: <span class="pl-c1">30000</span><span class="pl-kos">,</span> <span class="pl-c">/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */</span> <span class="pl-c1">trace</span>: <span class="pl-s">'retain-on-failure'</span><span class="pl-kos">,</span> <span class="pl-c1">video</span>: <span class="pl-s">'retain-on-failure'</span><span class="pl-kos">,</span> <span class="pl-c1">screenshot</span>: <span class="pl-s">'only-on-failure'</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c">/* Folder for test artifacts such as screenshots, videos, traces, etc. */</span> <span class="pl-c1">outputDir</span>: <span class="pl-s">'test-results/'</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-s1">config</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Test file (self-contained)</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { test, expect } from '@playwright/test'; test('has title', async ({ page }) =&gt; { await page.goto('https://playwright.dev/'); // Expect a title &quot;to contain&quot; a substring. await expect(page).toHaveTitle(/Playwright/); }); test('get started link', async ({ page }) =&gt; { await page.goto('https://playwright.dev/'); // Click the get started link. await page.getByRole('link', { name: 'Get started' }).click(); // Expects the URL to contain intro. await expect(page).toHaveURL(/.*intro/); }); "><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">test</span><span class="pl-kos">,</span> <span class="pl-s1">expect</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@playwright/test'</span><span class="pl-kos">;</span> <span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">'has title'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> page <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span><span class="pl-s">'https://playwright.dev/'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Expect a title "to contain" a substring.</span> <span class="pl-k">await</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toHaveTitle</span><span class="pl-kos">(</span><span class="pl-pds"><span class="pl-c1">/</span>Playwright<span class="pl-c1">/</span></span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">'get started link'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> page <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span><span class="pl-s">'https://playwright.dev/'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Click the get started link.</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">getByRole</span><span class="pl-kos">(</span><span class="pl-s">'link'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">'Get started'</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">click</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Expects the URL to contain intro.</span> <span class="pl-k">await</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toHaveURL</span><span class="pl-kos">(</span><span class="pl-pds"><span class="pl-c1">/</span>.<span class="pl-c1">*</span>intro<span class="pl-c1">/</span></span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Steps</strong></p> <ul dir="auto"> <li>[Run the test] pnpm run test</li> <li>[...]</li> </ul> <p dir="auto"><strong>Expected</strong></p> <p dir="auto">[Describe expected behavior]</p> <p dir="auto"><strong>Actual</strong></p> <p dir="auto">[Describe actual behavior]</p>
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: v1.32.2</li> <li>Operating System: Windows 10</li> <li>Browser: Chromium</li> <li>Other info:</li> </ul> <h3 dir="auto">Source code</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I provided exact source code that allows reproducing the issue locally.</li> </ul> <p dir="auto"><strong>Config file</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// playwright.config.ts import {defineConfig} from &quot;@playwright/test&quot;; export default defineConfig({ timeout: 240000, globalTimeout: 18000000, projects: [ { name: &quot;Esro&quot;, testDir: &quot;./Tests/Esro&quot;, timeout: 300001, use:{ viewport: {width: 1870, height: 1030}, video: { mode: &quot;retain-on-failure&quot;, size: { width: 1870, height: 1030, }, }, } }, { name: &quot;Tsro&quot;, testDir: &quot;./Tests/Tsro&quot;, timeout: 180000, }, { name: 'Unify', testDir: &quot;./Tests/Unify&quot;, }, { name: &quot;IntegrationsUI&quot;, testDir: &quot;./Tests/IntegrationsUI&quot;, }, { name: &quot;Validation&quot;, testMatch: 'Tests/Unify/Validation/test.list.ts', timeout: 360000, use: { actionTimeout: 320000, } }, { name: &quot;Production&quot;, testMatch: 'Tests/Unify/production.test.list.ts', timeout: 360000, use: { actionTimeout: 320000, } }, ], reporter: [ [&quot;./my-reporter.ts&quot;], [&quot;list&quot;], [&quot;junit&quot;, { outputFile: &quot;reports/test-results.xml&quot; }], [&quot;allure-playwright&quot;], [&quot;json&quot;, { outputFile: &quot;reports/test-results.json&quot; }], [&quot;html&quot;, { open: &quot;never&quot; }], ], use: { baseURL: process.env.BASE_URL ? process.env.BASE_URL : process.env.LOCAL_HOST, browserName: &quot;chromium&quot;, actionTimeout: 30000, trace: &quot;off&quot;, screenshot: &quot;on&quot;, viewport: { width: 1400, height: 900 }, //UNIFY Recommended Resolution video: { mode: &quot;retain-on-failure&quot;, size: { width: 1400, height: 900, }, }, contextOptions: { ignoreHTTPSErrors: true, }, // Browser options launchOptions: { channel: &quot;chrome&quot;, // headless: process.env.CI ? true : false, slowMo: 200, args: [ &quot;--no-sandbox&quot;, &quot;--ignore-certificate-errors&quot;, &quot;--ignore-certificate-errors-skip-list&quot;, ], }, }, }); "><pre class="notranslate"><span class="pl-c">// playwright.config.ts</span> <span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-s1">defineConfig</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"@playwright/test"</span><span class="pl-kos">;</span> <span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-en">defineConfig</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">timeout</span>: <span class="pl-c1">240000</span><span class="pl-kos">,</span> <span class="pl-c1">globalTimeout</span>: <span class="pl-c1">18000000</span><span class="pl-kos">,</span> <span class="pl-c1">projects</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">"Esro"</span><span class="pl-kos">,</span> <span class="pl-c1">testDir</span>: <span class="pl-s">"./Tests/Esro"</span><span class="pl-kos">,</span> <span class="pl-c1">timeout</span>: <span class="pl-c1">300001</span><span class="pl-kos">,</span> <span class="pl-c1">use</span>:<span class="pl-kos">{</span> <span class="pl-c1">viewport</span>: <span class="pl-kos">{</span><span class="pl-c1">width</span>: <span class="pl-c1">1870</span><span class="pl-kos">,</span> <span class="pl-c1">height</span>: <span class="pl-c1">1030</span><span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">video</span>: <span class="pl-kos">{</span> <span class="pl-c1">mode</span>: <span class="pl-s">"retain-on-failure"</span><span class="pl-kos">,</span> <span class="pl-c1">size</span>: <span class="pl-kos">{</span> <span class="pl-c1">width</span>: <span class="pl-c1">1870</span><span class="pl-kos">,</span> <span class="pl-c1">height</span>: <span class="pl-c1">1030</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-c1">name</span>: <span class="pl-s">"Tsro"</span><span class="pl-kos">,</span> <span class="pl-c1">testDir</span>: <span class="pl-s">"./Tests/Tsro"</span><span class="pl-kos">,</span> <span class="pl-c1">timeout</span>: <span class="pl-c1">180000</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">name</span>: <span class="pl-s">'Unify'</span><span class="pl-kos">,</span> <span class="pl-c1">testDir</span>: <span class="pl-s">"./Tests/Unify"</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">name</span>: <span class="pl-s">"IntegrationsUI"</span><span class="pl-kos">,</span> <span class="pl-c1">testDir</span>: <span class="pl-s">"./Tests/IntegrationsUI"</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">name</span>: <span class="pl-s">"Validation"</span><span class="pl-kos">,</span> <span class="pl-c1">testMatch</span>: <span class="pl-s">'Tests/Unify/Validation/test.list.ts'</span><span class="pl-kos">,</span> <span class="pl-c1">timeout</span>: <span class="pl-c1">360000</span><span class="pl-kos">,</span> <span class="pl-c1">use</span>: <span class="pl-kos">{</span> <span class="pl-c1">actionTimeout</span>: <span class="pl-c1">320000</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">name</span>: <span class="pl-s">"Production"</span><span class="pl-kos">,</span> <span class="pl-c1">testMatch</span>: <span class="pl-s">'Tests/Unify/production.test.list.ts'</span><span class="pl-kos">,</span> <span class="pl-c1">timeout</span>: <span class="pl-c1">360000</span><span class="pl-kos">,</span> <span class="pl-c1">use</span>: <span class="pl-kos">{</span> <span class="pl-c1">actionTimeout</span>: <span class="pl-c1">320000</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">reporter</span>: <span class="pl-kos">[</span> <span class="pl-kos">[</span><span class="pl-s">"./my-reporter.ts"</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-s">"list"</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-s">"junit"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">outputFile</span>: <span class="pl-s">"reports/test-results.xml"</span> <span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-s">"allure-playwright"</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-s">"json"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">outputFile</span>: <span class="pl-s">"reports/test-results.json"</span> <span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-s">"html"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">open</span>: <span class="pl-s">"never"</span> <span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">use</span>: <span class="pl-kos">{</span> <span class="pl-c1">baseURL</span>: <span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">env</span><span class="pl-kos">.</span><span class="pl-c1">BASE_URL</span> ? <span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">env</span><span class="pl-kos">.</span><span class="pl-c1">BASE_URL</span> : <span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">env</span><span class="pl-kos">.</span><span class="pl-c1">LOCAL_HOST</span><span class="pl-kos">,</span> <span class="pl-c1">browserName</span>: <span class="pl-s">"chromium"</span><span class="pl-kos">,</span> <span class="pl-c1">actionTimeout</span>: <span class="pl-c1">30000</span><span class="pl-kos">,</span> <span class="pl-c1">trace</span>: <span class="pl-s">"off"</span><span class="pl-kos">,</span> <span class="pl-c1">screenshot</span>: <span class="pl-s">"on"</span><span class="pl-kos">,</span> <span class="pl-c1">viewport</span>: <span class="pl-kos">{</span> <span class="pl-c1">width</span>: <span class="pl-c1">1400</span><span class="pl-kos">,</span> <span class="pl-c1">height</span>: <span class="pl-c1">900</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c">//UNIFY Recommended Resolution</span> <span class="pl-c1">video</span>: <span class="pl-kos">{</span> <span class="pl-c1">mode</span>: <span class="pl-s">"retain-on-failure"</span><span class="pl-kos">,</span> <span class="pl-c1">size</span>: <span class="pl-kos">{</span> <span class="pl-c1">width</span>: <span class="pl-c1">1400</span><span class="pl-kos">,</span> <span class="pl-c1">height</span>: <span class="pl-c1">900</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">contextOptions</span>: <span class="pl-kos">{</span> <span class="pl-c1">ignoreHTTPSErrors</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-c">// Browser options</span> <span class="pl-c1">launchOptions</span>: <span class="pl-kos">{</span> <span class="pl-c1">channel</span>: <span class="pl-s">"chrome"</span><span class="pl-kos">,</span> <span class="pl-c">// headless: process.env.CI ? true : false,</span> <span class="pl-c1">slowMo</span>: <span class="pl-c1">200</span><span class="pl-kos">,</span> <span class="pl-c1">args</span>: <span class="pl-kos">[</span> <span class="pl-s">"--no-sandbox"</span><span class="pl-kos">,</span> <span class="pl-s">"--ignore-certificate-errors"</span><span class="pl-kos">,</span> <span class="pl-s">"--ignore-certificate-errors-skip-list"</span><span class="pl-kos">,</span> <span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> </pre></div> <p dir="auto"><strong>Test file (self-contained)</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="//Tests\Unify\production.test.list.ts import './Production/SellSubscriptionAndEventTicketWitoutCommitE2E.spec.ts'; import './Validation/EditCRMRecordViaSalesTab.spec.ts'; import './Validation/CreateAndEditCRMRecordValidationTest.spec.ts'; import './Validation/CheckForErrorsInMonitoringETL.spec.ts';"><pre class="notranslate"><span class="pl-c">//Tests\Unify\production.test.list.ts</span> <span class="pl-k">import</span> <span class="pl-s">'./Production/SellSubscriptionAndEventTicketWitoutCommitE2E.spec.ts'</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-s">'./Validation/EditCRMRecordViaSalesTab.spec.ts'</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-s">'./Validation/CreateAndEditCRMRecordValidationTest.spec.ts'</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-s">'./Validation/CheckForErrorsInMonitoringETL.spec.ts'</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Steps</strong></p> <ul dir="auto"> <li>Add import of the spec files to the list</li> <li>Try to run any test in the project</li> </ul> <p dir="auto"><strong>Expected</strong></p> <p dir="auto">The tests will run as well.</p> <p dir="auto"><strong>Actual</strong></p> <p dir="auto">I get the error related to the import of the spec files inside the list file</p> <p dir="auto">It worked as well with version 1.27.1, but it doesn't;t withe the newest version of 1.32.2.</p> <p dir="auto">I saw some similar bugs, but no none of them related to the syntax of the imports (maybe I've missed something?).</p> <p dir="auto">The output of the IDE:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/52656401/229738860-8adbfa26-934b-4ccc-8bac-3081ba0bd8ec.png"><img src="https://user-images.githubusercontent.com/52656401/229738860-8adbfa26-934b-4ccc-8bac-3081ba0bd8ec.png" alt="image" style="max-width: 100%;"></a></p>
0
<h2 dir="auto">Bug Report</h2> <p dir="auto"><strong>Current Behavior</strong><br> The transpilation result of generator functions is incomplete when a specific preset is enabled.</p> <p dir="auto"><strong>Input Code</strong><br> The following code doesn't transpile correclty with the "firefox &gt;= 45" preset enabled.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Plug { *[Symbol.iterator]() { yield 1; yield 2; } }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">Plug</span> <span class="pl-kos">{</span> <span class="pl-c1">*</span><span class="pl-kos">[</span><span class="pl-v">Symbol</span><span class="pl-kos">.</span><span class="pl-c1">iterator</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">yield</span> <span class="pl-c1">1</span><span class="pl-kos">;</span> <span class="pl-k">yield</span> <span class="pl-c1">2</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">The <a href="https://babeljs.io/repl/#?babili=false&amp;browsers=Firefox%20%3E%3D%2045&amp;build=&amp;builtIns=false&amp;spec=false&amp;loose=false&amp;code_lz=MYGwhgzhAEAKIFcDm0DeAoa1PQFQG0BlATwFsAjAexADoBLAFwFMAnMBylgXQAoBKNDizE6TEABNoARgDcQ6CLGSATHKwBfdJqA&amp;debug=false&amp;forceAllTransforms=false&amp;shippedProposals=false&amp;circleciRepo=&amp;evaluate=false&amp;fileSize=false&amp;timeTravel=false&amp;sourceType=module&amp;lineWrap=true&amp;presets=env&amp;prettier=false&amp;targets=&amp;version=7.4.3&amp;externalPlugins=" rel="nofollow">generated output on the babel REPL</a> is referencing a <code class="notranslate">_callee</code> variable which is never defined.</p> <p dir="auto"><strong>Expected behavior/code</strong><br> Some valid transpiled code.</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="module.exports = function() { const presets = [ [ &quot;@babel/preset-env&quot;, { &quot;targets&quot;: { &quot;firefox&quot;: &quot;53&quot; } } ] ]; var config = { presets }; return config; };"><pre class="notranslate"><span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-en">exports</span> <span class="pl-c1">=</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">presets</span> <span class="pl-c1">=</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-s">"targets"</span>: <span class="pl-kos">{</span> <span class="pl-s">"firefox"</span>: <span class="pl-s">"53"</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">]</span> <span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">config</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> presets <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-s1">config</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Environment</strong></p> <ul dir="auto"> <li>Babel version(s): 7.3.4</li> <li>Node/npm version: Node v10.15.3/npm 56.4.1</li> <li>OS: Ubunut 16.04</li> <li>Monorepo: ?</li> <li>How you are using Babel: cli</li> </ul>
<h2 dir="auto">Bug Report</h2> <p dir="auto"><strong>Current Behavior</strong></p> <p dir="auto">Class with a generator method like this:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Foo { method(){ thia.val = 10; } *bar(){ yield this.val; return 'bar'; } }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">Foo</span> <span class="pl-kos">{</span> <span class="pl-en">method</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">{</span> <span class="pl-s1">thia</span><span class="pl-kos">.</span><span class="pl-c1">val</span> <span class="pl-c1">=</span> <span class="pl-c1">10</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-c1">*</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-k">yield</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">val</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-s">'bar'</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">I disabled class transform option because many browsers are natively support this feature. But I got a bad transformed output:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Foo { method() { thia.val = 10; } bar() { return regeneratorRuntime.wrap( function _callee$(_context) { while (1) switch ((_context.prev = _context.next)) { case 0: _context.next = 2; return this.val; case 2: return _context.abrupt(&quot;return&quot;, &quot;bar&quot;); case 3: case &quot;end&quot;: return _context.stop(); } }, _callee, this ); } }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">Foo</span> <span class="pl-kos">{</span> <span class="pl-en">method</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">thia</span><span class="pl-kos">.</span><span class="pl-c1">val</span> <span class="pl-c1">=</span> <span class="pl-c1">10</span><span class="pl-kos">;</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-k">return</span> <span class="pl-s1">regeneratorRuntime</span><span class="pl-kos">.</span><span class="pl-en">wrap</span><span class="pl-kos">(</span> <span class="pl-k">function</span> <span class="pl-en">_callee$</span><span class="pl-kos">(</span><span class="pl-s1">_context</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">while</span> <span class="pl-kos">(</span><span class="pl-c1">1</span><span class="pl-kos">)</span> <span class="pl-k">switch</span> <span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">_context</span><span class="pl-kos">.</span><span class="pl-c1">prev</span> <span class="pl-c1">=</span> <span class="pl-s1">_context</span><span class="pl-kos">.</span><span class="pl-c1">next</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">case</span> <span class="pl-c1">0</span>: <span class="pl-s1">_context</span><span class="pl-kos">.</span><span class="pl-c1">next</span> <span class="pl-c1">=</span> <span class="pl-c1">2</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">val</span><span class="pl-kos">;</span> <span class="pl-k">case</span> <span class="pl-c1">2</span>: <span class="pl-k">return</span> <span class="pl-s1">_context</span><span class="pl-kos">.</span><span class="pl-en">abrupt</span><span class="pl-kos">(</span><span class="pl-s">"return"</span><span class="pl-kos">,</span> <span class="pl-s">"bar"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">case</span> <span class="pl-c1">3</span>: <span class="pl-k">case</span> <span class="pl-s">"end"</span>: <span class="pl-k">return</span> <span class="pl-s1">_context</span><span class="pl-kos">.</span><span class="pl-en">stop</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-s1">_callee</span><span class="pl-kos">,</span> <span class="pl-smi">this</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">When run in browser, got <code class="notranslate">_callee</code> is not defined.</p> <p dir="auto"><strong>Expected behavior/code</strong></p> <p dir="auto">The correct transform result maybe looks like:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Foo { method() { thia.val = 10; } bar() { return regeneratorRuntime.mark(function bar() { return regeneratorRuntime.wrap( function bar$(_context) { while (1) { switch ((_context.prev = _context.next)) { case 0: _context.next = 2; return this.val; case 2: return _context.abrupt(&quot;return&quot;, &quot;bar&quot;); case 3: case &quot;end&quot;: return _context.stop(); } } }, bar, this ); }); } }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">Foo</span> <span class="pl-kos">{</span> <span class="pl-en">method</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">thia</span><span class="pl-kos">.</span><span class="pl-c1">val</span> <span class="pl-c1">=</span> <span class="pl-c1">10</span><span class="pl-kos">;</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-k">return</span> <span class="pl-s1">regeneratorRuntime</span><span class="pl-kos">.</span><span class="pl-en">mark</span><span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-en">bar</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">regeneratorRuntime</span><span class="pl-kos">.</span><span class="pl-en">wrap</span><span class="pl-kos">(</span> <span class="pl-k">function</span> <span class="pl-en">bar$</span><span class="pl-kos">(</span><span class="pl-s1">_context</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">while</span> <span class="pl-kos">(</span><span class="pl-c1">1</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">switch</span> <span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">_context</span><span class="pl-kos">.</span><span class="pl-c1">prev</span> <span class="pl-c1">=</span> <span class="pl-s1">_context</span><span class="pl-kos">.</span><span class="pl-c1">next</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">case</span> <span class="pl-c1">0</span>: <span class="pl-s1">_context</span><span class="pl-kos">.</span><span class="pl-c1">next</span> <span class="pl-c1">=</span> <span class="pl-c1">2</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">val</span><span class="pl-kos">;</span> <span class="pl-k">case</span> <span class="pl-c1">2</span>: <span class="pl-k">return</span> <span class="pl-s1">_context</span><span class="pl-kos">.</span><span class="pl-en">abrupt</span><span class="pl-kos">(</span><span class="pl-s">"return"</span><span class="pl-kos">,</span> <span class="pl-s">"bar"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">case</span> <span class="pl-c1">3</span>: <span class="pl-k">case</span> <span class="pl-s">"end"</span>: <span class="pl-k">return</span> <span class="pl-s1">_context</span><span class="pl-kos">.</span><span class="pl-en">stop</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-s1">bar</span><span class="pl-kos">,</span> <span class="pl-smi">this</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-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>Additional context/Screenshots</strong></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6045824/50137862-7d9a5000-02d7-11e9-9e52-406026374877.png"><img src="https://user-images.githubusercontent.com/6045824/50137862-7d9a5000-02d7-11e9-9e52-406026374877.png" alt="image" style="max-width: 100%;"></a></p>
1
<p dir="auto">Given this rust:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class apple { let one_field_is_required: int; new() { self.one_field_is_required = 0; for [1,2,3].each |_x| {} // let _dummy = 4; } } fn main() { }"><pre class="notranslate"><code class="notranslate">class apple { let one_field_is_required: int; new() { self.one_field_is_required = 0; for [1,2,3].each |_x| {} // let _dummy = 4; } } fn main() { } </code></pre></div> <p dir="auto">rustc fails with:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="test.rs:7:8: 7:32 error: mismatched types: expected `apple` but found `()` (class apple vs ()) test.rs:7 for [1,2,3].each |_x| {} ^~~~~~~~~~~~~~~~~~~~~~~~ error: aborting due to previous error"><pre class="notranslate"><code class="notranslate">test.rs:7:8: 7:32 error: mismatched types: expected `apple` but found `()` (class apple vs ()) test.rs:7 for [1,2,3].each |_x| {} ^~~~~~~~~~~~~~~~~~~~~~~~ error: aborting due to previous error </code></pre></div> <p dir="auto">This is pretty wierd. Its like rustc thinks the for loop is an implicit return expression.</p> <p dir="auto">Un-commenting the <code class="notranslate">let _dummy = 4;</code> line makes the code compile as expected.</p>
<p dir="auto">The compiler panics when you put an extern function inside a structure implementation.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="struct Dummy; impl Dummy { pub extern fn printme() { println!(&quot;Hello...&quot;); } } fn main() { Dummy::printme(); }"><pre class="notranslate"><code class="notranslate">struct Dummy; impl Dummy { pub extern fn printme() { println!("Hello..."); } } fn main() { Dummy::printme(); } </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: internal compiler error: unexpected panic note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html note: run with `RUST_BACKTRACE=1` for a backtrace thread 'rustc' panicked at 'assertion failed: f.abi == Rust || f.abi == RustCall', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/librustc_trans/trans/base.rs:2440"><pre class="notranslate"><code class="notranslate">error: internal compiler error: unexpected panic note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html note: run with `RUST_BACKTRACE=1` for a backtrace thread 'rustc' panicked at 'assertion failed: f.abi == Rust || f.abi == RustCall', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/librustc_trans/trans/base.rs:2440 </code></pre></div> <p dir="auto">Try it: <a href="http://is.gd/MUQsZd" rel="nofollow">http://is.gd/MUQsZd</a></p>
0
<p dir="auto">I was trying to build <a href="https://github.com/maurizi/rgtk/tree/update-to-latest-master">https://github.com/maurizi/rgtk/tree/update-to-latest-master</a></p> <p dir="auto">The backtrace is below:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ RUST_BACKTRACE=1 cargo build --verbose Fresh pkg-config v0.1.3 Fresh gcc v0.1.3 Compiling rgtk v0.0.1 (file:///home/mike/projects/rust-stuff/rgtk) Running `rustc src/rgtk.rs --crate-name rgtk --crate-type rlib -g -C metadata=cec106287d6301f5 -C extra-filename=-cec106287d6301f5 --out-dir /home/mike/projects/rust-stuff/rgtk/target --emit=dep-info,link -L /home/mike/projects/rust-stuff/rgtk/target -L /home/mike/projects/rust-stuff/rgtk/target/deps -L native=/usr/lib/x86_64-linux-gnu -L native=/home/mike/projects/rust-stuff/rgtk/target/build/rgtk-cec106287d6301f5/out -L /home/mike/projects/rust-stuff/rgtk/target/build/rgtk-cec106287d6301f5/out -l gtk-3 -l gdk-3 -l pangocairo-1.0 -l pango-1.0 -l atk-1.0 -l cairo-gobject -l cairo -l gdk_pixbuf-2.0 -l gio-2.0 -l gobject-2.0 -l glib-2.0 -l rgtk_glue:static -l rgtk_glue:static` &lt;std macros&gt;:5:11: 5:71 warning: `deriving` is deprecated; use `derive` &lt;std macros&gt;:5 #[deriving(Copy, PartialEq, Eq, Clone, PartialOrd, Ord, Hash)] ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ &lt;std macros&gt;:5:11: 5:71 warning: `deriving` is deprecated; use `derive` &lt;std macros&gt;:5 #[deriving(Copy, PartialEq, Eq, Clone, PartialOrd, Ord, Hash)] ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/cairo/paths.rs:83:1: 107:2 error: internal compiler error: impl `VtableImpl(impl_def_id=DefId { krate: 0, node: 238989 }:cairo::paths::PathSegments&lt;'a&gt;.Iterator, substs=Substs[types=[[];[];[]], regions=[['_#0r];[];[]]], nested=[[];[];[]])` did not contain projection for `Obligation(predicate=&lt;cairo::paths::PathSegments&lt;'a&gt; as TraitRef(cairo::paths::PathSegments&lt;'a&gt;, core::iter::Iterator)&gt;::Item,depth=0)` src/cairo/paths.rs:83 impl&lt;'a&gt; Iterator for PathSegments&lt;'a&gt; { src/cairo/paths.rs:84 fn next(&amp;mut self) -&gt; Option&lt;PathSegment&gt; { src/cairo/paths.rs:85 let i = self.i; src/cairo/paths.rs:86 src/cairo/paths.rs:87 if i &gt;= self.num_data{ src/cairo/paths.rs:88 return None; ... note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html note: run with `RUST_BACKTRACE=1` for a backtrace thread 'rustc' panicked at 'Box&lt;Any&gt;', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libsyntax/diagnostic.rs:123 stack backtrace: 1: 0x7ffa22e142d0 - sys::backtrace::write::h8532e701ef86014f4it 2: 0x7ffa22e39b00 - failure::on_fail::h7532e1f79d134d5dzvz 3: 0x7ffa22d9f1c0 - rt::unwind::begin_unwind_inner::h97b151606151d62deaz 4: 0x7ffa1dc51c60 - rt::unwind::begin_unwind::h15809447133099964284 5: 0x7ffa1dc51bf0 - diagnostic::SpanHandler::span_bug::he8142ababcc30c39DFF 6: 0x7ffa21150e70 - middle::traits::project::project_type::h947eece142ef049d52P 7: 0x7ffa2114dfd0 - middle::traits::project::opt_normalize_projection_type::hb3defb9cc9365d1e8UP 8: 0x7ffa2113bba0 - middle::traits::project::normalize_projection_type::hdc293893275ee559JTP 9: 0x7ffa2114f470 - middle::traits::project::AssociatedTypeNormalizer&lt;'a, 'b, 'tcx&gt;.TypeFolder&lt;'tcx&gt;::fold_ty::h801cbd2cdff2eff1kSP 10: 0x7ffa2240c2e0 - middle::ty_fold::Rc&lt;T&gt;.TypeFoldable&lt;'tcx&gt;::fold_with::h6325524173844043840 11: 0x7ffa2240ce90 - middle::ty_fold::VecPerParamSpace&lt;T&gt;.TypeFoldable&lt;'tcx&gt;::fold_with::h13884369302522804796 12: 0x7ffa22428280 - check::FnCtxt&lt;'a, 'tcx&gt;::instantiate_bounds::hed550a9659b70335Oll 13: 0x7ffa22440fc0 - check::wf::CheckTypeWellFormedVisitor&lt;'ccx, 'tcx&gt;::check_impl::closure.29997 14: 0x7ffa2243d430 - check::wf::CheckTypeWellFormedVisitor&lt;'ccx, 'tcx&gt;::with_fcx::hb1283961ed8977b7Gfi 15: 0x7ffa22443d70 - check::wf::CheckTypeWellFormedVisitor&lt;'ccx, 'tcx&gt;.Visitor&lt;'v&gt;::visit_item::h001ababd87597e37soi 16: 0x7ffa22445bd0 - visit::walk_mod::h4610212675369237127 17: 0x7ffa22443d70 - check::wf::CheckTypeWellFormedVisitor&lt;'ccx, 'tcx&gt;.Visitor&lt;'v&gt;::visit_item::h001ababd87597e37soi 18: 0x7ffa22445bd0 - visit::walk_mod::h4610212675369237127 19: 0x7ffa22443d70 - check::wf::CheckTypeWellFormedVisitor&lt;'ccx, 'tcx&gt;.Visitor&lt;'v&gt;::visit_item::h001ababd87597e37soi 20: 0x7ffa22630fe0 - check_crate::unboxed_closure.40162 21: 0x7ffa2262bc30 - check_crate::h19fb6dea5733566ajsx 22: 0x7ffa23365640 - driver::phase_3_run_analysis_passes::h46b1604d9f9f5633Tva 23: 0x7ffa23353ae0 - driver::compile_input::h68b8602933aad8d7wba 24: 0x7ffa2341eeb0 - thunk::F.Invoke&lt;A, R&gt;::invoke::h18029802347644288836 25: 0x7ffa2341dc60 - rt::unwind::try::try_fn::h6518866316425934196 26: 0x7ffa22ea0400 - rust_try_inner 27: 0x7ffa22ea03f0 - rust_try 28: 0x7ffa2341dfb0 - thunk::F.Invoke&lt;A, R&gt;::invoke::h15513809553472565307 29: 0x7ffa22e25e40 - sys::thread::thread_start::h5ea7ba97235331d5a9v 30: 0x7ffa1d474fe0 - start_thread 31: 0x7ffa22a46749 - __clone 32: 0x0 - &lt;unknown&gt; Could not compile `rgtk`. Caused by: Process didn't exit successfully: `rustc src/rgtk.rs --crate-name rgtk --crate-type rlib -g -C metadata=cec106287d6301f5 -C extra-filename=-cec106287d6301f5 --out-dir /home/mike/projects/rust-stuff/rgtk/target --emit=dep-info,link -L /home/mike/projects/rust-stuff/rgtk/target -L /home/mike/projects/rust-stuff/rgtk/target/deps -L native=/usr/lib/x86_64-linux-gnu -L native=/home/mike/projects/rust-stuff/rgtk/target/build/rgtk-cec106287d6301f5/out -L /home/mike/projects/rust-stuff/rgtk/target/build/rgtk-cec106287d6301f5/out -l gtk-3 -l gdk-3 -l pangocairo-1.0 -l pango-1.0 -l atk-1.0 -l cairo-gobject -l cairo -l gdk_pixbuf-2.0 -l gio-2.0 -l gobject-2.0 -l glib-2.0 -l rgtk_glue:static -l rgtk_glue:static` (status=101)"><pre class="notranslate"><code class="notranslate">$ RUST_BACKTRACE=1 cargo build --verbose Fresh pkg-config v0.1.3 Fresh gcc v0.1.3 Compiling rgtk v0.0.1 (file:///home/mike/projects/rust-stuff/rgtk) Running `rustc src/rgtk.rs --crate-name rgtk --crate-type rlib -g -C metadata=cec106287d6301f5 -C extra-filename=-cec106287d6301f5 --out-dir /home/mike/projects/rust-stuff/rgtk/target --emit=dep-info,link -L /home/mike/projects/rust-stuff/rgtk/target -L /home/mike/projects/rust-stuff/rgtk/target/deps -L native=/usr/lib/x86_64-linux-gnu -L native=/home/mike/projects/rust-stuff/rgtk/target/build/rgtk-cec106287d6301f5/out -L /home/mike/projects/rust-stuff/rgtk/target/build/rgtk-cec106287d6301f5/out -l gtk-3 -l gdk-3 -l pangocairo-1.0 -l pango-1.0 -l atk-1.0 -l cairo-gobject -l cairo -l gdk_pixbuf-2.0 -l gio-2.0 -l gobject-2.0 -l glib-2.0 -l rgtk_glue:static -l rgtk_glue:static` &lt;std macros&gt;:5:11: 5:71 warning: `deriving` is deprecated; use `derive` &lt;std macros&gt;:5 #[deriving(Copy, PartialEq, Eq, Clone, PartialOrd, Ord, Hash)] ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ &lt;std macros&gt;:5:11: 5:71 warning: `deriving` is deprecated; use `derive` &lt;std macros&gt;:5 #[deriving(Copy, PartialEq, Eq, Clone, PartialOrd, Ord, Hash)] ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/cairo/paths.rs:83:1: 107:2 error: internal compiler error: impl `VtableImpl(impl_def_id=DefId { krate: 0, node: 238989 }:cairo::paths::PathSegments&lt;'a&gt;.Iterator, substs=Substs[types=[[];[];[]], regions=[['_#0r];[];[]]], nested=[[];[];[]])` did not contain projection for `Obligation(predicate=&lt;cairo::paths::PathSegments&lt;'a&gt; as TraitRef(cairo::paths::PathSegments&lt;'a&gt;, core::iter::Iterator)&gt;::Item,depth=0)` src/cairo/paths.rs:83 impl&lt;'a&gt; Iterator for PathSegments&lt;'a&gt; { src/cairo/paths.rs:84 fn next(&amp;mut self) -&gt; Option&lt;PathSegment&gt; { src/cairo/paths.rs:85 let i = self.i; src/cairo/paths.rs:86 src/cairo/paths.rs:87 if i &gt;= self.num_data{ src/cairo/paths.rs:88 return None; ... note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html note: run with `RUST_BACKTRACE=1` for a backtrace thread 'rustc' panicked at 'Box&lt;Any&gt;', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libsyntax/diagnostic.rs:123 stack backtrace: 1: 0x7ffa22e142d0 - sys::backtrace::write::h8532e701ef86014f4it 2: 0x7ffa22e39b00 - failure::on_fail::h7532e1f79d134d5dzvz 3: 0x7ffa22d9f1c0 - rt::unwind::begin_unwind_inner::h97b151606151d62deaz 4: 0x7ffa1dc51c60 - rt::unwind::begin_unwind::h15809447133099964284 5: 0x7ffa1dc51bf0 - diagnostic::SpanHandler::span_bug::he8142ababcc30c39DFF 6: 0x7ffa21150e70 - middle::traits::project::project_type::h947eece142ef049d52P 7: 0x7ffa2114dfd0 - middle::traits::project::opt_normalize_projection_type::hb3defb9cc9365d1e8UP 8: 0x7ffa2113bba0 - middle::traits::project::normalize_projection_type::hdc293893275ee559JTP 9: 0x7ffa2114f470 - middle::traits::project::AssociatedTypeNormalizer&lt;'a, 'b, 'tcx&gt;.TypeFolder&lt;'tcx&gt;::fold_ty::h801cbd2cdff2eff1kSP 10: 0x7ffa2240c2e0 - middle::ty_fold::Rc&lt;T&gt;.TypeFoldable&lt;'tcx&gt;::fold_with::h6325524173844043840 11: 0x7ffa2240ce90 - middle::ty_fold::VecPerParamSpace&lt;T&gt;.TypeFoldable&lt;'tcx&gt;::fold_with::h13884369302522804796 12: 0x7ffa22428280 - check::FnCtxt&lt;'a, 'tcx&gt;::instantiate_bounds::hed550a9659b70335Oll 13: 0x7ffa22440fc0 - check::wf::CheckTypeWellFormedVisitor&lt;'ccx, 'tcx&gt;::check_impl::closure.29997 14: 0x7ffa2243d430 - check::wf::CheckTypeWellFormedVisitor&lt;'ccx, 'tcx&gt;::with_fcx::hb1283961ed8977b7Gfi 15: 0x7ffa22443d70 - check::wf::CheckTypeWellFormedVisitor&lt;'ccx, 'tcx&gt;.Visitor&lt;'v&gt;::visit_item::h001ababd87597e37soi 16: 0x7ffa22445bd0 - visit::walk_mod::h4610212675369237127 17: 0x7ffa22443d70 - check::wf::CheckTypeWellFormedVisitor&lt;'ccx, 'tcx&gt;.Visitor&lt;'v&gt;::visit_item::h001ababd87597e37soi 18: 0x7ffa22445bd0 - visit::walk_mod::h4610212675369237127 19: 0x7ffa22443d70 - check::wf::CheckTypeWellFormedVisitor&lt;'ccx, 'tcx&gt;.Visitor&lt;'v&gt;::visit_item::h001ababd87597e37soi 20: 0x7ffa22630fe0 - check_crate::unboxed_closure.40162 21: 0x7ffa2262bc30 - check_crate::h19fb6dea5733566ajsx 22: 0x7ffa23365640 - driver::phase_3_run_analysis_passes::h46b1604d9f9f5633Tva 23: 0x7ffa23353ae0 - driver::compile_input::h68b8602933aad8d7wba 24: 0x7ffa2341eeb0 - thunk::F.Invoke&lt;A, R&gt;::invoke::h18029802347644288836 25: 0x7ffa2341dc60 - rt::unwind::try::try_fn::h6518866316425934196 26: 0x7ffa22ea0400 - rust_try_inner 27: 0x7ffa22ea03f0 - rust_try 28: 0x7ffa2341dfb0 - thunk::F.Invoke&lt;A, R&gt;::invoke::h15513809553472565307 29: 0x7ffa22e25e40 - sys::thread::thread_start::h5ea7ba97235331d5a9v 30: 0x7ffa1d474fe0 - start_thread 31: 0x7ffa22a46749 - __clone 32: 0x0 - &lt;unknown&gt; Could not compile `rgtk`. Caused by: Process didn't exit successfully: `rustc src/rgtk.rs --crate-name rgtk --crate-type rlib -g -C metadata=cec106287d6301f5 -C extra-filename=-cec106287d6301f5 --out-dir /home/mike/projects/rust-stuff/rgtk/target --emit=dep-info,link -L /home/mike/projects/rust-stuff/rgtk/target -L /home/mike/projects/rust-stuff/rgtk/target/deps -L native=/usr/lib/x86_64-linux-gnu -L native=/home/mike/projects/rust-stuff/rgtk/target/build/rgtk-cec106287d6301f5/out -L /home/mike/projects/rust-stuff/rgtk/target/build/rgtk-cec106287d6301f5/out -l gtk-3 -l gdk-3 -l pangocairo-1.0 -l pango-1.0 -l atk-1.0 -l cairo-gobject -l cairo -l gdk_pixbuf-2.0 -l gio-2.0 -l gobject-2.0 -l glib-2.0 -l rgtk_glue:static -l rgtk_glue:static` (status=101) </code></pre></div>
<h3 dir="auto">STR</h3> <p dir="auto">Didn't have time to write a shorter snippet</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#![crate_type = &quot;lib&quot;] #![feature(associated_types, lang_items, unboxed_closures)] #![no_std] use Option::{None, Some}; trait Iterator { type Item; fn next(&amp;mut self) -&gt; Option&lt;Self::Item&gt;; } trait DoubleEndedIterator: Iterator { fn next_back(&amp;mut self) -&gt; Option&lt; &lt;Self as Iterator&gt;::Item&gt;; } struct Rev&lt;I&gt;(I); impl&lt;I&gt; Iterator for Rev&lt;I&gt; where I: DoubleEndedIterator { // forgot this! //type Item = &lt;I as Iterator&gt;::Item; fn next(&amp;mut self) -&gt; Option&lt; &lt;I as Iterator&gt;::Item&gt; { self.0.next_back() } } #[lang = &quot;copy&quot;] trait Copy {} #[lang = &quot;sized&quot;] trait Sized {} enum Option&lt;T&gt; { None, Some(T), } #[lang = &quot;fn_mut&quot;] trait FnMut&lt;Args, Result&gt; { extern &quot;rust-call&quot; fn call_mut(&amp;mut self, Args) -&gt; Result; }"><pre class="notranslate"><span class="pl-c1">#!<span class="pl-kos">[</span>crate_type = <span class="pl-s">"lib"</span><span class="pl-kos">]</span></span> <span class="pl-c1">#!<span class="pl-kos">[</span>feature<span class="pl-kos">(</span>associated_types<span class="pl-kos">,</span> lang_items<span class="pl-kos">,</span> unboxed_closures<span class="pl-kos">)</span><span class="pl-kos">]</span></span> <span class="pl-c1">#!<span class="pl-kos">[</span>no_std<span class="pl-kos">]</span></span> <span class="pl-k">use</span> <span class="pl-v">Option</span><span class="pl-kos">::</span><span class="pl-kos">{</span><span class="pl-v">None</span><span class="pl-kos">,</span> <span class="pl-v">Some</span><span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-k">trait</span> <span class="pl-smi">Iterator</span> <span class="pl-kos">{</span> <span class="pl-k">type</span> <span class="pl-smi">Item</span><span class="pl-kos">;</span> <span class="pl-k">fn</span> <span class="pl-en">next</span><span class="pl-kos">(</span><span class="pl-c1">&amp;</span><span class="pl-k">mut</span> <span class="pl-smi">self</span><span class="pl-kos">)</span> -&gt; <span class="pl-smi">Option</span><span class="pl-kos">&lt;</span><span class="pl-smi">Self</span><span class="pl-kos">::</span><span class="pl-smi">Item</span><span class="pl-kos">&gt;</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">trait</span> <span class="pl-smi">DoubleEndedIterator</span><span class="pl-kos">:</span> <span class="pl-smi">Iterator</span> <span class="pl-kos">{</span> <span class="pl-k">fn</span> <span class="pl-en">next_back</span><span class="pl-kos">(</span><span class="pl-c1">&amp;</span><span class="pl-k">mut</span> <span class="pl-smi">self</span><span class="pl-kos">)</span> -&gt; <span class="pl-smi">Option</span><span class="pl-kos">&lt;</span> &lt;<span class="pl-smi">Self</span> <span class="pl-k">as</span> <span class="pl-smi">Iterator</span>&gt;<span class="pl-kos">::</span><span class="pl-smi">Item</span><span class="pl-kos">&gt;</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">struct</span> <span class="pl-smi">Rev</span><span class="pl-kos">&lt;</span><span class="pl-smi">I</span><span class="pl-kos">&gt;</span><span class="pl-kos">(</span><span class="pl-smi">I</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">impl</span><span class="pl-kos">&lt;</span><span class="pl-smi">I</span><span class="pl-kos">&gt;</span> <span class="pl-smi">Iterator</span> <span class="pl-k">for</span> <span class="pl-smi">Rev</span><span class="pl-kos">&lt;</span><span class="pl-smi">I</span><span class="pl-kos">&gt;</span> <span class="pl-k">where</span> <span class="pl-smi">I</span><span class="pl-kos">:</span> <span class="pl-smi">DoubleEndedIterator</span> <span class="pl-kos">{</span> <span class="pl-c">// forgot this!</span> <span class="pl-c">//type Item = &lt;I as Iterator&gt;::Item;</span> <span class="pl-k">fn</span> <span class="pl-en">next</span><span class="pl-kos">(</span><span class="pl-c1">&amp;</span><span class="pl-k">mut</span> <span class="pl-smi">self</span><span class="pl-kos">)</span> -&gt; <span class="pl-smi">Option</span><span class="pl-kos">&lt;</span> &lt;<span class="pl-smi">I</span> <span class="pl-k">as</span> <span class="pl-smi">Iterator</span>&gt;<span class="pl-kos">::</span><span class="pl-smi">Item</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-smi">self</span><span class="pl-kos">.</span><span class="pl-c1">0</span><span class="pl-kos">.</span><span class="pl-en">next_back</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">#<span class="pl-kos">[</span>lang = <span class="pl-s">"copy"</span><span class="pl-kos">]</span></span> <span class="pl-k">trait</span> <span class="pl-smi">Copy</span> <span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-c1">#<span class="pl-kos">[</span>lang = <span class="pl-s">"sized"</span><span class="pl-kos">]</span></span> <span class="pl-k">trait</span> <span class="pl-smi">Sized</span> <span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-k">enum</span> <span class="pl-smi">Option</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-v">None</span><span class="pl-kos">,</span> <span class="pl-v">Some</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-kos">}</span> <span class="pl-c1">#<span class="pl-kos">[</span>lang = <span class="pl-s">"fn_mut"</span><span class="pl-kos">]</span></span> <span class="pl-k">trait</span> <span class="pl-smi">FnMut</span><span class="pl-kos">&lt;</span><span class="pl-smi">Args</span><span class="pl-kos">,</span> <span class="pl-smi">Result</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">extern</span> <span class="pl-s">"rust-call"</span> <span class="pl-k">fn</span> <span class="pl-en">call_mut</span><span class="pl-kos">(</span><span class="pl-c1">&amp;</span><span class="pl-k">mut</span> <span class="pl-smi">self</span><span class="pl-kos">,</span> <span class="pl-smi">Args</span><span class="pl-kos">)</span> -&gt; <span class="pl-smi">Result</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <h3 dir="auto">Output</h3> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="iter.rs:23:5: 25:6 error: internal compiler error: impl `VtableImpl(impl_def_id=DefId { krate: 0, node: 38 }:Rev&lt;I&gt;.Iterator, substs=Substs[types=[[_];[];[]], regions=[[];[];[]]], nested=[[Obligation(predicate=Binder(TraitPredicate(TraitRef(I, Sized))),depth=1), Obligation(predicate=Binder(TraitPredicate(TraitRef(I, DoubleEndedIterator))),depth=1)];[];[]])` did not contain projection for `Obligation(predicate=&lt;Rev&lt;I&gt; as TraitRef(Rev&lt;I&gt;, Iterator)&gt;::Item,depth=0)` iter.rs:23 fn next(&amp;mut self) -&gt; Option&lt; &lt;I as Iterator&gt;::Item&gt; { iter.rs:24 self.0.next_back() iter.rs:25 } note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html note: run with `RUST_BACKTRACE=1` for a backtrace thread 'rustc' panicked at 'Box&lt;Any&gt;', /root/rust/src/libsyntax/diagnostic.rs:123 stack backtrace: 1: 0x7fddb1e70120 - sys::backtrace::write::h3fe61c98bf398fe8P8s 2: 0x7fddb1e8fef0 - failure::on_fail::h55da319a91ee267cEpz 3: 0x7fddb1e05b40 - rt::unwind::begin_unwind_inner::h2a51826b093fcd9eJ3y 4: 0x7fddad24b3d0 - rt::unwind::begin_unwind::h3298842058425057001 5: 0x7fddad24b360 - diagnostic::SpanHandler::span_bug::heeaf2edd6daa003fNQF 6: 0x7fddb022acb0 - middle::traits::project::project_type::hcf50d7eec736df9c35P 7: 0x7fddb0222800 - middle::traits::fulfill::process_predicate::h3703aabc133e79cayGP 8: 0x7fddb0221ab0 - middle::traits::fulfill::FulfillmentContext&lt;$u{27}tcx$GT$::select::h827e4d042486e566SzP 9: 0x7fddb00ee7c0 - middle::traits::fulfill::FulfillmentContext&lt;$u{27}tcx$GT$::select_all_or_error::heebbe09eddbd26dfDwP 10: 0x7fddb1510cd0 - check::compare_impl_method::h359a8a44e8f8def4Zfk 11: 0x7fddb14ff0b0 - check::check_item::hfedb86714512d4d8XRj 12: 0x7fddb169d450 - check_crate::unboxed_closure.39783 13: 0x7fddb16981f0 - check_crate::h7446c5344d10b3c1cGx 14: 0x7fddb23a98d0 - driver::phase_3_run_analysis_passes::hb59d2d67157ec124gva 15: 0x7fddb2397fb0 - driver::compile_input::hff9e8d16e3108315vba 16: 0x7fddb24e4900 - thunk::F.Invoke&lt;A,$u{20}R$GT$::invoke::h10803646332669730367 17: 0x7fddb24e36c0 - rt::unwind::try::try_fn::h3820096971255462672 18: 0x7fddb1ef4eb0 - rust_try_inner 19: 0x7fddb1ef4ea0 - rust_try 20: 0x7fddb24e3a10 - thunk::F.Invoke&lt;A,$u{20}R$GT$::invoke::h15250775183210022334 21: 0x7fddb1e7f8d0 - sys::thread::thread_start::h7b82ef93cab3e580K1v 22: 0x7fddaca690c0 - start_thread 23: 0x7fddb1aab2d9 - __clone 24: 0x0 - &lt;unknown&gt;"><pre class="notranslate">iter<span class="pl-kos">.</span><span class="pl-c1">rs</span><span class="pl-kos">:</span><span class="pl-c1">23</span><span class="pl-kos">:</span><span class="pl-c1">5</span><span class="pl-kos">:</span> <span class="pl-c1">25</span><span class="pl-kos">:</span><span class="pl-c1">6</span> error<span class="pl-kos">:</span> internal compiler error<span class="pl-kos">:</span> <span class="pl-k">impl</span> `<span class="pl-smi">VtableImpl</span><span class="pl-kos">(</span><span class="pl-smi">impl_def_id</span>=<span class="pl-v">DefId</span> <span class="pl-kos">{</span> <span class="pl-c1">krate</span><span class="pl-kos">:</span> <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-c1">node</span><span class="pl-kos">:</span> <span class="pl-c1">38</span> <span class="pl-kos">}</span><span class="pl-kos">:</span><span class="pl-smi">Rev</span><span class="pl-kos">&lt;</span><span class="pl-smi">I</span><span class="pl-kos">&gt;</span><span class="pl-kos">.</span><span class="pl-smi">Iterator</span><span class="pl-kos">,</span> substs=<span class="pl-v">Substs</span><span class="pl-kos">[</span>types=<span class="pl-kos">[</span><span class="pl-kos">[</span>_<span class="pl-kos">]</span><span class="pl-kos">;</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">;</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">]</span><span class="pl-kos">,</span> regions=<span class="pl-kos">[</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">;</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">;</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">]</span><span class="pl-kos">]</span><span class="pl-kos">,</span> nested=<span class="pl-kos">[</span><span class="pl-kos">[</span><span class="pl-v">Obligation</span><span class="pl-kos">(</span>predicate=<span class="pl-v">Binder</span><span class="pl-kos">(</span><span class="pl-v">TraitPredicate</span><span class="pl-kos">(</span><span class="pl-v">TraitRef</span><span class="pl-kos">(</span><span class="pl-v">I</span><span class="pl-kos">,</span> <span class="pl-v">Sized</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">,</span>depth=<span class="pl-c1">1</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-v">Obligation</span><span class="pl-kos">(</span>predicate=<span class="pl-v">Binder</span><span class="pl-kos">(</span><span class="pl-v">TraitPredicate</span><span class="pl-kos">(</span><span class="pl-v">TraitRef</span><span class="pl-kos">(</span><span class="pl-v">I</span><span class="pl-kos">,</span> <span class="pl-v">DoubleEndedIterator</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">,</span>depth=<span class="pl-c1">1</span><span class="pl-kos">)</span><span class="pl-kos">]</span><span class="pl-kos">;</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">;</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">]</span><span class="pl-kos">)</span>` did not contain <span class="pl-smi">projection</span> <span class="pl-k">for</span> `<span class="pl-smi">Obligation</span><span class="pl-kos">(</span><span class="pl-smi">predicate</span>=<span class="pl-kos">&lt;</span><span class="pl-smi">Rev</span><span class="pl-kos">&lt;</span><span class="pl-smi">I</span><span class="pl-kos">&gt;</span> <span class="pl-k">as</span> <span class="pl-smi">TraitRef</span><span class="pl-kos">(</span><span class="pl-smi">Rev</span><span class="pl-kos">&lt;</span><span class="pl-smi">I</span><span class="pl-kos">&gt;</span><span class="pl-kos">,</span> <span class="pl-smi">Iterator</span><span class="pl-kos">)</span><span class="pl-kos">&gt;</span><span class="pl-kos">::</span><span class="pl-smi">Item</span><span class="pl-kos">,</span><span class="pl-smi">depth</span>=<span class="pl-c1">0</span><span class="pl-kos">)</span>` iter<span class="pl-kos">.</span><span class="pl-smi">rs</span><span class="pl-kos">:</span><span class="pl-c1">23</span> <span class="pl-k">fn</span> <span class="pl-smi">next</span><span class="pl-kos">(</span><span class="pl-c1">&amp;</span><span class="pl-k">mut</span> <span class="pl-smi">self</span><span class="pl-kos">)</span> -&gt; <span class="pl-smi">Option</span><span class="pl-kos">&lt;</span> &lt;<span class="pl-smi">I</span> <span class="pl-k">as</span> <span class="pl-smi">Iterator</span>&gt;<span class="pl-kos">::</span><span class="pl-smi">Item</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> iter<span class="pl-kos">.</span>rs<span class="pl-kos">:</span><span class="pl-c1">24</span> <span class="pl-smi">self</span><span class="pl-kos">.</span><span class="pl-c1">0</span><span class="pl-kos">.</span>next_back<span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos"></span> iter<span class="pl-kos">.</span><span class="pl-c1">rs</span><span class="pl-kos">:</span><span class="pl-c1">25</span> <span class="pl-kos">}</span> note<span class="pl-kos">:</span> the compiler unexpectedly panicked<span class="pl-kos">.</span> <span class="pl-c1">this</span> is a bug<span class="pl-kos">.</span> <span class="pl-c1">note</span><span class="pl-kos">:</span> we would appreciate a bug report<span class="pl-kos">:</span> http<span class="pl-kos">:</span><span class="pl-c">//doc.rust-lang.org/complement-bugreport.html</span> note<span class="pl-kos">:</span> run with `<span class="pl-v">RUST_BACKTRACE</span>=<span class="pl-c1">1</span>` <span class="pl-k">for</span> a backtrace thread <span class="pl-c1">'</span>rustc<span class="pl-c1">'</span> panicked at <span class="pl-c1">'</span><span class="pl-v">Box</span>&lt;<span class="pl-v">Any</span>&gt;<span class="pl-c1">'</span><span class="pl-kos">,</span> /root/rust/src/libsyntax/diagnostic<span class="pl-kos">.</span><span class="pl-c1">rs</span><span class="pl-kos">:</span><span class="pl-c1">123</span> stack backtrace<span class="pl-kos">:</span> <span class="pl-c1">1</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fddb1e70120</span> - sys<span class="pl-kos">::</span>backtrace<span class="pl-kos">::</span>write<span class="pl-kos">::</span>h3fe61c98bf398fe8P8s <span class="pl-c1">2</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fddb1e8fef0</span> - failure<span class="pl-kos">::</span>on_fail<span class="pl-kos">::</span>h55da319a91ee267cEpz <span class="pl-c1">3</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fddb1e05b40</span> - rt<span class="pl-kos">::</span>unwind<span class="pl-kos">::</span>begin_unwind_inner<span class="pl-kos">::</span>h2a51826b093fcd9eJ3y <span class="pl-c1">4</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fddad24b3d0</span> - rt<span class="pl-kos">::</span>unwind<span class="pl-kos">::</span>begin_unwind<span class="pl-kos">::</span>h3298842058425057001 <span class="pl-c1">5</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fddad24b360</span> - diagnostic<span class="pl-kos">::</span><span class="pl-smi">SpanHandler</span><span class="pl-kos">::</span>span_bug<span class="pl-kos">::</span>heeaf2edd6daa003fNQF <span class="pl-c1">6</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fddb022acb0</span> - middle<span class="pl-kos">::</span>traits<span class="pl-kos">::</span>project<span class="pl-kos">::</span>project_type<span class="pl-kos">::</span>hcf50d7eec736df9c35P <span class="pl-c1">7</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fddb0222800</span> - middle<span class="pl-kos">::</span>traits<span class="pl-kos">::</span>fulfill<span class="pl-kos">::</span>process_predicate<span class="pl-kos">::</span>h3703aabc133e79cayGP <span class="pl-c1">8</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fddb0221ab0</span> - middle<span class="pl-kos">::</span>traits<span class="pl-kos">::</span>fulfill<span class="pl-kos">::</span><span class="pl-v">FulfillmentContext</span>&lt;$u<span class="pl-kos">{</span><span class="pl-c1">27</span><span class="pl-kos">}</span>tcx$GT$<span class="pl-kos">::</span>select<span class="pl-kos">::</span><span class="pl-smi">h827e4d042486e566SzP</span> <span class="pl-c1">9</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fddb00ee7c0</span> - middle<span class="pl-kos">::</span>traits<span class="pl-kos">::</span>fulfill<span class="pl-kos">::</span><span class="pl-v">FulfillmentContext</span>&lt;$u<span class="pl-kos">{</span><span class="pl-c1">27</span><span class="pl-kos">}</span>tcx$GT$<span class="pl-kos">::</span>select_all_or_error<span class="pl-kos">::</span><span class="pl-smi">heebbe09eddbd26dfDwP</span> <span class="pl-c1">10</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fddb1510cd0</span> - check<span class="pl-kos">::</span>compare_impl_method<span class="pl-kos">::</span>h359a8a44e8f8def4Zfk <span class="pl-c1">11</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fddb14ff0b0</span> - check<span class="pl-kos">::</span>check_item<span class="pl-kos">::</span>hfedb86714512d4d8XRj <span class="pl-c1">12</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fddb169d450</span> - check_crate<span class="pl-kos">::</span>unboxed_closure<span class="pl-kos">.</span><span class="pl-c1">39783</span> <span class="pl-c1">13</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fddb16981f0</span> - check_crate<span class="pl-kos">::</span>h7446c5344d10b3c1cGx <span class="pl-c1">14</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fddb23a98d0</span> - driver<span class="pl-kos">::</span>phase_3_run_analysis_passes<span class="pl-kos">::</span>hb59d2d67157ec124gva <span class="pl-c1">15</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fddb2397fb0</span> - driver<span class="pl-kos">::</span>compile_input<span class="pl-kos">::</span>hff9e8d16e3108315vba <span class="pl-c1">16</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fddb24e4900</span> - thunk<span class="pl-kos">::</span><span class="pl-v">F</span><span class="pl-kos">.</span><span class="pl-c1">Invoke</span>&lt;<span class="pl-v">A</span><span class="pl-kos">,</span>$u<span class="pl-kos">{</span><span class="pl-c1">20</span><span class="pl-kos">}</span><span class="pl-v">R</span>$GT$<span class="pl-kos">::</span>invoke<span class="pl-kos">::</span>h10803646332669730367 <span class="pl-c1">17</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fddb24e36c0</span> - rt<span class="pl-kos">::</span>unwind<span class="pl-kos">::</span>try<span class="pl-kos">::</span>try_fn<span class="pl-kos">::</span>h3820096971255462672 <span class="pl-c1">18</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fddb1ef4eb0</span> - rust_try_inner <span class="pl-c1">19</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fddb1ef4ea0</span> - rust_try <span class="pl-c1">20</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fddb24e3a10</span> - thunk<span class="pl-kos">::</span><span class="pl-v">F</span><span class="pl-kos">.</span><span class="pl-c1">Invoke</span>&lt;<span class="pl-v">A</span><span class="pl-kos">,</span>$u<span class="pl-kos">{</span><span class="pl-c1">20</span><span class="pl-kos">}</span><span class="pl-v">R</span>$GT$<span class="pl-kos">::</span>invoke<span class="pl-kos">::</span>h15250775183210022334 <span class="pl-c1">21</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fddb1e7f8d0</span> - sys<span class="pl-kos">::</span>thread<span class="pl-kos">::</span>thread_start<span class="pl-kos">::</span>h7b82ef93cab3e580K1v <span class="pl-c1">22</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fddaca690c0</span> - start_thread <span class="pl-c1">23</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fddb1aab2d9</span> - __clone <span class="pl-c1">24</span><span class="pl-kos">:</span> <span class="pl-c1">0x0</span> - &lt;<span class="pl-smi">unknown</span>&gt;</pre></div> <h3 dir="auto">Version</h3> <p dir="auto"><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rust-lang/rust/commit/84f5ad8679c7fc454473ffbf389030f3e5fee379/hovercard" href="https://github.com/rust-lang/rust/commit/84f5ad8679c7fc454473ffbf389030f3e5fee379"><tt>84f5ad8</tt></a></p> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nikomatsakis/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nikomatsakis">@nikomatsakis</a></p>
1
<p dir="auto">Part of what made node.js take off so much wasn't the http server, but rather, the runtime's ability to allow developers to use JS to write a server, mobile app, and even hardware.</p> <p dir="auto">In that same spirit, wouldn't it be advantageous to add direct support for serial, usb, ble, etc?</p> <p dir="auto">Also if the goal is to make it more "web like" or webby, adding support for modern <a href="https://developer.mozilla.org/en-US/docs/Web/API" rel="nofollow">web API's</a> like <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="627466603" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/5954" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/5954/hovercard" href="https://github.com/denoland/deno/issues/5954">#5954</a> mentions could be really help this.</p> <p dir="auto">There are also other API's beyond Serial API and the Native File System API, that could definitely help bring native-like app and hardware development to deno such as:</p> <p dir="auto">Browser Debugging:</p> <ul dir="auto"> <li><a href="https://chromedevtools.github.io/devtools-protocol/" rel="nofollow">Dev Tool Protocol</a></li> <li>Would adding out of the box support for this drastically aid debugging between the server and client communication?</li> <li>What about browserfy-like opening, refreshing, or even cross-browser visual testing?</li> <li>Chrome, chromium-edge and <a href="https://docs.firefox-dev.tools/backend/protocol.html" rel="nofollow">firefox</a> all use it (if I'm not mistaken).</li> </ul> <p dir="auto">Native / Mobile App API's</p> <ul dir="auto"> <li><a href="https://browserobo.github.io/WebI2C/" rel="nofollow">I2C</a></li> <li><a href="https://developer.mozilla.org/en-US/docs/Web/API/USB" rel="nofollow">USB</a></li> <li><a href="https://github.com/svendahlstrand/web-serial-api">web serial</a></li> <li><a href="https://developer.mozilla.org/en-US/docs/Web/API/Sensor_APIs" rel="nofollow">sensor APIs</a></li> <li><a href="https://developer.mozilla.org/en-US/docs/Web/API/Web_Bluetooth_API" rel="nofollow">Web Bluetooth API </a></li> <li><a href="https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API" rel="nofollow">Geolocation</a></li> </ul> <p dir="auto">Light weight Database Stuff also addresses <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="620542096" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/5605" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/5605/hovercard" href="https://github.com/denoland/deno/issues/5605">#5605</a></p> <ul dir="auto"> <li><a href="https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API" rel="nofollow">IndexDB</a></li> <li><a href="https://www.w3.org/TR/webdatabase/" rel="nofollow">WebSQL</a></li> </ul> <p dir="auto">[Others Worth considering] (<a href="https://www.creativebloq.com/features/15-web-apis-youve-never-heard-of" rel="nofollow">https://www.creativebloq.com/features/15-web-apis-youve-never-heard-of</a>)</p>
<p dir="auto">This is a list to track the Web APIs (as per <a href="https://developer.mozilla.org/en-US/docs/Web/API" rel="nofollow">MDN API specifications list</a>) that are implemented in Deno.</p> <ul class="contains-task-list"> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Ambient Light Events</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Background Tasks</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Beacon</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Bluetooth API</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Broadcast Channel API</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> CSS Counter Styles</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> CSS Font Loading API</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> CSSOM</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Canvas API</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Channel Messaging API</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Console API</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Credential Management API</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> DOM</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Encoding API</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Encrypted Media Extensions</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Fetch API</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> File System API</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Frame Timing API</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Fullscreen API</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Gamepad API</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Geolocation API</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> HTML Drag and Drop API</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> High Resolution Time</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> History API</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Image Capture API</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> IndexedDB</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Intersection Observer API</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Long Tasks API</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Media Capabilities API</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Media Capture and Streams</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Media Session API</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Media Source Extensions</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> MediaStream Recording</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Navigation Timing</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Network Information API</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Page Visibility API</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Payment Request API</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Performance API</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Performance Timeline API</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Permissions API</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Pointer Events</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Pointer Lock API</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Proximity Events</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Push API</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Resize Observer API</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Resource Timing API</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Server Sent Events</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Service Workers API</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Storage</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Storage Access API</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Streams</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Touch Events</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> URL API</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Vibration API</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Web Animations</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Web Audio API</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Web Authentication API</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Web Crypto API</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Web Notifications</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Web Storage API</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Web Workers API</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> WebGL</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> WebRTC</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> WebVR API</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> WebVTT</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> WebXR Device API</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Websockets API</p> </li> </ul>
1
<p dir="auto">On Android there's a bug in the margin/paddings/floats CSS of the radio buttons.</p> <p dir="auto">See:</p> <ul dir="auto"> <li>On Android (bug): *</li> </ul> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/000b6f157a6f9e93a735d3e3ce7763ce02274b921df14f09f3eec834c7746fee/687474703a2f2f672e617461672e6a702f702f6275677265706f72742f626f6f7473747261702f616e64726f69642e706e67"><img src="https://camo.githubusercontent.com/000b6f157a6f9e93a735d3e3ce7763ce02274b921df14f09f3eec834c7746fee/687474703a2f2f672e617461672e6a702f702f6275677265706f72742f626f6f7473747261702f616e64726f69642e706e67" alt="Android" data-canonical-src="http://g.atag.jp/p/bugreport/bootstrap/android.png" style="max-width: 100%;"></a></p> <ul dir="auto"> <li>On Chrome (correct) *</li> </ul> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/85ecd3b6710b51cb79d4b0acde0b5844c295e595492f1a0c4a0a12ce806d43fb/687474703a2f2f672e617461672e6a702f702f6275677265706f72742f626f6f7473747261702f6368726f6d652e706e67"><img src="https://camo.githubusercontent.com/85ecd3b6710b51cb79d4b0acde0b5844c295e595492f1a0c4a0a12ce806d43fb/687474703a2f2f672e617461672e6a702f702f6275677265706f72742f626f6f7473747261702f6368726f6d652e706e67" alt="Android" data-canonical-src="http://g.atag.jp/p/bugreport/bootstrap/chrome.png" style="max-width: 100%;"></a></p> <p dir="auto">You can check it also here:<br> <a href="http://twitter.github.com/bootstrap/base-css.html#forms">http://twitter.github.com/bootstrap/base-css.html#forms</a></p> <p dir="auto">Regards,<br> Gunther</p>
<p dir="auto">Checkboxes defined as per the examples render with the text floating at least half a line higher than the actual check box.</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;label class=&quot;checkbox&quot;&gt; &lt;input type=&quot;checkbox&quot; name=&quot;optionsCheckboxList1&quot; value=&quot;option1&quot;&gt; Option one is this and that—be sure to include why it's great &lt;/label&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">label</span> <span class="pl-c1">class</span>="<span class="pl-s">checkbox</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">checkbox</span>" <span class="pl-c1">name</span>="<span class="pl-s">optionsCheckboxList1</span>" <span class="pl-c1">value</span>="<span class="pl-s">option1</span>"<span class="pl-kos">&gt;</span> Option one is this and that—be sure to include why it's great <span class="pl-kos">&lt;/</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">If you have a group of checkboxes this starts to look very confusing.</p>
1
<p dir="auto">This is something similar to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="287601442" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/10363" data-hovercard-type="issue" data-hovercard-url="/numpy/numpy/issues/10363/hovercard" href="https://github.com/numpy/numpy/issues/10363">#10363</a>.</p> <p dir="auto">When feeding a <code class="notranslate">float</code> to a numpy function, you get a <code class="notranslate">numpy.float64</code>. When feeding an array of rank &gt; 0 to a numpy function, you get an array of the same rank. UNLESS the array is rank 0, i.e., a scalar for most intents and purposes. Then you get a <code class="notranslate">numpy.float64</code>.</p> <p dir="auto">MWE:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy print(type(numpy.sqrt(2.0))) # numpy.float64, okay print(type(numpy.sqrt(numpy.array([2.0])))) # numpy.ndarray, okay print(type(numpy.sqrt(numpy.array(2.0)))) # numpy.float64, gnrg"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-en">print</span>(<span class="pl-en">type</span>(<span class="pl-s1">numpy</span>.<span class="pl-en">sqrt</span>(<span class="pl-c1">2.0</span>))) <span class="pl-c"># numpy.float64, okay</span> <span class="pl-en">print</span>(<span class="pl-en">type</span>(<span class="pl-s1">numpy</span>.<span class="pl-en">sqrt</span>(<span class="pl-s1">numpy</span>.<span class="pl-en">array</span>([<span class="pl-c1">2.0</span>])))) <span class="pl-c"># numpy.ndarray, okay</span> <span class="pl-en">print</span>(<span class="pl-en">type</span>(<span class="pl-s1">numpy</span>.<span class="pl-en">sqrt</span>(<span class="pl-s1">numpy</span>.<span class="pl-en">array</span>(<span class="pl-c1">2.0</span>)))) <span class="pl-c"># numpy.float64, gnrg</span></pre></div> <p dir="auto">It'd be more consistent if the numpy functions returned an array if you feed it it one, even for rank 0.</p>
<p dir="auto">If only given 0d inputs, even if they are of type <code class="notranslate">ndarray</code>, ufuncs will decay their output to a scalar via <code class="notranslate">[()]</code> (as noted in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="30352675" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/4563" data-hovercard-type="issue" data-hovercard-url="/numpy/numpy/issues/4563/hovercard" href="https://github.com/numpy/numpy/issues/4563">#4563</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="72454838" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/5819" data-hovercard-type="issue" data-hovercard-url="/numpy/numpy/issues/5819/hovercard" href="https://github.com/numpy/numpy/issues/5819">#5819</a>). While we can't change this behavior now without creating signficant pain downstream, we could add a way to opt out of it.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="417893639" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/13100" data-hovercard-type="issue" data-hovercard-url="/numpy/numpy/issues/13100/hovercard" href="https://github.com/numpy/numpy/issues/13100">#13100</a> raises a case where <code class="notranslate">np.fix</code> resorts to calling <code class="notranslate">np.asanyarray(np.ceil(x, out=out))</code> in order to ensure that the result is an array. Unfortunately, this has a number of draw-backs:</p> <ul dir="auto"> <li>It discards duck-types, like <code class="notranslate">dask</code> arrays</li> <li>It changes the dtype of 0d object arrays containing array-likes</li> </ul> <p dir="auto">Proposed implementation:</p> <ul dir="auto"> <li>Create a new <code class="notranslate">np.leave_wrapped</code> sentinel object that can be passed as an <code class="notranslate">out</code> argument</li> <li>Add support in <code class="notranslate">ufunc.__call__</code>, <code class="notranslate">np.take</code>, ... for passing <code class="notranslate">out=np.leave_wrapped</code> meaning "do not call PyArray_Return", causing the result to never be a scalar</li> <li>Expose <code class="notranslate">PyArray_Return</code> to python as <code class="notranslate">np.core.unpack_scalar</code></li> <li>Implement <code class="notranslate">np.fix</code> as:</li> </ul> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="def fix(x, out=None): if out is None: do_unwrap = True out = np.leave_wrapped else: do_unwrap = False res = nx.ceil(x, out=out) res = nx.floor(x, out=res, where=nx.greater_equal(x, 0, out=np.leave_wrapped)) if do_unwrap: res = np.unpack_scalar(res) # PyArray_Return return res"><pre class="notranslate"><span class="pl-k">def</span> <span class="pl-en">fix</span>(<span class="pl-s1">x</span>, <span class="pl-s1">out</span><span class="pl-c1">=</span><span class="pl-c1">None</span>): <span class="pl-k">if</span> <span class="pl-s1">out</span> <span class="pl-c1">is</span> <span class="pl-c1">None</span>: <span class="pl-s1">do_unwrap</span> <span class="pl-c1">=</span> <span class="pl-c1">True</span> <span class="pl-s1">out</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">leave_wrapped</span> <span class="pl-k">else</span>: <span class="pl-s1">do_unwrap</span> <span class="pl-c1">=</span> <span class="pl-c1">False</span> <span class="pl-s1">res</span> <span class="pl-c1">=</span> <span class="pl-s1">nx</span>.<span class="pl-en">ceil</span>(<span class="pl-s1">x</span>, <span class="pl-s1">out</span><span class="pl-c1">=</span><span class="pl-s1">out</span>) <span class="pl-s1">res</span> <span class="pl-c1">=</span> <span class="pl-s1">nx</span>.<span class="pl-en">floor</span>(<span class="pl-s1">x</span>, <span class="pl-s1">out</span><span class="pl-c1">=</span><span class="pl-s1">res</span>, <span class="pl-s1">where</span><span class="pl-c1">=</span><span class="pl-s1">nx</span>.<span class="pl-en">greater_equal</span>(<span class="pl-s1">x</span>, <span class="pl-c1">0</span>, <span class="pl-s1">out</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-s1">leave_wrapped</span>)) <span class="pl-k">if</span> <span class="pl-s1">do_unwrap</span>: <span class="pl-s1">res</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">unpack_scalar</span>(<span class="pl-s1">res</span>) <span class="pl-c"># PyArray_Return</span> <span class="pl-k">return</span> <span class="pl-s1">res</span></pre></div> <details> <summary> <p dir="auto">Original <code class="notranslate">unpack_scalars=True</code> proposal</p> </summary> <ul dir="auto"> <li>Add a new <code class="notranslate">unpack_scalars=True</code> kwarg to <code class="notranslate">ufunc.__call__</code>, <code class="notranslate">ufunc.reduce</code>. When <code class="notranslate">False</code>, the current behavior of going through <code class="notranslate">PyArray_Return</code> is disabled. Alternative names: <ul dir="auto"> <li><code class="notranslate">decay=True</code></li> <li><code class="notranslate">unpack_0d=True</code></li> <li><code class="notranslate">unpack_0d_ndarray=True</code> (<code class="notranslate">PyArray_Return</code> already does not apply to subclasses)</li> </ul> </li> <li>Add a new <code class="notranslate">np.unpack_scalar(arr)</code> function to expose <code class="notranslate">PyArray_Return</code> to python code. This would <strong>not</strong> be overloadable with <code class="notranslate">__array_function__</code>, since existing uses of <code class="notranslate">PyArray_Return</code> are also not.</li> </ul> <p dir="auto">With these changes, the current implementation of <code class="notranslate">np.fix</code> would change from:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="def fix(x, out=None): res = nx.asanyarray(nx.ceil(x, out=out)) res = nx.floor(x, out=res, where=nx.greater_equal(x, 0)) if out is None and type(res) is nx.ndarray: res = res[()] return res"><pre class="notranslate"><span class="pl-k">def</span> <span class="pl-en">fix</span>(<span class="pl-s1">x</span>, <span class="pl-s1">out</span><span class="pl-c1">=</span><span class="pl-c1">None</span>): <span class="pl-s1">res</span> <span class="pl-c1">=</span> <span class="pl-s1">nx</span>.<span class="pl-en">asanyarray</span>(<span class="pl-s1">nx</span>.<span class="pl-en">ceil</span>(<span class="pl-s1">x</span>, <span class="pl-s1">out</span><span class="pl-c1">=</span><span class="pl-s1">out</span>)) <span class="pl-s1">res</span> <span class="pl-c1">=</span> <span class="pl-s1">nx</span>.<span class="pl-en">floor</span>(<span class="pl-s1">x</span>, <span class="pl-s1">out</span><span class="pl-c1">=</span><span class="pl-s1">res</span>, <span class="pl-s1">where</span><span class="pl-c1">=</span><span class="pl-s1">nx</span>.<span class="pl-en">greater_equal</span>(<span class="pl-s1">x</span>, <span class="pl-c1">0</span>)) <span class="pl-k">if</span> <span class="pl-s1">out</span> <span class="pl-c1">is</span> <span class="pl-c1">None</span> <span class="pl-c1">and</span> <span class="pl-en">type</span>(<span class="pl-s1">res</span>) <span class="pl-c1">is</span> <span class="pl-s1">nx</span>.<span class="pl-s1">ndarray</span>: <span class="pl-s1">res</span> <span class="pl-c1">=</span> <span class="pl-s1">res</span>[()] <span class="pl-k">return</span> <span class="pl-s1">res</span></pre></div> <p dir="auto">to</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="def fix(x, out=None, *, unpack_scalars=True): res = nx.ceil(x, out=out, unpack_scalars=False) res = nx.floor(x, out=res, where=nx.greater_equal(x, 0, unpack_scalars=False), unpack_scalars=False) if unpack_scalars and out is None: res = np.unpack_scalar(res) return res"><pre class="notranslate"><span class="pl-k">def</span> <span class="pl-en">fix</span>(<span class="pl-s1">x</span>, <span class="pl-s1">out</span><span class="pl-c1">=</span><span class="pl-c1">None</span>, <span class="pl-c1">*</span>, <span class="pl-s1">unpack_scalars</span><span class="pl-c1">=</span><span class="pl-c1">True</span>): <span class="pl-s1">res</span> <span class="pl-c1">=</span> <span class="pl-s1">nx</span>.<span class="pl-en">ceil</span>(<span class="pl-s1">x</span>, <span class="pl-s1">out</span><span class="pl-c1">=</span><span class="pl-s1">out</span>, <span class="pl-s1">unpack_scalars</span><span class="pl-c1">=</span><span class="pl-c1">False</span>) <span class="pl-s1">res</span> <span class="pl-c1">=</span> <span class="pl-s1">nx</span>.<span class="pl-en">floor</span>(<span class="pl-s1">x</span>, <span class="pl-s1">out</span><span class="pl-c1">=</span><span class="pl-s1">res</span>, <span class="pl-s1">where</span><span class="pl-c1">=</span><span class="pl-s1">nx</span>.<span class="pl-en">greater_equal</span>(<span class="pl-s1">x</span>, <span class="pl-c1">0</span>, <span class="pl-s1">unpack_scalars</span><span class="pl-c1">=</span><span class="pl-c1">False</span>), <span class="pl-s1">unpack_scalars</span><span class="pl-c1">=</span><span class="pl-c1">False</span>) <span class="pl-k">if</span> <span class="pl-s1">unpack_scalars</span> <span class="pl-c1">and</span> <span class="pl-s1">out</span> <span class="pl-c1">is</span> <span class="pl-c1">None</span>: <span class="pl-s1">res</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">unpack_scalar</span>(<span class="pl-s1">res</span>) <span class="pl-k">return</span> <span class="pl-s1">res</span></pre></div> <details> If needed, I could promote this to an NEP </details></details>
1
<h3 dir="auto">Bug report</h3> <p dir="auto">matplotlib.pyplot picture is corrupted when the picture is too wide</p> <p dir="auto"><strong>Code for reproduction</strong></p> <p dir="auto">A minimum working example is here:</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 num_points = 1000 op_norms = range(1, num_points + 1) op_names = [&quot;name {}&quot;.format(p) for p in op_norms] for figwidth in [300, 400]: f = plt.figure(num=None, figsize=(figwidth, 6), facecolor='w', edgecolor='k') for i, op_norm in enumerate(op_norms): plt.semilogy(i, op_norm, &quot;o&quot;) plt.xticks(np.arange(num_points), op_names, rotation=90) plt.tight_layout() plt.grid(True) plt.savefig(&quot;wideplot_width_{}.png&quot;.format(figwidth), bbox_inches='tight') plt.close()```"><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">num_points</span> <span class="pl-c1">=</span> <span class="pl-c1">1000</span> <span class="pl-s1">op_norms</span> <span class="pl-c1">=</span> <span class="pl-en">range</span>(<span class="pl-c1">1</span>, <span class="pl-s1">num_points</span> <span class="pl-c1">+</span> <span class="pl-c1">1</span>) <span class="pl-s1">op_names</span> <span class="pl-c1">=</span> [<span class="pl-s">"name {}"</span>.<span class="pl-en">format</span>(<span class="pl-s1">p</span>) <span class="pl-k">for</span> <span class="pl-s1">p</span> <span class="pl-c1">in</span> <span class="pl-s1">op_norms</span>] <span class="pl-k">for</span> <span class="pl-s1">figwidth</span> <span class="pl-c1">in</span> [<span class="pl-c1">300</span>, <span class="pl-c1">400</span>]: <span class="pl-s1">f</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">figure</span>(<span class="pl-s1">num</span><span class="pl-c1">=</span><span class="pl-c1">None</span>, <span class="pl-s1">figsize</span><span class="pl-c1">=</span>(<span class="pl-s1">figwidth</span>, <span class="pl-c1">6</span>), <span class="pl-s1">facecolor</span><span class="pl-c1">=</span><span class="pl-s">'w'</span>, <span class="pl-s1">edgecolor</span><span class="pl-c1">=</span><span class="pl-s">'k'</span>) <span class="pl-k">for</span> <span class="pl-s1">i</span>, <span class="pl-s1">op_norm</span> <span class="pl-c1">in</span> <span class="pl-en">enumerate</span>(<span class="pl-s1">op_norms</span>): <span class="pl-s1">plt</span>.<span class="pl-en">semilogy</span>(<span class="pl-s1">i</span>, <span class="pl-s1">op_norm</span>, <span class="pl-s">"o"</span>) <span class="pl-s1">plt</span>.<span class="pl-en">xticks</span>(<span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-s1">num_points</span>), <span class="pl-s1">op_names</span>, <span class="pl-s1">rotation</span><span class="pl-c1">=</span><span class="pl-c1">90</span>) <span class="pl-s1">plt</span>.<span class="pl-en">tight_layout</span>() <span class="pl-s1">plt</span>.<span class="pl-en">grid</span>(<span class="pl-c1">True</span>) <span class="pl-s1">plt</span>.<span class="pl-en">savefig</span>(<span class="pl-s">"wideplot_width_{}.png"</span>.<span class="pl-en">format</span>(<span class="pl-s1">figwidth</span>), <span class="pl-s1">bbox_inches</span><span class="pl-c1">=</span><span class="pl-s">'tight'</span>) <span class="pl-s1">plt</span>.<span class="pl-en">close</span>()`<span class="pl-s">``</span></pre></div> <p dir="auto"><strong>Expected outcome</strong>:<br> When <code class="notranslate">figwidth=300</code>, everything is fine; see <a href="https://i.stack.imgur.com/DTeTE.png" rel="nofollow">here</a>. However, when it is increased to <code class="notranslate">figwidth=400</code>, the plot is corrupted (boarder is not complete, x axis label not complete, dirty ink etc.); see <a href="https://i.stack.imgur.com/1cMCl.png" rel="nofollow">here</a>.</p> <ul dir="auto"> <li>Operating system: Debian GNU/Linux 10 (buster)</li> <li>Matplotlib version (<code class="notranslate">import matplotlib; print(matplotlib.__version__)</code>): 3.3.2</li> <li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): agg</li> <li>Python version: 3.7.9</li> </ul> <p dir="auto">matplotlib is installed from conda.</p> <p dir="auto">Any hint would be very much appreciated! Thanks!</p>
<h3 dir="auto">Bug report</h3> <p dir="auto"><strong>Bug summary</strong></p> <p dir="auto">If I try to save a figure with 1024**3 pixels or more, the Python interpreter crashes.</p> <p dir="auto"><strong>Code for reproduction</strong></p> <p dir="auto">The following script segfaults for me on two separate machines:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#! /usr/bin/env python import matplotlib import sys matplotlib.use('agg') import matplotlib.pyplot as plt if len(sys.argv) == 3: figsize = (int(sys.argv[1]), int(sys.argv[2])) else: print('using default figsize') figsize = (463, 232) fig, ax = plt.subplots(figsize=figsize, dpi=100) fig.savefig('big.png')"><pre class="notranslate"><span class="pl-c">#! /usr/bin/env python</span> <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span> <span class="pl-k">import</span> <span class="pl-s1">sys</span> <span class="pl-s1">matplotlib</span>.<span class="pl-en">use</span>(<span class="pl-s">'agg'</span>) <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-k">if</span> <span class="pl-en">len</span>(<span class="pl-s1">sys</span>.<span class="pl-s1">argv</span>) <span class="pl-c1">==</span> <span class="pl-c1">3</span>: <span class="pl-s1">figsize</span> <span class="pl-c1">=</span> (<span class="pl-en">int</span>(<span class="pl-s1">sys</span>.<span class="pl-s1">argv</span>[<span class="pl-c1">1</span>]), <span class="pl-en">int</span>(<span class="pl-s1">sys</span>.<span class="pl-s1">argv</span>[<span class="pl-c1">2</span>])) <span class="pl-k">else</span>: <span class="pl-en">print</span>(<span class="pl-s">'using default figsize'</span>) <span class="pl-s1">figsize</span> <span class="pl-c1">=</span> (<span class="pl-c1">463</span>, <span class="pl-c1">232</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-s1">figsize</span><span class="pl-c1">=</span><span class="pl-s1">figsize</span>, <span class="pl-s1">dpi</span><span class="pl-c1">=</span><span class="pl-c1">100</span>) <span class="pl-s1">fig</span>.<span class="pl-en">savefig</span>(<span class="pl-s">'big.png'</span>)</pre></div> <p dir="auto"><strong>Actual outcome</strong></p> <p dir="auto">This segfaults when trying to create this image. The image size is 46300 × 23200 = 1,074,160,000. For comparison, 1024**3 is 1,073,741,824.</p> <p dir="auto"><strong>Expected outcome</strong></p> <p dir="auto">No segfault. If I run the script with arguments <code class="notranslate">462 232</code> to create an image of 1,071,840,000 pixels, I get no crash.</p> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Operating system: Centos 7.8 or Fedora 33</li> <li>Matplotlib version: 3.3.3</li> <li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): agg</li> <li>Python version: 3.8.6</li> </ul> <p dir="auto">Matplotlib installed through Conda using conda-forge.</p> <p dir="auto"><strong>Other information</strong></p> <p dir="auto">The relevant stacktrace is short:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#0 0x00007fffd699ffbd in agg::renderer_base&lt;agg::pixfmt_alpha_blend_rgba&lt;fixed_blender_rgba_plain&lt;agg::rgba8T&lt;agg::linear&gt;, agg::order_rgba&gt;, agg::row_accessor&lt;unsigned char&gt; &gt; &gt;::clear(agg::rgba8T&lt;agg::linear&gt; const&amp;) [clone .part.61] [clone .lto_priv.101] () from /a/lib/python3.8/site-packages/matplotlib/backends/_backend_agg.cpython-38-x86_64-linux-gnu.so #1 0x00007fffd6994d8d in PyRendererAgg_init(PyRendererAgg*, _object*, _object*) [clone .lto_priv.107] () from /a/lib/python3.8/site-packages/matplotlib/backends/_backend_agg.cpython-38-x86_64-linux-gnu.so #2 0x0000555555683888 in type_call (kwds=0x0, args=0x7fffe773fe40, type=&lt;optimized out&gt;) at /home/conda/feedstock_root/build_artifacts/python-split_1602094424782/work/Objects/typeobject.c:994"><pre class="notranslate"><code class="notranslate">#0 0x00007fffd699ffbd in agg::renderer_base&lt;agg::pixfmt_alpha_blend_rgba&lt;fixed_blender_rgba_plain&lt;agg::rgba8T&lt;agg::linear&gt;, agg::order_rgba&gt;, agg::row_accessor&lt;unsigned char&gt; &gt; &gt;::clear(agg::rgba8T&lt;agg::linear&gt; const&amp;) [clone .part.61] [clone .lto_priv.101] () from /a/lib/python3.8/site-packages/matplotlib/backends/_backend_agg.cpython-38-x86_64-linux-gnu.so #1 0x00007fffd6994d8d in PyRendererAgg_init(PyRendererAgg*, _object*, _object*) [clone .lto_priv.107] () from /a/lib/python3.8/site-packages/matplotlib/backends/_backend_agg.cpython-38-x86_64-linux-gnu.so #2 0x0000555555683888 in type_call (kwds=0x0, args=0x7fffe773fe40, type=&lt;optimized out&gt;) at /home/conda/feedstock_root/build_artifacts/python-split_1602094424782/work/Objects/typeobject.c:994 </code></pre></div> <p dir="auto">I am running this test on 64-bit machines and I can confirm that these are <em>not</em> simple out-of-memory errors.</p>
1
<p dir="auto">Using <code class="notranslate">atom --safe</code>, Version 0.152.0</p> <p dir="auto">OS X 10.9.5</p> <p dir="auto">Nothing is logged to the developer console on crash. Seems to happen when editing any file.</p> <p dir="auto">The file rename is successful in every case.</p> <p dir="auto">Anywhere else I should look to provide more info? Can't see anything on the <a href="https://atom.io/docs/v0.152.0/debugging" rel="nofollow">debugging page</a></p>
<p dir="auto">I was deleting a file and selected "Move to Trash".</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Process: Atom Helper [18018] Path: /Applications/Atom.app/Contents/Frameworks/Atom Helper.app/Contents/MacOS/Atom Helper Identifier: com.github.atom.helper Version: 0.144.0 (0.144.0) Code Type: X86-64 (Native) Parent Process: Atom [17105] Responsible: Atom [17105] User ID: 501 Date/Time: 2014-11-10 11:13:40.159 -0500 OS Version: Mac OS X 10.10 (14A388a) Report Version: 11 Anonymous UUID: 0D99533C-FAE2-A277-F6A0-24E885FAEBD0 Sleep/Wake UUID: 1B46AED7-9249-4C7D-8C81-A39D43E7C69C Time Awake Since Boot: 100000 seconds Time Since Wake: 11000 seconds Crashed Thread: 0 CrRendererMain Dispatch queue: com.apple.main-thread Exception Type: EXC_BREAKPOINT (SIGTRAP) Exception Codes: 0x0000000000000002, 0x0000000000000000 Thread 0 Crashed:: CrRendererMain Dispatch queue: com.apple.main-thread 0 libchromiumcontent.dylib 0x000000010847c6b5 base::debug::BreakDebugger() + 5 1 libchromiumcontent.dylib 0x00000001084a960f logging::LogMessage::~LogMessage() + 655 2 libchromiumcontent.dylib 0x000000010ad5f93b content::ResourceDispatcher::OnSetDataBuffer(int, base::FileDescriptor, int, int) + 523 3 libchromiumcontent.dylib 0x000000010ad5edda content::ResourceDispatcher::DispatchMessage(IPC::Message const&amp;) + 1098 4 libchromiumcontent.dylib 0x000000010ad5e5a8 content::ResourceDispatcher::OnMessageReceived(IPC::Message const&amp;) + 584 5 libchromiumcontent.dylib 0x000000010ad1d7fd content::ChildThread::OnMessageReceived(IPC::Message const&amp;) + 61 6 libchromiumcontent.dylib 0x000000010897f4cb IPC::ChannelProxy::Context::OnDispatchMessage(IPC::Message const&amp;) + 123 7 libchromiumcontent.dylib 0x000000010847dd5f base::debug::TaskAnnotator::RunTask(char const*, char const*, base::PendingTask const&amp;) + 207 8 libchromiumcontent.dylib 0x00000001084b94b8 base::MessageLoop::RunTask(base::PendingTask const&amp;) + 536 9 libchromiumcontent.dylib 0x00000001084b9a31 base::MessageLoop::DoWork() + 689 10 libchromiumcontent.dylib 0x0000000108465d61 base::MessagePumpLibevent::OnWakeup(int, short, void*) + 3137 11 com.apple.CoreFoundation 0x00007fff93eb0661 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17 12 com.apple.CoreFoundation 0x00007fff93ea28bc __CFRunLoopDoSources0 + 476 13 com.apple.CoreFoundation 0x00007fff93ea1e1f __CFRunLoopRun + 927 14 com.apple.CoreFoundation 0x00007fff93ea1838 CFRunLoopRunSpecific + 296 15 com.apple.Foundation 0x00007fff8e459ab9 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 278 16 libchromiumcontent.dylib 0x0000000108466354 base::MessagePumpNSRunLoop::DoRun(base::MessagePump::Delegate*) + 100 17 libchromiumcontent.dylib 0x0000000108465bcc base::MessagePumpLibevent::OnWakeup(int, short, void*) + 2732 18 libchromiumcontent.dylib 0x00000001084d2cb6 base::RunLoop::Run() + 70 19 libchromiumcontent.dylib 0x00000001084b8c1d base::MessageLoop::Run() + 29 20 libchromiumcontent.dylib 0x000000010ae57e72 content::RenderWidget::UnregisterRenderFrame(content::RenderFrameImpl*) + 10402 21 libchromiumcontent.dylib 0x0000000108459d44 content::ContentMainRunner::Create() + 2196 22 libchromiumcontent.dylib 0x0000000108459236 content::ContentMain(content::ContentMainParams const&amp;) + 54 23 com.github.AtomFramework 0x0000000107bfa298 AtomMain + 72 24 libdyld.dylib 0x00007fff9cbd35c9 start + 1 Thread 1:: Dispatch queue: com.apple.libdispatch-manager 0 libsystem_kernel.dylib 0x00007fff996e422e kevent64 + 10 1 libdispatch.dylib 0x00007fff96808a6a _dispatch_mgr_thread + 52 Thread 2:: Chrome_ChildIOThread 0 libsystem_kernel.dylib 0x00007fff996e4216 kevent + 10 1 libchromiumcontent.dylib 0x0000000108503150 logging::VlogInfo::GetMaxVlogLevel() const + 4336 2 libchromiumcontent.dylib 0x0000000108464f7c base::MessagePumpLibevent::Run(base::MessagePump::Delegate*) + 252 3 libchromiumcontent.dylib 0x00000001084d2cb6 base::RunLoop::Run() + 70 4 libchromiumcontent.dylib 0x00000001084b8c1d base::MessageLoop::Run() + 29 5 libchromiumcontent.dylib 0x00000001084f3759 base::Thread::ThreadMain() + 217 6 libchromiumcontent.dylib 0x00000001084ecf7b base::PlatformThread::Join(base::PlatformThreadHandle) + 283 7 libsystem_pthread.dylib 0x00007fff909702fc _pthread_body + 131 8 libsystem_pthread.dylib 0x00007fff90970279 _pthread_start + 176 9 libsystem_pthread.dylib 0x00007fff9096e4b1 thread_start + 13 Thread 3:: OptimizingCompi 0 libsystem_kernel.dylib 0x00007fff996de56a semaphore_wait_trap + 10 1 libchromiumcontent.dylib 0x0000000109d56ea7 v8::Unlocker::~Unlocker() + 477879 2 libchromiumcontent.dylib 0x0000000109c3fb75 v8::Testing::DeoptimizeAll() + 2490821 3 libchromiumcontent.dylib 0x0000000109d583d7 v8::Unlocker::~Unlocker() + 483303 4 libsystem_pthread.dylib 0x00007fff909702fc _pthread_body + 131 5 libsystem_pthread.dylib 0x00007fff90970279 _pthread_start + 176 6 libsystem_pthread.dylib 0x00007fff9096e4b1 thread_start + 13 Thread 4:: v8:SweeperThrea 0 libsystem_kernel.dylib 0x00007fff996de56a semaphore_wait_trap + 10 1 libchromiumcontent.dylib 0x0000000109d56ea7 v8::Unlocker::~Unlocker() + 477879 2 libchromiumcontent.dylib 0x0000000109b44b80 v8::Testing::DeoptimizeAll() + 1462736 3 libchromiumcontent.dylib 0x0000000109d583d7 v8::Unlocker::~Unlocker() + 483303 4 libsystem_pthread.dylib 0x00007fff909702fc _pthread_body + 131 5 libsystem_pthread.dylib 0x00007fff90970279 _pthread_start + 176 6 libsystem_pthread.dylib 0x00007fff9096e4b1 thread_start + 13 Thread 5:: v8:SweeperThrea 0 libsystem_kernel.dylib 0x00007fff996de56a semaphore_wait_trap + 10 1 libchromiumcontent.dylib 0x0000000109d56ea7 v8::Unlocker::~Unlocker() + 477879 2 libchromiumcontent.dylib 0x0000000109b44b80 v8::Testing::DeoptimizeAll() + 1462736 3 libchromiumcontent.dylib 0x0000000109d583d7 v8::Unlocker::~Unlocker() + 483303 4 libsystem_pthread.dylib 0x00007fff909702fc _pthread_body + 131 5 libsystem_pthread.dylib 0x00007fff90970279 _pthread_start + 176 6 libsystem_pthread.dylib 0x00007fff9096e4b1 thread_start + 13 Thread 6:: v8:SweeperThrea 0 libsystem_kernel.dylib 0x00007fff996de56a semaphore_wait_trap + 10 1 libchromiumcontent.dylib 0x0000000109d56ea7 v8::Unlocker::~Unlocker() + 477879 2 libchromiumcontent.dylib 0x0000000109b44b80 v8::Testing::DeoptimizeAll() + 1462736 3 libchromiumcontent.dylib 0x0000000109d583d7 v8::Unlocker::~Unlocker() + 483303 4 libsystem_pthread.dylib 0x00007fff909702fc _pthread_body + 131 5 libsystem_pthread.dylib 0x00007fff90970279 _pthread_start + 176 6 libsystem_pthread.dylib 0x00007fff9096e4b1 thread_start + 13 Thread 7:: Compositor 0 libsystem_kernel.dylib 0x00007fff996de52e mach_msg_trap + 10 1 libsystem_kernel.dylib 0x00007fff996dd69f mach_msg + 55 2 com.apple.CoreFoundation 0x00007fff93ea2b14 __CFRunLoopServiceMachPort + 212 3 com.apple.CoreFoundation 0x00007fff93ea1fdb __CFRunLoopRun + 1371 4 com.apple.CoreFoundation 0x00007fff93ea1838 CFRunLoopRunSpecific + 296 5 libchromiumcontent.dylib 0x0000000108465f4f base::MessagePumpCFRunLoop::DoRun(base::MessagePump::Delegate*) + 79 6 libchromiumcontent.dylib 0x0000000108465bcc base::MessagePumpLibevent::OnWakeup(int, short, void*) + 2732 7 libchromiumcontent.dylib 0x00000001084d2cb6 base::RunLoop::Run() + 70 8 libchromiumcontent.dylib 0x00000001084b8c1d base::MessageLoop::Run() + 29 9 libchromiumcontent.dylib 0x00000001084f3759 base::Thread::ThreadMain() + 217 10 libchromiumcontent.dylib 0x00000001084ecf7b base::PlatformThread::Join(base::PlatformThreadHandle) + 283 11 libsystem_pthread.dylib 0x00007fff909702fc _pthread_body + 131 12 libsystem_pthread.dylib 0x00007fff90970279 _pthread_start + 176 13 libsystem_pthread.dylib 0x00007fff9096e4b1 thread_start + 13 Thread 8: 0 libsystem_kernel.dylib 0x00007fff996de56a semaphore_wait_trap + 10 1 com.github.AtomFramework 0x0000000107db073b uv_sem_wait + 16 2 com.github.AtomFramework 0x0000000107c4213b atom::NodeBindings::EmbedThreadRunner(void*) + 35 3 com.github.AtomFramework 0x0000000107da78a0 uv__thread_start + 25 4 libsystem_pthread.dylib 0x00007fff909702fc _pthread_body + 131 5 libsystem_pthread.dylib 0x00007fff90970279 _pthread_start + 176 6 libsystem_pthread.dylib 0x00007fff9096e4b1 thread_start + 13 Thread 9:: HTMLParserThread 0 libsystem_kernel.dylib 0x00007fff996de52e mach_msg_trap + 10 1 libsystem_kernel.dylib 0x00007fff996dd69f mach_msg + 55 2 com.apple.CoreFoundation 0x00007fff93ea2b14 __CFRunLoopServiceMachPort + 212 3 com.apple.CoreFoundation 0x00007fff93ea1fdb __CFRunLoopRun + 1371 4 com.apple.CoreFoundation 0x00007fff93ea1838 CFRunLoopRunSpecific + 296 5 libchromiumcontent.dylib 0x0000000108465f4f base::MessagePumpCFRunLoop::DoRun(base::MessagePump::Delegate*) + 79 6 libchromiumcontent.dylib 0x0000000108465bcc base::MessagePumpLibevent::OnWakeup(int, short, void*) + 2732 7 libchromiumcontent.dylib 0x00000001084d2cb6 base::RunLoop::Run() + 70 8 libchromiumcontent.dylib 0x00000001084b8c1d base::MessageLoop::Run() + 29 9 libchromiumcontent.dylib 0x00000001084f3759 base::Thread::ThreadMain() + 217 10 libchromiumcontent.dylib 0x00000001084ecf7b base::PlatformThread::Join(base::PlatformThreadHandle) + 283 11 libsystem_pthread.dylib 0x00007fff909702fc _pthread_body + 131 12 libsystem_pthread.dylib 0x00007fff90970279 _pthread_start + 176 13 libsystem_pthread.dylib 0x00007fff9096e4b1 thread_start + 13 Thread 10: 0 libsystem_kernel.dylib 0x00007fff996e4216 kevent + 10 1 com.github.AtomFramework 0x0000000107da78a0 uv__thread_start + 25 2 libsystem_pthread.dylib 0x00007fff909702fc _pthread_body + 131 3 libsystem_pthread.dylib 0x00007fff90970279 _pthread_start + 176 4 libsystem_pthread.dylib 0x00007fff9096e4b1 thread_start + 13 Thread 11: 0 libsystem_kernel.dylib 0x00007fff996e3132 __psynch_cvwait + 10 1 com.github.AtomFramework 0x0000000107db07d1 uv_cond_wait + 9 2 com.github.AtomFramework 0x0000000107da6a06 worker + 206 3 com.github.AtomFramework 0x0000000107da78a0 uv__thread_start + 25 4 libsystem_pthread.dylib 0x00007fff909702fc _pthread_body + 131 5 libsystem_pthread.dylib 0x00007fff90970279 _pthread_start + 176 6 libsystem_pthread.dylib 0x00007fff9096e4b1 thread_start + 13 Thread 12: 0 libsystem_kernel.dylib 0x00007fff996e3132 __psynch_cvwait + 10 1 com.github.AtomFramework 0x0000000107db07d1 uv_cond_wait + 9 2 com.github.AtomFramework 0x0000000107da6a06 worker + 206 3 com.github.AtomFramework 0x0000000107da78a0 uv__thread_start + 25 4 libsystem_pthread.dylib 0x00007fff909702fc _pthread_body + 131 5 libsystem_pthread.dylib 0x00007fff90970279 _pthread_start + 176 6 libsystem_pthread.dylib 0x00007fff9096e4b1 thread_start + 13 Thread 13: 0 libsystem_kernel.dylib 0x00007fff996e3132 __psynch_cvwait + 10 1 com.github.AtomFramework 0x0000000107db07d1 uv_cond_wait + 9 2 com.github.AtomFramework 0x0000000107da6a06 worker + 206 3 com.github.AtomFramework 0x0000000107da78a0 uv__thread_start + 25 4 libsystem_pthread.dylib 0x00007fff909702fc _pthread_body + 131 5 libsystem_pthread.dylib 0x00007fff90970279 _pthread_start + 176 6 libsystem_pthread.dylib 0x00007fff9096e4b1 thread_start + 13 Thread 14: 0 libsystem_kernel.dylib 0x00007fff996e3132 __psynch_cvwait + 10 1 com.github.AtomFramework 0x0000000107db07d1 uv_cond_wait + 9 2 com.github.AtomFramework 0x0000000107da6a06 worker + 206 3 com.github.AtomFramework 0x0000000107da78a0 uv__thread_start + 25 4 libsystem_pthread.dylib 0x00007fff909702fc _pthread_body + 131 5 libsystem_pthread.dylib 0x00007fff90970279 _pthread_start + 176 6 libsystem_pthread.dylib 0x00007fff9096e4b1 thread_start + 13 Thread 15: 0 libsystem_kernel.dylib 0x00007fff996e3946 __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x00007fff9096e4a1 start_wqthread + 13 Thread 0 crashed with X86 Thread State (64-bit): rax: 0x000000000000004b rbx: 0x0000000000000000 rcx: 0x0000000000000000 rdx: 0xfffffffffffffffb rdi: 0x00007fff5800e0b0 rsi: 0x00007fbe9ac9a938 rbp: 0x00007fff5800e070 rsp: 0x00007fff5800e070 r8: 0x00007fff5800e030 r9: 0x00007fff7dfb5300 r10: 0x00000000000170d8 r11: 0x00000040bd3737b8 r12: 0x00007fff5800e6e8 r13: 0x00007fff7eaef070 r14: 0x00007fff5800e6f8 r15: 0x0000000000080000 rip: 0x000000010847c6b5 rfl: 0x0000000000000246 cr2: 0x000000010847c6b0 Logical CPU: 0 Error Code: 0x00000000 Trap Number: 3 Binary Images: 0x107bef000 - 0x107beffff +com.github.atom.helper (0.144.0 - 0.144.0) &lt;A8A51FE1-F1BE-3CE1-92CC-E85D1817D694&gt; /Applications/Atom.app/Contents/Frameworks/Atom Helper.app/Contents/MacOS/Atom Helper 0x107bf9000 - 0x107f70fff +com.github.AtomFramework (0) &lt;B09F3577-C18F-37FC-A53B-99B43EBF1691&gt; /Applications/Atom.app/Contents/Frameworks/Atom Framework.framework/Versions/A/Atom Framework 0x1082c0000 - 0x1082dffff +com.github.Squirrel (1.0 - 1) &lt;8A2477CD-7A5C-3305-84F6-8EE9B2EF8478&gt; /Applications/Atom.app/Contents/Frameworks/Squirrel.framework/Versions/A/Squirrel 0x108302000 - 0x108399ff7 +com.github.ReactiveCocoa (1.0 - 1) &lt;054804D9-6597-3679-814F-441C4B01ADED&gt; /Applications/Atom.app/Contents/Frameworks/ReactiveCocoa.framework/Versions/A/ReactiveCocoa 0x108413000 - 0x108430fff +com.github.Mantle (1.0 - 1) &lt;C9D801BD-C96E-3266-9933-65220955C964&gt; /Applications/Atom.app/Contents/Frameworks/Mantle.framework/Versions/A/Mantle 0x108448000 - 0x10beeefb7 +libchromiumcontent.dylib (0) &lt;6B119240-C11D-3907-8152-A756C7E79C87&gt; /Applications/Atom.app/Contents/Frameworks/Atom Framework.framework/Versions/A/Libraries/libchromiumcontent.dylib 0x10ca16000 - 0x10ca4dfff com.apple.audio.midi.CoreMIDI (1.10 - 88) &lt;4DED30CF-CBA6-3223-9D3F-7D4D634656B8&gt; /System/Library/Frameworks/CoreMIDI.framework/Versions/A/CoreMIDI 0x10ca75000 - 0x10caaaff7 libssl.0.9.8.dylib (52) &lt;70680606-475F-3C89-BB5F-E274253DC7C6&gt; /usr/lib/libssl.0.9.8.dylib 0x111a9e000 - 0x111ca8fef +ffmpegsumo.so (???) &lt;664D031F-7854-302A-BC46-9D5F398D12FB&gt; /Applications/Atom.app/Contents/Frameworks/Atom Framework.framework/Libraries/ffmpegsumo.so 0x11353a000 - 0x11353dfff +pathwatcher.node (???) &lt;AA772458-0AF8-3683-AC80-8210CE3791A1&gt; /Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/build/Release/pathwatcher.node 0x1135c7000 - 0x1135c9ff7 +keyboard-layout-observer.node (???) &lt;81A3C7FC-72F8-3DAB-890B-BA9C033B4CCE&gt; /Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/node_modules/keyboard-layout/build/Release/keyboard-layout-observer.node 0x1135ce000 - 0x113621ff7 +onig_scanner.node (???) &lt;D1971343-BCC1-3083-8F41-787D4B1F22B9&gt; /Applications/Atom.app/Contents/Resources/app/node_modules/oniguruma/build/Release/onig_scanner.node 0x11478c000 - 0x11482dfff +git.node (???) &lt;31F720E7-631E-3E59-9FC2-035EDA2BC8B8&gt; /Applications/Atom.app/Contents/Resources/app/node_modules/git-utils/build/Release/git.node 0x114879000 - 0x11487afff +runas.node (???) &lt;0265DDA1-229F-3D93-B105-C8DD82F2B679&gt; /Applications/Atom.app/Contents/Resources/app/node_modules/runas/build/Release/runas.node 0x11742b000 - 0x11742dfff +scrollbar-style-observer.node (???) &lt;0CD9C9A7-0F6B-39EB-BEC6-0E48C77DABF0&gt; /Applications/Atom.app/Contents/Resources/app/node_modules/scrollbar-style/build/Release/scrollbar-style-observer.node 0x7fff63f35000 - 0x7fff63f6b837 dyld (353.2.1) &lt;4696A982-1500-34EC-9777-1EF7A03E2659&gt; /usr/lib/dyld 0x7fff8d767000 - 0x7fff8d87fffb com.apple.CoreText (352.0 - 454.1) &lt;AB07DF12-BB1F-3275-A8A3-45F14BF872BF&gt; /System/Library/Frameworks/CoreText.framework/Versions/A/CoreText 0x7fff8d880000 - 0x7fff8d88dff7 libbz2.1.0.dylib (36) &lt;2DF83FBC-5C08-39E1-94F5-C28653791B5F&gt; /usr/lib/libbz2.1.0.dylib 0x7fff8d890000 - 0x7fff8d8b6ff7 com.apple.ChunkingLibrary (2.1 - 163.1) &lt;3514F2A4-38BD-3849-9286-B3B991057742&gt; /System/Library/PrivateFrameworks/ChunkingLibrary.framework/Versions/A/ChunkingLibrary 0x7fff8d8c6000 - 0x7fff8d8e5fff com.apple.CoreDuet (1.0 - 1) &lt;36AA9FD5-2685-314D-B364-3FA4688D86BD&gt; /System/Library/PrivateFrameworks/CoreDuet.framework/Versions/A/CoreDuet 0x7fff8d9dc000 - 0x7fff8d9e0ff7 libGIF.dylib (1231) &lt;B3D2DF96-A67D-31EA-9A1B-E870B54855EE&gt; /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib 0x7fff8da4f000 - 0x7fff8da51ff7 com.apple.SecCodeWrapper (4.0 - 238) &lt;F450AB10-B0A4-3B55-A1B9-563E55C99333&gt; /System/Library/PrivateFrameworks/SecCodeWrapper.framework/Versions/A/SecCodeWrapper 0x7fff8da67000 - 0x7fff8da67fff com.apple.Accelerate (1.10 - Accelerate 1.10) &lt;C7278843-2462-32F6-B0E3-D33C681399A2&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate 0x7fff8da68000 - 0x7fff8db4bfff libcrypto.0.9.8.dylib (52) &lt;7208EEE2-C090-383E-AADD-7E1BD1321BEC&gt; /usr/lib/libcrypto.0.9.8.dylib 0x7fff8db4c000 - 0x7fff8df23fe7 com.apple.CoreAUC (211.0.0 - 211.0.0) &lt;C0DFCFBA-90E6-38F7-B858-E80A880514E6&gt; /System/Library/PrivateFrameworks/CoreAUC.framework/Versions/A/CoreAUC 0x7fff8df24000 - 0x7fff8df64ff7 com.apple.CloudDocs (1.0 - 280.1) &lt;21D7E10A-99EF-34BE-82D7-29A6F1761DE5&gt; /System/Library/PrivateFrameworks/CloudDocs.framework/Versions/A/CloudDocs 0x7fff8df65000 - 0x7fff8dfe2fff com.apple.CoreServices.OSServices (640.3 - 640.3) &lt;EF21E94C-1B34-38F2-AD1E-5BF3AC8C8A23&gt; /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices 0x7fff8dfe3000 - 0x7fff8e000ffb libresolv.9.dylib (57) &lt;26B38E61-298A-3C3A-82C1-3B5E98AD5E29&gt; /usr/lib/libresolv.9.dylib 0x7fff8e09a000 - 0x7fff8e3b5fcf com.apple.vImage (8.0 - 8.0) &lt;1183FE6A-FDB6-3B3B-928D-50C7909F2308&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage 0x7fff8e3b6000 - 0x7fff8e3b8fff com.apple.loginsupport (1.0 - 1) &lt;35A2A071-606C-39A5-8C11-E4CAF98D934C&gt; /System/Library/PrivateFrameworks/login.framework/Versions/A/Frameworks/loginsupport.framework/Versions/A/loginsupport 0x7fff8e3b9000 - 0x7fff8e3bbffb libCGXType.A.dylib (772) &lt;7CB71BC6-D8EC-37BC-8243-41BAB086FAAA&gt; /System/Library/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGXType.A.dylib 0x7fff8e3eb000 - 0x7fff8e3eeff7 com.apple.Mangrove (1.0 - 1) &lt;2AF1CAE9-8BF9-33C4-9C1B-123DBAF1522B&gt; /System/Library/PrivateFrameworks/Mangrove.framework/Versions/A/Mangrove 0x7fff8e3ef000 - 0x7fff8e71dff7 com.apple.Foundation (6.9 - 1151.16) &lt;18EDD673-A010-3E99-956E-DA594CE1FA80&gt; /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation 0x7fff8e71e000 - 0x7fff8e733ff7 com.apple.AppContainer (4.0 - 238) &lt;9481F305-359A-33E6-93F1-89A25FA14E00&gt; /System/Library/PrivateFrameworks/AppContainer.framework/Versions/A/AppContainer 0x7fff8e750000 - 0x7fff8e79dff3 com.apple.print.framework.PrintCore (10.0 - 451) &lt;3CA58254-D14F-3913-9DFB-CAC499570CC7&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore 0x7fff8e79e000 - 0x7fff8e7c1fff com.apple.Sharing (328.3 - 328.3) &lt;FDEE49AD-8804-3760-9C14-8D1D10BBEA37&gt; /System/Library/PrivateFrameworks/Sharing.framework/Versions/A/Sharing 0x7fff8e826000 - 0x7fff8eaa0fff com.apple.CoreData (110 - 526) &lt;AEEDAF00-D38F-3A15-B3C9-73732940CC55&gt; /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData 0x7fff8eaa1000 - 0x7fff8eaa7ff7 com.apple.XPCService (2.0 - 1) &lt;AA4A5393-1F5D-3465-A417-0414B95DC052&gt; /System/Library/PrivateFrameworks/XPCService.framework/Versions/A/XPCService 0x7fff8eb51000 - 0x7fff8eb51ff7 libunc.dylib (29) &lt;5676F7EA-C1DF-329F-B006-D2C3022B7D70&gt; /usr/lib/system/libunc.dylib 0x7fff8ecb1000 - 0x7fff8ecdefff com.apple.Accounts (113 - 113) &lt;3145FCC2-D297-3DD1-B74B-9E7DBB0EE33C&gt; /System/Library/Frameworks/Accounts.framework/Versions/A/Accounts 0x7fff8ed09000 - 0x7fff8ed3bff3 com.apple.frameworks.CoreDaemon (1.3 - 1.3) &lt;C6DB0A07-F8E4-3837-BCA9-225F460EDA81&gt; /System/Library/PrivateFrameworks/CoreDaemon.framework/Versions/B/CoreDaemon 0x7fff8ed92000 - 0x7fff8edacff7 com.apple.AppleVPAFramework (1.0.30 - 1.0.30) &lt;D47A2125-C72D-3298-B27D-D89EA0D55584&gt; /System/Library/PrivateFrameworks/AppleVPA.framework/Versions/A/AppleVPA 0x7fff8edae000 - 0x7fff8edfdff7 com.apple.opencl (2.4.2 - 2.4.2) &lt;6AE26E08-6EFC-3E1B-B202-EFA9C3E5B9D4&gt; /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL 0x7fff8edfe000 - 0x7fff8ee6cffb com.apple.Heimdal (4.0 - 2.0) &lt;B852ACA1-4C64-3E2A-A9D3-6D4C80AD9429&gt; /System/Library/PrivateFrameworks/Heimdal.framework/Versions/A/Heimdal 0x7fff8ee6d000 - 0x7fff8f070ff3 com.apple.CFNetwork (720.0.9 - 720.0.9) &lt;78EE1B88-394F-3BB8-93A6-E068990559EC&gt; /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork 0x7fff8f071000 - 0x7fff8f1a1fff com.apple.UIFoundation (1.0 - 1) &lt;8E030D93-441C-3997-9CD2-55C8DFAC8B84&gt; /System/Library/PrivateFrameworks/UIFoundation.framework/Versions/A/UIFoundation 0x7fff8f1c4000 - 0x7fff8f4abffb com.apple.CoreServices.CarbonCore (1108.1 - 1108.1) &lt;55A16172-ACC0-38B7-8409-3CB92AF33973&gt; /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore 0x7fff8f4ac000 - 0x7fff8f4aeff7 libsystem_coreservices.dylib (9) &lt;41B7C578-5A53-31C8-A96F-C73E030B0938&gt; /usr/lib/system/libsystem_coreservices.dylib 0x7fff8f4db000 - 0x7fff8f4ecfff libcmph.dylib (1) &lt;46EC3997-DB5E-38AE-BBBB-A035A54AD3C0&gt; /usr/lib/libcmph.dylib 0x7fff8f59d000 - 0x7fff8f5b9fff com.apple.GenerationalStorage (2.0 - 209.11) &lt;9FF8DD11-25FB-3047-A5BF-9415339B3EEC&gt; /System/Library/PrivateFrameworks/GenerationalStorage.framework/Versions/A/GenerationalStorage 0x7fff8f5ba000 - 0x7fff8f5bdfff com.apple.xpc.ServiceManagement (1.0 - 1) &lt;7E9E6BB7-AEE7-3F59-BAC0-59EAF105D0C8&gt; /System/Library/Frameworks/ServiceManagement.framework/Versions/A/ServiceManagement 0x7fff8f605000 - 0x7fff8f606fff liblangid.dylib (117) &lt;B54A4AA0-2E53-3671-90F5-AFF711C0EB9E&gt; /usr/lib/liblangid.dylib 0x7fff8f607000 - 0x7fff8f6c6fff com.apple.backup.framework (1.6 - 1.6) &lt;373C7CF8-2A85-3B59-BFBC-FFA3FAE2293D&gt; /System/Library/PrivateFrameworks/Backup.framework/Versions/A/Backup 0x7fff8f708000 - 0x7fff8f708fff libOpenScriptingUtil.dylib (162) &lt;EFD79173-A9DA-3AE6-BE15-3948938204A6&gt; /usr/lib/libOpenScriptingUtil.dylib 0x7fff8f709000 - 0x7fff8f752ff3 com.apple.HIServices (1.22 - 519) &lt;59D78E07-C3F1-3272-88F1-876B836D5517&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices 0x7fff8f75c000 - 0x7fff8f75ffff com.apple.IOSurface (97 - 97) &lt;D4B4D2B2-7B16-3174-9EA6-55E0A10B452D&gt; /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface 0x7fff8f856000 - 0x7fff8f881fff com.apple.DictionaryServices (1.2 - 229) &lt;6789EC43-CADA-394D-8FE8-FC3A2DD136B9&gt; /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices 0x7fff8f882000 - 0x7fff8f8faff7 com.apple.SystemConfiguration (1.14 - 1.14) &lt;C269BCFD-ACAB-3331-BC7C-0430F0E84817&gt; /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration 0x7fff8f9d6000 - 0x7fff8fafdfff com.apple.coreui (2.1 - 305) &lt;BB430677-D1F7-38DD-8F05-70E54352B8B5&gt; /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI 0x7fff8fafe000 - 0x7fff8fb44ff7 libauto.dylib (186) &lt;A260789B-D4D8-316A-9490-254767B8A5F1&gt; /usr/lib/libauto.dylib 0x7fff9006f000 - 0x7fff90070fff libsystem_secinit.dylib (18) &lt;581DAD0F-6B63-3A48-B63B-917AF799ABAA&gt; /usr/lib/system/libsystem_secinit.dylib 0x7fff90071000 - 0x7fff90071fff com.apple.Cocoa (6.8 - 21) &lt;EAC0EA1E-3C62-3B28-A941-5D8B1E085FF8&gt; /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa 0x7fff9012e000 - 0x7fff9016ffff libGLU.dylib (11.0.7) &lt;8037342E-1ECD-385F-B4C3-545CE97B76AE&gt; /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib 0x7fff901be000 - 0x7fff901bfff7 libsystem_blocks.dylib (65) &lt;9615D10A-FCA7-3BE4-AA1A-1B195DACE1A1&gt; /usr/lib/system/libsystem_blocks.dylib 0x7fff901c0000 - 0x7fff901e0fff com.apple.IconServices (47.1 - 47.1) &lt;E83DFE3B-6541-3736-96BB-26DC5D0100F1&gt; /System/Library/PrivateFrameworks/IconServices.framework/Versions/A/IconServices 0x7fff9026a000 - 0x7fff9026ffff com.apple.DiskArbitration (2.6 - 2.6) &lt;0DFF4D9B-2AC3-3B82-B5C5-30F4EFBD2DB9&gt; /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration 0x7fff90270000 - 0x7fff90278ff7 com.apple.AppleSRP (5.0 - 1) &lt;01EC5144-D09A-3D6A-AE35-F6D48585F154&gt; /System/Library/PrivateFrameworks/AppleSRP.framework/Versions/A/AppleSRP 0x7fff90279000 - 0x7fff9027ffff libsystem_trace.dylib (72.1.3) &lt;A9E6B7D8-C327-3742-AC54-86C94218B1DF&gt; /usr/lib/system/libsystem_trace.dylib 0x7fff90280000 - 0x7fff90286ff7 libsystem_networkextension.dylib (167.1.10) &lt;29AB225B-D7FB-30ED-9600-65D44B9A9442&gt; /usr/lib/system/libsystem_networkextension.dylib 0x7fff908eb000 - 0x7fff9096cff3 com.apple.CoreUtils (1.0 - 101.1) &lt;45E5E51B-947E-3F2D-BD9C-480E72555C23&gt; /System/Library/PrivateFrameworks/CoreUtils.framework/Versions/A/CoreUtils 0x7fff9096d000 - 0x7fff90976fff libsystem_pthread.dylib (105.1.4) &lt;26B1897F-0CD3-30F3-B55A-37CB45062D73&gt; /usr/lib/system/libsystem_pthread.dylib 0x7fff90981000 - 0x7fff90a71fef libJP2.dylib (1231) &lt;FEAF6F38-736E-35A8-A983-F4531C8A821C&gt; /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib 0x7fff90a72000 - 0x7fff90a73ffb libremovefile.dylib (35) &lt;3485B5F4-6CE8-3C62-8DFD-8736ED6E8531&gt; /usr/lib/system/libremovefile.dylib 0x7fff90a74000 - 0x7fff90a74ff7 liblaunch.dylib (559.1.22) &lt;8A988924-8BE7-35FE-BF7D-322E90EFE49E&gt; /usr/lib/system/liblaunch.dylib 0x7fff90a84000 - 0x7fff90a8bfff com.apple.network.statistics.framework (1.2 - 1) &lt;61B311D1-7F15-35B3-80D4-99B8BE90ACD9&gt; /System/Library/PrivateFrameworks/NetworkStatistics.framework/Versions/A/NetworkStatistics 0x7fff90a8c000 - 0x7fff90aebff3 com.apple.AE (681 - 681) &lt;7F544183-A515-31A8-B45F-89A167F56216&gt; /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE 0x7fff90b00000 - 0x7fff90b02fff com.apple.OAuth (25 - 25) &lt;EE765AF0-2BB6-3689-9EAA-689BF1F02A0D&gt; /System/Library/PrivateFrameworks/OAuth.framework/Versions/A/OAuth 0x7fff90b5e000 - 0x7fff90b8eff3 com.apple.CoreAVCHD (5.7.5 - 5750.4.1) &lt;3E51287C-E97D-3886-BE88-8F6872400876&gt; /System/Library/PrivateFrameworks/CoreAVCHD.framework/Versions/A/CoreAVCHD 0x7fff90b8f000 - 0x7fff90b99ff7 com.apple.CrashReporterSupport (10.10 - 629) &lt;EC97EA5E-3190-3717-A4A9-2F35A447E7A6&gt; /System/Library/PrivateFrameworks/CrashReporterSupport.framework/Versions/A/CrashReporterSupport 0x7fff90be0000 - 0x7fff90be5ffb libheimdal-asn1.dylib (398.1.2) &lt;F9463B34-AAF5-3488-AD0C-85937C81FC5E&gt; /usr/lib/libheimdal-asn1.dylib 0x7fff90e9b000 - 0x7fff90f07fff com.apple.framework.CoreWLAN (5.0 - 500.35.2) &lt;ACBAAB0A-BCC7-37CF-AAFB-2DA1733F2682&gt; /System/Library/Frameworks/CoreWLAN.framework/Versions/A/CoreWLAN 0x7fff90f08000 - 0x7fff90f22ff3 com.apple.Ubiquity (1.3 - 313) &lt;DF56A657-CC6E-3BE2-86A0-71F07127724C&gt; /System/Library/PrivateFrameworks/Ubiquity.framework/Versions/A/Ubiquity 0x7fff90fa6000 - 0x7fff910c7fff com.apple.LaunchServices (644.10 - 644.10) &lt;0B1C68BC-0AEB-38E2-ABC8-E92728FEC475&gt; /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices 0x7fff910f0000 - 0x7fff91236fef libsqlite3.dylib (168) &lt;8B78BED1-7B9B-3943-80DC-0871015AEAC4&gt; /usr/lib/libsqlite3.dylib 0x7fff91237000 - 0x7fff91271ffb com.apple.DebugSymbols (115 - 115) &lt;6F03761D-7C3A-3C80-8031-AA1C1AD7C706&gt; /System/Library/PrivateFrameworks/DebugSymbols.framework/Versions/A/DebugSymbols 0x7fff91272000 - 0x7fff91288ff7 libsystem_asl.dylib (267) &lt;F153AC5B-0542-356E-88C8-20A62CA704E2&gt; /usr/lib/system/libsystem_asl.dylib 0x7fff9128c000 - 0x7fff912c4ffb libsystem_network.dylib (411) &lt;C0B2313D-47BE-38A9-BEE6-2634A4F5E14B&gt; /usr/lib/system/libsystem_network.dylib 0x7fff912c5000 - 0x7fff912cdffb libcopyfile.dylib (118.1.2) &lt;0C68D3A6-ACDD-3EF3-991A-CC82C32AB836&gt; /usr/lib/system/libcopyfile.dylib 0x7fff912ce000 - 0x7fff912effff com.apple.framework.Apple80211 (10.0 - 1000.57.3) &lt;F64EB1A1-57F3-3ABA-97D0-DB7C926FD07F&gt; /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Apple80211 0x7fff9131b000 - 0x7fff91326ff7 com.apple.speech.synthesis.framework (5.2.6 - 5.2.6) &lt;9434AA45-B6BD-37F7-A866-172196A7F91B&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis 0x7fff91327000 - 0x7fff91355fff com.apple.CoreServicesInternal (221.1 - 221.1) &lt;51BAE6D2-84F3-392A-BFEC-A3B47B80A3D2&gt; /System/Library/PrivateFrameworks/CoreServicesInternal.framework/Versions/A/CoreServicesInternal 0x7fff91356000 - 0x7fff91356fff com.apple.Carbon (154 - 157) &lt;6E3AEB9D-7643-36BE-A7E5-D08886649257&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon 0x7fff91357000 - 0x7fff913beff7 com.apple.framework.CoreWiFi (3.0 - 300.4) &lt;19269C1D-EB29-384A-83F3-7DDDEB7D9DAD&gt; /System/Library/PrivateFrameworks/CoreWiFi.framework/Versions/A/CoreWiFi 0x7fff913d6000 - 0x7fff913f0ff7 liblzma.5.dylib (7) &lt;1D03E875-A7C0-3028-814C-3C27F7B7C079&gt; /usr/lib/liblzma.5.dylib 0x7fff913f5000 - 0x7fff91493fff com.apple.Metadata (10.7.0 - 916) &lt;DA8A1D18-19FE-37B3-BE12-85C5B0A00736&gt; /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata 0x7fff91494000 - 0x7fff914bcfff libsystem_info.dylib (459) &lt;B85A85D5-8530-3A93-B0C3-4DEC41F79478&gt; /usr/lib/system/libsystem_info.dylib 0x7fff915fa000 - 0x7fff9168bfff com.apple.cloudkit.CloudKit (259.2.3 - 259.2.3) &lt;6F955140-D522-32B3-B34B-BD94C5D94E7A&gt; /System/Library/Frameworks/CloudKit.framework/Versions/A/CloudKit 0x7fff9168c000 - 0x7fff916a7ff7 libCRFSuite.dylib (34) &lt;D64842BE-7BD4-3D0C-9842-1D202F7C2A51&gt; /usr/lib/libCRFSuite.dylib 0x7fff916a8000 - 0x7fff916adff7 libunwind.dylib (35.3) &lt;BE7E51A0-B6EA-3A54-9CCA-9D88F683A6D6&gt; /usr/lib/system/libunwind.dylib 0x7fff916bd000 - 0x7fff916e9fff libsandbox.1.dylib (358.1.1) &lt;C0B45487-F3CF-32CA-A875-CDCC48D2EA3E&gt; /usr/lib/libsandbox.1.dylib 0x7fff91f73000 - 0x7fff9245ffff com.apple.MediaToolbox (1.0 - 1562.19) &lt;E9F75769-1173-3EF6-8373-7673FA5B54F3&gt; /System/Library/Frameworks/MediaToolbox.framework/Versions/A/MediaToolbox 0x7fff9247a000 - 0x7fff92487fff com.apple.ProtocolBuffer (1 - 225.1) &lt;2D502FBB-D2A0-3937-A5C5-385FA65B3874&gt; /System/Library/PrivateFrameworks/ProtocolBuffer.framework/Versions/A/ProtocolBuffer 0x7fff92488000 - 0x7fff9248cfff libpam.2.dylib (20) &lt;E805398D-9A92-31F8-8005-8DC188BD8B6E&gt; /usr/lib/libpam.2.dylib 0x7fff9248d000 - 0x7fff92495fff libMatch.1.dylib (24) &lt;C917279D-33C2-38A8-9BDD-18F3B24E6FBD&gt; /usr/lib/libMatch.1.dylib 0x7fff92496000 - 0x7fff924c1ff3 libarchive.2.dylib (30) &lt;8CBB4416-EBE9-3574-8ADC-44655D245F39&gt; /usr/lib/libarchive.2.dylib 0x7fff924c2000 - 0x7fff924cbff3 com.apple.CommonAuth (4.0 - 2.0) &lt;F4C266BE-2E0E-36B4-9DE7-C6B4BF410FD7&gt; /System/Library/PrivateFrameworks/CommonAuth.framework/Versions/A/CommonAuth 0x7fff92f6a000 - 0x7fff92ffefff com.apple.ink.framework (10.9 - 213) &lt;8E029630-1530-3734-A446-13353F0E7AC5&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink 0x7fff92fff000 - 0x7fff93003fff libcache.dylib (69) &lt;45E9A2E7-99C4-36B2-BEE3-0C4E11614AD1&gt; /usr/lib/system/libcache.dylib 0x7fff93004000 - 0x7fff93011fff com.apple.SpeechRecognitionCore (2.0.32 - 2.0.32) &lt;87F0C88D-502D-3217-8B4A-8388288568BA&gt; /System/Library/PrivateFrameworks/SpeechRecognitionCore.framework/Versions/A/SpeechRecognitionCore 0x7fff93031000 - 0x7fff930b3fff com.apple.PerformanceAnalysis (1.0 - 1) &lt;478055FE-1A94-31C7-A1A2-D67F19CA6A74&gt; /System/Library/PrivateFrameworks/PerformanceAnalysis.framework/Versions/A/PerformanceAnalysis 0x7fff933bd000 - 0x7fff933d6ff7 com.apple.CFOpenDirectory (10.10 - 187) &lt;0ECA5D80-A045-3A2C-A60C-E1605F3AB6BD&gt; /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory 0x7fff933d7000 - 0x7fff936d9fff com.apple.HIToolbox (2.1.1 - 756) &lt;07287312-97EC-3894-96F6-5CB6BA5E0081&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox 0x7fff936dc000 - 0x7fff9377bdf7 com.apple.AppleJPEG (1.0 - 1) &lt;9BB3D7DF-630A-3E1C-A124-12D6C4D0DE70&gt; /System/Library/PrivateFrameworks/AppleJPEG.framework/Versions/A/AppleJPEG 0x7fff93780000 - 0x7fff93816ffb com.apple.CoreMedia (1.0 - 1562.19) &lt;A754225C-2ED9-3220-A079-D50E695A1523&gt; /System/Library/Frameworks/CoreMedia.framework/Versions/A/CoreMedia 0x7fff93817000 - 0x7fff93833ff7 libsystem_malloc.dylib (53.1.1) &lt;19BCC257-5717-3502-A71F-95D65AFA861B&gt; /usr/lib/system/libsystem_malloc.dylib 0x7fff93834000 - 0x7fff938d6fff com.apple.Bluetooth (4.3.0 - 4.3.0f10) &lt;70922125-2A01-37AE-9CB8-D8A9578092E4&gt; /System/Library/Frameworks/IOBluetooth.framework/Versions/A/IOBluetooth 0x7fff93928000 - 0x7fff9398fff7 com.apple.datadetectorscore (6.0 - 396.1) &lt;5D348063-1528-3E2F-B587-9E82970506F9&gt; /System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/DataDetectorsCore 0x7fff93abf000 - 0x7fff93aeafff libc++abi.dylib (125) &lt;88A22A0F-87C6-3002-BFBA-AC0F2808B8B9&gt; /usr/lib/libc++abi.dylib 0x7fff93b94000 - 0x7fff93b9eff7 com.apple.NetAuth (5.0 - 5.0) &lt;B9EC5425-D38D-308C-865F-207E0A98BAC7&gt; /System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth 0x7fff93b9f000 - 0x7fff93ba4ff7 com.apple.MediaAccessibility (1.0 - 61) &lt;00A3E0B6-79AC-387E-B282-AADFBD5722F6&gt; /System/Library/Frameworks/MediaAccessibility.framework/Versions/A/MediaAccessibility 0x7fff93ba5000 - 0x7fff93cb4ffb com.apple.desktopservices (1.9 - 1.9) &lt;6EDAC73F-C42C-3FF7-B67D-FCCA1CFC5405&gt; /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv 0x7fff93cb5000 - 0x7fff93cc1ff7 com.apple.OpenDirectory (10.10 - 187) &lt;1D0066FC-1DEB-381B-B15C-4C009E0DF850&gt; /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory 0x7fff93cc2000 - 0x7fff93e2dff7 com.apple.audio.toolbox.AudioToolbox (1.12 - 1.12) &lt;E5A68E3A-79E7-36A3-9C6B-E1DF75ADDA95&gt; /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox 0x7fff93e2e000 - 0x7fff93e2fff7 com.apple.print.framework.Print (10.0 - 265) &lt;3BC4FE7F-78A0-3E57-8F4C-520E7EFD36FA&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print 0x7fff93e30000 - 0x7fff941c6fff com.apple.CoreFoundation (6.9 - 1151.16) &lt;F2B088AF-A5C6-3FAE-9EB4-7931AF6359E4&gt; /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation 0x7fff941c7000 - 0x7fff941c8fff libDiagnosticMessagesClient.dylib (100) &lt;2EE8E436-5CDC-34C5-9959-5BA218D507FB&gt; /usr/lib/libDiagnosticMessagesClient.dylib 0x7fff94200000 - 0x7fff94204ff7 com.apple.TCC (1.0 - 1) &lt;AFC32F8F-BCD5-313C-B66E-5AB8591EC066&gt; /System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC 0x7fff944b2000 - 0x7fff9472cff3 com.apple.RawCamera.bundle (6.00 - 761) &lt;056E2E1D-6682-354E-9666-7E4935653D47&gt; /System/Library/CoreServices/RawCamera.bundle/Contents/MacOS/RawCamera 0x7fff947f1000 - 0x7fff94923ff7 com.apple.MediaControlSender (2.0 - 215.10) &lt;8ECF208C-587A-325F-9866-09890D58F1B1&gt; /System/Library/PrivateFrameworks/MediaControlSender.framework/Versions/A/MediaControlSender 0x7fff94924000 - 0x7fff9494cffb libRIP.A.dylib (772) &lt;9262437A-710A-397D-8E34-1CBFEA1FC5E1&gt; /System/Library/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib 0x7fff94959000 - 0x7fff94959fff com.apple.ApplicationServices (48 - 48) &lt;5BF7910B-C328-3BF8-BA4F-CE52B574CE01&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices 0x7fff94961000 - 0x7fff94970fff com.apple.LangAnalysis (1.7.0 - 1.7.0) &lt;D1E527E4-C561-352F-9457-E8C50232793C&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis 0x7fff94973000 - 0x7fff949cefef libTIFF.dylib (1231) &lt;115791FB-8C49-3410-AC23-56F4B1CFF124&gt; /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib 0x7fff949cf000 - 0x7fff949dafff libGL.dylib (11.0.7) &lt;C53344AD-8CE6-3111-AB94-BD4CA89ED84E&gt; /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib 0x7fff949db000 - 0x7fff949ebff7 libbsm.0.dylib (34) &lt;A3A2E56C-2B65-37C7-B43A-A1F926E1A0BB&gt; /usr/lib/libbsm.0.dylib 0x7fff94a19000 - 0x7fff94b2bff7 libvDSP.dylib (512) &lt;DD5517F5-F7F7-3AA1-B6FA-CD98DBC3C651&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib 0x7fff94b2c000 - 0x7fff94ba0fff com.apple.ApplicationServices.ATS (360 - 375) &lt;62828B40-231D-3F81-8067-1903143DCB6B&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS 0x7fff94baa000 - 0x7fff94bb1fff libCGCMS.A.dylib (772) &lt;E64DC779-A6CF-3B1F-8E57-C09C0B10670F&gt; /System/Library/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGCMS.A.dylib 0x7fff94bb2000 - 0x7fff94bbdff7 com.apple.AppSandbox (4.0 - 238) &lt;BC5EE1CA-764A-303D-9989-4041C1291026&gt; /System/Library/PrivateFrameworks/AppSandbox.framework/Versions/A/AppSandbox 0x7fff94bbe000 - 0x7fff94be2fef libJPEG.dylib (1231) &lt;3F87A0CA-14FA-3034-A332-DD57A092B08F&gt; /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib 0x7fff94c76000 - 0x7fff94dd4ff3 com.apple.avfoundation (2.0 - 889.10) &lt;3CB185EA-C806-326E-B8DA-FDDCFA123509&gt; /System/Library/Frameworks/AVFoundation.framework/Versions/A/AVFoundation 0x7fff94dd5000 - 0x7fff94ec9ff7 libFontParser.dylib (134) &lt;506126F8-FDCE-3DE1-9DCA-E07FE658B597&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontParser.dylib 0x7fff95538000 - 0x7fff95589ff7 com.apple.audio.CoreAudio (4.3.0 - 4.3.0) &lt;CC57353D-8D25-3579-8A66-30A09F7BEED0&gt; /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio 0x7fff9558a000 - 0x7fff95616fff libsystem_c.dylib (1044.1.2) &lt;C185E862-7424-3210-B528-6B822577A4B8&gt; /usr/lib/system/libsystem_c.dylib 0x7fff956af000 - 0x7fff956c2ff7 com.apple.CoreBluetooth (1.0 - 1) &lt;FA9B43B3-E183-3040-AE25-66EF9870CF35&gt; /System/Library/Frameworks/CoreBluetooth.framework/Versions/A/CoreBluetooth 0x7fff956c3000 - 0x7fff957fdff7 com.apple.ImageIO.framework (3.3.0 - 1038) &lt;AB3C40DB-FCBE-3315-B7B2-4E16522E20CB&gt; /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO 0x7fff967fe000 - 0x7fff96800ff7 libsystem_sandbox.dylib (358.1.1) &lt;DB9962EF-8898-31CC-9B87-E01F8CE74C9D&gt; /usr/lib/system/libsystem_sandbox.dylib 0x7fff96801000 - 0x7fff96803ff7 libquarantine.dylib (76) &lt;DC041627-2D92-361C-BABF-A869A5C72293&gt; /usr/lib/system/libquarantine.dylib 0x7fff96804000 - 0x7fff9682eff7 libdispatch.dylib (442.1.4) &lt;502CF32B-669B-3709-8862-08188225E4F0&gt; /usr/lib/system/libdispatch.dylib 0x7fff96af9000 - 0x7fff96b3fffb libFontRegistry.dylib (134) &lt;01B8034A-45FD-3360-A347-A1896F591363&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontRegistry.dylib 0x7fff96b40000 - 0x7fff96b4bff7 libkxld.dylib (2782.1.97) &lt;CB1A1B57-54BE-3573-AE0C-B90ED6BAEEE2&gt; /usr/lib/system/libkxld.dylib 0x7fff96b4c000 - 0x7fff96e7ffff libmecabra.dylib (666) &lt;2CE5540A-D412-3D53-9E11-86C24D61713B&gt; /usr/lib/libmecabra.dylib 0x7fff96e80000 - 0x7fff96e88fff libsystem_platform.dylib (63) &lt;64E34079-D712-3D66-9CE2-418624A5C040&gt; /usr/lib/system/libsystem_platform.dylib 0x7fff96f96000 - 0x7fff97088ff7 libiconv.2.dylib (42) &lt;2A06D02F-8B76-3864-8D96-64EF5B40BC6C&gt; /usr/lib/libiconv.2.dylib 0x7fff97089000 - 0x7fff97217fff libBLAS.dylib (1128) &lt;497912C1-A98E-3281-BED7-E9C751552F61&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib 0x7fff972f8000 - 0x7fff972f9fff com.apple.TrustEvaluationAgent (2.0 - 25) &lt;2D61A2C3-C83E-3A3F-8EC1-736DBEC250AB&gt; /System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/TrustEvaluationAgent 0x7fff972fa000 - 0x7fff9730bff7 libsystem_coretls.dylib (35.1.2) &lt;EBBF7EF6-80D8-3F8F-825C-B412BD6D22C0&gt; /usr/lib/system/libsystem_coretls.dylib 0x7fff97318000 - 0x7fff97319fff libSystem.B.dylib (1213) &lt;DA954461-EC6A-3DF0-8551-6FC810627627&gt; /usr/lib/libSystem.B.dylib 0x7fff97434000 - 0x7fff97c6dffb com.apple.CoreGraphics (1.600.0 - 772) &lt;D981E0F3-2FB7-38B7-A9FD-E991ADB06182&gt; /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics 0x7fff97c9d000 - 0x7fff97ca4fff com.apple.NetFS (6.0 - 4.0) &lt;1581D25F-CC07-39B0-90E8-5D4F3CF84EBA&gt; /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS 0x7fff97ca5000 - 0x7fff97f0dffb com.apple.security (7.0 - 57031.1.35) &lt;66CFAFF2-980E-3B99-B7E0-7D7751F6283C&gt; /System/Library/Frameworks/Security.framework/Versions/A/Security 0x7fff97f0e000 - 0x7fff9833efff com.apple.vision.FaceCore (3.1.6 - 3.1.6) &lt;C3B823AA-C261-37D3-B4AC-C59CE91C8241&gt; /System/Library/PrivateFrameworks/FaceCore.framework/Versions/A/FaceCore 0x7fff98345000 - 0x7fff9835bff7 com.apple.CoreMediaAuthoring (2.2 - 951) &lt;98CB5AB8-6BCA-3C45-98EC-67F39EEE56C5&gt; /System/Library/PrivateFrameworks/CoreMediaAuthoring.framework/Versions/A/CoreMediaAuthoring 0x7fff9835c000 - 0x7fff9850cff7 com.apple.QuartzCore (1.10 - 361.11) &lt;7382E4A9-10B0-3877-B9D7-FA84DC71BA55&gt; /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore 0x7fff9850d000 - 0x7fff98545fff com.apple.RemoteViewServices (2.0 - 99) &lt;C9A62691-B0D9-34B7-B71C-A48B5F4DC553&gt; /System/Library/PrivateFrameworks/RemoteViewServices.framework/Versions/A/RemoteViewServices 0x7fff98546000 - 0x7fff98573fff com.apple.CoreVideo (1.8 - 145.1) &lt;18DB07E0-B927-3260-A234-636F298D1917&gt; /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo 0x7fff98574000 - 0x7fff98585ff7 libz.1.dylib (55) &lt;88C7C7DE-04B8-316F-8B74-ACD9F3DE1AA1&gt; /usr/lib/libz.1.dylib 0x7fff98736000 - 0x7fff9874aff7 com.apple.MultitouchSupport.framework (260.30 - 260.30) &lt;28728A7D-E048-3B14-9932-839A87D381FE&gt; /System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/MultitouchSupport 0x7fff9874b000 - 0x7fff98764fff com.apple.openscripting (1.4 - 162) &lt;80DFF366-B950-3F79-903F-99DA0FFDB570&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting 0x7fff98765000 - 0x7fff98b72ff7 libLAPACK.dylib (1128) &lt;F9201AE7-B031-36DB-BCF8-971E994EF7C1&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib 0x7fff98b73000 - 0x7fff98edefff com.apple.VideoToolbox (1.0 - 1562.19) &lt;28668FCA-D122-30CC-92EE-5224A0767CBC&gt; /System/Library/Frameworks/VideoToolbox.framework/Versions/A/VideoToolbox 0x7fff98edf000 - 0x7fff98ee7fff libsystem_dnssd.dylib (561.1.1) &lt;62B70ECA-E40D-3C63-896E-7F00EC386DDB&gt; /usr/lib/system/libsystem_dnssd.dylib 0x7fff98efd000 - 0x7fff98f08fff libcommonCrypto.dylib (60061) &lt;D381EBC6-69D8-31D3-8084-5A80A32CB748&gt; /usr/lib/system/libcommonCrypto.dylib 0x7fff98f09000 - 0x7fff98f55fff com.apple.corelocation (1486.17 - 1615.21) &lt;DB68CEB9-0D51-3CB9-86A4-B0400CE6C515&gt; /System/Library/Frameworks/CoreLocation.framework/Versions/A/CoreLocation 0x7fff98f61000 - 0x7fff98f63fff libsystem_configuration.dylib (699.1.5) &lt;9FBA1CE4-97D0-347E-A443-93ED94512E92&gt; /usr/lib/system/libsystem_configuration.dylib 0x7fff98fcf000 - 0x7fff98fd2fff com.apple.help (1.3.3 - 46) &lt;CA4541F4-CEF5-355C-8F1F-EA65DC1B400F&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help 0x7fff990a9000 - 0x7fff990bbff7 com.apple.CoreDuetDaemonProtocol (1.0 - 1) &lt;CE9FABB4-1C5D-3F9B-9BB8-5CC50C3E5E31&gt; /System/Library/PrivateFrameworks/CoreDuetDaemonProtocol.framework/Versions/A/CoreDuetDaemonProtocol 0x7fff990ff000 - 0x7fff9912fffb com.apple.GSS (4.0 - 2.0) &lt;D033E7F1-2D34-339F-A814-C67E009DE5A9&gt; /System/Library/Frameworks/GSS.framework/Versions/A/GSS 0x7fff99445000 - 0x7fff99475fff libsystem_m.dylib (3086.1) &lt;1E12AB45-6D96-36D0-A226-F24D9FB0D9D6&gt; /usr/lib/system/libsystem_m.dylib 0x7fff99476000 - 0x7fff9947afff libCoreVMClient.dylib (79) &lt;FC4E08E3-749E-32FF-B5E9-211F29864831&gt; /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClient.dylib 0x7fff9947b000 - 0x7fff994adfff libTrueTypeScaler.dylib (134) &lt;6AA9A44F-EB8B-3B31-B1A3-915D03EEBA44&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libTrueTypeScaler.dylib 0x7fff994ae000 - 0x7fff9955dfe7 libvMisc.dylib (512) &lt;AFBA45DE-7F55-3E4E-B8DF-5E8E21C407AD&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib 0x7fff9955e000 - 0x7fff99576ff7 libexpat.1.dylib (12) &lt;C5FE8836-E277-3162-9D15-6735321CB2C6&gt; /usr/lib/libexpat.1.dylib 0x7fff99577000 - 0x7fff99584ff7 libxar.1.dylib (254) &lt;CE10EFED-3066-3749-838A-6A15AC0DBCB6&gt; /usr/lib/libxar.1.dylib 0x7fff99679000 - 0x7fff996ccffb libAVFAudio.dylib (118.3) &lt;371F1478-9AA3-312A-A93A-88E349000279&gt; /System/Library/Frameworks/AVFoundation.framework/Versions/A/Resources/libAVFAudio.dylib 0x7fff996cd000 - 0x7fff996eafff libsystem_kernel.dylib (2782.1.97) &lt;93E0E0A9-75B6-3904-BB4E-4BC7C05F4B6B&gt; /usr/lib/system/libsystem_kernel.dylib 0x7fff99883000 - 0x7fff998d2ff7 libstdc++.6.dylib (104.1) &lt;803F6AC8-87DC-3E24-9E80-729B551F6FFF&gt; /usr/lib/libstdc++.6.dylib 0x7fff998d3000 - 0x7fff998edff7 com.apple.Kerberos (3.0 - 1) &lt;7760E0C2-A222-3709-B2A6-B692D900CEB1&gt; /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos 0x7fff99a7b000 - 0x7fff99ab6fff com.apple.Symbolication (1.4 - 56045) &lt;D64571B1-4483-3FE2-BD67-A91360F79727&gt; /System/Library/PrivateFrameworks/Symbolication.framework/Versions/A/Symbolication 0x7fff99ab7000 - 0x7fff99c9c267 libobjc.A.dylib (646) &lt;3B60CD90-74A2-3A5D-9686-B0772159792A&gt; /usr/lib/libobjc.A.dylib 0x7fff99c9d000 - 0x7fff99c9dfff com.apple.Accelerate.vecLib (3.10 - vecLib 3.10) &lt;01E92F9F-EF29-3745-8631-AEA692F7F29C&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib 0x7fff99d70000 - 0x7fff9a01aff7 com.apple.GeoServices (1.0 - 982.4.10) &lt;B77D4082-4FBB-3F6E-AB9F-3BBBA34C0DC3&gt; /System/Library/PrivateFrameworks/GeoServices.framework/Versions/A/GeoServices 0x7fff9a52f000 - 0x7fff9a59efff com.apple.SearchKit (1.4.0 - 1.4.0) &lt;BFD6D876-36BA-3A3B-9F15-3E2F7DE6E89D&gt; /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit 0x7fff9a5d3000 - 0x7fff9a5d7fff libsystem_stats.dylib (163.1.4) &lt;1DB04436-5974-3F16-86CC-5FF5F390339C&gt; /usr/lib/system/libsystem_stats.dylib 0x7fff9a5d8000 - 0x7fff9a5ddff7 libmacho.dylib (862) &lt;126CA2ED-DE91-308F-8881-B9DAEC3C63B6&gt; /usr/lib/system/libmacho.dylib 0x7fff9a5de000 - 0x7fff9a667fff com.apple.CoreSymbolication (3.1 - 56072) &lt;8CE81C95-49E8-389F-B989-67CC452C08D0&gt; /System/Library/PrivateFrameworks/CoreSymbolication.framework/Versions/A/CoreSymbolication 0x7fff9a668000 - 0x7fff9a7acff7 com.apple.QTKit (7.7.3 - 2890) &lt;6F6CD79F-CFBB-3FE4-82C6-47991346FB17&gt; /System/Library/Frameworks/QTKit.framework/Versions/A/QTKit 0x7fff9a7ad000 - 0x7fff9a7affff com.apple.CoreDuetDebugLogging (1.0 - 1) &lt;9A6E5710-EA99-366E-BF40-9A65EC1B46A1&gt; /System/Library/PrivateFrameworks/CoreDuetDebugLogging.framework/Versions/A/CoreDuetDebugLogging 0x7fff9aa6a000 - 0x7fff9aabefff libc++.1.dylib (120) &lt;1B9530FD-989B-3174-BB1C-BDC159501710&gt; /usr/lib/libc++.1.dylib 0x7fff9ab34000 - 0x7fff9ab80ff7 libcups.2.dylib (408) &lt;9CECCDE3-51D7-3028-830C-F58BD36E3317&gt; /usr/lib/libcups.2.dylib 0x7fff9ab81000 - 0x7fff9ab81fff com.apple.CoreServices (62 - 62) &lt;9E4577CA-3FC3-300D-AB00-87ADBDDA2E37&gt; /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices 0x7fff9ab82000 - 0x7fff9abc2ff7 libGLImage.dylib (11.0.7) &lt;7CBCEB4B-D22F-3116-8B28-D1C22D28C69D&gt; /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib 0x7fff9abc3000 - 0x7fff9abc9fff com.apple.speech.recognition.framework (5.0.9 - 5.0.9) &lt;BB2D573F-0A01-379F-A2BA-3C454EDCB111&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition 0x7fff9ae35000 - 0x7fff9ae39fff com.apple.CommonPanels (1.2.6 - 96) &lt;F9ECC8AF-D9CA-3350-AFB4-5113A9B789A5&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels 0x7fff9ae3a000 - 0x7fff9ae94ff7 com.apple.LanguageModeling (1.0 - 1) &lt;ACA93FE0-A0E3-333E-AE3C-8EB7DE5F362F&gt; /System/Library/PrivateFrameworks/LanguageModeling.framework/Versions/A/LanguageModeling 0x7fff9af27000 - 0x7fff9af27ff7 libkeymgr.dylib (28) &lt;77845842-DE70-3CC5-BD01-C3D14227CED5&gt; /usr/lib/system/libkeymgr.dylib 0x7fff9af28000 - 0x7fff9b01afff libxml2.2.dylib (26) &lt;B834E7C8-EC3E-3382-BC5A-DA38DC4D720C&gt; /usr/lib/libxml2.2.dylib 0x7fff9b023000 - 0x7fff9b02bffb com.apple.CoreServices.FSEvents (1210 - 1210) &lt;782A9C69-7A45-31A7-8960-D08A36CBD0A7&gt; /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/FSEvents 0x7fff9b046000 - 0x7fff9b061ff7 com.apple.aps.framework (4.0 - 4.0) &lt;9955CAFD-D56B-36E9-BB41-6F7F73317EB5&gt; /System/Library/PrivateFrameworks/ApplePushService.framework/Versions/A/ApplePushService 0x7fff9b0c8000 - 0x7fff9b13efe7 libcorecrypto.dylib (233.1.2) &lt;E1789801-3985-3949-B736-6B3378873301&gt; /usr/lib/system/libcorecrypto.dylib 0x7fff9b13f000 - 0x7fff9b148fff libGFXShared.dylib (11.0.7) &lt;EC449E3A-D9D2-3494-8B6C-DEB7B11EEDAB&gt; /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.dylib 0x7fff9b149000 - 0x7fff9b32eff3 libicucore.A.dylib (531.30) &lt;EF0E7544-E317-3550-A962-6AE65E78AF17&gt; /usr/lib/libicucore.A.dylib 0x7fff9b32f000 - 0x7fff9b32ffff com.apple.audio.units.AudioUnit (1.12 - 1.12) &lt;76EF1C9D-DEA4-3E55-A134-4099B2FD2CF2&gt; /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit 0x7fff9b330000 - 0x7fff9b3c5ff7 com.apple.ColorSync (4.9.0 - 4.9.0) &lt;F06733BD-A10C-3DB3-B050-825351130392&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync 0x7fff9b3c7000 - 0x7fff9b402fff com.apple.QD (301 - 301) &lt;C4D2AD03-B839-350A-AAF0-B4A08F8BED77&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD 0x7fff9b403000 - 0x7fff9b428fff libPng.dylib (1231) &lt;759DF465-B08C-3E97-9A07-3CD447F84F78&gt; /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib 0x7fff9b429000 - 0x7fff9b47aff7 com.apple.AppleVAFramework (5.0.31 - 5.0.31) &lt;762E9358-A69A-3D63-8282-3B77FBE0147E&gt; /System/Library/PrivateFrameworks/AppleVA.framework/Versions/A/AppleVA 0x7fff9b47b000 - 0x7fff9bfbcfff com.apple.AppKit (6.9 - 1343.14) &lt;7E32F178-C705-3E83-81C5-FB31D5507B3A&gt; /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit 0x7fff9bfbd000 - 0x7fff9bfd7ff7 libextension.dylib (55) &lt;17514AB2-C503-3D49-A725-EBC1140567A6&gt; /usr/lib/libextension.dylib 0x7fff9bfd8000 - 0x7fff9bfeaff7 com.apple.ImageCapture (9.0 - 9.0) &lt;7FB65DD4-56B5-35C4-862C-7A2DED991D1F&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture 0x7fff9c039000 - 0x7fff9c047ff7 com.apple.opengl (11.0.7 - 11.0.7) &lt;B5C4DF85-37BD-3984-98D1-90A5043DA984&gt; /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL 0x7fff9c0c9000 - 0x7fff9c13dff3 com.apple.securityfoundation (6.0 - 55126) &lt;E7FB7A4E-CB0B-37BA-ADD5-373B2A20A783&gt; /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation 0x7fff9c13e000 - 0x7fff9c140fff libCVMSPluginSupport.dylib (11.0.7) &lt;29D775BB-A11D-3140-A478-2A0DA1A87420&gt; /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCVMSPluginSupport.dylib 0x7fff9c141000 - 0x7fff9c143fff libRadiance.dylib (1231) &lt;BDD94A52-DE53-300C-9180-5D434272989F&gt; /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib 0x7fff9c144000 - 0x7fff9c17dfff com.apple.AirPlaySupport (2.0 - 215.10) &lt;E4159036-4C38-3F28-8AF3-4F074DAF01AC&gt; /System/Library/PrivateFrameworks/AirPlaySupport.framework/Versions/A/AirPlaySupport 0x7fff9c1e4000 - 0x7fff9c255ff7 com.apple.framework.IOKit (2.0.2 - 1050.1.21) &lt;E4139120-1631-35D0-AA76-B1F4043844BE&gt; /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit 0x7fff9c256000 - 0x7fff9c258ff7 com.apple.securityhi (9.0 - 55006) &lt;B1E09986-7AF0-3BD1-BAA1-B5514DFB7CD1&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI 0x7fff9c259000 - 0x7fff9c260ff7 libcompiler_rt.dylib (35) &lt;BF8FC133-EE10-3DA6-9B90-92039E28678F&gt; /usr/lib/system/libcompiler_rt.dylib 0x7fff9c261000 - 0x7fff9c289fff libxpc.dylib (559.1.22) &lt;9437C02E-A07B-38C8-91CB-299FAA63083D&gt; /usr/lib/system/libxpc.dylib 0x7fff9cbd0000 - 0x7fff9cbd3ff7 libdyld.dylib (353.2.1) &lt;19FAF435-C165-3374-9DEF-D7BBA7D61DB6&gt; /usr/lib/system/libdyld.dylib 0x7fff9cbd4000 - 0x7fff9cea3ff3 com.apple.CoreImage (10.0.33) &lt;6E3DDA29-718B-3BDB-BFAF-F8C201BF93A4&gt; /System/Library/Frameworks/QuartzCore.framework/Versions/A/Frameworks/CoreImage.framework/Versions/A/CoreImage 0x7fff9cea4000 - 0x7fff9cecdffb libxslt.1.dylib (13) &lt;AED1143F-B848-3E73-81ED-71356F25F084&gt; /usr/lib/libxslt.1.dylib 0x7fff9cece000 - 0x7fff9ced7ff7 libsystem_notify.dylib (133.1.1) &lt;61147800-F320-3DAA-850C-BADF33855F29&gt; /usr/lib/system/libsystem_notify.dylib 0x7fff9cf69000 - 0x7fff9cf80ff7 libLinearAlgebra.dylib (1128) &lt;E78CCBAA-A999-3B65-8EC9-06DB15E67C37&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib 0x7fff9cf99000 - 0x7fff9cfe6ff3 com.apple.CoreMediaIO (601.0 - 4749) &lt;0336FB6D-5A3D-3672-A002-B856BF569CD0&gt; /System/Library/Frameworks/CoreMediaIO.framework/Versions/A/CoreMediaIO External Modification Summary: Calls made by other processes targeting this process: task_for_pid: 61 thread_create: 0 thread_set_state: 0 Calls made by this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by all processes on this machine: task_for_pid: 64236 thread_create: 1 thread_set_state: 0 VM Region Summary: ReadOnly portion of Libraries: Total=278.0M resident=202.6M(73%) swapped_out_or_unallocated=75.4M(27%) Writable regions: Total=604.9M written=411.0M(68%) resident=421.6M(70%) swapped_out=13.2M(2%) unallocated=183.3M(30%) REGION TYPE VIRTUAL =========== ======= ATS (font support) 32.6M ATS (font support) (reserved) 8K reserved VM address space (unallocated) Activity Tracing 2048K CG shared images 144K CoreUI image data 28K Dispatch continuations 16.0M Kernel Alloc Once 8K MALLOC 156.5M MALLOC (admin) 32K Memory Tag 252 20K Memory Tag 255 772.0M STACK GUARD 56.1M Stack 36.4M VM_ALLOCATE 73.1M __DATA 21.5M __IMAGE 528K __LINKEDIT 83.1M __TEXT 194.9M __UNICODE 544K mapped file 252.8M shared memory 4K =========== ======= TOTAL 1.7G TOTAL, minus reserved VM space 1.7G "><pre class="notranslate"><code class="notranslate">Process: Atom Helper [18018] Path: /Applications/Atom.app/Contents/Frameworks/Atom Helper.app/Contents/MacOS/Atom Helper Identifier: com.github.atom.helper Version: 0.144.0 (0.144.0) Code Type: X86-64 (Native) Parent Process: Atom [17105] Responsible: Atom [17105] User ID: 501 Date/Time: 2014-11-10 11:13:40.159 -0500 OS Version: Mac OS X 10.10 (14A388a) Report Version: 11 Anonymous UUID: 0D99533C-FAE2-A277-F6A0-24E885FAEBD0 Sleep/Wake UUID: 1B46AED7-9249-4C7D-8C81-A39D43E7C69C Time Awake Since Boot: 100000 seconds Time Since Wake: 11000 seconds Crashed Thread: 0 CrRendererMain Dispatch queue: com.apple.main-thread Exception Type: EXC_BREAKPOINT (SIGTRAP) Exception Codes: 0x0000000000000002, 0x0000000000000000 Thread 0 Crashed:: CrRendererMain Dispatch queue: com.apple.main-thread 0 libchromiumcontent.dylib 0x000000010847c6b5 base::debug::BreakDebugger() + 5 1 libchromiumcontent.dylib 0x00000001084a960f logging::LogMessage::~LogMessage() + 655 2 libchromiumcontent.dylib 0x000000010ad5f93b content::ResourceDispatcher::OnSetDataBuffer(int, base::FileDescriptor, int, int) + 523 3 libchromiumcontent.dylib 0x000000010ad5edda content::ResourceDispatcher::DispatchMessage(IPC::Message const&amp;) + 1098 4 libchromiumcontent.dylib 0x000000010ad5e5a8 content::ResourceDispatcher::OnMessageReceived(IPC::Message const&amp;) + 584 5 libchromiumcontent.dylib 0x000000010ad1d7fd content::ChildThread::OnMessageReceived(IPC::Message const&amp;) + 61 6 libchromiumcontent.dylib 0x000000010897f4cb IPC::ChannelProxy::Context::OnDispatchMessage(IPC::Message const&amp;) + 123 7 libchromiumcontent.dylib 0x000000010847dd5f base::debug::TaskAnnotator::RunTask(char const*, char const*, base::PendingTask const&amp;) + 207 8 libchromiumcontent.dylib 0x00000001084b94b8 base::MessageLoop::RunTask(base::PendingTask const&amp;) + 536 9 libchromiumcontent.dylib 0x00000001084b9a31 base::MessageLoop::DoWork() + 689 10 libchromiumcontent.dylib 0x0000000108465d61 base::MessagePumpLibevent::OnWakeup(int, short, void*) + 3137 11 com.apple.CoreFoundation 0x00007fff93eb0661 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17 12 com.apple.CoreFoundation 0x00007fff93ea28bc __CFRunLoopDoSources0 + 476 13 com.apple.CoreFoundation 0x00007fff93ea1e1f __CFRunLoopRun + 927 14 com.apple.CoreFoundation 0x00007fff93ea1838 CFRunLoopRunSpecific + 296 15 com.apple.Foundation 0x00007fff8e459ab9 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 278 16 libchromiumcontent.dylib 0x0000000108466354 base::MessagePumpNSRunLoop::DoRun(base::MessagePump::Delegate*) + 100 17 libchromiumcontent.dylib 0x0000000108465bcc base::MessagePumpLibevent::OnWakeup(int, short, void*) + 2732 18 libchromiumcontent.dylib 0x00000001084d2cb6 base::RunLoop::Run() + 70 19 libchromiumcontent.dylib 0x00000001084b8c1d base::MessageLoop::Run() + 29 20 libchromiumcontent.dylib 0x000000010ae57e72 content::RenderWidget::UnregisterRenderFrame(content::RenderFrameImpl*) + 10402 21 libchromiumcontent.dylib 0x0000000108459d44 content::ContentMainRunner::Create() + 2196 22 libchromiumcontent.dylib 0x0000000108459236 content::ContentMain(content::ContentMainParams const&amp;) + 54 23 com.github.AtomFramework 0x0000000107bfa298 AtomMain + 72 24 libdyld.dylib 0x00007fff9cbd35c9 start + 1 Thread 1:: Dispatch queue: com.apple.libdispatch-manager 0 libsystem_kernel.dylib 0x00007fff996e422e kevent64 + 10 1 libdispatch.dylib 0x00007fff96808a6a _dispatch_mgr_thread + 52 Thread 2:: Chrome_ChildIOThread 0 libsystem_kernel.dylib 0x00007fff996e4216 kevent + 10 1 libchromiumcontent.dylib 0x0000000108503150 logging::VlogInfo::GetMaxVlogLevel() const + 4336 2 libchromiumcontent.dylib 0x0000000108464f7c base::MessagePumpLibevent::Run(base::MessagePump::Delegate*) + 252 3 libchromiumcontent.dylib 0x00000001084d2cb6 base::RunLoop::Run() + 70 4 libchromiumcontent.dylib 0x00000001084b8c1d base::MessageLoop::Run() + 29 5 libchromiumcontent.dylib 0x00000001084f3759 base::Thread::ThreadMain() + 217 6 libchromiumcontent.dylib 0x00000001084ecf7b base::PlatformThread::Join(base::PlatformThreadHandle) + 283 7 libsystem_pthread.dylib 0x00007fff909702fc _pthread_body + 131 8 libsystem_pthread.dylib 0x00007fff90970279 _pthread_start + 176 9 libsystem_pthread.dylib 0x00007fff9096e4b1 thread_start + 13 Thread 3:: OptimizingCompi 0 libsystem_kernel.dylib 0x00007fff996de56a semaphore_wait_trap + 10 1 libchromiumcontent.dylib 0x0000000109d56ea7 v8::Unlocker::~Unlocker() + 477879 2 libchromiumcontent.dylib 0x0000000109c3fb75 v8::Testing::DeoptimizeAll() + 2490821 3 libchromiumcontent.dylib 0x0000000109d583d7 v8::Unlocker::~Unlocker() + 483303 4 libsystem_pthread.dylib 0x00007fff909702fc _pthread_body + 131 5 libsystem_pthread.dylib 0x00007fff90970279 _pthread_start + 176 6 libsystem_pthread.dylib 0x00007fff9096e4b1 thread_start + 13 Thread 4:: v8:SweeperThrea 0 libsystem_kernel.dylib 0x00007fff996de56a semaphore_wait_trap + 10 1 libchromiumcontent.dylib 0x0000000109d56ea7 v8::Unlocker::~Unlocker() + 477879 2 libchromiumcontent.dylib 0x0000000109b44b80 v8::Testing::DeoptimizeAll() + 1462736 3 libchromiumcontent.dylib 0x0000000109d583d7 v8::Unlocker::~Unlocker() + 483303 4 libsystem_pthread.dylib 0x00007fff909702fc _pthread_body + 131 5 libsystem_pthread.dylib 0x00007fff90970279 _pthread_start + 176 6 libsystem_pthread.dylib 0x00007fff9096e4b1 thread_start + 13 Thread 5:: v8:SweeperThrea 0 libsystem_kernel.dylib 0x00007fff996de56a semaphore_wait_trap + 10 1 libchromiumcontent.dylib 0x0000000109d56ea7 v8::Unlocker::~Unlocker() + 477879 2 libchromiumcontent.dylib 0x0000000109b44b80 v8::Testing::DeoptimizeAll() + 1462736 3 libchromiumcontent.dylib 0x0000000109d583d7 v8::Unlocker::~Unlocker() + 483303 4 libsystem_pthread.dylib 0x00007fff909702fc _pthread_body + 131 5 libsystem_pthread.dylib 0x00007fff90970279 _pthread_start + 176 6 libsystem_pthread.dylib 0x00007fff9096e4b1 thread_start + 13 Thread 6:: v8:SweeperThrea 0 libsystem_kernel.dylib 0x00007fff996de56a semaphore_wait_trap + 10 1 libchromiumcontent.dylib 0x0000000109d56ea7 v8::Unlocker::~Unlocker() + 477879 2 libchromiumcontent.dylib 0x0000000109b44b80 v8::Testing::DeoptimizeAll() + 1462736 3 libchromiumcontent.dylib 0x0000000109d583d7 v8::Unlocker::~Unlocker() + 483303 4 libsystem_pthread.dylib 0x00007fff909702fc _pthread_body + 131 5 libsystem_pthread.dylib 0x00007fff90970279 _pthread_start + 176 6 libsystem_pthread.dylib 0x00007fff9096e4b1 thread_start + 13 Thread 7:: Compositor 0 libsystem_kernel.dylib 0x00007fff996de52e mach_msg_trap + 10 1 libsystem_kernel.dylib 0x00007fff996dd69f mach_msg + 55 2 com.apple.CoreFoundation 0x00007fff93ea2b14 __CFRunLoopServiceMachPort + 212 3 com.apple.CoreFoundation 0x00007fff93ea1fdb __CFRunLoopRun + 1371 4 com.apple.CoreFoundation 0x00007fff93ea1838 CFRunLoopRunSpecific + 296 5 libchromiumcontent.dylib 0x0000000108465f4f base::MessagePumpCFRunLoop::DoRun(base::MessagePump::Delegate*) + 79 6 libchromiumcontent.dylib 0x0000000108465bcc base::MessagePumpLibevent::OnWakeup(int, short, void*) + 2732 7 libchromiumcontent.dylib 0x00000001084d2cb6 base::RunLoop::Run() + 70 8 libchromiumcontent.dylib 0x00000001084b8c1d base::MessageLoop::Run() + 29 9 libchromiumcontent.dylib 0x00000001084f3759 base::Thread::ThreadMain() + 217 10 libchromiumcontent.dylib 0x00000001084ecf7b base::PlatformThread::Join(base::PlatformThreadHandle) + 283 11 libsystem_pthread.dylib 0x00007fff909702fc _pthread_body + 131 12 libsystem_pthread.dylib 0x00007fff90970279 _pthread_start + 176 13 libsystem_pthread.dylib 0x00007fff9096e4b1 thread_start + 13 Thread 8: 0 libsystem_kernel.dylib 0x00007fff996de56a semaphore_wait_trap + 10 1 com.github.AtomFramework 0x0000000107db073b uv_sem_wait + 16 2 com.github.AtomFramework 0x0000000107c4213b atom::NodeBindings::EmbedThreadRunner(void*) + 35 3 com.github.AtomFramework 0x0000000107da78a0 uv__thread_start + 25 4 libsystem_pthread.dylib 0x00007fff909702fc _pthread_body + 131 5 libsystem_pthread.dylib 0x00007fff90970279 _pthread_start + 176 6 libsystem_pthread.dylib 0x00007fff9096e4b1 thread_start + 13 Thread 9:: HTMLParserThread 0 libsystem_kernel.dylib 0x00007fff996de52e mach_msg_trap + 10 1 libsystem_kernel.dylib 0x00007fff996dd69f mach_msg + 55 2 com.apple.CoreFoundation 0x00007fff93ea2b14 __CFRunLoopServiceMachPort + 212 3 com.apple.CoreFoundation 0x00007fff93ea1fdb __CFRunLoopRun + 1371 4 com.apple.CoreFoundation 0x00007fff93ea1838 CFRunLoopRunSpecific + 296 5 libchromiumcontent.dylib 0x0000000108465f4f base::MessagePumpCFRunLoop::DoRun(base::MessagePump::Delegate*) + 79 6 libchromiumcontent.dylib 0x0000000108465bcc base::MessagePumpLibevent::OnWakeup(int, short, void*) + 2732 7 libchromiumcontent.dylib 0x00000001084d2cb6 base::RunLoop::Run() + 70 8 libchromiumcontent.dylib 0x00000001084b8c1d base::MessageLoop::Run() + 29 9 libchromiumcontent.dylib 0x00000001084f3759 base::Thread::ThreadMain() + 217 10 libchromiumcontent.dylib 0x00000001084ecf7b base::PlatformThread::Join(base::PlatformThreadHandle) + 283 11 libsystem_pthread.dylib 0x00007fff909702fc _pthread_body + 131 12 libsystem_pthread.dylib 0x00007fff90970279 _pthread_start + 176 13 libsystem_pthread.dylib 0x00007fff9096e4b1 thread_start + 13 Thread 10: 0 libsystem_kernel.dylib 0x00007fff996e4216 kevent + 10 1 com.github.AtomFramework 0x0000000107da78a0 uv__thread_start + 25 2 libsystem_pthread.dylib 0x00007fff909702fc _pthread_body + 131 3 libsystem_pthread.dylib 0x00007fff90970279 _pthread_start + 176 4 libsystem_pthread.dylib 0x00007fff9096e4b1 thread_start + 13 Thread 11: 0 libsystem_kernel.dylib 0x00007fff996e3132 __psynch_cvwait + 10 1 com.github.AtomFramework 0x0000000107db07d1 uv_cond_wait + 9 2 com.github.AtomFramework 0x0000000107da6a06 worker + 206 3 com.github.AtomFramework 0x0000000107da78a0 uv__thread_start + 25 4 libsystem_pthread.dylib 0x00007fff909702fc _pthread_body + 131 5 libsystem_pthread.dylib 0x00007fff90970279 _pthread_start + 176 6 libsystem_pthread.dylib 0x00007fff9096e4b1 thread_start + 13 Thread 12: 0 libsystem_kernel.dylib 0x00007fff996e3132 __psynch_cvwait + 10 1 com.github.AtomFramework 0x0000000107db07d1 uv_cond_wait + 9 2 com.github.AtomFramework 0x0000000107da6a06 worker + 206 3 com.github.AtomFramework 0x0000000107da78a0 uv__thread_start + 25 4 libsystem_pthread.dylib 0x00007fff909702fc _pthread_body + 131 5 libsystem_pthread.dylib 0x00007fff90970279 _pthread_start + 176 6 libsystem_pthread.dylib 0x00007fff9096e4b1 thread_start + 13 Thread 13: 0 libsystem_kernel.dylib 0x00007fff996e3132 __psynch_cvwait + 10 1 com.github.AtomFramework 0x0000000107db07d1 uv_cond_wait + 9 2 com.github.AtomFramework 0x0000000107da6a06 worker + 206 3 com.github.AtomFramework 0x0000000107da78a0 uv__thread_start + 25 4 libsystem_pthread.dylib 0x00007fff909702fc _pthread_body + 131 5 libsystem_pthread.dylib 0x00007fff90970279 _pthread_start + 176 6 libsystem_pthread.dylib 0x00007fff9096e4b1 thread_start + 13 Thread 14: 0 libsystem_kernel.dylib 0x00007fff996e3132 __psynch_cvwait + 10 1 com.github.AtomFramework 0x0000000107db07d1 uv_cond_wait + 9 2 com.github.AtomFramework 0x0000000107da6a06 worker + 206 3 com.github.AtomFramework 0x0000000107da78a0 uv__thread_start + 25 4 libsystem_pthread.dylib 0x00007fff909702fc _pthread_body + 131 5 libsystem_pthread.dylib 0x00007fff90970279 _pthread_start + 176 6 libsystem_pthread.dylib 0x00007fff9096e4b1 thread_start + 13 Thread 15: 0 libsystem_kernel.dylib 0x00007fff996e3946 __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x00007fff9096e4a1 start_wqthread + 13 Thread 0 crashed with X86 Thread State (64-bit): rax: 0x000000000000004b rbx: 0x0000000000000000 rcx: 0x0000000000000000 rdx: 0xfffffffffffffffb rdi: 0x00007fff5800e0b0 rsi: 0x00007fbe9ac9a938 rbp: 0x00007fff5800e070 rsp: 0x00007fff5800e070 r8: 0x00007fff5800e030 r9: 0x00007fff7dfb5300 r10: 0x00000000000170d8 r11: 0x00000040bd3737b8 r12: 0x00007fff5800e6e8 r13: 0x00007fff7eaef070 r14: 0x00007fff5800e6f8 r15: 0x0000000000080000 rip: 0x000000010847c6b5 rfl: 0x0000000000000246 cr2: 0x000000010847c6b0 Logical CPU: 0 Error Code: 0x00000000 Trap Number: 3 Binary Images: 0x107bef000 - 0x107beffff +com.github.atom.helper (0.144.0 - 0.144.0) &lt;A8A51FE1-F1BE-3CE1-92CC-E85D1817D694&gt; /Applications/Atom.app/Contents/Frameworks/Atom Helper.app/Contents/MacOS/Atom Helper 0x107bf9000 - 0x107f70fff +com.github.AtomFramework (0) &lt;B09F3577-C18F-37FC-A53B-99B43EBF1691&gt; /Applications/Atom.app/Contents/Frameworks/Atom Framework.framework/Versions/A/Atom Framework 0x1082c0000 - 0x1082dffff +com.github.Squirrel (1.0 - 1) &lt;8A2477CD-7A5C-3305-84F6-8EE9B2EF8478&gt; /Applications/Atom.app/Contents/Frameworks/Squirrel.framework/Versions/A/Squirrel 0x108302000 - 0x108399ff7 +com.github.ReactiveCocoa (1.0 - 1) &lt;054804D9-6597-3679-814F-441C4B01ADED&gt; /Applications/Atom.app/Contents/Frameworks/ReactiveCocoa.framework/Versions/A/ReactiveCocoa 0x108413000 - 0x108430fff +com.github.Mantle (1.0 - 1) &lt;C9D801BD-C96E-3266-9933-65220955C964&gt; /Applications/Atom.app/Contents/Frameworks/Mantle.framework/Versions/A/Mantle 0x108448000 - 0x10beeefb7 +libchromiumcontent.dylib (0) &lt;6B119240-C11D-3907-8152-A756C7E79C87&gt; /Applications/Atom.app/Contents/Frameworks/Atom Framework.framework/Versions/A/Libraries/libchromiumcontent.dylib 0x10ca16000 - 0x10ca4dfff com.apple.audio.midi.CoreMIDI (1.10 - 88) &lt;4DED30CF-CBA6-3223-9D3F-7D4D634656B8&gt; /System/Library/Frameworks/CoreMIDI.framework/Versions/A/CoreMIDI 0x10ca75000 - 0x10caaaff7 libssl.0.9.8.dylib (52) &lt;70680606-475F-3C89-BB5F-E274253DC7C6&gt; /usr/lib/libssl.0.9.8.dylib 0x111a9e000 - 0x111ca8fef +ffmpegsumo.so (???) &lt;664D031F-7854-302A-BC46-9D5F398D12FB&gt; /Applications/Atom.app/Contents/Frameworks/Atom Framework.framework/Libraries/ffmpegsumo.so 0x11353a000 - 0x11353dfff +pathwatcher.node (???) &lt;AA772458-0AF8-3683-AC80-8210CE3791A1&gt; /Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/build/Release/pathwatcher.node 0x1135c7000 - 0x1135c9ff7 +keyboard-layout-observer.node (???) &lt;81A3C7FC-72F8-3DAB-890B-BA9C033B4CCE&gt; /Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/node_modules/keyboard-layout/build/Release/keyboard-layout-observer.node 0x1135ce000 - 0x113621ff7 +onig_scanner.node (???) &lt;D1971343-BCC1-3083-8F41-787D4B1F22B9&gt; /Applications/Atom.app/Contents/Resources/app/node_modules/oniguruma/build/Release/onig_scanner.node 0x11478c000 - 0x11482dfff +git.node (???) &lt;31F720E7-631E-3E59-9FC2-035EDA2BC8B8&gt; /Applications/Atom.app/Contents/Resources/app/node_modules/git-utils/build/Release/git.node 0x114879000 - 0x11487afff +runas.node (???) &lt;0265DDA1-229F-3D93-B105-C8DD82F2B679&gt; /Applications/Atom.app/Contents/Resources/app/node_modules/runas/build/Release/runas.node 0x11742b000 - 0x11742dfff +scrollbar-style-observer.node (???) &lt;0CD9C9A7-0F6B-39EB-BEC6-0E48C77DABF0&gt; /Applications/Atom.app/Contents/Resources/app/node_modules/scrollbar-style/build/Release/scrollbar-style-observer.node 0x7fff63f35000 - 0x7fff63f6b837 dyld (353.2.1) &lt;4696A982-1500-34EC-9777-1EF7A03E2659&gt; /usr/lib/dyld 0x7fff8d767000 - 0x7fff8d87fffb com.apple.CoreText (352.0 - 454.1) &lt;AB07DF12-BB1F-3275-A8A3-45F14BF872BF&gt; /System/Library/Frameworks/CoreText.framework/Versions/A/CoreText 0x7fff8d880000 - 0x7fff8d88dff7 libbz2.1.0.dylib (36) &lt;2DF83FBC-5C08-39E1-94F5-C28653791B5F&gt; /usr/lib/libbz2.1.0.dylib 0x7fff8d890000 - 0x7fff8d8b6ff7 com.apple.ChunkingLibrary (2.1 - 163.1) &lt;3514F2A4-38BD-3849-9286-B3B991057742&gt; /System/Library/PrivateFrameworks/ChunkingLibrary.framework/Versions/A/ChunkingLibrary 0x7fff8d8c6000 - 0x7fff8d8e5fff com.apple.CoreDuet (1.0 - 1) &lt;36AA9FD5-2685-314D-B364-3FA4688D86BD&gt; /System/Library/PrivateFrameworks/CoreDuet.framework/Versions/A/CoreDuet 0x7fff8d9dc000 - 0x7fff8d9e0ff7 libGIF.dylib (1231) &lt;B3D2DF96-A67D-31EA-9A1B-E870B54855EE&gt; /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib 0x7fff8da4f000 - 0x7fff8da51ff7 com.apple.SecCodeWrapper (4.0 - 238) &lt;F450AB10-B0A4-3B55-A1B9-563E55C99333&gt; /System/Library/PrivateFrameworks/SecCodeWrapper.framework/Versions/A/SecCodeWrapper 0x7fff8da67000 - 0x7fff8da67fff com.apple.Accelerate (1.10 - Accelerate 1.10) &lt;C7278843-2462-32F6-B0E3-D33C681399A2&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate 0x7fff8da68000 - 0x7fff8db4bfff libcrypto.0.9.8.dylib (52) &lt;7208EEE2-C090-383E-AADD-7E1BD1321BEC&gt; /usr/lib/libcrypto.0.9.8.dylib 0x7fff8db4c000 - 0x7fff8df23fe7 com.apple.CoreAUC (211.0.0 - 211.0.0) &lt;C0DFCFBA-90E6-38F7-B858-E80A880514E6&gt; /System/Library/PrivateFrameworks/CoreAUC.framework/Versions/A/CoreAUC 0x7fff8df24000 - 0x7fff8df64ff7 com.apple.CloudDocs (1.0 - 280.1) &lt;21D7E10A-99EF-34BE-82D7-29A6F1761DE5&gt; /System/Library/PrivateFrameworks/CloudDocs.framework/Versions/A/CloudDocs 0x7fff8df65000 - 0x7fff8dfe2fff com.apple.CoreServices.OSServices (640.3 - 640.3) &lt;EF21E94C-1B34-38F2-AD1E-5BF3AC8C8A23&gt; /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices 0x7fff8dfe3000 - 0x7fff8e000ffb libresolv.9.dylib (57) &lt;26B38E61-298A-3C3A-82C1-3B5E98AD5E29&gt; /usr/lib/libresolv.9.dylib 0x7fff8e09a000 - 0x7fff8e3b5fcf com.apple.vImage (8.0 - 8.0) &lt;1183FE6A-FDB6-3B3B-928D-50C7909F2308&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage 0x7fff8e3b6000 - 0x7fff8e3b8fff com.apple.loginsupport (1.0 - 1) &lt;35A2A071-606C-39A5-8C11-E4CAF98D934C&gt; /System/Library/PrivateFrameworks/login.framework/Versions/A/Frameworks/loginsupport.framework/Versions/A/loginsupport 0x7fff8e3b9000 - 0x7fff8e3bbffb libCGXType.A.dylib (772) &lt;7CB71BC6-D8EC-37BC-8243-41BAB086FAAA&gt; /System/Library/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGXType.A.dylib 0x7fff8e3eb000 - 0x7fff8e3eeff7 com.apple.Mangrove (1.0 - 1) &lt;2AF1CAE9-8BF9-33C4-9C1B-123DBAF1522B&gt; /System/Library/PrivateFrameworks/Mangrove.framework/Versions/A/Mangrove 0x7fff8e3ef000 - 0x7fff8e71dff7 com.apple.Foundation (6.9 - 1151.16) &lt;18EDD673-A010-3E99-956E-DA594CE1FA80&gt; /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation 0x7fff8e71e000 - 0x7fff8e733ff7 com.apple.AppContainer (4.0 - 238) &lt;9481F305-359A-33E6-93F1-89A25FA14E00&gt; /System/Library/PrivateFrameworks/AppContainer.framework/Versions/A/AppContainer 0x7fff8e750000 - 0x7fff8e79dff3 com.apple.print.framework.PrintCore (10.0 - 451) &lt;3CA58254-D14F-3913-9DFB-CAC499570CC7&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore 0x7fff8e79e000 - 0x7fff8e7c1fff com.apple.Sharing (328.3 - 328.3) &lt;FDEE49AD-8804-3760-9C14-8D1D10BBEA37&gt; /System/Library/PrivateFrameworks/Sharing.framework/Versions/A/Sharing 0x7fff8e826000 - 0x7fff8eaa0fff com.apple.CoreData (110 - 526) &lt;AEEDAF00-D38F-3A15-B3C9-73732940CC55&gt; /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData 0x7fff8eaa1000 - 0x7fff8eaa7ff7 com.apple.XPCService (2.0 - 1) &lt;AA4A5393-1F5D-3465-A417-0414B95DC052&gt; /System/Library/PrivateFrameworks/XPCService.framework/Versions/A/XPCService 0x7fff8eb51000 - 0x7fff8eb51ff7 libunc.dylib (29) &lt;5676F7EA-C1DF-329F-B006-D2C3022B7D70&gt; /usr/lib/system/libunc.dylib 0x7fff8ecb1000 - 0x7fff8ecdefff com.apple.Accounts (113 - 113) &lt;3145FCC2-D297-3DD1-B74B-9E7DBB0EE33C&gt; /System/Library/Frameworks/Accounts.framework/Versions/A/Accounts 0x7fff8ed09000 - 0x7fff8ed3bff3 com.apple.frameworks.CoreDaemon (1.3 - 1.3) &lt;C6DB0A07-F8E4-3837-BCA9-225F460EDA81&gt; /System/Library/PrivateFrameworks/CoreDaemon.framework/Versions/B/CoreDaemon 0x7fff8ed92000 - 0x7fff8edacff7 com.apple.AppleVPAFramework (1.0.30 - 1.0.30) &lt;D47A2125-C72D-3298-B27D-D89EA0D55584&gt; /System/Library/PrivateFrameworks/AppleVPA.framework/Versions/A/AppleVPA 0x7fff8edae000 - 0x7fff8edfdff7 com.apple.opencl (2.4.2 - 2.4.2) &lt;6AE26E08-6EFC-3E1B-B202-EFA9C3E5B9D4&gt; /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL 0x7fff8edfe000 - 0x7fff8ee6cffb com.apple.Heimdal (4.0 - 2.0) &lt;B852ACA1-4C64-3E2A-A9D3-6D4C80AD9429&gt; /System/Library/PrivateFrameworks/Heimdal.framework/Versions/A/Heimdal 0x7fff8ee6d000 - 0x7fff8f070ff3 com.apple.CFNetwork (720.0.9 - 720.0.9) &lt;78EE1B88-394F-3BB8-93A6-E068990559EC&gt; /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork 0x7fff8f071000 - 0x7fff8f1a1fff com.apple.UIFoundation (1.0 - 1) &lt;8E030D93-441C-3997-9CD2-55C8DFAC8B84&gt; /System/Library/PrivateFrameworks/UIFoundation.framework/Versions/A/UIFoundation 0x7fff8f1c4000 - 0x7fff8f4abffb com.apple.CoreServices.CarbonCore (1108.1 - 1108.1) &lt;55A16172-ACC0-38B7-8409-3CB92AF33973&gt; /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore 0x7fff8f4ac000 - 0x7fff8f4aeff7 libsystem_coreservices.dylib (9) &lt;41B7C578-5A53-31C8-A96F-C73E030B0938&gt; /usr/lib/system/libsystem_coreservices.dylib 0x7fff8f4db000 - 0x7fff8f4ecfff libcmph.dylib (1) &lt;46EC3997-DB5E-38AE-BBBB-A035A54AD3C0&gt; /usr/lib/libcmph.dylib 0x7fff8f59d000 - 0x7fff8f5b9fff com.apple.GenerationalStorage (2.0 - 209.11) &lt;9FF8DD11-25FB-3047-A5BF-9415339B3EEC&gt; /System/Library/PrivateFrameworks/GenerationalStorage.framework/Versions/A/GenerationalStorage 0x7fff8f5ba000 - 0x7fff8f5bdfff com.apple.xpc.ServiceManagement (1.0 - 1) &lt;7E9E6BB7-AEE7-3F59-BAC0-59EAF105D0C8&gt; /System/Library/Frameworks/ServiceManagement.framework/Versions/A/ServiceManagement 0x7fff8f605000 - 0x7fff8f606fff liblangid.dylib (117) &lt;B54A4AA0-2E53-3671-90F5-AFF711C0EB9E&gt; /usr/lib/liblangid.dylib 0x7fff8f607000 - 0x7fff8f6c6fff com.apple.backup.framework (1.6 - 1.6) &lt;373C7CF8-2A85-3B59-BFBC-FFA3FAE2293D&gt; /System/Library/PrivateFrameworks/Backup.framework/Versions/A/Backup 0x7fff8f708000 - 0x7fff8f708fff libOpenScriptingUtil.dylib (162) &lt;EFD79173-A9DA-3AE6-BE15-3948938204A6&gt; /usr/lib/libOpenScriptingUtil.dylib 0x7fff8f709000 - 0x7fff8f752ff3 com.apple.HIServices (1.22 - 519) &lt;59D78E07-C3F1-3272-88F1-876B836D5517&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices 0x7fff8f75c000 - 0x7fff8f75ffff com.apple.IOSurface (97 - 97) &lt;D4B4D2B2-7B16-3174-9EA6-55E0A10B452D&gt; /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface 0x7fff8f856000 - 0x7fff8f881fff com.apple.DictionaryServices (1.2 - 229) &lt;6789EC43-CADA-394D-8FE8-FC3A2DD136B9&gt; /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices 0x7fff8f882000 - 0x7fff8f8faff7 com.apple.SystemConfiguration (1.14 - 1.14) &lt;C269BCFD-ACAB-3331-BC7C-0430F0E84817&gt; /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration 0x7fff8f9d6000 - 0x7fff8fafdfff com.apple.coreui (2.1 - 305) &lt;BB430677-D1F7-38DD-8F05-70E54352B8B5&gt; /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI 0x7fff8fafe000 - 0x7fff8fb44ff7 libauto.dylib (186) &lt;A260789B-D4D8-316A-9490-254767B8A5F1&gt; /usr/lib/libauto.dylib 0x7fff9006f000 - 0x7fff90070fff libsystem_secinit.dylib (18) &lt;581DAD0F-6B63-3A48-B63B-917AF799ABAA&gt; /usr/lib/system/libsystem_secinit.dylib 0x7fff90071000 - 0x7fff90071fff com.apple.Cocoa (6.8 - 21) &lt;EAC0EA1E-3C62-3B28-A941-5D8B1E085FF8&gt; /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa 0x7fff9012e000 - 0x7fff9016ffff libGLU.dylib (11.0.7) &lt;8037342E-1ECD-385F-B4C3-545CE97B76AE&gt; /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib 0x7fff901be000 - 0x7fff901bfff7 libsystem_blocks.dylib (65) &lt;9615D10A-FCA7-3BE4-AA1A-1B195DACE1A1&gt; /usr/lib/system/libsystem_blocks.dylib 0x7fff901c0000 - 0x7fff901e0fff com.apple.IconServices (47.1 - 47.1) &lt;E83DFE3B-6541-3736-96BB-26DC5D0100F1&gt; /System/Library/PrivateFrameworks/IconServices.framework/Versions/A/IconServices 0x7fff9026a000 - 0x7fff9026ffff com.apple.DiskArbitration (2.6 - 2.6) &lt;0DFF4D9B-2AC3-3B82-B5C5-30F4EFBD2DB9&gt; /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration 0x7fff90270000 - 0x7fff90278ff7 com.apple.AppleSRP (5.0 - 1) &lt;01EC5144-D09A-3D6A-AE35-F6D48585F154&gt; /System/Library/PrivateFrameworks/AppleSRP.framework/Versions/A/AppleSRP 0x7fff90279000 - 0x7fff9027ffff libsystem_trace.dylib (72.1.3) &lt;A9E6B7D8-C327-3742-AC54-86C94218B1DF&gt; /usr/lib/system/libsystem_trace.dylib 0x7fff90280000 - 0x7fff90286ff7 libsystem_networkextension.dylib (167.1.10) &lt;29AB225B-D7FB-30ED-9600-65D44B9A9442&gt; /usr/lib/system/libsystem_networkextension.dylib 0x7fff908eb000 - 0x7fff9096cff3 com.apple.CoreUtils (1.0 - 101.1) &lt;45E5E51B-947E-3F2D-BD9C-480E72555C23&gt; /System/Library/PrivateFrameworks/CoreUtils.framework/Versions/A/CoreUtils 0x7fff9096d000 - 0x7fff90976fff libsystem_pthread.dylib (105.1.4) &lt;26B1897F-0CD3-30F3-B55A-37CB45062D73&gt; /usr/lib/system/libsystem_pthread.dylib 0x7fff90981000 - 0x7fff90a71fef libJP2.dylib (1231) &lt;FEAF6F38-736E-35A8-A983-F4531C8A821C&gt; /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib 0x7fff90a72000 - 0x7fff90a73ffb libremovefile.dylib (35) &lt;3485B5F4-6CE8-3C62-8DFD-8736ED6E8531&gt; /usr/lib/system/libremovefile.dylib 0x7fff90a74000 - 0x7fff90a74ff7 liblaunch.dylib (559.1.22) &lt;8A988924-8BE7-35FE-BF7D-322E90EFE49E&gt; /usr/lib/system/liblaunch.dylib 0x7fff90a84000 - 0x7fff90a8bfff com.apple.network.statistics.framework (1.2 - 1) &lt;61B311D1-7F15-35B3-80D4-99B8BE90ACD9&gt; /System/Library/PrivateFrameworks/NetworkStatistics.framework/Versions/A/NetworkStatistics 0x7fff90a8c000 - 0x7fff90aebff3 com.apple.AE (681 - 681) &lt;7F544183-A515-31A8-B45F-89A167F56216&gt; /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE 0x7fff90b00000 - 0x7fff90b02fff com.apple.OAuth (25 - 25) &lt;EE765AF0-2BB6-3689-9EAA-689BF1F02A0D&gt; /System/Library/PrivateFrameworks/OAuth.framework/Versions/A/OAuth 0x7fff90b5e000 - 0x7fff90b8eff3 com.apple.CoreAVCHD (5.7.5 - 5750.4.1) &lt;3E51287C-E97D-3886-BE88-8F6872400876&gt; /System/Library/PrivateFrameworks/CoreAVCHD.framework/Versions/A/CoreAVCHD 0x7fff90b8f000 - 0x7fff90b99ff7 com.apple.CrashReporterSupport (10.10 - 629) &lt;EC97EA5E-3190-3717-A4A9-2F35A447E7A6&gt; /System/Library/PrivateFrameworks/CrashReporterSupport.framework/Versions/A/CrashReporterSupport 0x7fff90be0000 - 0x7fff90be5ffb libheimdal-asn1.dylib (398.1.2) &lt;F9463B34-AAF5-3488-AD0C-85937C81FC5E&gt; /usr/lib/libheimdal-asn1.dylib 0x7fff90e9b000 - 0x7fff90f07fff com.apple.framework.CoreWLAN (5.0 - 500.35.2) &lt;ACBAAB0A-BCC7-37CF-AAFB-2DA1733F2682&gt; /System/Library/Frameworks/CoreWLAN.framework/Versions/A/CoreWLAN 0x7fff90f08000 - 0x7fff90f22ff3 com.apple.Ubiquity (1.3 - 313) &lt;DF56A657-CC6E-3BE2-86A0-71F07127724C&gt; /System/Library/PrivateFrameworks/Ubiquity.framework/Versions/A/Ubiquity 0x7fff90fa6000 - 0x7fff910c7fff com.apple.LaunchServices (644.10 - 644.10) &lt;0B1C68BC-0AEB-38E2-ABC8-E92728FEC475&gt; /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices 0x7fff910f0000 - 0x7fff91236fef libsqlite3.dylib (168) &lt;8B78BED1-7B9B-3943-80DC-0871015AEAC4&gt; /usr/lib/libsqlite3.dylib 0x7fff91237000 - 0x7fff91271ffb com.apple.DebugSymbols (115 - 115) &lt;6F03761D-7C3A-3C80-8031-AA1C1AD7C706&gt; /System/Library/PrivateFrameworks/DebugSymbols.framework/Versions/A/DebugSymbols 0x7fff91272000 - 0x7fff91288ff7 libsystem_asl.dylib (267) &lt;F153AC5B-0542-356E-88C8-20A62CA704E2&gt; /usr/lib/system/libsystem_asl.dylib 0x7fff9128c000 - 0x7fff912c4ffb libsystem_network.dylib (411) &lt;C0B2313D-47BE-38A9-BEE6-2634A4F5E14B&gt; /usr/lib/system/libsystem_network.dylib 0x7fff912c5000 - 0x7fff912cdffb libcopyfile.dylib (118.1.2) &lt;0C68D3A6-ACDD-3EF3-991A-CC82C32AB836&gt; /usr/lib/system/libcopyfile.dylib 0x7fff912ce000 - 0x7fff912effff com.apple.framework.Apple80211 (10.0 - 1000.57.3) &lt;F64EB1A1-57F3-3ABA-97D0-DB7C926FD07F&gt; /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Apple80211 0x7fff9131b000 - 0x7fff91326ff7 com.apple.speech.synthesis.framework (5.2.6 - 5.2.6) &lt;9434AA45-B6BD-37F7-A866-172196A7F91B&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis 0x7fff91327000 - 0x7fff91355fff com.apple.CoreServicesInternal (221.1 - 221.1) &lt;51BAE6D2-84F3-392A-BFEC-A3B47B80A3D2&gt; /System/Library/PrivateFrameworks/CoreServicesInternal.framework/Versions/A/CoreServicesInternal 0x7fff91356000 - 0x7fff91356fff com.apple.Carbon (154 - 157) &lt;6E3AEB9D-7643-36BE-A7E5-D08886649257&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon 0x7fff91357000 - 0x7fff913beff7 com.apple.framework.CoreWiFi (3.0 - 300.4) &lt;19269C1D-EB29-384A-83F3-7DDDEB7D9DAD&gt; /System/Library/PrivateFrameworks/CoreWiFi.framework/Versions/A/CoreWiFi 0x7fff913d6000 - 0x7fff913f0ff7 liblzma.5.dylib (7) &lt;1D03E875-A7C0-3028-814C-3C27F7B7C079&gt; /usr/lib/liblzma.5.dylib 0x7fff913f5000 - 0x7fff91493fff com.apple.Metadata (10.7.0 - 916) &lt;DA8A1D18-19FE-37B3-BE12-85C5B0A00736&gt; /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata 0x7fff91494000 - 0x7fff914bcfff libsystem_info.dylib (459) &lt;B85A85D5-8530-3A93-B0C3-4DEC41F79478&gt; /usr/lib/system/libsystem_info.dylib 0x7fff915fa000 - 0x7fff9168bfff com.apple.cloudkit.CloudKit (259.2.3 - 259.2.3) &lt;6F955140-D522-32B3-B34B-BD94C5D94E7A&gt; /System/Library/Frameworks/CloudKit.framework/Versions/A/CloudKit 0x7fff9168c000 - 0x7fff916a7ff7 libCRFSuite.dylib (34) &lt;D64842BE-7BD4-3D0C-9842-1D202F7C2A51&gt; /usr/lib/libCRFSuite.dylib 0x7fff916a8000 - 0x7fff916adff7 libunwind.dylib (35.3) &lt;BE7E51A0-B6EA-3A54-9CCA-9D88F683A6D6&gt; /usr/lib/system/libunwind.dylib 0x7fff916bd000 - 0x7fff916e9fff libsandbox.1.dylib (358.1.1) &lt;C0B45487-F3CF-32CA-A875-CDCC48D2EA3E&gt; /usr/lib/libsandbox.1.dylib 0x7fff91f73000 - 0x7fff9245ffff com.apple.MediaToolbox (1.0 - 1562.19) &lt;E9F75769-1173-3EF6-8373-7673FA5B54F3&gt; /System/Library/Frameworks/MediaToolbox.framework/Versions/A/MediaToolbox 0x7fff9247a000 - 0x7fff92487fff com.apple.ProtocolBuffer (1 - 225.1) &lt;2D502FBB-D2A0-3937-A5C5-385FA65B3874&gt; /System/Library/PrivateFrameworks/ProtocolBuffer.framework/Versions/A/ProtocolBuffer 0x7fff92488000 - 0x7fff9248cfff libpam.2.dylib (20) &lt;E805398D-9A92-31F8-8005-8DC188BD8B6E&gt; /usr/lib/libpam.2.dylib 0x7fff9248d000 - 0x7fff92495fff libMatch.1.dylib (24) &lt;C917279D-33C2-38A8-9BDD-18F3B24E6FBD&gt; /usr/lib/libMatch.1.dylib 0x7fff92496000 - 0x7fff924c1ff3 libarchive.2.dylib (30) &lt;8CBB4416-EBE9-3574-8ADC-44655D245F39&gt; /usr/lib/libarchive.2.dylib 0x7fff924c2000 - 0x7fff924cbff3 com.apple.CommonAuth (4.0 - 2.0) &lt;F4C266BE-2E0E-36B4-9DE7-C6B4BF410FD7&gt; /System/Library/PrivateFrameworks/CommonAuth.framework/Versions/A/CommonAuth 0x7fff92f6a000 - 0x7fff92ffefff com.apple.ink.framework (10.9 - 213) &lt;8E029630-1530-3734-A446-13353F0E7AC5&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink 0x7fff92fff000 - 0x7fff93003fff libcache.dylib (69) &lt;45E9A2E7-99C4-36B2-BEE3-0C4E11614AD1&gt; /usr/lib/system/libcache.dylib 0x7fff93004000 - 0x7fff93011fff com.apple.SpeechRecognitionCore (2.0.32 - 2.0.32) &lt;87F0C88D-502D-3217-8B4A-8388288568BA&gt; /System/Library/PrivateFrameworks/SpeechRecognitionCore.framework/Versions/A/SpeechRecognitionCore 0x7fff93031000 - 0x7fff930b3fff com.apple.PerformanceAnalysis (1.0 - 1) &lt;478055FE-1A94-31C7-A1A2-D67F19CA6A74&gt; /System/Library/PrivateFrameworks/PerformanceAnalysis.framework/Versions/A/PerformanceAnalysis 0x7fff933bd000 - 0x7fff933d6ff7 com.apple.CFOpenDirectory (10.10 - 187) &lt;0ECA5D80-A045-3A2C-A60C-E1605F3AB6BD&gt; /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory 0x7fff933d7000 - 0x7fff936d9fff com.apple.HIToolbox (2.1.1 - 756) &lt;07287312-97EC-3894-96F6-5CB6BA5E0081&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox 0x7fff936dc000 - 0x7fff9377bdf7 com.apple.AppleJPEG (1.0 - 1) &lt;9BB3D7DF-630A-3E1C-A124-12D6C4D0DE70&gt; /System/Library/PrivateFrameworks/AppleJPEG.framework/Versions/A/AppleJPEG 0x7fff93780000 - 0x7fff93816ffb com.apple.CoreMedia (1.0 - 1562.19) &lt;A754225C-2ED9-3220-A079-D50E695A1523&gt; /System/Library/Frameworks/CoreMedia.framework/Versions/A/CoreMedia 0x7fff93817000 - 0x7fff93833ff7 libsystem_malloc.dylib (53.1.1) &lt;19BCC257-5717-3502-A71F-95D65AFA861B&gt; /usr/lib/system/libsystem_malloc.dylib 0x7fff93834000 - 0x7fff938d6fff com.apple.Bluetooth (4.3.0 - 4.3.0f10) &lt;70922125-2A01-37AE-9CB8-D8A9578092E4&gt; /System/Library/Frameworks/IOBluetooth.framework/Versions/A/IOBluetooth 0x7fff93928000 - 0x7fff9398fff7 com.apple.datadetectorscore (6.0 - 396.1) &lt;5D348063-1528-3E2F-B587-9E82970506F9&gt; /System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/DataDetectorsCore 0x7fff93abf000 - 0x7fff93aeafff libc++abi.dylib (125) &lt;88A22A0F-87C6-3002-BFBA-AC0F2808B8B9&gt; /usr/lib/libc++abi.dylib 0x7fff93b94000 - 0x7fff93b9eff7 com.apple.NetAuth (5.0 - 5.0) &lt;B9EC5425-D38D-308C-865F-207E0A98BAC7&gt; /System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth 0x7fff93b9f000 - 0x7fff93ba4ff7 com.apple.MediaAccessibility (1.0 - 61) &lt;00A3E0B6-79AC-387E-B282-AADFBD5722F6&gt; /System/Library/Frameworks/MediaAccessibility.framework/Versions/A/MediaAccessibility 0x7fff93ba5000 - 0x7fff93cb4ffb com.apple.desktopservices (1.9 - 1.9) &lt;6EDAC73F-C42C-3FF7-B67D-FCCA1CFC5405&gt; /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv 0x7fff93cb5000 - 0x7fff93cc1ff7 com.apple.OpenDirectory (10.10 - 187) &lt;1D0066FC-1DEB-381B-B15C-4C009E0DF850&gt; /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory 0x7fff93cc2000 - 0x7fff93e2dff7 com.apple.audio.toolbox.AudioToolbox (1.12 - 1.12) &lt;E5A68E3A-79E7-36A3-9C6B-E1DF75ADDA95&gt; /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox 0x7fff93e2e000 - 0x7fff93e2fff7 com.apple.print.framework.Print (10.0 - 265) &lt;3BC4FE7F-78A0-3E57-8F4C-520E7EFD36FA&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print 0x7fff93e30000 - 0x7fff941c6fff com.apple.CoreFoundation (6.9 - 1151.16) &lt;F2B088AF-A5C6-3FAE-9EB4-7931AF6359E4&gt; /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation 0x7fff941c7000 - 0x7fff941c8fff libDiagnosticMessagesClient.dylib (100) &lt;2EE8E436-5CDC-34C5-9959-5BA218D507FB&gt; /usr/lib/libDiagnosticMessagesClient.dylib 0x7fff94200000 - 0x7fff94204ff7 com.apple.TCC (1.0 - 1) &lt;AFC32F8F-BCD5-313C-B66E-5AB8591EC066&gt; /System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC 0x7fff944b2000 - 0x7fff9472cff3 com.apple.RawCamera.bundle (6.00 - 761) &lt;056E2E1D-6682-354E-9666-7E4935653D47&gt; /System/Library/CoreServices/RawCamera.bundle/Contents/MacOS/RawCamera 0x7fff947f1000 - 0x7fff94923ff7 com.apple.MediaControlSender (2.0 - 215.10) &lt;8ECF208C-587A-325F-9866-09890D58F1B1&gt; /System/Library/PrivateFrameworks/MediaControlSender.framework/Versions/A/MediaControlSender 0x7fff94924000 - 0x7fff9494cffb libRIP.A.dylib (772) &lt;9262437A-710A-397D-8E34-1CBFEA1FC5E1&gt; /System/Library/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib 0x7fff94959000 - 0x7fff94959fff com.apple.ApplicationServices (48 - 48) &lt;5BF7910B-C328-3BF8-BA4F-CE52B574CE01&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices 0x7fff94961000 - 0x7fff94970fff com.apple.LangAnalysis (1.7.0 - 1.7.0) &lt;D1E527E4-C561-352F-9457-E8C50232793C&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis 0x7fff94973000 - 0x7fff949cefef libTIFF.dylib (1231) &lt;115791FB-8C49-3410-AC23-56F4B1CFF124&gt; /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib 0x7fff949cf000 - 0x7fff949dafff libGL.dylib (11.0.7) &lt;C53344AD-8CE6-3111-AB94-BD4CA89ED84E&gt; /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib 0x7fff949db000 - 0x7fff949ebff7 libbsm.0.dylib (34) &lt;A3A2E56C-2B65-37C7-B43A-A1F926E1A0BB&gt; /usr/lib/libbsm.0.dylib 0x7fff94a19000 - 0x7fff94b2bff7 libvDSP.dylib (512) &lt;DD5517F5-F7F7-3AA1-B6FA-CD98DBC3C651&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib 0x7fff94b2c000 - 0x7fff94ba0fff com.apple.ApplicationServices.ATS (360 - 375) &lt;62828B40-231D-3F81-8067-1903143DCB6B&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS 0x7fff94baa000 - 0x7fff94bb1fff libCGCMS.A.dylib (772) &lt;E64DC779-A6CF-3B1F-8E57-C09C0B10670F&gt; /System/Library/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGCMS.A.dylib 0x7fff94bb2000 - 0x7fff94bbdff7 com.apple.AppSandbox (4.0 - 238) &lt;BC5EE1CA-764A-303D-9989-4041C1291026&gt; /System/Library/PrivateFrameworks/AppSandbox.framework/Versions/A/AppSandbox 0x7fff94bbe000 - 0x7fff94be2fef libJPEG.dylib (1231) &lt;3F87A0CA-14FA-3034-A332-DD57A092B08F&gt; /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib 0x7fff94c76000 - 0x7fff94dd4ff3 com.apple.avfoundation (2.0 - 889.10) &lt;3CB185EA-C806-326E-B8DA-FDDCFA123509&gt; /System/Library/Frameworks/AVFoundation.framework/Versions/A/AVFoundation 0x7fff94dd5000 - 0x7fff94ec9ff7 libFontParser.dylib (134) &lt;506126F8-FDCE-3DE1-9DCA-E07FE658B597&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontParser.dylib 0x7fff95538000 - 0x7fff95589ff7 com.apple.audio.CoreAudio (4.3.0 - 4.3.0) &lt;CC57353D-8D25-3579-8A66-30A09F7BEED0&gt; /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio 0x7fff9558a000 - 0x7fff95616fff libsystem_c.dylib (1044.1.2) &lt;C185E862-7424-3210-B528-6B822577A4B8&gt; /usr/lib/system/libsystem_c.dylib 0x7fff956af000 - 0x7fff956c2ff7 com.apple.CoreBluetooth (1.0 - 1) &lt;FA9B43B3-E183-3040-AE25-66EF9870CF35&gt; /System/Library/Frameworks/CoreBluetooth.framework/Versions/A/CoreBluetooth 0x7fff956c3000 - 0x7fff957fdff7 com.apple.ImageIO.framework (3.3.0 - 1038) &lt;AB3C40DB-FCBE-3315-B7B2-4E16522E20CB&gt; /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO 0x7fff967fe000 - 0x7fff96800ff7 libsystem_sandbox.dylib (358.1.1) &lt;DB9962EF-8898-31CC-9B87-E01F8CE74C9D&gt; /usr/lib/system/libsystem_sandbox.dylib 0x7fff96801000 - 0x7fff96803ff7 libquarantine.dylib (76) &lt;DC041627-2D92-361C-BABF-A869A5C72293&gt; /usr/lib/system/libquarantine.dylib 0x7fff96804000 - 0x7fff9682eff7 libdispatch.dylib (442.1.4) &lt;502CF32B-669B-3709-8862-08188225E4F0&gt; /usr/lib/system/libdispatch.dylib 0x7fff96af9000 - 0x7fff96b3fffb libFontRegistry.dylib (134) &lt;01B8034A-45FD-3360-A347-A1896F591363&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontRegistry.dylib 0x7fff96b40000 - 0x7fff96b4bff7 libkxld.dylib (2782.1.97) &lt;CB1A1B57-54BE-3573-AE0C-B90ED6BAEEE2&gt; /usr/lib/system/libkxld.dylib 0x7fff96b4c000 - 0x7fff96e7ffff libmecabra.dylib (666) &lt;2CE5540A-D412-3D53-9E11-86C24D61713B&gt; /usr/lib/libmecabra.dylib 0x7fff96e80000 - 0x7fff96e88fff libsystem_platform.dylib (63) &lt;64E34079-D712-3D66-9CE2-418624A5C040&gt; /usr/lib/system/libsystem_platform.dylib 0x7fff96f96000 - 0x7fff97088ff7 libiconv.2.dylib (42) &lt;2A06D02F-8B76-3864-8D96-64EF5B40BC6C&gt; /usr/lib/libiconv.2.dylib 0x7fff97089000 - 0x7fff97217fff libBLAS.dylib (1128) &lt;497912C1-A98E-3281-BED7-E9C751552F61&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib 0x7fff972f8000 - 0x7fff972f9fff com.apple.TrustEvaluationAgent (2.0 - 25) &lt;2D61A2C3-C83E-3A3F-8EC1-736DBEC250AB&gt; /System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/TrustEvaluationAgent 0x7fff972fa000 - 0x7fff9730bff7 libsystem_coretls.dylib (35.1.2) &lt;EBBF7EF6-80D8-3F8F-825C-B412BD6D22C0&gt; /usr/lib/system/libsystem_coretls.dylib 0x7fff97318000 - 0x7fff97319fff libSystem.B.dylib (1213) &lt;DA954461-EC6A-3DF0-8551-6FC810627627&gt; /usr/lib/libSystem.B.dylib 0x7fff97434000 - 0x7fff97c6dffb com.apple.CoreGraphics (1.600.0 - 772) &lt;D981E0F3-2FB7-38B7-A9FD-E991ADB06182&gt; /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics 0x7fff97c9d000 - 0x7fff97ca4fff com.apple.NetFS (6.0 - 4.0) &lt;1581D25F-CC07-39B0-90E8-5D4F3CF84EBA&gt; /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS 0x7fff97ca5000 - 0x7fff97f0dffb com.apple.security (7.0 - 57031.1.35) &lt;66CFAFF2-980E-3B99-B7E0-7D7751F6283C&gt; /System/Library/Frameworks/Security.framework/Versions/A/Security 0x7fff97f0e000 - 0x7fff9833efff com.apple.vision.FaceCore (3.1.6 - 3.1.6) &lt;C3B823AA-C261-37D3-B4AC-C59CE91C8241&gt; /System/Library/PrivateFrameworks/FaceCore.framework/Versions/A/FaceCore 0x7fff98345000 - 0x7fff9835bff7 com.apple.CoreMediaAuthoring (2.2 - 951) &lt;98CB5AB8-6BCA-3C45-98EC-67F39EEE56C5&gt; /System/Library/PrivateFrameworks/CoreMediaAuthoring.framework/Versions/A/CoreMediaAuthoring 0x7fff9835c000 - 0x7fff9850cff7 com.apple.QuartzCore (1.10 - 361.11) &lt;7382E4A9-10B0-3877-B9D7-FA84DC71BA55&gt; /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore 0x7fff9850d000 - 0x7fff98545fff com.apple.RemoteViewServices (2.0 - 99) &lt;C9A62691-B0D9-34B7-B71C-A48B5F4DC553&gt; /System/Library/PrivateFrameworks/RemoteViewServices.framework/Versions/A/RemoteViewServices 0x7fff98546000 - 0x7fff98573fff com.apple.CoreVideo (1.8 - 145.1) &lt;18DB07E0-B927-3260-A234-636F298D1917&gt; /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo 0x7fff98574000 - 0x7fff98585ff7 libz.1.dylib (55) &lt;88C7C7DE-04B8-316F-8B74-ACD9F3DE1AA1&gt; /usr/lib/libz.1.dylib 0x7fff98736000 - 0x7fff9874aff7 com.apple.MultitouchSupport.framework (260.30 - 260.30) &lt;28728A7D-E048-3B14-9932-839A87D381FE&gt; /System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/MultitouchSupport 0x7fff9874b000 - 0x7fff98764fff com.apple.openscripting (1.4 - 162) &lt;80DFF366-B950-3F79-903F-99DA0FFDB570&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting 0x7fff98765000 - 0x7fff98b72ff7 libLAPACK.dylib (1128) &lt;F9201AE7-B031-36DB-BCF8-971E994EF7C1&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib 0x7fff98b73000 - 0x7fff98edefff com.apple.VideoToolbox (1.0 - 1562.19) &lt;28668FCA-D122-30CC-92EE-5224A0767CBC&gt; /System/Library/Frameworks/VideoToolbox.framework/Versions/A/VideoToolbox 0x7fff98edf000 - 0x7fff98ee7fff libsystem_dnssd.dylib (561.1.1) &lt;62B70ECA-E40D-3C63-896E-7F00EC386DDB&gt; /usr/lib/system/libsystem_dnssd.dylib 0x7fff98efd000 - 0x7fff98f08fff libcommonCrypto.dylib (60061) &lt;D381EBC6-69D8-31D3-8084-5A80A32CB748&gt; /usr/lib/system/libcommonCrypto.dylib 0x7fff98f09000 - 0x7fff98f55fff com.apple.corelocation (1486.17 - 1615.21) &lt;DB68CEB9-0D51-3CB9-86A4-B0400CE6C515&gt; /System/Library/Frameworks/CoreLocation.framework/Versions/A/CoreLocation 0x7fff98f61000 - 0x7fff98f63fff libsystem_configuration.dylib (699.1.5) &lt;9FBA1CE4-97D0-347E-A443-93ED94512E92&gt; /usr/lib/system/libsystem_configuration.dylib 0x7fff98fcf000 - 0x7fff98fd2fff com.apple.help (1.3.3 - 46) &lt;CA4541F4-CEF5-355C-8F1F-EA65DC1B400F&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help 0x7fff990a9000 - 0x7fff990bbff7 com.apple.CoreDuetDaemonProtocol (1.0 - 1) &lt;CE9FABB4-1C5D-3F9B-9BB8-5CC50C3E5E31&gt; /System/Library/PrivateFrameworks/CoreDuetDaemonProtocol.framework/Versions/A/CoreDuetDaemonProtocol 0x7fff990ff000 - 0x7fff9912fffb com.apple.GSS (4.0 - 2.0) &lt;D033E7F1-2D34-339F-A814-C67E009DE5A9&gt; /System/Library/Frameworks/GSS.framework/Versions/A/GSS 0x7fff99445000 - 0x7fff99475fff libsystem_m.dylib (3086.1) &lt;1E12AB45-6D96-36D0-A226-F24D9FB0D9D6&gt; /usr/lib/system/libsystem_m.dylib 0x7fff99476000 - 0x7fff9947afff libCoreVMClient.dylib (79) &lt;FC4E08E3-749E-32FF-B5E9-211F29864831&gt; /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClient.dylib 0x7fff9947b000 - 0x7fff994adfff libTrueTypeScaler.dylib (134) &lt;6AA9A44F-EB8B-3B31-B1A3-915D03EEBA44&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libTrueTypeScaler.dylib 0x7fff994ae000 - 0x7fff9955dfe7 libvMisc.dylib (512) &lt;AFBA45DE-7F55-3E4E-B8DF-5E8E21C407AD&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib 0x7fff9955e000 - 0x7fff99576ff7 libexpat.1.dylib (12) &lt;C5FE8836-E277-3162-9D15-6735321CB2C6&gt; /usr/lib/libexpat.1.dylib 0x7fff99577000 - 0x7fff99584ff7 libxar.1.dylib (254) &lt;CE10EFED-3066-3749-838A-6A15AC0DBCB6&gt; /usr/lib/libxar.1.dylib 0x7fff99679000 - 0x7fff996ccffb libAVFAudio.dylib (118.3) &lt;371F1478-9AA3-312A-A93A-88E349000279&gt; /System/Library/Frameworks/AVFoundation.framework/Versions/A/Resources/libAVFAudio.dylib 0x7fff996cd000 - 0x7fff996eafff libsystem_kernel.dylib (2782.1.97) &lt;93E0E0A9-75B6-3904-BB4E-4BC7C05F4B6B&gt; /usr/lib/system/libsystem_kernel.dylib 0x7fff99883000 - 0x7fff998d2ff7 libstdc++.6.dylib (104.1) &lt;803F6AC8-87DC-3E24-9E80-729B551F6FFF&gt; /usr/lib/libstdc++.6.dylib 0x7fff998d3000 - 0x7fff998edff7 com.apple.Kerberos (3.0 - 1) &lt;7760E0C2-A222-3709-B2A6-B692D900CEB1&gt; /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos 0x7fff99a7b000 - 0x7fff99ab6fff com.apple.Symbolication (1.4 - 56045) &lt;D64571B1-4483-3FE2-BD67-A91360F79727&gt; /System/Library/PrivateFrameworks/Symbolication.framework/Versions/A/Symbolication 0x7fff99ab7000 - 0x7fff99c9c267 libobjc.A.dylib (646) &lt;3B60CD90-74A2-3A5D-9686-B0772159792A&gt; /usr/lib/libobjc.A.dylib 0x7fff99c9d000 - 0x7fff99c9dfff com.apple.Accelerate.vecLib (3.10 - vecLib 3.10) &lt;01E92F9F-EF29-3745-8631-AEA692F7F29C&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib 0x7fff99d70000 - 0x7fff9a01aff7 com.apple.GeoServices (1.0 - 982.4.10) &lt;B77D4082-4FBB-3F6E-AB9F-3BBBA34C0DC3&gt; /System/Library/PrivateFrameworks/GeoServices.framework/Versions/A/GeoServices 0x7fff9a52f000 - 0x7fff9a59efff com.apple.SearchKit (1.4.0 - 1.4.0) &lt;BFD6D876-36BA-3A3B-9F15-3E2F7DE6E89D&gt; /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit 0x7fff9a5d3000 - 0x7fff9a5d7fff libsystem_stats.dylib (163.1.4) &lt;1DB04436-5974-3F16-86CC-5FF5F390339C&gt; /usr/lib/system/libsystem_stats.dylib 0x7fff9a5d8000 - 0x7fff9a5ddff7 libmacho.dylib (862) &lt;126CA2ED-DE91-308F-8881-B9DAEC3C63B6&gt; /usr/lib/system/libmacho.dylib 0x7fff9a5de000 - 0x7fff9a667fff com.apple.CoreSymbolication (3.1 - 56072) &lt;8CE81C95-49E8-389F-B989-67CC452C08D0&gt; /System/Library/PrivateFrameworks/CoreSymbolication.framework/Versions/A/CoreSymbolication 0x7fff9a668000 - 0x7fff9a7acff7 com.apple.QTKit (7.7.3 - 2890) &lt;6F6CD79F-CFBB-3FE4-82C6-47991346FB17&gt; /System/Library/Frameworks/QTKit.framework/Versions/A/QTKit 0x7fff9a7ad000 - 0x7fff9a7affff com.apple.CoreDuetDebugLogging (1.0 - 1) &lt;9A6E5710-EA99-366E-BF40-9A65EC1B46A1&gt; /System/Library/PrivateFrameworks/CoreDuetDebugLogging.framework/Versions/A/CoreDuetDebugLogging 0x7fff9aa6a000 - 0x7fff9aabefff libc++.1.dylib (120) &lt;1B9530FD-989B-3174-BB1C-BDC159501710&gt; /usr/lib/libc++.1.dylib 0x7fff9ab34000 - 0x7fff9ab80ff7 libcups.2.dylib (408) &lt;9CECCDE3-51D7-3028-830C-F58BD36E3317&gt; /usr/lib/libcups.2.dylib 0x7fff9ab81000 - 0x7fff9ab81fff com.apple.CoreServices (62 - 62) &lt;9E4577CA-3FC3-300D-AB00-87ADBDDA2E37&gt; /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices 0x7fff9ab82000 - 0x7fff9abc2ff7 libGLImage.dylib (11.0.7) &lt;7CBCEB4B-D22F-3116-8B28-D1C22D28C69D&gt; /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib 0x7fff9abc3000 - 0x7fff9abc9fff com.apple.speech.recognition.framework (5.0.9 - 5.0.9) &lt;BB2D573F-0A01-379F-A2BA-3C454EDCB111&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition 0x7fff9ae35000 - 0x7fff9ae39fff com.apple.CommonPanels (1.2.6 - 96) &lt;F9ECC8AF-D9CA-3350-AFB4-5113A9B789A5&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels 0x7fff9ae3a000 - 0x7fff9ae94ff7 com.apple.LanguageModeling (1.0 - 1) &lt;ACA93FE0-A0E3-333E-AE3C-8EB7DE5F362F&gt; /System/Library/PrivateFrameworks/LanguageModeling.framework/Versions/A/LanguageModeling 0x7fff9af27000 - 0x7fff9af27ff7 libkeymgr.dylib (28) &lt;77845842-DE70-3CC5-BD01-C3D14227CED5&gt; /usr/lib/system/libkeymgr.dylib 0x7fff9af28000 - 0x7fff9b01afff libxml2.2.dylib (26) &lt;B834E7C8-EC3E-3382-BC5A-DA38DC4D720C&gt; /usr/lib/libxml2.2.dylib 0x7fff9b023000 - 0x7fff9b02bffb com.apple.CoreServices.FSEvents (1210 - 1210) &lt;782A9C69-7A45-31A7-8960-D08A36CBD0A7&gt; /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/FSEvents 0x7fff9b046000 - 0x7fff9b061ff7 com.apple.aps.framework (4.0 - 4.0) &lt;9955CAFD-D56B-36E9-BB41-6F7F73317EB5&gt; /System/Library/PrivateFrameworks/ApplePushService.framework/Versions/A/ApplePushService 0x7fff9b0c8000 - 0x7fff9b13efe7 libcorecrypto.dylib (233.1.2) &lt;E1789801-3985-3949-B736-6B3378873301&gt; /usr/lib/system/libcorecrypto.dylib 0x7fff9b13f000 - 0x7fff9b148fff libGFXShared.dylib (11.0.7) &lt;EC449E3A-D9D2-3494-8B6C-DEB7B11EEDAB&gt; /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.dylib 0x7fff9b149000 - 0x7fff9b32eff3 libicucore.A.dylib (531.30) &lt;EF0E7544-E317-3550-A962-6AE65E78AF17&gt; /usr/lib/libicucore.A.dylib 0x7fff9b32f000 - 0x7fff9b32ffff com.apple.audio.units.AudioUnit (1.12 - 1.12) &lt;76EF1C9D-DEA4-3E55-A134-4099B2FD2CF2&gt; /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit 0x7fff9b330000 - 0x7fff9b3c5ff7 com.apple.ColorSync (4.9.0 - 4.9.0) &lt;F06733BD-A10C-3DB3-B050-825351130392&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync 0x7fff9b3c7000 - 0x7fff9b402fff com.apple.QD (301 - 301) &lt;C4D2AD03-B839-350A-AAF0-B4A08F8BED77&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD 0x7fff9b403000 - 0x7fff9b428fff libPng.dylib (1231) &lt;759DF465-B08C-3E97-9A07-3CD447F84F78&gt; /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib 0x7fff9b429000 - 0x7fff9b47aff7 com.apple.AppleVAFramework (5.0.31 - 5.0.31) &lt;762E9358-A69A-3D63-8282-3B77FBE0147E&gt; /System/Library/PrivateFrameworks/AppleVA.framework/Versions/A/AppleVA 0x7fff9b47b000 - 0x7fff9bfbcfff com.apple.AppKit (6.9 - 1343.14) &lt;7E32F178-C705-3E83-81C5-FB31D5507B3A&gt; /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit 0x7fff9bfbd000 - 0x7fff9bfd7ff7 libextension.dylib (55) &lt;17514AB2-C503-3D49-A725-EBC1140567A6&gt; /usr/lib/libextension.dylib 0x7fff9bfd8000 - 0x7fff9bfeaff7 com.apple.ImageCapture (9.0 - 9.0) &lt;7FB65DD4-56B5-35C4-862C-7A2DED991D1F&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture 0x7fff9c039000 - 0x7fff9c047ff7 com.apple.opengl (11.0.7 - 11.0.7) &lt;B5C4DF85-37BD-3984-98D1-90A5043DA984&gt; /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL 0x7fff9c0c9000 - 0x7fff9c13dff3 com.apple.securityfoundation (6.0 - 55126) &lt;E7FB7A4E-CB0B-37BA-ADD5-373B2A20A783&gt; /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation 0x7fff9c13e000 - 0x7fff9c140fff libCVMSPluginSupport.dylib (11.0.7) &lt;29D775BB-A11D-3140-A478-2A0DA1A87420&gt; /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCVMSPluginSupport.dylib 0x7fff9c141000 - 0x7fff9c143fff libRadiance.dylib (1231) &lt;BDD94A52-DE53-300C-9180-5D434272989F&gt; /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib 0x7fff9c144000 - 0x7fff9c17dfff com.apple.AirPlaySupport (2.0 - 215.10) &lt;E4159036-4C38-3F28-8AF3-4F074DAF01AC&gt; /System/Library/PrivateFrameworks/AirPlaySupport.framework/Versions/A/AirPlaySupport 0x7fff9c1e4000 - 0x7fff9c255ff7 com.apple.framework.IOKit (2.0.2 - 1050.1.21) &lt;E4139120-1631-35D0-AA76-B1F4043844BE&gt; /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit 0x7fff9c256000 - 0x7fff9c258ff7 com.apple.securityhi (9.0 - 55006) &lt;B1E09986-7AF0-3BD1-BAA1-B5514DFB7CD1&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI 0x7fff9c259000 - 0x7fff9c260ff7 libcompiler_rt.dylib (35) &lt;BF8FC133-EE10-3DA6-9B90-92039E28678F&gt; /usr/lib/system/libcompiler_rt.dylib 0x7fff9c261000 - 0x7fff9c289fff libxpc.dylib (559.1.22) &lt;9437C02E-A07B-38C8-91CB-299FAA63083D&gt; /usr/lib/system/libxpc.dylib 0x7fff9cbd0000 - 0x7fff9cbd3ff7 libdyld.dylib (353.2.1) &lt;19FAF435-C165-3374-9DEF-D7BBA7D61DB6&gt; /usr/lib/system/libdyld.dylib 0x7fff9cbd4000 - 0x7fff9cea3ff3 com.apple.CoreImage (10.0.33) &lt;6E3DDA29-718B-3BDB-BFAF-F8C201BF93A4&gt; /System/Library/Frameworks/QuartzCore.framework/Versions/A/Frameworks/CoreImage.framework/Versions/A/CoreImage 0x7fff9cea4000 - 0x7fff9cecdffb libxslt.1.dylib (13) &lt;AED1143F-B848-3E73-81ED-71356F25F084&gt; /usr/lib/libxslt.1.dylib 0x7fff9cece000 - 0x7fff9ced7ff7 libsystem_notify.dylib (133.1.1) &lt;61147800-F320-3DAA-850C-BADF33855F29&gt; /usr/lib/system/libsystem_notify.dylib 0x7fff9cf69000 - 0x7fff9cf80ff7 libLinearAlgebra.dylib (1128) &lt;E78CCBAA-A999-3B65-8EC9-06DB15E67C37&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib 0x7fff9cf99000 - 0x7fff9cfe6ff3 com.apple.CoreMediaIO (601.0 - 4749) &lt;0336FB6D-5A3D-3672-A002-B856BF569CD0&gt; /System/Library/Frameworks/CoreMediaIO.framework/Versions/A/CoreMediaIO External Modification Summary: Calls made by other processes targeting this process: task_for_pid: 61 thread_create: 0 thread_set_state: 0 Calls made by this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by all processes on this machine: task_for_pid: 64236 thread_create: 1 thread_set_state: 0 VM Region Summary: ReadOnly portion of Libraries: Total=278.0M resident=202.6M(73%) swapped_out_or_unallocated=75.4M(27%) Writable regions: Total=604.9M written=411.0M(68%) resident=421.6M(70%) swapped_out=13.2M(2%) unallocated=183.3M(30%) REGION TYPE VIRTUAL =========== ======= ATS (font support) 32.6M ATS (font support) (reserved) 8K reserved VM address space (unallocated) Activity Tracing 2048K CG shared images 144K CoreUI image data 28K Dispatch continuations 16.0M Kernel Alloc Once 8K MALLOC 156.5M MALLOC (admin) 32K Memory Tag 252 20K Memory Tag 255 772.0M STACK GUARD 56.1M Stack 36.4M VM_ALLOCATE 73.1M __DATA 21.5M __IMAGE 528K __LINKEDIT 83.1M __TEXT 194.9M __UNICODE 544K mapped file 252.8M shared memory 4K =========== ======= TOTAL 1.7G TOTAL, minus reserved VM space 1.7G </code></pre></div>
1
<p dir="auto">I have a problem to update an entity which have more than 250 fields in a form. No assert validator, and a basic template twig.</p> <p dir="auto">On PHP 5.4:<br> In SF2.1, no problem, I sumbit the form, it takes 1-2 seconds to do that.<br> In SF2.2 or 2.3, I have a "maximum execution time" error ! I try to modify the value and I found it takes about 17 minutes !!!!!</p> <p dir="auto">On PHP 5.3:<br> No problem, the form is submitted in 1-2 seconds with SF 2.1, 2.2 or 2.3</p>
<p dir="auto">Hello,</p> <p dir="auto">I upgraded to Symfony 2.3 recently an application.</p> <p dir="auto">This application has a form with 500 rows and 5 fields in each rows: 2500 fields.</p> <p dir="auto">With Symfony 2.3 and the button support feature the form takes 110 seconds (70% of the total request processing time) and this time is spent just in getValidationGroups.</p> <p dir="auto">findClickedButton is being called recursively for the whole form on each field restarting a t the root every time, at the end of the recursion, this method is called more than 6.9 Million times.<br> <a href="http://oi41.tinypic.com/rmmag6.jpg" rel="nofollow">http://oi41.tinypic.com/rmmag6.jpg</a><br> <a href="http://oi42.tinypic.com/n5my35.jpg" rel="nofollow">http://oi42.tinypic.com/n5my35.jpg</a></p> <p dir="auto">Adding a "submit" button managed by the form really improved the findClickedButton as it was being called only ~2800 times.</p> <p dir="auto">I have no idea if this is a bug or not and how can it be fixed, but i thought reading at the blogpost that managing submit buttons within the form was optional, and considering the overhead of not managing it with the form, i feel like i have to change every forms.</p> <p dir="auto">should i change all the "big enough" forms (~50 fields) to be "symfony 2.3" ready ?</p> <p dir="auto">Update:<br> Overhead is low with simple forms.<br> 22 fields leads to 770 calls to findClickedButton in 7.8 micro seconds</p>
1
<p dir="auto">... because we include <code class="notranslate">es6-shim.d.ts</code> in our transitive typings.</p>
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[X ] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[X ] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> When a dynamically injected component triggers en event (using Output and EventEmitter), it's never catched by the component that has the directive *ngComponentOutlet set,</p> <p dir="auto"><strong>Expected behavior</strong><br> The event should be catched</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;ng-container *ngFor=&quot;let dialog of dialogs&quot;&gt; &lt;ng-container (dialogActionCompleted)=&quot;onDialogActionSelected($event)&quot; *ngComponentOutlet=&quot;dialog.type&quot;&gt; &lt;/ng-container&gt; &lt;/ng-container&gt;"><pre class="notranslate"><code class="notranslate">&lt;ng-container *ngFor="let dialog of dialogs"&gt; &lt;ng-container (dialogActionCompleted)="onDialogActionSelected($event)" *ngComponentOutlet="dialog.type"&gt; &lt;/ng-container&gt; &lt;/ng-container&gt; </code></pre></div> <p dir="auto">On this code, dialogActionCompleted is never catched. In Subject.js (rxjs), this.observers array is empty (indicating that nothing is listening to the event).<br> I've tried to create a "fake component", thinking that it was related to the fact that ng-container should be a component, But I get the same behavior.</p> <p dir="auto"><strong>Please tell us about your environment:</strong><br> Windows 7, Visual Studio</p> <ul dir="auto"> <li> <p dir="auto"><strong>Angular version:</strong> 2.0.X<br> v2.4.9 + ngComponentOutlet directive included manually in the solution</p> </li> <li> <p dir="auto"><strong>Browser:</strong> [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]<br> All browsers</p> </li> <li> <p dir="auto"><strong>Language:</strong> [all | TypeScript X.X | ES6/7 | ES5]<br> Typescript 2.0</p> </li> </ul> <p dir="auto">Any workaround (even quick &amp; dirty) would be appreciated :)</p>
0
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/2175" rel="nofollow">http://projects.scipy.org/numpy/ticket/2175</a> on 2012-06-21 by trac user eyurtsev, assigned to unknown.</em></p> <p dir="auto">An error message comes up when I try to pickle the result of<br> numpy.mean on a masked array of nans.</p> <p dir="auto">I suspect that this is a bug.</p> <p dir="auto">For convenience a python file is attached with this code.</p> <hr> <p dir="auto">import pickle<br> import numpy</p> <p dir="auto">a = numpy.mean(numpy.ma.masked_invalid(numpy.nan))</p> <p dir="auto">with open('test.txt', 'wb') as f:<br> pickle.dump(a, f)</p> <p dir="auto">-------------- Error Message --------------------</p> <p dir="auto">/usr/lib/python2.7/pickle.pyc in save(self, obj)<br> 304 reduce = getattr(obj, "<strong>reduce_ex</strong>", None)<br> 305 if reduce:<br> --&gt; 306 rv = reduce(self.proto)<br> 307 else:<br> 308 reduce = getattr(obj, "<strong>reduce</strong>", None)</p> <p dir="auto">/usr/lib/python2.7/dist-packages/numpy/ma/core.pyc in <strong>reduce</strong>(self)<br> 5471 return (_mareconstruct,<br> 5472 (self.<strong>class</strong>, self._baseclass, (0,), 'b',),<br> -&gt; 5473 self.<strong>getstate</strong>())<br> 5474 #</p> <p dir="auto">5475 def <strong>deepcopy</strong>(self, memo=None):</p> <p dir="auto">/usr/lib/python2.7/dist-packages/numpy/ma/core.pyc in <strong>getstate</strong>(self)<br> 5444 getmaskarray(self).tostring(cf),<br> 5445 #getmaskarray(self).tolist(),</p> <p dir="auto">-&gt; 5446 self._fill_value,<br> 5447 )<br> 5448 return state</p> <p dir="auto">AttributeError: 'MaskedConstant' object has no attribute '_fill_value'</p>
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/2155" rel="nofollow">http://projects.scipy.org/numpy/ticket/2155</a> on 2012-06-11 by trac user r0k3, assigned to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pierregm/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pierregm">@pierregm</a>.</em></p> <p dir="auto">One gets an error while trying to pickle an object that contains a MaskedConstant.</p>
1
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=al0" rel="nofollow">Oleksandr Alesinskyy</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-2503?redirect=false" rel="nofollow">SPR-2503</a></strong> and commented</p> <p dir="auto">I have following context.xml</p> <p dir="auto">&lt;?xml version="1.0" encoding="UTF-8"?&gt;</p> <p dir="auto">&lt;beans xmlns="<a href="http://www.springframework.org/schema/beans" rel="nofollow">http://www.springframework.org/schema/beans</a>"<br> xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow">http://www.w3.org/2001/XMLSchema-instance</a>"<br> xmlns:aop="<a href="http://www.springframework.org/schema/aop" rel="nofollow">http://www.springframework.org/schema/aop</a>"<br> xmlns:tx="<a href="http://www.springframework.org/schema/tx" rel="nofollow">http://www.springframework.org/schema/tx</a>"<br> xsi:schemaLocation=<br> "<a href="http://www.springframework.org/schema/beans" rel="nofollow">http://www.springframework.org/schema/beans</a><br> <a href="http://www.springframework.org/schema/beans/spring-beans.xsd" rel="nofollow">http://www.springframework.org/schema/beans/spring-beans.xsd</a><br> <a href="http://www.springframework.org/schema/aop" rel="nofollow">http://www.springframework.org/schema/aop</a><br> <a href="http://www.springframework.org/schema/aop/spring-aop.xsd" rel="nofollow">http://www.springframework.org/schema/aop/spring-aop.xsd</a><br> <a href="http://www.springframework.org/schema/tx" rel="nofollow">http://www.springframework.org/schema/tx</a><br> <a href="http://www.springframework.org/schema/tx/spring-tx.xsd" rel="nofollow">http://www.springframework.org/schema/tx/spring-tx.xsd</a>"</p> <blockquote> <p dir="auto">&lt;tx:annotation-driven transaction-manager="txManager"/&gt;</p> <p dir="auto">&lt;!-- TOPOLOGY --&gt;</p> <p dir="auto">&lt;bean id="topologyAddressFactoryBuilder"<br> class="de.ntec.lms.impl.topology.TopologyAddressFactoryBuilder"&gt;<br> &lt;property name="delimiter" value="/"/&gt;<br> &lt;/bean&gt;<br> &lt;bean id="topologyAddressFactory"<br> factory-bean="topologyAddressFactoryBuilder"<br> factory-method="create"<br> /&gt;</p> <p dir="auto">&lt;!-- DATABASE &amp; HIBERNATE --&gt;<br> &lt;bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"&gt;</p> <blockquote> <p dir="auto">&lt;property name="driverClassName" value="org.apache.derby.jdbc.ClientDriver"/&gt;<br> &lt;property name="url" value="jdbc:derby://localhost:1527//work/lms"/&gt;<br> &lt;property name="username" value="lms"/&gt;<br> &lt;property name="password" value="secret"/&gt;</p> </blockquote> <p dir="auto">&lt;/bean&gt;<br> &lt;bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"&gt;<br> &lt;property name="dataSource" ref="dataSource"/&gt;<br> &lt;property name="mappingResources"&gt;<br> &lt;list&gt;<br> &lt;value&gt;de/ntec/lms/impl/topology/Company.hbm.xml&lt;/value&gt;<br> &lt;value&gt;de/ntec/lms/impl/topology/Site.hbm.xml&lt;/value&gt;<br> &lt;value&gt;de/ntec/lms/impl/topology/Location.hbm.xml&lt;/value&gt;<br> &lt;value&gt;de/ntec/lms/impl/topology/Rack.hbm.xml&lt;/value&gt;<br> &lt;value&gt;de/ntec/lms/impl/topology/Cell.hbm.xml&lt;/value&gt;<br> &lt;value&gt;de/ntec/lms/impl/topology/Place.hbm.xml&lt;/value&gt;<br> &lt;/list&gt;<br> &lt;/property&gt;<br> &lt;property name="hibernateProperties"&gt;<br> &lt;props&gt;<br> &lt;prop key="hibernate.dialect"&gt;org.hibernate.dialect.DerbyDialect&lt;/prop&gt;<br> &lt;/props&gt;<br> &lt;/property&gt;<br> &lt;/bean&gt;<br> &lt;bean id="txManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager"&gt;<br> &lt;property name="sessionFactory" ref="sessionFactory"/&gt;<br> &lt;/bean&gt;</p> <p dir="auto">&lt;!-- PERSISTENCE --&gt;<br> &lt;bean id="placeDao"<br> class="de.ntec.lms.impl.topology.PlaceDao" init-method="init"&gt;<br> &lt;property name="sessionFactory" ref="sessionFactory"/&gt;<br> &lt;property name="beanClass" value="de.ntec.lms.impl.topology.PlaceImpl"/&gt;<br> &lt;/bean&gt;<br> &lt;bean id="cellDao"<br> class="de.ntec.lms.impl.topology.CellDao" init-method="init"&gt;<br> &lt;property name="sessionFactory" ref="sessionFactory"/&gt;<br> &lt;property name="beanClass" value="de.ntec.lms.impl.topology.CellImpl"/&gt;<br> &lt;property name="successorDao" ref="placeDao"/&gt;<br> &lt;/bean&gt;<br> &lt;bean id="rackDao"<br> class="de.ntec.lms.impl.topology.RackDao" init-method="init"&gt;<br> &lt;property name="sessionFactory" ref="sessionFactory"/&gt;<br> &lt;property name="beanClass" value="de.ntec.lms.impl.topology.RackImpl"/&gt;<br> &lt;property name="successorDao" ref="cellDao"/&gt;<br> &lt;/bean&gt;<br> &lt;bean id="locationDao"<br> class="de.ntec.lms.impl.topology.LocationDao" init-method="init"&gt;<br> &lt;property name="sessionFactory" ref="sessionFactory"/&gt;<br> &lt;property name="beanClass" value="de.ntec.lms.impl.topology.LocationImpl"/&gt;<br> &lt;property name="successorDao" ref="rackDao"/&gt;<br> &lt;/bean&gt;<br> &lt;bean id="siteDao"<br> class="de.ntec.lms.impl.topology.SiteDao" init-method="init"&gt;<br> &lt;property name="sessionFactory" ref="sessionFactory"/&gt;<br> &lt;property name="beanClass" value="de.ntec.lms.impl.topology.SiteImpl"/&gt;<br> &lt;property name="successorDao" ref="locationDao"/&gt;<br> &lt;/bean&gt;<br> &lt;bean id="companyDao"<br> class="de.ntec.lms.impl.topology.CompanyDao" init-method="init"&gt;<br> &lt;property name="sessionFactory" ref="sessionFactory"/&gt;<br> &lt;property name="beanClass" value="de.ntec.lms.impl.topology.CompanyImpl"/&gt;<br> &lt;property name="successorDao" ref="siteDao"/&gt;<br> &lt;/bean&gt;<br> &lt;bean id="topologyService"<br> class="de.ntec.lms.impl.topology.TopologyServiceImpl" init-method="init"&gt;<br> &lt;property name="companyDao" ref="companyDao"/&gt;<br> &lt;property name="addressFactory" ref="topologyAddressFactory"/&gt;<br> &lt;/bean&gt;</p> </blockquote> <p dir="auto">&lt;/beans&gt;</p> <p dir="auto">and following log4j configuration</p> <p dir="auto">&lt;?xml version="1.0" encoding="UTF-8" ?&gt;<br> &lt;!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"&gt;</p> <p dir="auto">log4j:configuration<br> &lt;appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender"&gt;<br> &lt;layout class="org.apache.log4j.PatternLayout"&gt;</p> <p dir="auto">&lt;param name="ConversionPattern" value="%d{ISO8601} %5p %c%n %m%n"/&gt;<br> &lt;/layout&gt;<br> &lt;/appender&gt;<br> &lt;logger name="org.springframework" additivity="false"&gt;<br> &lt;level value="info"/&gt;<br> &lt;appender-ref ref="CONSOLE"/&gt;<br> &lt;/logger&gt;<br> &lt;root&gt;<br> &lt;priority value="info"/&gt;<br> &lt;appender-ref ref="CONSOLE"/&gt;<br> &lt;/root&gt;<br> &lt;/log4j:configuration&gt;</p> <p dir="auto">I start a bunch of unit tests and with this configuration all runs smoothly. As soon as change level value in "org.springframework" logger to "debug" run immediately fails with exception (see at the and of the post). Interesting thing is that if context xml does not contain &lt;tx:annotation-driven transaction-manager="txManager"/&gt;<br> tag log level does not affect behavior (even in presence of XML configuration for transactional AOP, e.g.<br> &lt;bean id="topologyServiceTarget"<br> class="de.ntec.lms.impl.topology.TopologyServiceImpl" init-method="init"&gt;<br> &lt;property name="companyDao" ref="companyDao"/&gt;<br> &lt;property name="addressFactory" ref="topologyAddressFactory"/&gt;<br> &lt;/bean&gt;</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;bean id=&quot;topologyService&quot; class=&quot;org.springframework.transaction.interceptor.TransactionProxyFactoryBean&quot;&gt; &lt;property name=&quot;transactionManager&quot; ref=&quot;txManager&quot;/&gt; &lt;property name=&quot;proxyInterfaces&quot; value=&quot;de.ntec.lms.topology.TopologyService&quot;/&gt; &lt;property name=&quot;target&quot; ref=&quot;topologyServiceTarget&quot;/&gt; &lt;property name=&quot;transactionAttributes&quot;&gt; &lt;props&gt; &lt;prop key=&quot;*&quot;&gt;PROPAGATION_REQUIRED&lt;/prop&gt; &lt;/props&gt; &lt;/property&gt; &lt;/bean&gt; "><pre class="notranslate"><code class="notranslate">&lt;bean id="topologyService" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean"&gt; &lt;property name="transactionManager" ref="txManager"/&gt; &lt;property name="proxyInterfaces" value="de.ntec.lms.topology.TopologyService"/&gt; &lt;property name="target" ref="topologyServiceTarget"/&gt; &lt;property name="transactionAttributes"&gt; &lt;props&gt; &lt;prop key="*"&gt;PROPAGATION_REQUIRED&lt;/prop&gt; &lt;/props&gt; &lt;/property&gt; &lt;/bean&gt; </code></pre></div> <p dir="auto">)</p> <p dir="auto">junit.framework.AssertionFailedError: Exception in constructor: testDummy (java.lang.ExceptionInInitializerError<br> at de.ntec.lms.TopologyTest.&lt;init&gt;(TopologyTest.java:18)<br> at de.ntec.lms.impl.topology.PlacePerformanceTest.&lt;init&gt;(PlacePerformanceTest.java:15)<br> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)<br> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)<br> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)<br> at java.lang.reflect.Constructor.newInstance(Constructor.java:494)<br> at junit.framework.TestSuite.createTest(TestSuite.java:131)<br> at junit.framework.TestSuite.addTestMethod(TestSuite.java:114)<br> at junit.framework.TestSuite.&lt;init&gt;(TestSuite.java:75)<br> at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader.getTest(JUnit3TestLoader.java:102)<br> at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader.loadTests(JUnit3TestLoader.java:59)<br> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:445)<br> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)<br> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)<br> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)<br> Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor': Instantiation of bean failed; nested exception is java.lang.NullPointerException<br> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:432)<br> at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:242)<br> at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)<br> at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:239)<br> at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:155)<br> at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:303)<br> at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:348)<br> at org.springframework.context.support.ClassPathXmlApplicationContext.&lt;init&gt;(ClassPathXmlApplicationContext.java:92)<br> at org.springframework.context.support.ClassPathXmlApplicationContext.&lt;init&gt;(ClassPathXmlApplicationContext.java:77)<br> at org.springframework.context.support.ClassPathXmlApplicationContext.&lt;init&gt;(ClassPathXmlApplicationContext.java:68)<br> at de.ntec.lms.TestContext.&lt;clinit&gt;(TestContext.java:23)<br> ... 15 more<br> Caused by: java.lang.NullPointerException<br> at org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor$TransactionAttributeSourcePointcut.getTransactionAttributeSource(TransactionAttributeSourceAdvisor.java:102)<br> at org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor$TransactionAttributeSourcePointcut.hashCode(TransactionAttributeSourceAdvisor.java:121)<br> at java.lang.Object.toString(Object.java:209)<br> at java.lang.String.valueOf(String.java:2577)<br> at java.lang.StringBuffer.append(StringBuffer.java:220)<br> at org.springframework.aop.support.AbstractPointcutAdvisor.toString(AbstractPointcutAdvisor.java:71)<br> at java.lang.String.valueOf(String.java:2577)<br> at java.lang.StringBuffer.append(StringBuffer.java:220)<br> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:383)<br> ... 25 more<br> )<br> at junit.framework.Assert.fail(Assert.java:47)<br> at junit.framework.TestSuite$1.runTest(TestSuite.java:263)<br> at junit.framework.TestCase.runBare(TestCase.java:127)<br> at junit.framework.TestResult$1.protect(TestResult.java:106)<br> at junit.framework.TestResult.runProtected(TestResult.java:124)<br> at junit.framework.TestResult.run(TestResult.java:109)<br> at junit.framework.TestCase.run(TestCase.java:118)<br> at junit.framework.TestSuite.runTest(TestSuite.java:208)<br> at junit.framework.TestSuite.run(TestSuite.java:203)<br> at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)<br> at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)<br> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)<br> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)<br> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)<br> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)</p> <hr> <p dir="auto"><strong>Affects:</strong> 2.0 RC3</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="398069268" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/7102" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/7102/hovercard" href="https://github.com/spring-projects/spring-framework/issues/7102">#7102</a> NPE with TransactionAttributeSourceAdvisor.TransactionAttributeSourcePointcut when debug enabled (<em><strong>"duplicates"</strong></em>)</li> </ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=hpaluch" rel="nofollow">Henryk Paluch</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-344?redirect=false" rel="nofollow">SPR-344</a></strong> and commented</p> <p dir="auto">There is an problem in JPetStore application.<br> When a new user attempts to registers itself on:<br> <a href="http://localhost:8080/jpetstore/shop/newAccount.do" rel="nofollow">http://localhost:8080/jpetstore/shop/newAccount.do</a><br> there is not handled the case, when entered user id already exists.<br> For example for User ID: j2ee<br> on submit error is displayed:</p> <hr> <p dir="auto">org.springframework.dao.DataIntegrityViolationException: SqlMapTemplate: Violation of unique index: PK_ACCOUNT in statement [insert into ACCOUNT (EMAIL, FIRSTNAME, LASTNAME, STATUS, ADDR1, ADDR2, CITY, STATE, ZIP, COUNTRY, PHONE, USERID) values ('asdf', 'asdf', 'asdf', 'OK', 'asdf', 'asdf', 'asdf', 'asdf', 'asdf', 'asdf', 'asdf', 'j2ee')]; nested exception is java.sql.SQLException: Violation of unique index: PK_ACCOUNT in statement [insert into ACCOUNT (EMAIL, FIRSTNAME, LASTNAME, STATUS, ADDR1, ADDR2, CITY, STATE, ZIP, COUNTRY, PHONE, USERID) values ('asdf', 'asdf', 'asdf', 'OK', 'asdf', 'asdf', 'asdf', 'asdf', 'asdf', 'asdf', 'asdf', 'j2ee')]<br> java.sql.SQLException: Violation of unique index: PK_ACCOUNT in statement [insert into ACCOUNT (EMAIL, FIRSTNAME, LASTNAME, STATUS, ADDR1, ADDR2, CITY, STATE, ZIP, COUNTRY, PHONE, USERID) values ('asdf', 'asdf', 'asdf', 'OK', 'asdf', 'asdf', 'asdf', 'asdf', 'asdf', 'asdf', 'asdf', 'j2ee')]<br> at com.ibatis.db.sqlmap.MappedStatement.executeUpdate(Unknown Source)<br> at org.springframework.orm.ibatis.SqlMapTemplate$8.doInMappedStatement(SqlMapTemplate.java:218)<br> at org.springframework.orm.ibatis.SqlMapTemplate.execute(SqlMapTemplate.java:111)<br> at org.springframework.orm.ibatis.SqlMapTemplate.executeUpdate(SqlMapTemplate.java:216)<br> at org.springframework.samples.jpetstore.dao.ibatis.SqlMapAccountDao.insertAccount(SqlMapAccountDao.java:24)<br> at org.springframework.samples.jpetstore.domain.logic.PetStoreImpl.insertAccount(PetStoreImpl.java:74)</p> <hr> <p dir="auto">Please note, that it is very common problem on user registration. It would be nice to fix this sample to have nice reference implementation. I like to provide fix, but have no idea, how to make custom errors in onSubmit() method of AccountFormController (it is not obvious how to do this).</p> <hr> <p dir="auto"><strong>Affects:</strong> 1.0.2</p>
0
<h2 dir="auto">🐛 Bug</h2> <p dir="auto">I'm using the nightly build: 1.0.0.dev20181123. This issue is very similar to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="377413314" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/13569" data-hovercard-type="issue" data-hovercard-url="/pytorch/pytorch/issues/13569/hovercard" href="https://github.com/pytorch/pytorch/issues/13569">#13569</a> . When I instantiate two nn.Embedding, with DataParallel and with max_norm=1.0, I get the following assert</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="RuntimeError: output_nr_ == 0 ASSERT FAILED at /pytorch/torch/csrc/autograd/variable.cpp:196, please report a bug to PyTorch."><pre class="notranslate"><code class="notranslate">RuntimeError: output_nr_ == 0 ASSERT FAILED at /pytorch/torch/csrc/autograd/variable.cpp:196, please report a bug to PyTorch. </code></pre></div> <p dir="auto">If I remove the self.lut_dummy, the issue disappears.</p> <h2 dir="auto">To Reproduce</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import torch import os print torch.__version__ class Moda(torch.nn.Module): def __init__(self): super(Moda, self).__init__() self.lut_dummy = torch.nn.Embedding(1, 1, max_norm=1.0).to(&quot;cuda&quot;) self.lut_a = torch.nn.Embedding(22, 256, max_norm=1.0).to(&quot;cuda&quot;) def forward(self, src): print &quot;ok1&quot; ebd = self.lut_a(src) print &quot;ok2&quot; return ebd def main(): os.environ['CUDA_VISIBLE_DEVICES'] = &quot;0,1&quot; model = Moda() model = torch.nn.DataParallel(model) src = torch.randint(4,(2,)).to(&quot;cuda&quot;) output = model(src) if __name__ == '__main__': main()"><pre class="notranslate"><code class="notranslate">import torch import os print torch.__version__ class Moda(torch.nn.Module): def __init__(self): super(Moda, self).__init__() self.lut_dummy = torch.nn.Embedding(1, 1, max_norm=1.0).to("cuda") self.lut_a = torch.nn.Embedding(22, 256, max_norm=1.0).to("cuda") def forward(self, src): print "ok1" ebd = self.lut_a(src) print "ok2" return ebd def main(): os.environ['CUDA_VISIBLE_DEVICES'] = "0,1" model = Moda() model = torch.nn.DataParallel(model) src = torch.randint(4,(2,)).to("cuda") output = model(src) if __name__ == '__main__': main() </code></pre></div> <h2 dir="auto">Output</h2> <p dir="auto">1.0.0.dev20181123<br> /home/software/LM_stash/amitoj/pytorch1.0/local/lib/python2.7/site-packages/torch/nn/parallel/data_parallel.py:25: UserWarning:<br> There is an imbalance between your GPUs. You may want to exclude GPU 0 which<br> has less than 75% of the memory or cores of GPU 1. You can do so by setting<br> the device_ids argument to DataParallel, or by setting the CUDA_VISIBLE_DEVICES<br> environment variable.<br> warnings.warn(imbalance_warn.format(device_ids[min_pos], device_ids[max_pos]))<br> ok1<br> ok1<br> ok2<br> Traceback (most recent call last):<br> File "error_train.py", line 25, in <br> main()<br> File "error_train.py", line 22, in main<br> output = model(src)<br> File "/home/software/LM_stash/amitoj/pytorch1.0/local/lib/python2.7/site-packages/torch/nn/modules/module.py", line 479, in <strong>call</strong><br> result = self.forward(*input, **kwargs)<br> File "/home/software/LM_stash/amitoj/pytorch1.0/local/lib/python2.7/site-packages/torch/nn/parallel/data_parallel.py", line 143, in forward<br> outputs = self.parallel_apply(replicas, inputs, kwargs)<br> File "/home/software/LM_stash/amitoj/pytorch1.0/local/lib/python2.7/site-packages/torch/nn/parallel/data_parallel.py", line 153, in parallel_apply<br> return parallel_apply(replicas, inputs, kwargs, self.device_ids[:len(replicas)])<br> File "/home/software/LM_stash/amitoj/pytorch1.0/local/lib/python2.7/site-packages/torch/nn/parallel/parallel_apply.py", line 83, in parallel_apply<br> raise output<br> RuntimeError: output_nr_ == 0 ASSERT FAILED at /pytorch/torch/csrc/autograd/variable.cpp:196, please report a bug to PyTorch.</p> <h2 dir="auto">Additional context</h2> <p dir="auto">Observations</p> <ol dir="auto"> <li>If I comment out the self.lut_dummy, the issue disappears. Though in my real model, I am using the <code class="notranslate">lut_dummy</code>.</li> <li>If max_norm is removed, the issue disappears again.</li> <li>If I set os.environ["CUDA_VISIBLE_DEVICES"] to "0" or "1", again, the code works just fine.</li> </ol> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ezyang/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ezyang">@ezyang</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gchanan/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gchanan">@gchanan</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ssnl/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ssnl">@ssnl</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/albanD/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/albanD">@albanD</a></p>
<h2 dir="auto"><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Bug</h2> <p dir="auto">Gradients aren't backpropagated when all three conditions are met:</p> <ol dir="auto"> <li>Use <code class="notranslate">torch.utils.checkpoint</code>.</li> <li>Place <code class="notranslate">nn.InstanceNorm?d</code> right before any in-place module such as <code class="notranslate">nn.ReLU(inplace=True)</code>.</li> <li>The checkpoint returns the result of the in-place module.</li> </ol> <h2 dir="auto">To Reproduce</h2> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import torch from torch import nn from torch.utils.checkpoint import checkpoint x = torch.ones(3, 2, 1, requires_grad=True) model = nn.Sequential( nn.InstanceNorm1d(2), nn.ReLU(inplace=True), ) y = checkpoint(model, x) y.norm().backward() print(x.grad) # Output: None # Expected: tensor([[[0.],[0.]], ...])"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">torch</span> <span class="pl-k">from</span> <span class="pl-s1">torch</span> <span class="pl-k">import</span> <span class="pl-s1">nn</span> <span class="pl-k">from</span> <span class="pl-s1">torch</span>.<span class="pl-s1">utils</span>.<span class="pl-s1">checkpoint</span> <span class="pl-k">import</span> <span class="pl-s1">checkpoint</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">ones</span>(<span class="pl-c1">3</span>, <span class="pl-c1">2</span>, <span class="pl-c1">1</span>, <span class="pl-s1">requires_grad</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">model</span> <span class="pl-c1">=</span> <span class="pl-s1">nn</span>.<span class="pl-v">Sequential</span>( <span class="pl-s1">nn</span>.<span class="pl-v">InstanceNorm1d</span>(<span class="pl-c1">2</span>), <span class="pl-s1">nn</span>.<span class="pl-v">ReLU</span>(<span class="pl-s1">inplace</span><span class="pl-c1">=</span><span class="pl-c1">True</span>), ) <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-en">checkpoint</span>(<span class="pl-s1">model</span>, <span class="pl-s1">x</span>) <span class="pl-s1">y</span>.<span class="pl-en">norm</span>().<span class="pl-en">backward</span>() <span class="pl-en">print</span>(<span class="pl-s1">x</span>.<span class="pl-s1">grad</span>) <span class="pl-c"># Output: None</span> <span class="pl-c"># Expected: tensor([[[0.],[0.]], ...])</span></pre></div> <p dir="auto"><code class="notranslate">x</code> the input tensor doesn't receive gradients. <code class="notranslate">x.grad</code> is still <code class="notranslate">None</code>, which is not expected.</p> <h2 dir="auto">Expected behavior</h2> <p dir="auto"><code class="notranslate">x.grad</code> should be <code class="notranslate">torch.zeros(3, 2, 1)</code>. If we remove any of the conditions, the gradients are backpropagated correctly:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# No in-place operation model = nn.Sequential( nn.InstanceNorm1d(2), nn.ReLU(inplace=False), ) y = checkpoint(model, x) # No checkpoint model = nn.Sequential( nn.InstanceNorm1d(2), nn.ReLU(inplace=True), ) y = model(x) # Not at the end of checkpoint model = nn.Sequential( nn.InstanceNorm1d(2), nn.ReLU(inplace=True), nn.Conv1d(2, 2, 1), ) y = checkpoint(model, x) # Other norm model = nn.Sequential( nn.BatchNorm1d(2), nn.ReLU(inplace=True), ) y = checkpoint(model, x)"><pre class="notranslate"><span class="pl-c"># No in-place operation</span> <span class="pl-s1">model</span> <span class="pl-c1">=</span> <span class="pl-s1">nn</span>.<span class="pl-v">Sequential</span>( <span class="pl-s1">nn</span>.<span class="pl-v">InstanceNorm1d</span>(<span class="pl-c1">2</span>), <span class="pl-s1">nn</span>.<span class="pl-v">ReLU</span>(<span class="pl-s1">inplace</span><span class="pl-c1">=</span><span class="pl-c1">False</span>), ) <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-en">checkpoint</span>(<span class="pl-s1">model</span>, <span class="pl-s1">x</span>) <span class="pl-c"># No checkpoint</span> <span class="pl-s1">model</span> <span class="pl-c1">=</span> <span class="pl-s1">nn</span>.<span class="pl-v">Sequential</span>( <span class="pl-s1">nn</span>.<span class="pl-v">InstanceNorm1d</span>(<span class="pl-c1">2</span>), <span class="pl-s1">nn</span>.<span class="pl-v">ReLU</span>(<span class="pl-s1">inplace</span><span class="pl-c1">=</span><span class="pl-c1">True</span>), ) <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-en">model</span>(<span class="pl-s1">x</span>) <span class="pl-c"># Not at the end of checkpoint</span> <span class="pl-s1">model</span> <span class="pl-c1">=</span> <span class="pl-s1">nn</span>.<span class="pl-v">Sequential</span>( <span class="pl-s1">nn</span>.<span class="pl-v">InstanceNorm1d</span>(<span class="pl-c1">2</span>), <span class="pl-s1">nn</span>.<span class="pl-v">ReLU</span>(<span class="pl-s1">inplace</span><span class="pl-c1">=</span><span class="pl-c1">True</span>), <span class="pl-s1">nn</span>.<span class="pl-v">Conv1d</span>(<span class="pl-c1">2</span>, <span class="pl-c1">2</span>, <span class="pl-c1">1</span>), ) <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-en">checkpoint</span>(<span class="pl-s1">model</span>, <span class="pl-s1">x</span>) <span class="pl-c"># Other norm</span> <span class="pl-s1">model</span> <span class="pl-c1">=</span> <span class="pl-s1">nn</span>.<span class="pl-v">Sequential</span>( <span class="pl-s1">nn</span>.<span class="pl-v">BatchNorm1d</span>(<span class="pl-c1">2</span>), <span class="pl-s1">nn</span>.<span class="pl-v">ReLU</span>(<span class="pl-s1">inplace</span><span class="pl-c1">=</span><span class="pl-c1">True</span>), ) <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-en">checkpoint</span>(<span class="pl-s1">model</span>, <span class="pl-s1">x</span>)</pre></div> <h2 dir="auto">Environment</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Collecting environment information... PyTorch version: 1.2.0 Is debug build: No CUDA used to build PyTorch: 10.0.130 OS: Ubuntu 18.04.2 LTS GCC version: (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0 CMake version: version 3.10.2 Python version: 3.6 Is CUDA available: Yes CUDA runtime version: 10.0.130 GPU models and configuration: GPU 0: Tesla P40 GPU 1: Tesla P40 GPU 2: Tesla P40 GPU 3: Tesla P40 GPU 4: Tesla P40 GPU 5: Tesla P40 GPU 6: Tesla P40 GPU 7: Tesla P40 Nvidia driver version: 410.104 cuDNN version: /usr/lib/x86_64-linux-gnu/libcudnn.so.7.6.2 Versions of relevant libraries: [pip3] numpy==1.16.4 [pip3] torch==1.2.0 [pip3] torchgpipe==0.0.3 [pip3] torchvision==0.4.0 [conda] blas 1.0 mkl [conda] mkl 2019.4 243 [conda] mkl-include 2019.4 243 [conda] mkl-service 2.0.2 py36h7b6447c_0 [conda] mkl_fft 1.0.12 py36ha843d7b_0 [conda] mkl_random 1.0.2 py36hd81dba3_0 [conda] torch 1.2.0 pypi_0 pypi [conda] torchgpipe 0.0.3 dev_0 &lt;develop&gt; [conda] torchvision 0.4.0 pypi_0 pypi"><pre class="notranslate"><code class="notranslate">Collecting environment information... PyTorch version: 1.2.0 Is debug build: No CUDA used to build PyTorch: 10.0.130 OS: Ubuntu 18.04.2 LTS GCC version: (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0 CMake version: version 3.10.2 Python version: 3.6 Is CUDA available: Yes CUDA runtime version: 10.0.130 GPU models and configuration: GPU 0: Tesla P40 GPU 1: Tesla P40 GPU 2: Tesla P40 GPU 3: Tesla P40 GPU 4: Tesla P40 GPU 5: Tesla P40 GPU 6: Tesla P40 GPU 7: Tesla P40 Nvidia driver version: 410.104 cuDNN version: /usr/lib/x86_64-linux-gnu/libcudnn.so.7.6.2 Versions of relevant libraries: [pip3] numpy==1.16.4 [pip3] torch==1.2.0 [pip3] torchgpipe==0.0.3 [pip3] torchvision==0.4.0 [conda] blas 1.0 mkl [conda] mkl 2019.4 243 [conda] mkl-include 2019.4 243 [conda] mkl-service 2.0.2 py36h7b6447c_0 [conda] mkl_fft 1.0.12 py36ha843d7b_0 [conda] mkl_random 1.0.2 py36hd81dba3_0 [conda] torch 1.2.0 pypi_0 pypi [conda] torchgpipe 0.0.3 dev_0 &lt;develop&gt; [conda] torchvision 0.4.0 pypi_0 pypi </code></pre></div> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ezyang/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ezyang">@ezyang</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ssnl/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ssnl">@ssnl</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/albanD/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/albanD">@albanD</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zou3519/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zou3519">@zou3519</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gqchen/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gqchen">@gqchen</a></p>
1
<p dir="auto">I have a figure that I need to compile using PGF backend because the \Game symbol is incorrect (another issue will be opened for that problem).</p> <p dir="auto">But when I do, the curves bounding the fill seem to get cropped to the visible window, which breaks the fill, as seen here:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/c30e4c2507eb41d2b9af39c3498e3c1ceff40bd238ba3cff7771d24e8b2215ca/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313835393934372f323337323436312f63616666653862362d613833612d313165332d393661312d3666626332366662646566622e6a7067"><img src="https://camo.githubusercontent.com/c30e4c2507eb41d2b9af39c3498e3c1ceff40bd238ba3cff7771d24e8b2215ca/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313835393934372f323337323436312f63616666653862362d613833612d313165332d393661312d3666626332366662646566622e6a7067" alt="ddlabeled" data-canonical-src="https://f.cloud.github.com/assets/1859947/2372461/caffe8b6-a83a-11e3-96a1-6fbc26fbdefb.jpg" style="max-width: 100%;"></a></p> <p dir="auto">When using the other backends, this behavior is not seen, for instance,<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/480383bf0f0f2202e4e70e05ca11e9bd2460ff076f6e5a7cf48e5cc8da6e9734/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313835393934372f323337323437352f65366230386637302d613833612d313165332d396561662d3866313365393838363037372e706e67"><img src="https://camo.githubusercontent.com/480383bf0f0f2202e4e70e05ca11e9bd2460ff076f6e5a7cf48e5cc8da6e9734/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313835393934372f323337323437352f65366230386637302d613833612d313165332d396561662d3866313365393838363037372e706e67" alt="ddlabeled" data-canonical-src="https://f.cloud.github.com/assets/1859947/2372475/e6b08f70-a83a-11e3-9eaf-8f13e9886077.png" style="max-width: 100%;"></a></p>
<h3 dir="auto">Problem</h3> <p dir="auto">I usually want to zoom into some specific regions of a plot. Using the "rectangle" method feels slow given that Google Maps and similar services allow zooming using the mouse wheel.</p> <h3 dir="auto">Proposed Solution</h3> <p dir="auto">There are some work-arounds available on SO and gists. But I would love to see a standard solution which simply works out of the box.</p> <h3 dir="auto">Additional context and prior art</h3> <p dir="auto"><a href="https://stackoverflow.com/questions/11551049/matplotlib-plot-zooming-with-scroll-wheel" rel="nofollow">https://stackoverflow.com/questions/11551049/matplotlib-plot-zooming-with-scroll-wheel</a></p>
0
<p dir="auto">When creating html with <code class="notranslate">df.style</code> e.g.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="df.style.apply(color_f, axis=1).render()"><pre class="notranslate"><span class="pl-s1">df</span>.<span class="pl-s1">style</span>.<span class="pl-en">apply</span>(<span class="pl-s1">color_f</span>, <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">1</span>).<span class="pl-en">render</span>()</pre></div> <p dir="auto">pandas assigns to each html cell of the table a unique css class. This means huge html are created, while it would be possible to use the same class for cell with the same style.</p> <details> <hr> <p dir="auto">commit: None<br> python: 2.7.14.final.0<br> python-bits: 64<br> OS: Linux<br> OS-release: 4.15.14-300.fc27.x86_64<br> machine: x86_64<br> processor: x86_64<br> byteorder: little<br> LC_ALL: None<br> LANG: it_IT.UTF-8<br> LOCALE: None.None</p> <p dir="auto">pandas: 0.22.0<br> pytest: 3.1.3<br> pip: 9.0.1<br> setuptools: 36.0.1<br> Cython: 0.27.3<br> numpy: 1.14.2<br> scipy: 1.0.0<br> pyarrow: None<br> xarray: None<br> IPython: 5.4.1<br> sphinx: None<br> patsy: 0.4.1<br> dateutil: 2.7.2<br> pytz: 2018.4<br> blosc: None<br> bottleneck: 1.2.1<br> tables: 3.4.2<br> numexpr: 2.6.2<br> feather: None<br> matplotlib: 2.0.2<br> openpyxl: None<br> xlrd: 1.0.0<br> xlwt: 1.1.2<br> xlsxwriter: None<br> lxml: None<br> bs4: 4.6.0<br> html5lib: 0.9999999<br> sqlalchemy: 1.1.11<br> pymysql: None<br> psycopg2: None<br> jinja2: 2.9.6<br> s3fs: None<br> fastparquet: None<br> pandas_gbq: None<br> pandas_datareader: None</p> </details>
<p dir="auto">I am working on a financial simulation (<a href="https://github.com/MartinPyka/financial_life">financial_life</a>), in which I would like to collect my timeseries data in a DataFrame during simulation. However, while looking through several posts on StackOverflow and experimenting with timeit, I noticed that appending data to a Dataframe (e.g. via append or via loc-expansion) is far more inefficient than the append-function for a simple list and then transforming everything to a dataframe, if requested. The latter one is, what I am doing now.</p> <p dir="auto">So I was wondering, whether there is any performant way of creating a DataFrame in an iterative manner?</p>
0
<p dir="auto">Describe what you were doing when the bug occurred:</p> <ol dir="auto"> <li>Go to profile tag</li> <li>Click to record</li> <li>After stop recording, click on any commits.</li> </ol> <hr> <h2 dir="auto">Please do not remove the text below this line</h2> <p dir="auto">DevTools version: 4.9.0-75726fadfd</p> <p dir="auto">Component stack: CommitFlamegraphAutoSizer@moz-extension://7ef91e4d-0a91-434a-b6fa-c2646d78406c/build/main.js:33986:50<br> div<br> div<br> div<br> SettingsModalContextController@moz-extension://7ef91e4d-0a91-434a-b6fa-c2646d78406c/build/main.js:28047:1<br> Profiler_Profiler@moz-extension://7ef91e4d-0a91-434a-b6fa-c2646d78406c/build/main.js:35614:50<br> ErrorBoundary_ErrorBoundary@moz-extension://7ef91e4d-0a91-434a-b6fa-c2646d78406c/build/main.js:29061:5<br> PortaledContent@moz-extension://7ef91e4d-0a91-434a-b6fa-c2646d78406c/build/main.js:29178:27<br> div<br> div<br> ProfilerContextController@moz-extension://7ef91e4d-0a91-434a-b6fa-c2646d78406c/build/main.js:32775:1<br> TreeContextController@moz-extension://7ef91e4d-0a91-434a-b6fa-c2646d78406c/build/main.js:24163:1<br> SettingsContextController@moz-extension://7ef91e4d-0a91-434a-b6fa-c2646d78406c/build/main.js:24652:1<br> ModalDialogContextController@moz-extension://7ef91e4d-0a91-434a-b6fa-c2646d78406c/build/main.js:29245:1<br> DevTools_DevTools@moz-extension://7ef91e4d-0a91-434a-b6fa-c2646d78406c/build/main.js:36048:1</p>
<blockquote> <p dir="auto">mergeObjectsWithNoDuplicateKeys(): Tried to merge two objects with the same key: %s</p> </blockquote> <p dir="auto">Understandably general given that this is used to merge a couple things, but the actual use case is when <code class="notranslate">getIntialState</code> or <code class="notranslate">getDefaultValue</code> (or <code class="notranslate">getChildContext</code> but shh) is used in a mixin and the component and both return an object with the same key.</p> <p dir="auto">We should make this error mention something about those methods so people have an idea of where to look instead of them coming to IRC and being (rightfully) confused.</p>
0
<p dir="auto">I came across this while trying to see the English analyzer, but I forgot to change <code class="notranslate">tokenizer</code> to <code class="notranslate">analyzer</code>.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="GET /_analyze { &quot;tokenizer&quot; : &quot;english&quot;, &quot;text&quot; : &quot;whatever&quot; }"><pre class="notranslate"><code class="notranslate">GET /_analyze { "tokenizer" : "english", "text" : "whatever" } </code></pre></div> <p dir="auto">The only error that comes out of Elasticsearch (tested on 2.2.0 and 2.1.1) is an obscure one:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2016-03-15 14:52:11,050][ERROR][transport ] [Jessica Drew] failed to handle exception for action [indices:admin/analyze[s]], handler [org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction$1@4ffecb71] java.lang.NullPointerException at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction.perform(TransportSingleShardAction.java:195) at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction.access$700(TransportSingleShardAction.java:115) at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction$1.handleException(TransportSingleShardAction.java:174) at org.elasticsearch.transport.TransportService$DirectResponseChannel.processException(TransportService.java:821) at org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:799) at org.elasticsearch.transport.TransportService$4.onFailure(TransportService.java:361) at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:39) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)"><pre class="notranslate"><code class="notranslate">[2016-03-15 14:52:11,050][ERROR][transport ] [Jessica Drew] failed to handle exception for action [indices:admin/analyze[s]], handler [org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction$1@4ffecb71] java.lang.NullPointerException at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction.perform(TransportSingleShardAction.java:195) at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction.access$700(TransportSingleShardAction.java:115) at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction$1.handleException(TransportSingleShardAction.java:174) at org.elasticsearch.transport.TransportService$DirectResponseChannel.processException(TransportService.java:821) at org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:799) at org.elasticsearch.transport.TransportService$4.onFailure(TransportService.java:361) at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:39) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) </code></pre></div> <p dir="auto">Worse still, it never actually closes the connection so the request hangs, awaiting a response (probably indicating a secondary bug in this code path).</p>
<p dir="auto">This is basically the opposite of how the histogram currently acts: fixed interval and dynamic number of buckets.</p> <p dir="auto">My use case is that I would like to build a price range style aggregation for filtering products:</p> <p dir="auto">$0 - $100<br> $101 - $200<br> $201 - $300<br> $301 - $400<br> $401 - $500</p> <p dir="auto">While you can do this with the range agg. if you know in advance the lower and upper bounds of all your prices, I can't see a way to do this dynamically based off the current query. The range agg also suffers from other shortcomings such as generating buckets that may contain no documents.</p> <p dir="auto">Ideally, I'd like to be able to specify the number of ranges / buckets I want (eg. 5) with a dynamic interval calculated by the aggregation.</p> <p dir="auto"><code class="notranslate">min_doc_count</code> could also come into affect here to ensure that either we don't generate buckets that don't contain any products (eg <code class="notranslate">min_doc_count: 0</code>) and in which case the number of buckets just becomes a maximum number of potential buckets, rather than a guaranteed amount.</p>
0
<p dir="auto">I took this example navbar from the Bootstrap docs page (<a href="http://getbootstrap.com/components/#navbar-default" rel="nofollow">http://getbootstrap.com/components/#navbar-default</a>) but I'm using an input-group instead of a form-group inside navbar-form.</p> <p dir="auto">See example: <a href="http://jsfiddle.net/kaiku/DZQjR/" rel="nofollow">http://jsfiddle.net/kaiku/DZQjR/</a></p> <p dir="auto">In Firefox 24, the search box displays at it should, but in Chrome 30 the search box expands to the full width of the navbar.</p> <p dir="auto">Setting width: auto on .input-group-btn seemed to solve the problem in Chrome and had no effect in FF, but this seems more like a hack.</p> <p dir="auto">Here's the line in question:</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/twbs/bootstrap/blob/3f87bf46e463b113760a2e45158a684825bf9d50/less/input-groups.less#L52">bootstrap/less/input-groups.less</a> </p> <p class="mb-0 color-fg-muted"> Line 52 in <a data-pjax="true" class="commit-tease-sha" href="/twbs/bootstrap/commit/3f87bf46e463b113760a2e45158a684825bf9d50">3f87bf4</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="L52" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="52"></td> <td id="LC52" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c1">width</span>: <span class="pl-c1">1<span class="pl-k">%</span></span>; </td> </tr> </tbody></table> </div> </div> <p></p>
<p dir="auto">When you have an input-group (I've only tested it with a button) inside a navbar the form doesn't align and makes the navbar height way longer.</p>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.6.6</li> <li>Operating System version: MacOS 10.14.3</li> <li>Java version: 1.8.0_171</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <p dir="auto">When I try to use RpcContext.getServerContext to pass data from provider to cusumer,if the method runs in sync mode, it works( Provider uses RpcContext.getServerContext().setAttachment to set Key-Value data,then Consumer uses RpcContext.getServerContext().getAttachment to get the Key-Value Data.). But if the method runs in async mode, it doesn't works. Consumer can't get the Key-Value by RpcContext.getServerContext().getAttachment.</p> <ol dir="auto"> <li></li> <li>xxx</li> <li>xxx</li> </ol> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">What do you expected from the above steps?</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">What actually happens?</p> <p dir="auto">If there is an exception, please attach the exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here! </code></pre></div>
<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.2</li> <li>Operating System version: Ubuntu 18.04</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <p dir="auto">Call <code class="notranslate">base642bytes(String, char[])</code> with a random <code class="notranslate">String</code> and <code class="notranslate">C64.toCharArray()</code>.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import org.apache.dubbo.common.io.Bytes; public class Testing { private static final String C64 = &quot;ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=&quot;; public static void main(String[] args) { Bytes.base642bytes(&quot;ZHViYm8=&quot;, C64.toCharArray()); } }"><pre class="notranslate"><code class="notranslate">import org.apache.dubbo.common.io.Bytes; public class Testing { private static final String C64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; public static void main(String[] args) { Bytes.base642bytes("ZHViYm8=", C64.toCharArray()); } } </code></pre></div> <h3 dir="auto">Expected Result</h3> <p dir="auto">No crash.</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">What actually happens?</p> <p dir="auto"><code class="notranslate">IndexOutOfBoundsException</code></p> <p dir="auto">Stack trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Exception in thread &quot;main&quot; java.lang.ArrayIndexOutOfBoundsException: 5 at org.apache.dubbo.common.io.Bytes.base642bytes(Bytes.java:752) at org.apache.dubbo.common.io.Bytes.base642bytes(Bytes.java:692) at Testing.main(Testing.java:8)"><pre class="notranslate"><code class="notranslate">Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 5 at org.apache.dubbo.common.io.Bytes.base642bytes(Bytes.java:752) at org.apache.dubbo.common.io.Bytes.base642bytes(Bytes.java:692) at Testing.main(Testing.java:8) </code></pre></div>
0
<h2 dir="auto">Bug Report</h2> <p dir="auto"><strong>Current Behavior</strong><br> A clear and concise description of the behavior.</p> <p dir="auto"><strong>Input Code</strong></p> <ul dir="auto"> <li>REPL or Repo link if applicable:</li> </ul> <p dir="auto"><a href="https://babeljs.io/repl#?babili=false&amp;browsers=&amp;build=&amp;builtIns=false&amp;spec=false&amp;loose=false&amp;code_lz=FACgZgrgdgxgLgSwPZRADwDQAIxYLxYgCU-AfFmiQN7BZYBuAhgE4UDctDLWAnvu5zT8ATBzrMApnAjMoWANqZe2MMQC6HAL5EQARiJA&amp;debug=false&amp;forceAllTransforms=false&amp;shippedProposals=false&amp;circleciRepo=&amp;evaluate=false&amp;fileSize=false&amp;timeTravel=false&amp;sourceType=module&amp;lineWrap=true&amp;presets=es2015%2Creact%2Cstage-2&amp;prettier=false&amp;targets=&amp;version=6.26.0&amp;envVersion=" rel="nofollow">https://babeljs.io/repl#?babili=false&amp;browsers=&amp;build=&amp;builtIns=false&amp;spec=false&amp;loose=false&amp;code_lz=FACgZgrgdgxgLgSwPZRADwDQAIxYLxYgCU-AfFmiQN7BZYBuAhgE4UDctDLWAnvu5zT8ATBzrMApnAjMoWANqZe2MMQC6HAL5EQARiJA&amp;debug=false&amp;forceAllTransforms=false&amp;shippedProposals=false&amp;circleciRepo=&amp;evaluate=false&amp;fileSize=false&amp;timeTravel=false&amp;sourceType=module&amp;lineWrap=true&amp;presets=es2015%2Creact%2Cstage-2&amp;prettier=false&amp;targets=&amp;version=6.26.0&amp;envVersion=</a></p> <p dir="auto"><strong>Expected behavior/code</strong><br> A clear and concise description of what you expected to happen (or code).</p> <p dir="auto">chrome69 &amp;FF61 [2, 1, 1]<br> babel [2,1,2]</p> <p dir="auto"><strong>Babel Configuration (.babelrc, package.json, cli command)</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;your&quot;: { &quot;config&quot;: &quot;here&quot; } }"><pre class="notranslate"><span class="pl-kos">{</span> <span class="pl-s">"your"</span>: <span class="pl-kos">{</span> <span class="pl-s">"config"</span>: <span class="pl-s">"here"</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): [e.g. v6.0.0, v7.0.0-beta.34]</li> <li>Node/npm version: [e.g. Node 8/npm 5]</li> <li>OS: [e.g. OSX 10.13.4, Windows 10]</li> <li>Monorepo [e.g. yes/no/Lerna]</li> <li>How you are using Babel: [e.g. <code class="notranslate">cli</code>, <code class="notranslate">register</code>, <code class="notranslate">loader</code>]</li> </ul> <p dir="auto"><strong>Possible Solution</strong></p> <p dir="auto"><strong>Additional context/Screenshots</strong><br> Add any other context about the problem here. If applicable, add screenshots to help explain.</p>
<p dir="auto">The following snippet:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="(function(x, f = () =&gt; x) { var x; var y = x; x = 2; return [x, y, f()]; })(1)"><pre class="notranslate"><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">x</span><span class="pl-kos">,</span> <span class="pl-s1">f</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-s1">x</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">x</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">x</span><span class="pl-kos">;</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-k">return</span> <span class="pl-kos">[</span><span class="pl-s1">x</span><span class="pl-kos">,</span> <span class="pl-s1">y</span><span class="pl-kos">,</span> <span class="pl-s1">f</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-c1">1</span><span class="pl-kos">)</span></pre></div> <p dir="auto">gives <code class="notranslate">[2, null, 1]</code> in Babel. Aside from <code class="notranslate">x</code> shadowing behavior (and what <code class="notranslate">f</code> should resolve to — 1 or 2 (which Babel and FF disagree on)), <code class="notranslate">y</code> definitely shouldn't be <code class="notranslate">null</code> here (as far as I can tell), so this looks like a bug?</p>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> win <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/alexandrudima/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/alexandrudima">@alexandrudima</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> os x <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/weinand/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/weinand">@weinand</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> linux <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/isidorn/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/isidorn">@isidorn</a></li> </ul> <p dir="auto">General information about salsa can be found in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="106431620" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/4789" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/4789/hovercard" href="https://github.com/microsoft/TypeScript/issues/4789">microsoft/TypeScript#4789</a>.<br> Information about what will be new in <a href="https://github.com/Microsoft/TypeScript-wiki/blob/editing-1.8/What's-new-in-TypeScript.md">TS 1.8</a>.</p> <h2 dir="auto">Differences between Salsa and the current JS language service</h2> <p dir="auto">These are the differences as we currently understand them.</p> <ul dir="auto"> <li>The JS source level is always ES6 when using Salsa, the <code class="notranslate">target</code> attribute inside <code class="notranslate">jsconfig.json</code> file defines the target for down level compilation.</li> <li>Salsa doesn't support the linting options that we had as <code class="notranslate">javascript.validate.lint.*</code> (In TS 1.8 TS will support detecting unreachable code and implicit returns). The <code class="notranslate">javascript.validate.lint.*</code> options are no longer supported. The recommendation is to install the <a href="https://marketplace.visualstudio.com/items/dbaeumer.vscode-eslint" rel="nofollow">eslint extension</a> if you want to get linting.</li> <li>The current JS support implicitly excludes the following folders from the project: .git, node_modules, bower_components, jspm_packages,tmp, and temp. With Salsa you have to exclude them explicitly using the <code class="notranslate">excludes</code> property in the jsconfig.json file (waiting for confirmation from the Salsa team).</li> <li>Salsa doesn't support the AMD module system.</li> <li>It didn't make it into TS 1.8, but Salsa plans to acquire .d.ts automatically for the user.</li> </ul> <h2 dir="auto">Enabling Salsa</h2> <ul dir="auto"> <li>Set the environment variable <code class="notranslate">CODE_TSJS</code>. On OS X it is recommended to change this in the <code class="notranslate">.bash_profile</code> using <code class="notranslate">export CODE_TSJS=1</code>, then the environment variable isn't "lost".</li> <li><em>until Code isn't on TypeScript 1.8beta</em> set <code class="notranslate">typescript.tsdk</code> to point to the path of the lib folder of the <code class="notranslate">typescript</code> module installed with <code class="notranslate">npm install typescript@next</code>. Alternatively, you can also install a typescript@next version inside your test work space directly.</li> </ul> <h2 dir="auto">Testing the Salsa enablement</h2> <ul dir="auto"> <li>Verify that when Salsa is enabled you get a salsa status indicator when editing JS files in the bottom right corner. The used TypeScript installation is shown in the hover.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/172399/12555169/1e9d5a8c-c380-11e5-9252-7440fa50b9c2.png"><img src="https://cloud.githubusercontent.com/assets/172399/12555169/1e9d5a8c-c380-11e5-9252-7440fa50b9c2.png" alt="salsa" style="max-width: 100%;"></a></li> <li>Verify that when <code class="notranslate">CODE_TSJS</code> is set but the used Typescript version is not <code class="notranslate">typescript@next</code> the salsa status indicator shows an error state.</li> </ul> <h2 dir="auto">Testing Code's JavaScript support powered by Salsa</h2> <p dir="auto">See also <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="106431972" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/4793" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/4793/hovercard" href="https://github.com/microsoft/TypeScript/issues/4793">microsoft/TypeScript#4793</a> for information related to the expected developer experience.</p> <p dir="auto">Test the Code features below in an exploratory style for the features described below.</p> <ul dir="auto"> <li>Hovers (simple, definition <kbd>CMD</kbd>)</li> <li>Mark occurrences</li> <li>Intellisense</li> <li>Parameter hints, signature help</li> <li>Go to definition</li> <li>Rename symbol</li> <li>Format on type (enabled using <code class="notranslate">editor.formatOnType:true</code>)</li> <li>Format Document</li> <li>Format Selection/Range</li> <li>Quick outline (<kbd>CMD+SHIFT+O</kbd>)</li> <li>Show all symbols (<kbd>CMD+T</kbd>)</li> <li>Validation - Salsa flags syntax errors and type errors like duplicate identifiers. Salsa doesn't perform linting.</li> </ul> <h3 dir="auto">Project setup support</h3> <p dir="auto">Salsa supports a <code class="notranslate">jsconfig.json</code> configuration file. It also supports <code class="notranslate">tsconfig.json</code>, to enable JavaScript for the project using a <code class="notranslate">tsconfig.json</code> you have to set <code class="notranslate">allowJs: true</code>. This enables to open up existing TS projects for JS.</p> <ul dir="auto"> <li>Verify that salsa works without a <code class="notranslate">jsconfig.json</code> (the module property is not defined in this case)</li> <li>Verify that salsa works with a <code class="notranslate">jsconfig.json</code> (the <code class="notranslate">module</code> property defaults to <code class="notranslate">commonjs</code>).</li> </ul> <h3 dir="auto">Intellisense support:</h3> <p dir="auto">Salsa shows first the list of inferred proposals first and then all global identifiers found in the project.</p> <ul dir="auto"> <li>verify that the inferred proposals are visually distinct from the global identifiers.</li> </ul> <h3 dir="auto">Modules, cross file dependencies</h3> <p dir="auto">Salsa support commonjs modules and dependencies expressed using /// references</p> <ul dir="auto"> <li>Verify that salsa supports commonjs modules</li> <li>Verify that Salsa supports /// references</li> </ul> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/// &lt;reference path=&quot;ref.js&quot; /&gt;"><pre class="notranslate"><span class="pl-c">/// &lt;reference path="ref.js" /&gt;</span></pre></div> <ul dir="auto"> <li>Verify that Intellisense works across files/modules</li> <li>Verify that goto definition works across files/modules</li> <li>Verify that the rename refactoring works across files/modules</li> <li>Verify that reference searching works across files/modules</li> </ul> <h3 dir="auto">Typings/.d.ts files</h3> <p dir="auto">Salsa understands .d.ts files that installed inside the project and that are part of the project context.</p> <ul dir="auto"> <li>Verify that .d.ts files installed with <code class="notranslate">tsd</code> works</li> <li>Verify that .d.ts files bundled with node modules work.</li> </ul> <h3 dir="auto">Classes</h3> <p dir="auto">Salsa supports ES3 and ES6 style classes</p> <ul dir="auto"> <li>Verify that Salsa supports Intellisense for ES3 style classes and their properties and methods.</li> </ul> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function Person(name, age) { this.name = name; } Person.prototype.getName = function getName() { return this.name; };"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-v">Person</span><span class="pl-kos">(</span><span class="pl-s1">name</span><span class="pl-kos">,</span> <span class="pl-s1">age</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">name</span> <span class="pl-c1">=</span> <span class="pl-s1">name</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-v">Person</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">.</span><span class="pl-en">getName</span> <span class="pl-c1">=</span> <span class="pl-k">function</span> <span class="pl-en">getName</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">name</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div> <ul dir="auto"> <li>Verify that Salsa supports Intellisense for ES6 style classes and their properties and methods.</li> </ul> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Book { constructor(title) { this.title = title; } get title() { return this.title; } }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">Book</span> <span class="pl-kos">{</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-s1">title</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">title</span> <span class="pl-c1">=</span> <span class="pl-s1">title</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">get</span> <span class="pl-en">title</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">title</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <h3 dir="auto">JSDoc support</h3> <p dir="auto">Salsa supports JSDoc.</p> <ul dir="auto"> <li>Verify that the JSDoc information is honoured for Intellisense, parameter hints.</li> </ul> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/** * A person * @constructor * @param {string} name - The name of the person. * @param {number} age - The age of the person. */ function Person(name, age) { this.name = name; this.age = age; }"><pre class="notranslate"><span class="pl-c">/**</span> <span class="pl-c"> * A person</span> <span class="pl-c"> * <span class="pl-k">@constructor</span></span> <span class="pl-c"> * <span class="pl-k">@param</span> {<span class="pl-smi">string</span>} name - The name of the person.</span> <span class="pl-c"> * <span class="pl-k">@param</span> {<span class="pl-smi">number</span>} age - The age of the person.</span> <span class="pl-c"> */</span> <span class="pl-k">function</span> <span class="pl-v">Person</span><span class="pl-kos">(</span><span class="pl-s1">name</span><span class="pl-kos">,</span> <span class="pl-s1">age</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">name</span> <span class="pl-c1">=</span> <span class="pl-s1">name</span><span class="pl-kos">;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">age</span> <span class="pl-c1">=</span> <span class="pl-s1">age</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <h3 dir="auto">Settings</h3> <p dir="auto">Salsa doesn't support the existing <code class="notranslate">javascript.validate.lint.*</code> settings.</p> <ul dir="auto"> <li>Verify that are should no longer shown to user when Salsa is active.</li> </ul> <h3 dir="auto">React/JSX</h3> <p dir="auto">Salsa supports JSX. To get Intellisense for React install the typings for <code class="notranslate">react-global</code> using <code class="notranslate">tsd install react-global</code>.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var CommentBox = React.createClass({ render: function() { return ( &lt;div className=&quot;commentBox&quot;&gt; Hello, world! I am a CommentBox. &lt;/div&gt; ); } }); ReactDOM.render( &lt;CommentBox /&gt;, document.getElementById('content') );"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-v">CommentBox</span> <span class="pl-c1">=</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-en">createClass</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-en">render</span>: <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-kos">(</span> <span class="pl-c1">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">className</span><span class="pl-c1">=</span><span class="pl-s">"commentBox"</span><span class="pl-c1">&gt;</span> Hello, world! I am a CommentBox. <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-v">ReactDOM</span><span class="pl-kos">.</span><span class="pl-en">render</span><span class="pl-kos">(</span> <span class="pl-c1">&lt;</span><span class="pl-v">CommentBox</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span><span class="pl-kos">,</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-en">getElementById</span><span class="pl-kos">(</span><span class="pl-s">'content'</span><span class="pl-kos">)</span> <span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <ul dir="auto"> <li>Verify that you get Intellisense inside the JSX constructs.</li> </ul> <p dir="auto"><code class="notranslate">tsc</code> supports to translate <code class="notranslate">.jsx</code> files to .js files by defining the <code class="notranslate">jsx</code> property inside the jsconfig.json (<g-emoji class="g-emoji" alias="warning" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/26a0.png">⚠️</g-emoji> currently tsc only honours <code class="notranslate">tsconfig.json</code> files).</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &quot;jsx&quot;: &quot;react&quot;,"><pre class="notranslate"> <span class="pl-s">"jsx"</span>: <span class="pl-s">"react"</span><span class="pl-kos">,</span></pre></div> <ul dir="auto"> <li>Verify that you can translate .jsx files</li> </ul> <h3 dir="auto">ReactNative</h3> <p dir="auto"><g-emoji class="g-emoji" alias="warning" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/26a0.png">⚠️</g-emoji> Not yet supported in <code class="notranslate">1.8.0-dev.20160125</code><br> Salsa supports ReactNative, where the JSX constructs are used inside normal .js files.</p> <ul dir="auto"> <li>Verify that you do not get syntax errors inside .js file when using .jsx constructs.</li> <li>Verify that you get Intellisense inside JSX constructs.</li> </ul> <h3 dir="auto">Down level compilation</h3> <p dir="auto">Salsa supports to down compile ES6 to ES5, ES3, etc. You can define the <code class="notranslate">target</code> and <code class="notranslate">outDir</code> attribute inside the jsconfig.json. <g-emoji class="g-emoji" alias="warning" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/26a0.png">⚠️</g-emoji> currently only supported inside a <code class="notranslate">tsconfig.json</code> that includes <code class="notranslate">allowJs:true</code>. As a workaround you can use <code class="notranslate">tsc -p jsconfig.json</code>.</p>
0
<p dir="auto"><strong>TypeScript Version:</strong> 1.8.10</p> <p dir="auto"><strong>Code</strong></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export default new class Foo { @someDecorator someMethod() {} }"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-k">new</span> <span class="pl-k">class</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span> @<span class="pl-s1">someDecorator</span> <span class="pl-en">someMethod</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">Will result in an error on <code class="notranslate">@someDecorator</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error TS1206: Decorators are not valid here."><pre class="notranslate"><code class="notranslate">error TS1206: Decorators are not valid here. </code></pre></div> <hr> <p dir="auto">It can be worked around via</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Foo { @someDecorator someMethod() {} } export default new Foo();"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span> @<span class="pl-s1">someDecorator</span> <span class="pl-en">someMethod</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-k">new</span> <span class="pl-smi">Foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Not sure if this is by design or not, but the following gives a compile error of "Decorators are not valid here" with TypeScript 1.8:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let testClass = new class { testMethod(@myDecorator date: Date): any { return date; } }();"><pre class="notranslate"><span class="pl-k">let</span> <span class="pl-s1">testClass</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-k">class</span> <span class="pl-kos">{</span> <span class="pl-en">testMethod</span><span class="pl-kos">(</span>@<span class="pl-s1">myDecorator</span> <span class="pl-s1">date</span>: <span class="pl-smi">Date</span><span class="pl-kos">)</span>: <span class="pl-smi">any</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">date</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
1
<p dir="auto">np.argsort([7,4,5])</p> <blockquote> <p dir="auto">array([1, 2, 0])</p> </blockquote> <p dir="auto">Expected behaviour should be array([2,0,1])</p>
<p dir="auto">The argsort function seems to be broken. Looking at the code provided, the argsort for rows [0, 1] is correct but it's messed up for rows [2, 3].<br> I tested this on different NumPy installations and versions 1.11.0 and 1.12.0</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np vec = np.array([ [-1.4, -1.2, 1.3], [-3.6, 3.9, -3.7], [-2.3, 1.5, -2. ], [-2.6, 2.4, -1.6] ]) In [1]: np.argsort(-vec, axis=1) Out[1]: array([[2, 1, 0], [1, 0, 2], [1, 2, 0], [1, 2, 0]])"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-s1">vec</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([ [<span class="pl-c1">-</span><span class="pl-c1">1.4</span>, <span class="pl-c1">-</span><span class="pl-c1">1.2</span>, <span class="pl-c1">1.3</span>], [<span class="pl-c1">-</span><span class="pl-c1">3.6</span>, <span class="pl-c1">3.9</span>, <span class="pl-c1">-</span><span class="pl-c1">3.7</span>], [<span class="pl-c1">-</span><span class="pl-c1">2.3</span>, <span class="pl-c1">1.5</span>, <span class="pl-c1">-</span><span class="pl-c1">2.</span> ], [<span class="pl-c1">-</span><span class="pl-c1">2.6</span>, <span class="pl-c1">2.4</span>, <span class="pl-c1">-</span><span class="pl-c1">1.6</span>] ]) <span class="pl-v">In</span> [<span class="pl-c1">1</span>]: <span class="pl-s1">np</span>.<span class="pl-en">argsort</span>(<span class="pl-c1">-</span><span class="pl-s1">vec</span>, <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">1</span>) <span class="pl-v">Out</span>[<span class="pl-c1">1</span>]: <span class="pl-en">array</span>([[<span class="pl-c1">2</span>, <span class="pl-c1">1</span>, <span class="pl-c1">0</span>], [<span class="pl-c1">1</span>, <span class="pl-c1">0</span>, <span class="pl-c1">2</span>], [<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">0</span>], [<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">0</span>]])</pre></div>
1
<p dir="auto">zoom rectangle can't work in 3d</p>
<p dir="auto">Chances are, this will probably fall on me to address, but I am documenting it here in case someone else realizes the issue.</p> <p dir="auto">When creating 3d axes in the old manner (ie, ax = Axes3D(fig)), the panning and zooming features are completely useless and often produces incomprehensible results. Axes created in the newer manner (ie, ax = fig.gca(projection='3d')) has somewhat better behavior, but still quite useless.</p> <p dir="auto">While pan and zoom has never really been properly supported in mplot3d, the current behavior is significantly worse than before. I suspect that there might be some interactions with a variety of changes. First, there were some changes to figure object itself, which may have not been properly tested with non-subplotted axes (which would explain differences in behavior between the old style and new style). Second, I suspect that some changes to the clipping logic for Agg might be causing some of the issues with zooming and panning.</p> <p dir="auto">I think I will temporarily address this issue by disabling pan and zoom for Axes3D objects. I also want to make the Home button capable of returning the figure view back to normal. It does not appear to do this right now.</p>
1
<p dir="auto">If you know how to fix the issue, make a pull request instead.</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/jbaldwin/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jbaldwin">@jbaldwin</a> @DefinitlyTyped</li> </ul> </li> </ul> <p dir="auto">I'm currently getting the following errors when using @types/node and @types/requirejs simultaneously:</p> <p dir="auto"><code class="notranslate">ERROR in C:/xampp/htdocs/webpack_test-1/node_modules/@types/node/module.d.ts(57,14): TS2300: Duplicate identifier 'mod'. ERROR in C:/xampp/htdocs/webpack_test-1/node_modules/@types/requirejs/index.d.ts(38,11): TS2300: Duplicate identifier 'mod'. ERROR in C:/xampp/htdocs/webpack_test-1/node_modules/@types/requirejs/index.d.ts(422,13): TS2403: Subsequent variable declarations must have the same type. Variable 'require' must be of type 'NodeRequire', but here has type 'Require'.</code></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/sequelize</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/samuelneff/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/samuelneff">@samuelneff</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/CodeAnimal/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/CodeAnimal">@CodeAnimal</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/drinchev/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/drinchev">@drinchev</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/babolivier/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/babolivier">@babolivier</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/kukoo1/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/kukoo1">@kukoo1</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/oktapodia/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/oktapodia">@oktapodia</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/MorpheusXAUT/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/MorpheusXAUT">@MorpheusXAUT</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/TitaneBoy/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/TitaneBoy">@TitaneBoy</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zjy01/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zjy01">@zjy01</a> @nidzov <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Raigen/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Raigen">@Raigen</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/todd/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/todd">@todd</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nrschultz/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nrschultz">@nrschultz</a></li> </ul> </li> </ul> <p dir="auto">A new property duplicating (boolean) is added on include when quering.<br> when false the join can only produce one row per parent row.</p> <p dir="auto">Can this property be added in the IncludeOptions</p>
0
<p dir="auto">The below was reported by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/HDembinski/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/HDembinski">@HDembinski</a> in a comment on <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1118594735" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/15489" data-hovercard-type="issue" data-hovercard-url="/scipy/scipy/issues/15489/hovercard" href="https://github.com/scipy/scipy/issues/15489">gh-15489</a>. That should be considered a bug if it's indeed not matching, so this should be looked at.</p> <blockquote> <p dir="auto"><code class="notranslate">python dev.py</code> lint should also run<code class="notranslate">flake8</code>, but for the PEP8 part should be the same. Can you point to a branch where you see one failing but the other passing?</p> </blockquote> <p dir="auto">Sorry, I don't have a clean reproducer, but I think this patch here<br> <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/scipy/scipy/commit/0545e5e0c3e6601e584e3afda88a8df0cec74795/hovercard" href="https://github.com/scipy/scipy/commit/0545e5e0c3e6601e584e3afda88a8df0cec74795"><tt>0545e5e</tt></a><br> was a change that I made after <code class="notranslate">python dev.py lint</code> gave me no complains (about my new code), but <code class="notranslate">python tools/lint_diff.py</code> run by the CI job found those issues. I haven't looked into the implementation, but these two commands apparently do not apply the same rules.</p>
<h3 dir="auto">Describe your issue.</h3> <p dir="auto">Currently there are two ways to lint changes locally. <code class="notranslate">tools/lint_diff.py</code> behaves as expected (and is what is ran in the CI job) whereas <code class="notranslate">dev.py lint</code> picks up lots up unrelated changes.</p> <h3 dir="auto">Reproducing Code Example</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="N/A"><pre class="notranslate"><span class="pl-v">N</span><span class="pl-c1">/</span><span class="pl-v">A</span></pre></div> <h3 dir="auto">Error message</h3> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="(scipy-dev) python tools/lint_diff.py No lint errors found. (scipy-dev) python dev.py lint scipy/interpolate/tests/test_interpolate.py:539:19: E275 missing whitespace after keyword scipy/spatial/tests/test_distance.py:2082:15: E275 missing whitespace after keyword scipy/stats/_continuous_distns.py:697:15: E275 missing whitespace after keyword scipy/stats/_continuous_distns.py:4424:15: E275 missing whitespace after keyword scipy/stats/_discrete_distns.py:371:15: E275 missing whitespace after keyword scipy/stats/_binned_statistic.py:570:7: E275 missing whitespace after keyword scipy/stats/_binned_statistic.py:676:7: E275 missing whitespace after keyword scipy/stats/tests/test_resampling.py:867:15: E275 missing whitespace after keyword scipy/stats/tests/test_discrete_distns.py:475:15: E275 missing whitespace after keyword scipy/stats/tests/test_axis_nan_policy.py:918:11: E275 missing whitespace after keyword scipy/stats/tests/test_axis_nan_policy.py:919:11: E275 missing whitespace after keyword scipy/stats/tests/test_axis_nan_policy.py:920:11: E275 missing whitespace after keyword scipy/stats/tests/test_stats.py:4696:15: E275 missing whitespace after keyword scipy/stats/tests/test_stats.py:4697:15: E275 missing whitespace after keyword scipy/stats/tests/test_stats.py:4698:15: E275 missing whitespace after keyword scipy/stats/tests/test_stats.py:4815:19: E275 missing whitespace after keyword scipy/stats/tests/test_stats.py:4816:19: E275 missing whitespace after keyword scipy/stats/tests/test_hypotests.py:472:15: E275 missing whitespace after keyword scipy/stats/tests/test_hypotests.py:473:15: E275 missing whitespace after keyword scipy/stats/tests/test_hypotests.py:479:15: E275 missing whitespace after keyword scipy/stats/tests/test_hypotests.py:483:15: E275 missing whitespace after keyword scipy/stats/tests/test_hypotests.py:484:15: E275 missing whitespace after keyword scipy/stats/tests/test_sampling.py:404:19: E275 missing whitespace after keyword scipy/stats/tests/test_sampling.py:1125:19: E275 missing whitespace after keyword scipy/signal/_filter_design.py:2344:15: E275 missing whitespace after keyword scipy/signal/_peak_finding.py:64:7: E275 missing whitespace after keyword scipy/signal/_peak_finding.py:77:11: E275 missing whitespace after keyword scipy/signal/_peak_finding.py:1062:7: E275 missing whitespace after keyword scipy/signal/_peak_finding.py:1069:7: E275 missing whitespace after keyword scipy/signal/_peak_finding.py:1099:15: E275 missing whitespace after keyword scipy/signal/_peak_finding.py:1104:15: E275 missing whitespace after keyword scipy/signal/tests/test_signaltools.py:1293:15: E275 missing whitespace after keyword scipy/signal/tests/test_signaltools.py:1301:15: E275 missing whitespace after keyword scipy/sparse/csgraph/tests/test_shortest_path.py:196:14: E275 missing whitespace after keyword scipy/sparse/csgraph/tests/test_shortest_path.py:197:19: E275 missing whitespace after keyword scipy/sparse/linalg/_eigen/lobpcg/tests/test_lobpcg.py:268:11: E275 missing whitespace after keyword scipy/optimize/_linprog_util.py:305:15: E275 missing whitespace after keyword scipy/optimize/_linprog_util.py:344:15: E275 missing whitespace after keyword scipy/optimize/_linprog_util.py:383:15: E275 missing whitespace after keyword scipy/optimize/_remove_redundancy.py:88:11: E275 missing whitespace after keyword scipy/optimize/_dual_annealing.py:204:27: E275 missing whitespace after keyword scipy/optimize/_dual_annealing.py:672:10: E275 missing whitespace after keyword scipy/optimize/_linprog_ip.py:263:14: E275 missing whitespace after keyword scipy/optimize/tests/test_zeros.py:426:23: E275 missing whitespace after keyword scipy/optimize/tests/test_zeros.py:693:11: E275 missing whitespace after keyword scipy/optimize/tests/test_zeros.py:697:11: E275 missing whitespace after keyword scipy/optimize/tests/test_zeros.py:716:11: E275 missing whitespace after keyword scipy/optimize/tests/test__differential_evolution.py:483:19: E275 missing whitespace after keyword scipy/optimize/tests/test_differentiable_functions.py:145:15: E275 missing whitespace after keyword scipy/optimize/tests/test_differentiable_functions.py:155:15: E275 missing whitespace after keyword scipy/optimize/tests/test_differentiable_functions.py:158:15: E275 missing whitespace after keyword scipy/io/arff/_arffread.py:189:11: E275 missing whitespace after keyword scipy/integrate/_odepack_py.py:235:11: E275 missing whitespace after keyword scipy/integrate/tests/test_quadpack.py:640:15: E275 missing whitespace after keyword scipy/special/_basic.py:1784:11: E275 missing whitespace after keyword scipy/linalg/_matfuncs.py:872:11: E275 missing whitespace after keyword scipy/linalg/tests/test_lapack.py:1470:19: E275 missing whitespace after keyword scipy/linalg/tests/test_lapack.py:1494:27: E275 missing whitespace after keyword scipy/linalg/tests/test_lapack.py:1511:31: E275 missing whitespace after keyword scipy/linalg/tests/test_lapack.py:1537:23: E275 missing whitespace after keyword scipy/linalg/tests/test_lapack.py:1573:31: E275 missing whitespace after keyword scipy/linalg/tests/test_lapack.py:1593:35: E275 missing whitespace after keyword scipy/linalg/tests/test_decomp.py:2334:23: E275 missing whitespace after keyword"><pre class="notranslate">(scipy-dev) python tools/lint_diff.py No lint errors found. (scipy-dev) python dev.py lint scipy/interpolate/tests/test_interpolate.py:539:19: E275 missing whitespace after keyword scipy/spatial/tests/test_distance.py:2082:15: E275 missing whitespace after keyword scipy/stats/_continuous_distns.py:697:15: E275 missing whitespace after keyword scipy/stats/_continuous_distns.py:4424:15: E275 missing whitespace after keyword scipy/stats/_discrete_distns.py:371:15: E275 missing whitespace after keyword scipy/stats/_binned_statistic.py:570:7: E275 missing whitespace after keyword scipy/stats/_binned_statistic.py:676:7: E275 missing whitespace after keyword scipy/stats/tests/test_resampling.py:867:15: E275 missing whitespace after keyword scipy/stats/tests/test_discrete_distns.py:475:15: E275 missing whitespace after keyword scipy/stats/tests/test_axis_nan_policy.py:918:11: E275 missing whitespace after keyword scipy/stats/tests/test_axis_nan_policy.py:919:11: E275 missing whitespace after keyword scipy/stats/tests/test_axis_nan_policy.py:920:11: E275 missing whitespace after keyword scipy/stats/tests/test_stats.py:4696:15: E275 missing whitespace after keyword scipy/stats/tests/test_stats.py:4697:15: E275 missing whitespace after keyword scipy/stats/tests/test_stats.py:4698:15: E275 missing whitespace after keyword scipy/stats/tests/test_stats.py:4815:19: E275 missing whitespace after keyword scipy/stats/tests/test_stats.py:4816:19: E275 missing whitespace after keyword scipy/stats/tests/test_hypotests.py:472:15: E275 missing whitespace after keyword scipy/stats/tests/test_hypotests.py:473:15: E275 missing whitespace after keyword scipy/stats/tests/test_hypotests.py:479:15: E275 missing whitespace after keyword scipy/stats/tests/test_hypotests.py:483:15: E275 missing whitespace after keyword scipy/stats/tests/test_hypotests.py:484:15: E275 missing whitespace after keyword scipy/stats/tests/test_sampling.py:404:19: E275 missing whitespace after keyword scipy/stats/tests/test_sampling.py:1125:19: E275 missing whitespace after keyword scipy/signal/_filter_design.py:2344:15: E275 missing whitespace after keyword scipy/signal/_peak_finding.py:64:7: E275 missing whitespace after keyword scipy/signal/_peak_finding.py:77:11: E275 missing whitespace after keyword scipy/signal/_peak_finding.py:1062:7: E275 missing whitespace after keyword scipy/signal/_peak_finding.py:1069:7: E275 missing whitespace after keyword scipy/signal/_peak_finding.py:1099:15: E275 missing whitespace after keyword scipy/signal/_peak_finding.py:1104:15: E275 missing whitespace after keyword scipy/signal/tests/test_signaltools.py:1293:15: E275 missing whitespace after keyword scipy/signal/tests/test_signaltools.py:1301:15: E275 missing whitespace after keyword scipy/sparse/csgraph/tests/test_shortest_path.py:196:14: E275 missing whitespace after keyword scipy/sparse/csgraph/tests/test_shortest_path.py:197:19: E275 missing whitespace after keyword scipy/sparse/linalg/_eigen/lobpcg/tests/test_lobpcg.py:268:11: E275 missing whitespace after keyword scipy/optimize/_linprog_util.py:305:15: E275 missing whitespace after keyword scipy/optimize/_linprog_util.py:344:15: E275 missing whitespace after keyword scipy/optimize/_linprog_util.py:383:15: E275 missing whitespace after keyword scipy/optimize/_remove_redundancy.py:88:11: E275 missing whitespace after keyword scipy/optimize/_dual_annealing.py:204:27: E275 missing whitespace after keyword scipy/optimize/_dual_annealing.py:672:10: E275 missing whitespace after keyword scipy/optimize/_linprog_ip.py:263:14: E275 missing whitespace after keyword scipy/optimize/tests/test_zeros.py:426:23: E275 missing whitespace after keyword scipy/optimize/tests/test_zeros.py:693:11: E275 missing whitespace after keyword scipy/optimize/tests/test_zeros.py:697:11: E275 missing whitespace after keyword scipy/optimize/tests/test_zeros.py:716:11: E275 missing whitespace after keyword scipy/optimize/tests/test__differential_evolution.py:483:19: E275 missing whitespace after keyword scipy/optimize/tests/test_differentiable_functions.py:145:15: E275 missing whitespace after keyword scipy/optimize/tests/test_differentiable_functions.py:155:15: E275 missing whitespace after keyword scipy/optimize/tests/test_differentiable_functions.py:158:15: E275 missing whitespace after keyword scipy/io/arff/_arffread.py:189:11: E275 missing whitespace after keyword scipy/integrate/_odepack_py.py:235:11: E275 missing whitespace after keyword scipy/integrate/tests/test_quadpack.py:640:15: E275 missing whitespace after keyword scipy/special/_basic.py:1784:11: E275 missing whitespace after keyword scipy/linalg/_matfuncs.py:872:11: E275 missing whitespace after keyword scipy/linalg/tests/test_lapack.py:1470:19: E275 missing whitespace after keyword scipy/linalg/tests/test_lapack.py:1494:27: E275 missing whitespace after keyword scipy/linalg/tests/test_lapack.py:1511:31: E275 missing whitespace after keyword scipy/linalg/tests/test_lapack.py:1537:23: E275 missing whitespace after keyword scipy/linalg/tests/test_lapack.py:1573:31: E275 missing whitespace after keyword scipy/linalg/tests/test_lapack.py:1593:35: E275 missing whitespace after keyword scipy/linalg/tests/test_decomp.py:2334:23: E275 missing whitespace after keyword</pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" ### SciPy/NumPy/Python version information 1.10.0.dev0+2164.77a8ec1 1.23.2 sys.version_info(major=3, minor=10, micro=6, releaselevel='final', serial=0)"><pre class="notranslate"><code class="notranslate"> ### SciPy/NumPy/Python version information 1.10.0.dev0+2164.77a8ec1 1.23.2 sys.version_info(major=3, minor=10, micro=6, releaselevel='final', serial=0) </code></pre></div>
1
<h3 dir="auto">Context</h3> <p dir="auto">The next <strong>RubyOnRails</strong> version will include support for websockets (<a href="http://nithinbekal.com/posts/rails-action-cable/" rel="nofollow">read about it</a> or <a href="https://github.com/rails/rails/pull/22586" data-hovercard-type="pull_request" data-hovercard-url="/rails/rails/pull/22586/hovercard">see the pull request</a>).</p> <p dir="auto">The next <strong>Django</strong> version will include support for websockets (<a href="http://channels.readthedocs.org/en/latest/" rel="nofollow">read docs</a>).</p> <p dir="auto">The next <strong>Spring Framework</strong> version will include support for websockets (<a href="https://github.com/spring-projects/spring-reactive/">see code</a>)</p> <h3 dir="auto">Question</h3> <ul dir="auto"> <li>What's the position of Symfony on this websocket/real-time apps trend?</li> </ul>
<p dir="auto">Hi everyone,</p> <p dir="auto">We had this discussion before, but at a point when we didn't have composer yet. I would like to bring this topic up again now.</p> <h5 dir="auto">Problem (updated December 5, 2012)</h5> <p dir="auto">I just had a longer discussion with <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/fago/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/fago">@fago</a>, who is currently integrating the Validator component into Drupal. For Drupal it is necessary to replace the translation mechanism used in the Validator component by a custom implementation. Even when implementing <code class="notranslate">Symfony\Component\Translation\TranslatorInterface</code> in their code, this still pulls in all of the Symfony Translation implementation (and its potential dependencies).</p> <p dir="auto">The same is true for any Symfony component/bundle/bridge. When someone wants to use A which relies on <strong>B's interfaces</strong>, and B relies on C and D, he needs to pull in A, B, C and D <em>and</em> provide a custom implementation for B (that might depend on E and F). Lots of installed dependencies: A, B, C, D, Bcustom, E, F</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" A .·´ `·. B Bcustom .´`. .´`. C D E F"><pre class="notranslate"><code class="notranslate"> A .·´ `·. B Bcustom .´`. .´`. C D E F </code></pre></div> <h5 dir="auto">Proposal (updated January 7, 2013)</h5> <p dir="auto">I would like to suggest and discuss a backwards compatible extraction of the Symfony API. In a nutshell, make it possible to use A which relies on B's interfaces but replace B with a custom implementation (i.e. only install A, Bcustom, E, F).</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" A | Bcustom .´`. E F"><pre class="notranslate"><code class="notranslate"> A | Bcustom .´`. E F </code></pre></div> <h6 dir="auto">Implementation</h6> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="api/ Symfony/ Component/ Translation/ TranslatorInterface.php composer.json [symfony/api] src/ Symfony/ Component/ Translation/ Translator.php composer.json [symfony/translation, requires symfony/api, provides symfony/translation-implementation] Validator/ composer.json [symfony/validator, requires symfony/api, suggests symfony/translation-implementation]"><pre class="notranslate"><code class="notranslate">api/ Symfony/ Component/ Translation/ TranslatorInterface.php composer.json [symfony/api] src/ Symfony/ Component/ Translation/ Translator.php composer.json [symfony/translation, requires symfony/api, provides symfony/translation-implementation] Validator/ composer.json [symfony/validator, requires symfony/api, suggests symfony/translation-implementation] </code></pre></div> <h6 dir="auto">Example: Replacing the translator</h6> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Drupal/ Translation/ composer.json [drupal/translation, requires symfony/api, provides symfony/translation-implementation]"><pre class="notranslate"><code class="notranslate">Drupal/ Translation/ composer.json [drupal/translation, requires symfony/api, provides symfony/translation-implementation] </code></pre></div> <p dir="auto">The package MUST NOT add <code class="notranslate">symfony/translation</code> to its "replace" section. Multiple implementations of the same interface are NOT mutually exclusive and CAN be used at the same time.</p> <h6 dir="auto">Example: Using the Validator with its simplistic default translator</h6> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;require&quot;: { &quot;symfony/validator&quot;: &quot;2.2.*&quot; } }"><pre class="notranslate">{ <span class="pl-ent">"require"</span>: { <span class="pl-ent">"symfony/validator"</span>: <span class="pl-s"><span class="pl-pds">"</span>2.2.*<span class="pl-pds">"</span></span> } }</pre></div> <h6 dir="auto">Example: Using the Validator with the Symfony Translation component</h6> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;require&quot;: { &quot;symfony/validator&quot;: &quot;2.2.*&quot;, &quot;symfony/translation&quot;: &quot;2.2.*&quot; } }"><pre class="notranslate">{ <span class="pl-ent">"require"</span>: { <span class="pl-ent">"symfony/validator"</span>: <span class="pl-s"><span class="pl-pds">"</span>2.2.*<span class="pl-pds">"</span></span>, <span class="pl-ent">"symfony/translation"</span>: <span class="pl-s"><span class="pl-pds">"</span>2.2.*<span class="pl-pds">"</span></span> } }</pre></div> <h6 dir="auto">Example: Using the Validator with a custom implementation</h6> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;require&quot;: { &quot;symfony/validator&quot;: &quot;2.2.*&quot;, &quot;drupal/translation&quot;: &quot;...&quot; } }"><pre class="notranslate">{ <span class="pl-ent">"require"</span>: { <span class="pl-ent">"symfony/validator"</span>: <span class="pl-s"><span class="pl-pds">"</span>2.2.*<span class="pl-pds">"</span></span>, <span class="pl-ent">"drupal/translation"</span>: <span class="pl-s"><span class="pl-pds">"</span>...<span class="pl-pds">"</span></span> } }</pre></div> <p dir="auto">The API would comprise a <em>closed set</em> of interfaces and classes of the components, that is:</p> <ul dir="auto"> <li>the top-level interface(s)</li> <li>the classes and interfaces that the top-level interface(s) refer to in type hints and <code class="notranslate">@return</code> tags</li> <li>the classes and interfaces that <em>these</em> classes and interfaces refer to</li> <li>etc.</li> </ul> <p dir="auto">Because of composer, this change would be fully BC.</p> <h5 dir="auto">Benefits (updated December 5, 2012)</h5> <ol dir="auto"> <li>A Symfony component A can rely on interfaces of another component B without forcing the user to use B.</li> <li>Other projects can depend on Symfony's interfaces with a lower barrier to entry.</li> <li>The API clearly documents the stable part of the components (it is ideally guaranteed not to change)</li> <li>The separation helps us to decouple our components more. For example, if a component A instantiates a class of another component B and thus requires "symfony/b", we can improve it to make use of DI so that it only depends on "symfony/api" instead.</li> </ol> <h5 dir="auto">Drawbacks (updated January 8, 2013)</h5> <ol dir="auto"> <li>One more composer package (symfony/api) has to be downloaded when using a Symfony component.</li> <li>Core developers have to maintain interfaces in a separate directory.</li> </ol> <p dir="auto">Please let me know what you think.</p>
0
<p dir="auto">If you know how to fix the issue, make a pull request instead.</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"> 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/Igorbek/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Igorbek">@Igorbek</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Igmat/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Igmat">@Igmat</a> @Lavoaster <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Jessidhia/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Jessidhia">@Jessidhia</a></li> </ul> </li> </ul> <p dir="auto">I initially asked on <a href="https://stackoverflow.com/questions/55912367/how-do-i-set-attributes-using-prop-values-in-styled-components-v4-typescript?" rel="nofollow">Stack Overflow</a>, but posting here with the hopes I can get a little more traction.</p> <h1 dir="auto">Summary</h1> <p dir="auto"><strong>Given:</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const Link = styled.a` border: solid 1px black; border-radius: 5px; padding: 5px; margin: 10px 5px; `; type ButtonProps = React.ButtonHTMLAttributes&lt;HTMLButtonElement&gt;; const LinkAsButton = styled(Link).attrs&lt;ButtonProps&gt; &gt;(({ as: 'button', className: 'btn btn-primary' })` border: solid 1px red; `;"><pre class="notranslate"><code class="notranslate">const Link = styled.a` border: solid 1px black; border-radius: 5px; padding: 5px; margin: 10px 5px; `; type ButtonProps = React.ButtonHTMLAttributes&lt;HTMLButtonElement&gt;; const LinkAsButton = styled(Link).attrs&lt;ButtonProps&gt; &gt;(({ as: 'button', className: 'btn btn-primary' })` border: solid 1px red; `; </code></pre></div> <p dir="auto"><strong>How do I pass button specific props (e.g. disabled) to <code class="notranslate">LinkAsButton</code>?</strong></p> <p dir="auto">Repo (includes branch for v3 and v4) demonstrating issue: <a href="https://github.com/arteforme/v3-v4-styled-components-migration">https://github.com/arteforme/v3-v4-styled-components-migration</a></p> <h1 dir="auto">Version 3</h1> <p dir="auto">In v3, I'm able to do the following:</p> <p dir="auto"><strong>package.json</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&quot;dependencies&quot;: { &quot;@types/react&quot;: &quot;^16.8.8&quot;, &quot;@types/react-dom&quot;: &quot;^16.8.2&quot;, &quot;react&quot;: &quot;^16.8.4&quot;, &quot;react-dom&quot;: &quot;^16.8.4&quot;, &quot;react-scripts&quot;: &quot;2.1.8&quot;, &quot;styled-components&quot;: &quot;^3.3.3&quot;, &quot;typescript&quot;: &quot;^3.3.3333&quot; }"><pre class="notranslate"><code class="notranslate">"dependencies": { "@types/react": "^16.8.8", "@types/react-dom": "^16.8.2", "react": "^16.8.4", "react-dom": "^16.8.4", "react-scripts": "2.1.8", "styled-components": "^3.3.3", "typescript": "^3.3.3333" } </code></pre></div> <p dir="auto"><strong>Component definition</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="type ButtonProps = React.ButtonHTMLAttributes&lt;HTMLButtonElement&gt;; const Link = styled.a` border: solid 1px black; border-radius: 5px; padding: 5px; margin: 10px 5px; `; const LinkAsButton = Link.withComponent('button') .extend.attrs&lt;ButtonProps&gt;({ className: 'btn btn-primary' })` border: solid 1px red; `;"><pre class="notranslate"><code class="notranslate">type ButtonProps = React.ButtonHTMLAttributes&lt;HTMLButtonElement&gt;; const Link = styled.a` border: solid 1px black; border-radius: 5px; padding: 5px; margin: 10px 5px; `; const LinkAsButton = Link.withComponent('button') .extend.attrs&lt;ButtonProps&gt;({ className: 'btn btn-primary' })` border: solid 1px red; `; </code></pre></div> <p dir="auto">and in consuming code, I can specify button specific props (e.g. disabled, form, etc) on the <code class="notranslate">LinkAsButton</code> component.</p> <h1 dir="auto">Version 4</h1> <p dir="auto">In v4, I'd like to achieve the same; however, I've not been successful in determining how to go about doing so. Per the latest documentation, I've updated <code class="notranslate">LinkAsButton</code> to no longer call <code class="notranslate">extend</code> or <code class="notranslate">withComponent</code> and instead wrap <code class="notranslate">Link</code> in a call to <code class="notranslate">styled</code> and uses <code class="notranslate">as</code> to specify the tag. The v4 version looks like:</p> <p dir="auto"><strong>package.json</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="dependencies&quot;: { &quot;@types/react&quot;: &quot;^16.8.14&quot;, &quot;@types/styled-components&quot;: &quot;^4.1.14&quot;, &quot;react&quot;: &quot;^16.8.6&quot;, &quot;react-dom&quot;: &quot;^16.8.6&quot;, &quot;react-scripts&quot;: &quot;2.1.8&quot;, &quot;styled-components&quot;: &quot;^4.2.0&quot;, &quot;typescript&quot;: &quot;^3.4.5&quot; }"><pre class="notranslate"><code class="notranslate">dependencies": { "@types/react": "^16.8.14", "@types/styled-components": "^4.1.14", "react": "^16.8.6", "react-dom": "^16.8.6", "react-scripts": "2.1.8", "styled-components": "^4.2.0", "typescript": "^3.4.5" } </code></pre></div> <p dir="auto"><strong>Component definition</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const LinkAsButton = styled(Link).attrs&lt;ButtonProps&gt; &gt;(({ as: 'button', className: 'btn btn-primary' })` border: solid 1px red; `;"><pre class="notranslate"><code class="notranslate">const LinkAsButton = styled(Link).attrs&lt;ButtonProps&gt; &gt;(({ as: 'button', className: 'btn btn-primary' })` border: solid 1px red; `; </code></pre></div> <p dir="auto">and in consuming code, I specify <code class="notranslate">disabled={true}</code> on a <code class="notranslate">LinkAsButton</code> instance, but this does not compile. Instead, the following error results:</p> <p dir="auto"><em>Property 'disabled' does not exist on type 'IntrinsicAttributes &amp; Pick&lt;Pick&lt;Pick&lt;DetailedHTMLProps&lt;AnchorHTMLAttributes, HTMLAnchorElement&gt;, "type" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | ... 257 more ... | "referrerPolicy"&gt; &amp; { ...; }, "type" | ... 261 more ... | "referrerPolicy"&gt; &amp; Partial&lt;...&gt;, "type" | ....'. TS2322</em></p> <h2 dir="auto">Reviewing attrs definition</h2> <p dir="auto">Taking a look at the definition file, I notice that two generic arguments can be specified.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="attrs &lt; U, NewA extends Partial&lt;StyledComponentPropsWithRef&lt;C&gt; &amp; U&gt; &amp; { [others: string]: any; } = {} &gt; ( attrs: Attrs&lt;StyledComponentPropsWithRef&lt;C&gt; &amp; U, NewA, T&gt; ): ThemedStyledFunction&lt;C, T, O &amp; NewA, A | keyof NewA&gt;;"><pre class="notranslate"><code class="notranslate">attrs &lt; U, NewA extends Partial&lt;StyledComponentPropsWithRef&lt;C&gt; &amp; U&gt; &amp; { [others: string]: any; } = {} &gt; ( attrs: Attrs&lt;StyledComponentPropsWithRef&lt;C&gt; &amp; U, NewA, T&gt; ): ThemedStyledFunction&lt;C, T, O &amp; NewA, A | keyof NewA&gt;; </code></pre></div> <p dir="auto">From what I can gather, <code class="notranslate">C</code> is the wrapped component and I believe <code class="notranslate">NewA</code> is NewAttributes. I'm not able to determine what U is in this case, but I try specifying the second generic parameter.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const LinkAsButton = styled(AnchorLink).attrs&lt;{}, ButtonProps&gt;` // omitted for brevity `"><pre class="notranslate"><code class="notranslate">const LinkAsButton = styled(AnchorLink).attrs&lt;{}, ButtonProps&gt;` // omitted for brevity ` </code></pre></div> <p dir="auto">And in doing so, that results in the following error:</p> <p dir="auto"><em>Type 'ButtonHTMLAttributes' is not assignable to type 'Partial&lt;Pick&lt;DetailedHTMLProps&lt;AnchorHTMLAttributes, HTMLAnchorElement&gt;, "type" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | ... 257 more ... | "referrerPolicy"&gt; &amp; { ...; } &amp; ButtonHTMLAttributes&lt;...&gt;&gt;'.<br> Types of property 'onCopy' are incompatible.</em></p> <p dir="auto">With that information in hand, I try:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const LinkAsButton = styled(Link).attrs&lt; {}, { as: string; className: string; disabled?: boolean } &gt;({ as: 'button', className: 'btn btn-primary' })``;"><pre class="notranslate"><code class="notranslate">const LinkAsButton = styled(Link).attrs&lt; {}, { as: string; className: string; disabled?: boolean } &gt;({ as: 'button', className: 'btn btn-primary' })``; </code></pre></div> <p dir="auto">Which works as I can now specify <code class="notranslate">disabled</code> in the markup, but not any other button specific props (e.g. <code class="notranslate">form</code>)</p> <h1 dir="auto">Non ideal solution</h1> <p dir="auto">One approach would be to do the following:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const LinkAsButton = styled(Link)&lt;ButtonProps&gt;` border: solid 1px red; `;"><pre class="notranslate"><code class="notranslate">const LinkAsButton = styled(Link)&lt;ButtonProps&gt;` border: solid 1px red; `; </code></pre></div> <p dir="auto">Consuming code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;div className=&quot;App&quot;&gt; &lt;LinkAsButton as=&quot;button&quot; className=&quot;btn-btn-primary&quot; disabled={true}&gt; First button &lt;/LinkAsButton&gt; &lt;LinkAsButton as=&quot;button&quot; className=&quot;btn-btn-primary&quot; disabled={true}&gt; Second button &lt;/LinkAsButton&gt; &lt;/div&gt;"><pre class="notranslate"><code class="notranslate">&lt;div className="App"&gt; &lt;LinkAsButton as="button" className="btn-btn-primary" disabled={true}&gt; First button &lt;/LinkAsButton&gt; &lt;LinkAsButton as="button" className="btn-btn-primary" disabled={true}&gt; Second button &lt;/LinkAsButton&gt; &lt;/div&gt; </code></pre></div> <p dir="auto">However, this would lead to a lot of code duplication :(.</p>
<p dir="auto">Sorry I don't have much more info as I can't currently spend time investigating the root cause but I thought I would bring this discussion to your attention <a href="http://stackoverflow.com/questions/41232228/running-npm-start-fails-due-to-error" rel="nofollow">http://stackoverflow.com/questions/41232228/running-npm-start-fails-due-to-error</a></p> <p dir="auto">I have used the workaround suggested in that link to be able to continue using protractor.</p>
0
<p dir="auto">I've been thinking about this for a while; and I thought I should share the notion.<br> I'm happy to have it shouted down as a bad idea (particularly if a good explanation is given),<br> but I figured I should share, incase it is infact a good idea.</p> <p dir="auto"><a href="http://docs.julialang.org/en/latest/manual/performance-tips/#avoid-containers-with-abstract-type-parameters" rel="nofollow">We all know that having a container type (etc) contain abstract types is slow.</a>,<br> thus normal habit for this case, is to instead have containers which contain a consistent, but generic subtype of that abstract type -- because any given container is normally consistent.</p> <p dir="auto"><em>All examples here are from real code</em></p> <p dir="auto"><strong>EG1</strong></p> <p dir="auto">instead of writing</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function predict(c::LinearClassifier, x::Array{AbstractFloat})"><pre class="notranslate"><code class="notranslate">function predict(c::LinearClassifier, x::Array{AbstractFloat}) </code></pre></div> <p dir="auto">We write:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function predict{F&lt;:AbstractFloat}(c::LinearClassifier, x::Array{F})"><pre class="notranslate"><code class="notranslate">function predict{F&lt;:AbstractFloat}(c::LinearClassifier, x::Array{F}) </code></pre></div> <p dir="auto">But that is a little harder to read -- the type of <code class="notranslate">x</code> is now spread into two locations.<br> Not too bad though.</p> <p dir="auto"><strong>Eg 2</strong> Now a more complex function.</p> <p dir="auto">Consider:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function train_one!(c::LinearClassifier, x::Array{AbstractFloat}, y::Int64, input_gradient::Array{AbstractFloat}, α::AbstractFloat=0.025f0)"><pre class="notranslate"><code class="notranslate">function train_one!(c::LinearClassifier, x::Array{AbstractFloat}, y::Int64, input_gradient::Array{AbstractFloat}, α::AbstractFloat=0.025f0) </code></pre></div> <p dir="auto">If the type of <code class="notranslate">x</code> and the type of <code class="notranslate">input_gradient</code> are destined to be the same then:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function train_one!{F&lt;:AbstractFloat}(c::LinearClassifier, x::Array{F}, y::Int64, input_gradient::Array{F}, α::AbstractFloat=0.025f0)"><pre class="notranslate"><code class="notranslate">function train_one!{F&lt;:AbstractFloat}(c::LinearClassifier, x::Array{F}, y::Int64, input_gradient::Array{F}, α::AbstractFloat=0.025f0) </code></pre></div> <p dir="auto">But it turns out that, in this case, the type of <code class="notranslate">x</code> and the type of <code class="notranslate">input_gradient</code> are <strong>not</strong> necessarily the same. <code class="notranslate">input_gradient</code> comes from the greater training procedure -- which is currently <code class="notranslate">Float32</code> to save on memory. <code class="notranslate">x</code> however could be a <code class="notranslate">Float32</code> or a <code class="notranslate">Float64</code> depending on what the input data (from an external source) is (The function always returns <code class="notranslate">Float32</code>).</p> <p dir="auto">So what we have is now:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function train_one!{F1&lt;:AbstractFloat, F2&lt;:AbstractFloat}(c::LinearClassifier, x::Array{F1}, y::Int64, input_gradient::Array{F2}, α::AbstractFloat=0.025f0)"><pre class="notranslate"><code class="notranslate">function train_one!{F1&lt;:AbstractFloat, F2&lt;:AbstractFloat}(c::LinearClassifier, x::Array{F1}, y::Int64, input_gradient::Array{F2}, α::AbstractFloat=0.025f0) </code></pre></div> <p dir="auto">That is looking pretty bad, now that I have multiple type parameters.<br> The type of <code class="notranslate">x</code>, and of <code class="notranslate">input_gradient</code>, now each involve cross-referencing two lists.<br> It could perhaps be better with better naming:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function train_one!{Fx&lt;:AbstractFloat, Fgrad&lt;:AbstractFloat}(c::LinearClassifier, x::Array{Fx}, y::Int64, input_gradient::Array{Fgrad}, α::AbstractFloat=0.025f0)"><pre class="notranslate"><code class="notranslate">function train_one!{Fx&lt;:AbstractFloat, Fgrad&lt;:AbstractFloat}(c::LinearClassifier, x::Array{Fx}, y::Int64, input_gradient::Array{Fgrad}, α::AbstractFloat=0.025f0) </code></pre></div> <hr> <p dir="auto">So what can we do about it?</p> <p dir="auto">The syntax/syntactic sugar I am proposing is that subtypes parameters be allowed without names in the argument types.<br> Exact syntax, I am not to sure on.<br> It could be <code class="notranslate">GenericType{&lt;:AbstractType}</code>, or perhaps <code class="notranslate">GenericType{_&lt;:AbstractFloat}</code>,<br> or maybe something else. I'll use the first form for sake of examples.</p> <p dir="auto">So</p> <p dir="auto"><strong>Eg1'</strong>.<br> Before:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function predict{F&lt;:AbstractFloat}(c::LinearClassifier, x::Array{F})"><pre class="notranslate"><code class="notranslate">function predict{F&lt;:AbstractFloat}(c::LinearClassifier, x::Array{F}) </code></pre></div> <p dir="auto">After:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function predict(c::LinearClassifier, x::Array{&lt;:AbstractFloat})"><pre class="notranslate"><code class="notranslate">function predict(c::LinearClassifier, x::Array{&lt;:AbstractFloat}) </code></pre></div> <p dir="auto"><strong>Eg2</strong><br> Before:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function train_one!{Fx&lt;:AbstractFloat, Fgrad&lt;:AbstractFloat}(c::LinearClassifier, x::Array{Fx}, y::Int64, input_gradient::Array{Fgrad}, α::AbstractFloat=0.025f0)"><pre class="notranslate"><code class="notranslate">function train_one!{Fx&lt;:AbstractFloat, Fgrad&lt;:AbstractFloat}(c::LinearClassifier, x::Array{Fx}, y::Int64, input_gradient::Array{Fgrad}, α::AbstractFloat=0.025f0) </code></pre></div> <p dir="auto">After:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function train_one!(c::LinearClassifier, x::Array{&lt;:AbstractFloat}, y::Int64, input_gradient::Array{&lt;:AbstractFloat}, α::AbstractFloat=0.025f0)"><pre class="notranslate"><code class="notranslate">function train_one!(c::LinearClassifier, x::Array{&lt;:AbstractFloat}, y::Int64, input_gradient::Array{&lt;:AbstractFloat}, α::AbstractFloat=0.025f0) </code></pre></div> <hr> <p dir="auto">This can't replace named type parameters. As it does not allow you to say that multiple of your parameters have the same generic type.<br> But it does I think clean up the cases where each type parameter is used only once.</p> <p dir="auto">I'm not sure if it breaches the "every feature starts at -100 points" test.<br> But I wanted to present this as an option.</p> <p dir="auto">PS: Is their Julep writing guidelines somewhere? I'm happy to reformat this and add additional details.</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ julia -v julia version 0.7.0-beta $ time julia -e 'println(&quot;hello world&quot;)' hello world real 0m0.406s"><pre class="notranslate">$ julia -v julia version 0.7.0-beta $ <span class="pl-k">time</span> julia -e <span class="pl-s"><span class="pl-pds">'</span>println("hello world")<span class="pl-pds">'</span></span> hello world real 0m0.406s</pre></div> <p dir="auto">Compare with Perl:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ time perl -e 'print(&quot;hello world&quot;)' hello world real 0m0.016s"><pre class="notranslate">$ <span class="pl-k">time</span> perl -e <span class="pl-s"><span class="pl-pds">'</span>print("hello world")<span class="pl-pds">'</span></span> hello world real 0m0.016s</pre></div> <p dir="auto">Or Python:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ time python3 -c 'print(&quot;hello world&quot;)' hello world real 0m0.047s"><pre class="notranslate">$ <span class="pl-k">time</span> python3 -c <span class="pl-s"><span class="pl-pds">'</span>print("hello world")<span class="pl-pds">'</span></span> hello world real 0m0.047s</pre></div> <p dir="auto">Or PHP:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ time php -r 'echo &quot;hello world&quot;;' hello world real 0m0.047s"><pre class="notranslate">$ <span class="pl-k">time</span> php -r <span class="pl-s"><span class="pl-pds">'</span>echo "hello world";<span class="pl-pds">'</span></span> hello world real 0m0.047s</pre></div> <p dir="auto">Or Ruby:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ time ruby -e 'puts &quot;hello world&quot;' hello world real 0m0.187s"><pre class="notranslate">$ <span class="pl-k">time</span> ruby -e <span class="pl-s"><span class="pl-pds">'</span>puts "hello world"<span class="pl-pds">'</span></span> hello world real 0m0.187s</pre></div>
0
<p dir="auto">In sagaconfigurationloader.loadconfigurationproperties method of distributed transaction saga, sagaconfigurationloader. Class. Getclassloader(). Getresource (configuration_file) is used to read saga.properties. When the project runs as a jar package, it will report the wrong path and cannot find the file. A policy can be added to use sagaconfiguration when it cannot be read. Load. Class. Getclassloader(). Getresourceasstream (configuration file); to read</p>
<p dir="auto">Please answer these questions before submitting your issue. Thanks!<br> 开源不易,我们希望将精力放在完成新功能和解决有价值的问题上,为了让大家的配合更具有效率,请填写以下列出的全部问题</p> <h3 dir="auto">Which version of Sharding-Jdbc do you using?(您使用的Sharding-Jdbc版本为?)</h3> <p dir="auto">2.0.3</p> <h3 dir="auto">Expected behavior (您预期的结果是)</h3> <p dir="auto">support show table structure expresses like "SHOW TABLES LIKE 'table_name'" or "SHOW CREATE TABLE table_name"</p> <h3 dir="auto">Actual behavior (实际运行的结果是)</h3> <p dir="auto">io.shardingjdbc.core.parsing.parser.exception.SQLParsingUnsupportedException: Not supported token 'SHOW'</p> <h3 dir="auto">Steps to reproduce the behavior (可重现问题的操作步骤)</h3> <p dir="auto">private static boolean isTableExists(Connection connection, String tableName) throws SQLException{<br> String sql = "SHOW TABLES LIKE '" + tableName + "'";<br> logger.debug("check if the table is exists: {}", sql);<br> Statement statement = connection.createStatement();<br> try {<br> ResultSet resultSet = statement.executeQuery(sql);<br> return resultSet.next();<br> }<br> catch (SQLException exp) {<br> logger.debug("table {} is not exits.", tableName);<br> }<br> finally {<br> statement.close();<br> }<br> return false;<br> }</p> <h3 dir="auto">Please provide the reproduce example codes (such as github link),otherwise we will label the issue as Invalid and close it.(为了节省复现问题的时间,请务必提供可重现的代码,否则我们会将issue直接标记为invalid并关闭)</h3> <p dir="auto">Code should based on <a href="https://github.com/shardingjdbc/sharding-jdbc-example">https://github.com/shardingjdbc/sharding-jdbc-example</a><br> (代码请基于 <a href="https://github.com/shardingjdbc/sharding-jdbc-example%EF%BC%89">https://github.com/shardingjdbc/sharding-jdbc-example)</a></p>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/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> <h2 dir="auto"></h2> <p dir="auto">In master branch,code of getAuthority() is just like this:</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="public String getAuthority() { if (StringUtils.isEmpty(username) &amp;&amp; StringUtils.isEmpty(password)) { return null; } return (username == null ? &quot;&quot; : username) + &quot;:&quot; + (password == null ? &quot;&quot; : password); }"><pre class="notranslate"><span class="pl-k">public</span> <span class="pl-smi">String</span> <span class="pl-s1">getAuthority</span>() { <span class="pl-k">if</span> (<span class="pl-smi">StringUtils</span>.<span class="pl-en">isEmpty</span>(<span class="pl-s1">username</span>) &amp;&amp; <span class="pl-smi">StringUtils</span>.<span class="pl-en">isEmpty</span>(<span class="pl-s1">password</span>)) { <span class="pl-k">return</span> <span class="pl-c1">null</span>; } <span class="pl-k">return</span> (<span class="pl-s1">username</span> == <span class="pl-c1">null</span> ? <span class="pl-s">""</span> : <span class="pl-s1">username</span>) + <span class="pl-s">":"</span> + (<span class="pl-s1">password</span> == <span class="pl-c1">null</span> ? <span class="pl-s">""</span> : <span class="pl-s1">password</span>); }</pre></div> <p dir="auto">if username is 'admin' and password is null,the return value will be 'admin:'。Is it right?Also I think null check of username is unnecessary.<br> Is the below code is better?</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="public String getAuthority() { if (StringUtils.isEmpty(username) &amp;&amp; StringUtils.isEmpty(password)) { return null; } return username + (password == null ? &quot;&quot; : &quot;:&quot; + password); }"><pre class="notranslate"><span class="pl-k">public</span> <span class="pl-smi">String</span> <span class="pl-s1">getAuthority</span>() { <span class="pl-k">if</span> (<span class="pl-smi">StringUtils</span>.<span class="pl-en">isEmpty</span>(<span class="pl-s1">username</span>) &amp;&amp; <span class="pl-smi">StringUtils</span>.<span class="pl-en">isEmpty</span>(<span class="pl-s1">password</span>)) { <span class="pl-k">return</span> <span class="pl-c1">null</span>; } <span class="pl-k">return</span> <span class="pl-s1">username</span> + (<span class="pl-s1">password</span> == <span class="pl-c1">null</span> ? <span class="pl-s">""</span> : <span class="pl-s">":"</span> + <span class="pl-s1">password</span>); }</pre></div>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.6.5</li> <li>Spring boot version: 2.1.8.RELEASE</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>项目启动过程中,扫描到Service注解的类;</li> <li>在export()的过程中,在2.6.5版本新加了publishExportEvent();的操作;</li> <li>内部的方法是ServiceBeanExportedEvent的事件监听;<br> 4.applicationEventPublisher.publishEvent(exportEvent);这个方法的applicationEventPublisher为null,抛出了空指针异常;<br> 5.ServiceBean方法实现了ApplicationEventPublisherAware接口,但是却没有调用其中的方法setApplicationEventPublisher方法;</li> </ol> <h3 dir="auto">Message</h3> <p dir="auto">萌新一个,最近在学习Dubbo,遇到这个问题,自己查了很多资料没有解决,还请各位大佬帮忙看一下,感谢。</p>
0
<p dir="auto">hi, guys, i wrote a Filter whice extends ActionFilter.Simple , and override the method : apply(String action, ActionResponse response, ActionListener listener). when i invoke method: client.prepareSearch, the apply method was invoked twice whice is not i wanted, once is enough. is there sth i missed ? here is my code :</p> <p dir="auto">public static class LoggingFilter extends ActionFilter.Simple {</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" @Inject public LoggingFilter(Settings settings) { super(settings); } @Override public int order() { return 999; } @Override protected boolean apply(String action, ActionRequest request, ActionListener listener) { return true; } @Override protected boolean apply(String action, ActionResponse response, ActionListener listener) { if (&quot;indices:data/read/search&quot;.equals(action)) { System.out.println(&quot;=========&quot; + action + &quot;======&quot; + listener); System.out.println(&quot;=========&quot; + response.hashCode() + &quot;======&quot; ); } return true; } }"><pre class="notranslate"><code class="notranslate"> @Inject public LoggingFilter(Settings settings) { super(settings); } @Override public int order() { return 999; } @Override protected boolean apply(String action, ActionRequest request, ActionListener listener) { return true; } @Override protected boolean apply(String action, ActionResponse response, ActionListener listener) { if ("indices:data/read/search".equals(action)) { System.out.println("=========" + action + "======" + listener); System.out.println("=========" + response.hashCode() + "======" ); } return true; } } </code></pre></div> <p dir="auto">public class ActionInvokeModule extends AbstractModule implements PreProcessModule {</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" @Override protected void configure() { bind(LoggingFilter.class).asEagerSingleton(); } @Override public void processModule(Module module) { if (module instanceof ActionModule) { ((ActionModule)module).registerFilter(LoggingFilter.class); } } }"><pre class="notranslate"><code class="notranslate"> @Override protected void configure() { bind(LoggingFilter.class).asEagerSingleton(); } @Override public void processModule(Module module) { if (module instanceof ActionModule) { ((ActionModule)module).registerFilter(LoggingFilter.class); } } } </code></pre></div> <p dir="auto">public class ActionInvokePlugin extends AbstractPlugin {</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Override public Collection&lt;Class&lt;? extends Module&gt;&gt; modules() { Collection&lt;Class&lt;? extends Module&gt;&gt; modules = new ArrayList&lt;Class&lt;? extends Module&gt;&gt;(); modules.add(ActionLoggingModule.class); System.out.println(&quot;==========loaded log plugin&quot;); return modules; }"><pre class="notranslate"><code class="notranslate">@Override public Collection&lt;Class&lt;? extends Module&gt;&gt; modules() { Collection&lt;Class&lt;? extends Module&gt;&gt; modules = new ArrayList&lt;Class&lt;? extends Module&gt;&gt;(); modules.add(ActionLoggingModule.class); System.out.println("==========loaded log plugin"); return modules; } </code></pre></div> <p dir="auto">}</p> <p dir="auto">this is my client :<br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/test/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/test">@test</a><br> public void testSimpleSearch() {<br> SearchResponse response = client.prepareSearch("twitter2")<br> .setTypes("tweet2")<br> .setSearchType(SearchType.DFS_QUERY_THEN_FETCH)<br> .setQuery(QueryBuilders.termQuery("user", "wangwu")) // Query<br> .setFrom(0).setSize(60).setExplain(true)<br> .execute()<br> .actionGet();<br> for (SearchHit hit : response.getHits().getHits()) {<br> System.out.println("======" + hit.getSource());<br> }</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">A standard GET by ID results in a single log entry in the audit log. Search (_search) results in two identical log entries. Every time.</p> <ul dir="auto"> <li>Default ES 1.6.0 installation.</li> <li>Added latest Shield.</li> <li>Added "search_admin" user.</li> </ul> <p dir="auto">Everything works great out of the box except I get _search audits duplicated in the log. ONLY "SearchRequest" audits. I haven't found any other api yet which results in this strange behavior.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2015-06-16 18:37:24,705] [esdev-shieldpoc01] [transport] [access_granted] origin_type=[rest], origin_address=[/10.30.24.36:55308], principal=[search_admin], action=[indices:data/read/search], indices=[test], request=[SearchRequest] [2015-06-16 18:37:24,705] [esdev-shieldpoc01] [transport] [access_granted] origin_type=[rest], origin_address=[/10.30.24.36:55308], principal=[search_admin], action=[indices:data/read/search], indices=[test], request=[SearchRequest]"><pre class="notranslate"><code class="notranslate">[2015-06-16 18:37:24,705] [esdev-shieldpoc01] [transport] [access_granted] origin_type=[rest], origin_address=[/10.30.24.36:55308], principal=[search_admin], action=[indices:data/read/search], indices=[test], request=[SearchRequest] [2015-06-16 18:37:24,705] [esdev-shieldpoc01] [transport] [access_granted] origin_type=[rest], origin_address=[/10.30.24.36:55308], principal=[search_admin], action=[indices:data/read/search], indices=[test], request=[SearchRequest] </code></pre></div>
1
<h4 dir="auto">Description</h4> <p dir="auto">Some OpenML datasets cannot be fetched due to an <code class="notranslate">IndexError</code> when converting the arff data.</p> <h4 dir="auto">Steps/Code to Reproduce</h4> <p dir="auto">This happens for multiple datasets, e.g. dataset ids 25, 46, 62.<br> Code to reproduce for <em>colic</em>:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from sklearn.datasets import fetch_openml fetch_openml(data_id=25)"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">datasets</span> <span class="pl-k">import</span> <span class="pl-s1">fetch_openml</span> <span class="pl-en">fetch_openml</span>(<span class="pl-s1">data_id</span><span class="pl-c1">=</span><span class="pl-c1">25</span>)</pre></div> <h4 dir="auto">Expected Results</h4> <p dir="auto">Dataset Bunch is returned, e.g. for <em>colic</em>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{'data': array([[5., 2., 4., ..., 2., 3., 5.], [5., 2., 9., ..., 3., 2., 1.], [0., 2., 8., ..., 3., 2., 3.], ..., [2., 2., 4., ..., 0., 1., 2.], [3., 3., 4., ..., 7., 4., 2.], [5., 2., 4., ..., 4., 1., 2.]]), 'target': array(['p', 'e', 'e', ..., 'e', 'p', 'e'], dtype=object), 'feature_names': ['cap-shape', 'cap-surface', 'cap-color', 'bruises%3F', 'odor', 'gill-attachment', 'gill-spacing', 'gill-size', 'gill-color', 'stalk-shape', 'stalk-root', 'stalk-surface-above-ring', 'stalk-surface-below-ring', 'stalk-color-above-ring', 'stalk-color-below-ring', 'veil-type', 'veil-color', 'ring-number', 'ring-type', 'spore-print-color', 'population', 'habitat'], 'DESCR': &quot;**Author**: [Jeff Schlimmer]([email protected]) \n**Source**: [UCI](https://archive.ics.uci.edu/ml/datasets/mushroom) - 1981 \n**Please cite**: The Audubon Society Field Guide to North American Mushrooms (1981). G. H. Lincoff (Pres.), New York: Alfred A. Knopf \n\n\n### Description\n\nThis dataset describes mushrooms in terms of their physical characteristics. They are classified into: poisonous or edible.\n\n### Source\n```\n(a) Origin: \nMushroom records are drawn from The Audubon Society Field Guide to North American Mushrooms (1981). G. H. Lincoff (Pres.), New York: Alfred A. Knopf \n\n(b) Donor: \nJeff Schlimmer (Jeffrey.Schlimmer '@' a.gp.cs.cmu.edu)\n```\n\n### Dataset description\n\nThis dataset includes descriptions of hypothetical samples corresponding to 23 species of gilled mushrooms in the Agaricus and Lepiota Family. Each species is identified as definitely edible, definitely poisonous, or of unknown edibility and not recommended. This latter class was combined with the poisonous one. The Guide clearly states that there is no simple rule for determining the edibility of a mushroom; no rule like ``leaflets three, let it be'' for Poisonous Oak and Ivy.\n\n### Attributes Information\n```\n1. cap-shape: bell=b,conical=c,convex=x,flat=f, knobbed=k,sunken=s \n2. cap-surface: fibrous=f,grooves=g,scaly=y,smooth=s \n3. cap-color: brown=n,buff=b,cinnamon=c,gray=g,green=r, pink=p,purple=u,red=e,white=w,yellow=y \n4. bruises?: bruises=t,no=f \n5. odor: almond=a,anise=l,creosote=c,fishy=y,foul=f, musty=m,none=n,pungent=p,spicy=s \n6. gill-attachment: attached=a,descending=d,free=f,notched=n \n7. gill-spacing: close=c,crowded=w,distant=d \n8. gill-size: broad=b,narrow=n \n9. gill-color: black=k,brown=n,buff=b,chocolate=h,gray=g, green=r,orange=o,pink=p,purple=u,red=e, white=w,yellow=y \n10. stalk-shape: enlarging=e,tapering=t \n11. stalk-root: bulbous=b,club=c,cup=u,equal=e, rhizomorphs=z,rooted=r,missing=? \n12. stalk-surface-above-ring: fibrous=f,scaly=y,silky=k,smooth=s \n13. stalk-surface-below-ring: fibrous=f,scaly=y,silky=k,smooth=s \n14. stalk-color-above-ring: brown=n,buff=b,cinnamon=c,gray=g,orange=o, pink=p,red=e,white=w,yellow=y \n15. stalk-color-below-ring: brown=n,buff=b,cinnamon=c,gray=g,orange=o, pink=p,red=e,white=w,yellow=y \n16. veil-type: partial=p,universal=u \n17. veil-color: brown=n,orange=o,white=w,yellow=y \n18. ring-number: none=n,one=o,two=t \n19. ring-type: cobwebby=c,evanescent=e,flaring=f,large=l, none=n,pendant=p,sheathing=s,zone=z \n20. spore-print-color: black=k,brown=n,buff=b,chocolate=h,green=r, orange=o,purple=u,white=w,yellow=y \n21. population: abundant=a,clustered=c,numerous=n, scattered=s,several=v,solitary=y \n22. habitat: grasses=g,leaves=l,meadows=m,paths=p, urban=u,waste=w,woods=d\n```\n\n### Relevant papers\n\nSchlimmer,J.S. (1987). Concept Acquisition Through Representational Adjustment (Technical Report 87-19). Doctoral disseration, Department of Information and Computer Science, University of California, Irvine. \n\nIba,W., Wogulis,J., &amp; Langley,P. (1988). Trading off Simplicity and Coverage in Incremental Concept Learning. In Proceedings of the 5th International Conference on Machine Learning, 73-79. Ann Arbor, Michigan: Morgan Kaufmann. \n\nDuch W, Adamczak R, Grabczewski K (1996) Extraction of logical rules from training data using backpropagation networks, in: Proc. of the The 1st Online Workshop on Soft Computing, 19-30.Aug.1996, pp. 25-30, [Web Link] \n\nDuch W, Adamczak R, Grabczewski K, Ishikawa M, Ueda H, Extraction of crisp logical rules using constrained backpropagation networks - comparison of two new approaches, in: Proc. of the European Symposium on Artificial Neural Networks (ESANN'97), Bruge, Belgium 16-18.4.1997.\n\nDownloaded from openml.org.&quot;, 'details': {'id': '24', 'name': 'mushroom', 'version': '1', 'format': 'ARFF', 'upload_date': '2014-04-06T23:21:11', 'licence': 'Public', 'url': 'https://www.openml.org/data/v1/download/24/mushroom.arff', 'file_id': '24', 'default_target_attribute': 'class', 'version_label': '1', 'tag': ['mythbusting_1', 'OpenML100', 'study_1', 'study_123', 'study_14', 'study_144', 'study_15', 'study_190', 'study_20', 'study_34', 'study_37', 'study_41', 'study_50', 'study_70', 'trivial', 'uci'], 'visibility': 'public', 'status': 'active', 'processing_date': '2019-07-09 15:24:03', 'md5_checksum': 'c8e898e453167e76d617eff67d198579'}, 'categories': {'cap-shape': ['b', 'c', 'f', 'k', 's', 'x'], 'cap-surface': ['f', 'g', 's', 'y'], 'cap-color': ['b', 'c', 'e', 'g', 'n', 'p', 'r', 'u', 'w', 'y'], 'bruises%3F': ['f', 't'], 'odor': ['a', 'c', 'f', 'l', 'm', 'n', 'p', 's', 'y'], 'gill-attachment': ['a', 'd', 'f', 'n'], 'gill-spacing': ['c', 'd', 'w'], 'gill-size': ['b', 'n'], 'gill-color': ['b', 'e', 'g', 'h', 'k', 'n', 'o', 'p', 'r', 'u', 'w', 'y'], 'stalk-shape': ['e', 't'], 'stalk-root': ['b', 'c', 'e', 'r', 'u', 'z'], 'stalk-surface-above-ring': ['f', 'k', 's', 'y'], 'stalk-surface-below-ring': ['f', 'k', 's', 'y'], 'stalk-color-above-ring': ['b', 'c', 'e', 'g', 'n', 'o', 'p', 'w', 'y'], 'stalk-color-below-ring': ['b', 'c', 'e', 'g', 'n', 'o', 'p', 'w', 'y'], 'veil-type': ['p', 'u'], 'veil-color': ['n', 'o', 'w', 'y'], 'ring-number': ['n', 'o', 't'], 'ring-type': ['c', 'e', 'f', 'l', 'n', 'p', 's', 'z'], 'spore-print-color': ['b', 'h', 'k', 'n', 'o', 'r', 'u', 'w', 'y'], 'population': ['a', 'c', 'n', 's', 'v', 'y'], 'habitat': ['d', 'g', 'l', 'm', 'p', 'u', 'w']}, 'url': 'https://www.openml.org/d/24'}"><pre class="notranslate"><code class="notranslate">{'data': array([[5., 2., 4., ..., 2., 3., 5.], [5., 2., 9., ..., 3., 2., 1.], [0., 2., 8., ..., 3., 2., 3.], ..., [2., 2., 4., ..., 0., 1., 2.], [3., 3., 4., ..., 7., 4., 2.], [5., 2., 4., ..., 4., 1., 2.]]), 'target': array(['p', 'e', 'e', ..., 'e', 'p', 'e'], dtype=object), 'feature_names': ['cap-shape', 'cap-surface', 'cap-color', 'bruises%3F', 'odor', 'gill-attachment', 'gill-spacing', 'gill-size', 'gill-color', 'stalk-shape', 'stalk-root', 'stalk-surface-above-ring', 'stalk-surface-below-ring', 'stalk-color-above-ring', 'stalk-color-below-ring', 'veil-type', 'veil-color', 'ring-number', 'ring-type', 'spore-print-color', 'population', 'habitat'], 'DESCR': "**Author**: [Jeff Schlimmer]([email protected]) \n**Source**: [UCI](https://archive.ics.uci.edu/ml/datasets/mushroom) - 1981 \n**Please cite**: The Audubon Society Field Guide to North American Mushrooms (1981). G. H. Lincoff (Pres.), New York: Alfred A. Knopf \n\n\n### Description\n\nThis dataset describes mushrooms in terms of their physical characteristics. They are classified into: poisonous or edible.\n\n### Source\n```\n(a) Origin: \nMushroom records are drawn from The Audubon Society Field Guide to North American Mushrooms (1981). G. H. Lincoff (Pres.), New York: Alfred A. Knopf \n\n(b) Donor: \nJeff Schlimmer (Jeffrey.Schlimmer '@' a.gp.cs.cmu.edu)\n```\n\n### Dataset description\n\nThis dataset includes descriptions of hypothetical samples corresponding to 23 species of gilled mushrooms in the Agaricus and Lepiota Family. Each species is identified as definitely edible, definitely poisonous, or of unknown edibility and not recommended. This latter class was combined with the poisonous one. The Guide clearly states that there is no simple rule for determining the edibility of a mushroom; no rule like ``leaflets three, let it be'' for Poisonous Oak and Ivy.\n\n### Attributes Information\n```\n1. cap-shape: bell=b,conical=c,convex=x,flat=f, knobbed=k,sunken=s \n2. cap-surface: fibrous=f,grooves=g,scaly=y,smooth=s \n3. cap-color: brown=n,buff=b,cinnamon=c,gray=g,green=r, pink=p,purple=u,red=e,white=w,yellow=y \n4. bruises?: bruises=t,no=f \n5. odor: almond=a,anise=l,creosote=c,fishy=y,foul=f, musty=m,none=n,pungent=p,spicy=s \n6. gill-attachment: attached=a,descending=d,free=f,notched=n \n7. gill-spacing: close=c,crowded=w,distant=d \n8. gill-size: broad=b,narrow=n \n9. gill-color: black=k,brown=n,buff=b,chocolate=h,gray=g, green=r,orange=o,pink=p,purple=u,red=e, white=w,yellow=y \n10. stalk-shape: enlarging=e,tapering=t \n11. stalk-root: bulbous=b,club=c,cup=u,equal=e, rhizomorphs=z,rooted=r,missing=? \n12. stalk-surface-above-ring: fibrous=f,scaly=y,silky=k,smooth=s \n13. stalk-surface-below-ring: fibrous=f,scaly=y,silky=k,smooth=s \n14. stalk-color-above-ring: brown=n,buff=b,cinnamon=c,gray=g,orange=o, pink=p,red=e,white=w,yellow=y \n15. stalk-color-below-ring: brown=n,buff=b,cinnamon=c,gray=g,orange=o, pink=p,red=e,white=w,yellow=y \n16. veil-type: partial=p,universal=u \n17. veil-color: brown=n,orange=o,white=w,yellow=y \n18. ring-number: none=n,one=o,two=t \n19. ring-type: cobwebby=c,evanescent=e,flaring=f,large=l, none=n,pendant=p,sheathing=s,zone=z \n20. spore-print-color: black=k,brown=n,buff=b,chocolate=h,green=r, orange=o,purple=u,white=w,yellow=y \n21. population: abundant=a,clustered=c,numerous=n, scattered=s,several=v,solitary=y \n22. habitat: grasses=g,leaves=l,meadows=m,paths=p, urban=u,waste=w,woods=d\n```\n\n### Relevant papers\n\nSchlimmer,J.S. (1987). Concept Acquisition Through Representational Adjustment (Technical Report 87-19). Doctoral disseration, Department of Information and Computer Science, University of California, Irvine. \n\nIba,W., Wogulis,J., &amp; Langley,P. (1988). Trading off Simplicity and Coverage in Incremental Concept Learning. In Proceedings of the 5th International Conference on Machine Learning, 73-79. Ann Arbor, Michigan: Morgan Kaufmann. \n\nDuch W, Adamczak R, Grabczewski K (1996) Extraction of logical rules from training data using backpropagation networks, in: Proc. of the The 1st Online Workshop on Soft Computing, 19-30.Aug.1996, pp. 25-30, [Web Link] \n\nDuch W, Adamczak R, Grabczewski K, Ishikawa M, Ueda H, Extraction of crisp logical rules using constrained backpropagation networks - comparison of two new approaches, in: Proc. of the European Symposium on Artificial Neural Networks (ESANN'97), Bruge, Belgium 16-18.4.1997.\n\nDownloaded from openml.org.", 'details': {'id': '24', 'name': 'mushroom', 'version': '1', 'format': 'ARFF', 'upload_date': '2014-04-06T23:21:11', 'licence': 'Public', 'url': 'https://www.openml.org/data/v1/download/24/mushroom.arff', 'file_id': '24', 'default_target_attribute': 'class', 'version_label': '1', 'tag': ['mythbusting_1', 'OpenML100', 'study_1', 'study_123', 'study_14', 'study_144', 'study_15', 'study_190', 'study_20', 'study_34', 'study_37', 'study_41', 'study_50', 'study_70', 'trivial', 'uci'], 'visibility': 'public', 'status': 'active', 'processing_date': '2019-07-09 15:24:03', 'md5_checksum': 'c8e898e453167e76d617eff67d198579'}, 'categories': {'cap-shape': ['b', 'c', 'f', 'k', 's', 'x'], 'cap-surface': ['f', 'g', 's', 'y'], 'cap-color': ['b', 'c', 'e', 'g', 'n', 'p', 'r', 'u', 'w', 'y'], 'bruises%3F': ['f', 't'], 'odor': ['a', 'c', 'f', 'l', 'm', 'n', 'p', 's', 'y'], 'gill-attachment': ['a', 'd', 'f', 'n'], 'gill-spacing': ['c', 'd', 'w'], 'gill-size': ['b', 'n'], 'gill-color': ['b', 'e', 'g', 'h', 'k', 'n', 'o', 'p', 'r', 'u', 'w', 'y'], 'stalk-shape': ['e', 't'], 'stalk-root': ['b', 'c', 'e', 'r', 'u', 'z'], 'stalk-surface-above-ring': ['f', 'k', 's', 'y'], 'stalk-surface-below-ring': ['f', 'k', 's', 'y'], 'stalk-color-above-ring': ['b', 'c', 'e', 'g', 'n', 'o', 'p', 'w', 'y'], 'stalk-color-below-ring': ['b', 'c', 'e', 'g', 'n', 'o', 'p', 'w', 'y'], 'veil-type': ['p', 'u'], 'veil-color': ['n', 'o', 'w', 'y'], 'ring-number': ['n', 'o', 't'], 'ring-type': ['c', 'e', 'f', 'l', 'n', 'p', 's', 'z'], 'spore-print-color': ['b', 'h', 'k', 'n', 'o', 'r', 'u', 'w', 'y'], 'population': ['a', 'c', 'n', 's', 'v', 'y'], 'habitat': ['d', 'g', 'l', 'm', 'p', 'u', 'w']}, 'url': 'https://www.openml.org/d/24'} </code></pre></div> <h4 dir="auto">Actual Results</h4> <p dir="auto"><code class="notranslate">IndexError</code> is raised in <a href="https://github.com/scikit-learn/scikit-learn/blob/1495f6924/sklearn/datasets/openml.py#L248"><code class="notranslate">sklearn.datasets.openml._convert_arff_data</code></a>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--------------------------------------------------------------------------- IndexError Traceback (most recent call last) &lt;ipython-input-199-4b570313a12d&gt; in &lt;module&gt; ----&gt; 1 fetch_openml(data_id=25) ~/anaconda3/envs/cross/lib/python3.7/site-packages/sklearn/datasets/openml.py in fetch_openml(name, version, data_id, data_home, target_column, cache, return_X_y) 641 k in data_columns + target_column} 642 --&gt; 643 X, y = _convert_arff_data(arff['data'], col_slice_x, col_slice_y, shape) 644 645 is_classification = {col_name in nominal_attributes ~/anaconda3/envs/cross/lib/python3.7/site-packages/sklearn/datasets/openml.py in _convert_arff_data(arff_data, col_slice_x, col_slice_y, shape) 246 dtype='float64', count=count) 247 data = data.reshape(*shape) --&gt; 248 X = data[:, col_slice_x] 249 y = data[:, col_slice_y] 250 return X, y IndexError: index 27 is out of bounds for axis 1 with size 27"><pre class="notranslate"><code class="notranslate">--------------------------------------------------------------------------- IndexError Traceback (most recent call last) &lt;ipython-input-199-4b570313a12d&gt; in &lt;module&gt; ----&gt; 1 fetch_openml(data_id=25) ~/anaconda3/envs/cross/lib/python3.7/site-packages/sklearn/datasets/openml.py in fetch_openml(name, version, data_id, data_home, target_column, cache, return_X_y) 641 k in data_columns + target_column} 642 --&gt; 643 X, y = _convert_arff_data(arff['data'], col_slice_x, col_slice_y, shape) 644 645 is_classification = {col_name in nominal_attributes ~/anaconda3/envs/cross/lib/python3.7/site-packages/sklearn/datasets/openml.py in _convert_arff_data(arff_data, col_slice_x, col_slice_y, shape) 246 dtype='float64', count=count) 247 data = data.reshape(*shape) --&gt; 248 X = data[:, col_slice_x] 249 y = data[:, col_slice_y] 250 return X, y IndexError: index 27 is out of bounds for axis 1 with size 27 </code></pre></div> <h4 dir="auto">Versions</h4> <p dir="auto">System:<br> python: 3.7.5 (default, Oct 25 2019, 15:51:11) [GCC 7.3.0]<br> executable: /home/wendling/anaconda3/envs/cross/bin/python<br> machine: Linux-4.15.0-69-generic-x86_64-with-debian-buster-sid</p> <p dir="auto">Python deps:<br> pip: 19.3.1<br> setuptools: 41.6.0.post20191030<br> sklearn: 0.21.3<br> numpy: 1.17.2<br> scipy: 1.3.1<br> Cython: 0.29.13<br> pandas: 0.25.1</p>
<p dir="auto">OpenML <a href="https://www.openml.org/d/62" rel="nofollow">'zoo' dataset</a> fails to load.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; import sklearn.datasets &gt;&gt;&gt; sklearn.datasets.fetch_openml( 'zoo') /usr/lib/python3.7/site-packages/sklearn/datasets/openml.py:305: UserWarning: Multiple active versions of the dataset matching the name zoo exist. Versions may be fundamentally different, returning version 1. &quot; {version}.&quot;.format(name=name, version=res[0]['version'])) Traceback (most recent call last): File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt; File &quot;/usr/lib/python3.7/site-packages/sklearn/datasets/openml.py&quot;, line 643, in fetch_openml X, y = _convert_arff_data(arff['data'], col_slice_x, col_slice_y, shape) File &quot;/usr/lib/python3.7/site-packages/sklearn/datasets/openml.py&quot;, line 249, in _convert_arff_data y = data[:, col_slice_y] IndexError: index 17 is out of bounds for axis 1 with size 17"><pre class="notranslate"><span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-k">import</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">datasets</span> <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">datasets</span>.<span class="pl-en">fetch_openml</span>( <span class="pl-s">'zoo'</span>) <span class="pl-c1">/</span><span class="pl-s1">usr</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">7</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">sklearn</span><span class="pl-c1">/</span><span class="pl-s1">datasets</span><span class="pl-c1">/</span><span class="pl-s1">openml</span>.<span class="pl-s1">py</span>:<span class="pl-c1">305</span>: <span class="pl-v">UserWarning</span>: <span class="pl-v">Multiple</span> <span class="pl-s1">active</span> <span class="pl-s1">versions</span> <span class="pl-s1">of</span> <span class="pl-s1">the</span> <span class="pl-s1">dataset</span> <span class="pl-s1">matching</span> <span class="pl-s1">the</span> <span class="pl-s1">name</span> <span class="pl-s1">zoo</span> <span class="pl-s1">exist</span>. <span class="pl-v">Versions</span> <span class="pl-s1">may</span> <span class="pl-s1">be</span> <span class="pl-s1">fundamentally</span> <span class="pl-s1">different</span>, <span class="pl-s1">returning</span> <span class="pl-s1">version</span> <span class="pl-c1">1.</span> <span class="pl-s">" {version}."</span>.<span class="pl-en">format</span>(<span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s1">name</span>, <span class="pl-s1">version</span><span class="pl-c1">=</span><span class="pl-s1">res</span>[<span class="pl-c1">0</span>][<span class="pl-s">'version'</span>])) <span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>): <span class="pl-v">File</span> <span class="pl-s">"&lt;stdin&gt;"</span>, <span class="pl-s1">line</span> <span class="pl-c1">1</span>, <span class="pl-s1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span> <span class="pl-v">File</span> <span class="pl-s">"/usr/lib/python3.7/site-packages/sklearn/datasets/openml.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">643</span>, <span class="pl-s1">in</span> <span class="pl-s1">fetch_openml</span> <span class="pl-v">X</span>, <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-en">_convert_arff_data</span>(<span class="pl-s1">arff</span>[<span class="pl-s">'data'</span>], <span class="pl-s1">col_slice_x</span>, <span class="pl-s1">col_slice_y</span>, <span class="pl-s1">shape</span>) <span class="pl-v">File</span> <span class="pl-s">"/usr/lib/python3.7/site-packages/sklearn/datasets/openml.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">249</span>, <span class="pl-s1">in</span> <span class="pl-s1">_convert_arff_data</span> <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">data</span>[:, <span class="pl-s1">col_slice_y</span>] <span class="pl-v">IndexError</span>: <span class="pl-s1">index</span> <span class="pl-c1">17</span> <span class="pl-c1">is</span> <span class="pl-s1">out</span> <span class="pl-s1">of</span> <span class="pl-s1">bounds</span> <span class="pl-s1">for</span> <span class="pl-s1">axis</span> <span class="pl-c1">1</span> <span class="pl-k">with</span> <span class="pl-s1">size</span> <span class="pl-c1">17</span></pre></div> <p dir="auto">First reported as <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="466165998" data-permission-text="Title is private" data-url="https://github.com/openml/OpenML/issues/989" data-hovercard-type="issue" data-hovercard-url="/openml/OpenML/issues/989/hovercard" href="https://github.com/openml/OpenML/issues/989">openml/OpenML#989</a></p> <h4 dir="auto">Versions</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; import sklearn; sklearn.show_versions() /tmp/env/lib/python3.7/site-packages/numpy/distutils/system_info.py:639: UserWarning: Atlas (http://math-atlas.sourceforge.net/) libraries not found. Directories to search for the libraries can be specified in the numpy/distutils/site.cfg file (section [atlas]) or by setting the ATLAS environment variable. self.calc_info() System: python: 3.7.3 (default, Jun 24 2019, 04:54:02) [GCC 9.1.0] executable: /tmp/env/bin/python machine: Linux-5.1.16-arch1-1-ARCH-x86_64-with-arch BLAS: macros: NO_ATLAS_INFO=1, HAVE_CBLAS=None lib_dirs: /usr/lib64 cblas_libs: cblas Python deps: pip: 19.0.3 setuptools: 40.8.0 sklearn: 0.21.2 numpy: 1.16.4 scipy: 1.3.0 Cython: None pandas: 0.24.2"><pre class="notranslate"><span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-k">import</span> <span class="pl-s1">sklearn</span>; <span class="pl-s1">sklearn</span>.<span class="pl-en">show_versions</span>() <span class="pl-c1">/</span><span class="pl-s1">tmp</span><span class="pl-c1">/</span><span class="pl-s1">env</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">7</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">numpy</span><span class="pl-c1">/</span><span class="pl-s1">distutils</span><span class="pl-c1">/</span><span class="pl-s1">system_info</span>.<span class="pl-s1">py</span>:<span class="pl-c1">639</span>: <span class="pl-v">UserWarning</span>: <span class="pl-v">Atlas</span> (<span class="pl-s1">http</span>:<span class="pl-c1">//</span><span class="pl-s1">math</span><span class="pl-c1">-</span><span class="pl-s1">atlas</span>.<span class="pl-s1">sourceforge</span>.<span class="pl-s1">net</span><span class="pl-c1">/</span>) <span class="pl-s1">libraries</span> <span class="pl-c1">not</span> <span class="pl-s1">found</span>. <span class="pl-v">Directories</span> <span class="pl-s1">to</span> <span class="pl-s1">search</span> <span class="pl-k">for</span> <span class="pl-s1">the</span> <span class="pl-s1">libraries</span> <span class="pl-s1">can</span> <span class="pl-s1">be</span> <span class="pl-s1">specified</span> <span class="pl-c1">in</span> <span class="pl-s1">the</span> <span class="pl-s1">numpy</span><span class="pl-c1">/</span><span class="pl-s1">distutils</span><span class="pl-c1">/</span><span class="pl-s1">site</span>.<span class="pl-en">cfg</span> <span class="pl-s1">file</span> (<span class="pl-s1">section</span> [<span class="pl-s1">atlas</span>]) <span class="pl-c1">or</span> <span class="pl-s1">by</span> <span class="pl-s1">setting</span> <span class="pl-s1">the</span> <span class="pl-v">ATLAS</span> <span class="pl-s1">environment</span> <span class="pl-s1">variable</span>. <span class="pl-s1">self</span>.<span class="pl-en">calc_info</span>() <span class="pl-v">System</span>: <span class="pl-s1">python</span>: <span class="pl-c1">3.7</span>.<span class="pl-c1">3</span> (<span class="pl-s1">default</span>, <span class="pl-v">Jun</span> <span class="pl-c1">24</span> <span class="pl-c1">2019</span>, <span class="pl-c1">04</span>:<span class="pl-c1">54</span>:<span class="pl-c1">02</span>) [<span class="pl-v">GCC</span> <span class="pl-c1">9.1</span><span class="pl-c1">.0</span>] <span class="pl-s1">executable</span>: <span class="pl-c1">/</span><span class="pl-s1">tmp</span><span class="pl-c1">/</span><span class="pl-s1">env</span><span class="pl-c1">/</span><span class="pl-s1">bin</span><span class="pl-c1">/</span><span class="pl-s1">python</span> <span class="pl-s1">machine</span>: <span class="pl-v">Linux</span><span class="pl-c1">-</span><span class="pl-c1">5.1</span>.<span class="pl-c1">16</span><span class="pl-c1">-</span><span class="pl-s1">arch1</span><span class="pl-c1">-</span><span class="pl-c1">1</span><span class="pl-c1">-</span><span class="pl-v">ARCH</span><span class="pl-c1">-</span><span class="pl-s1">x86_64</span><span class="pl-c1">-</span><span class="pl-s1">with</span><span class="pl-c1">-</span><span class="pl-s1">arch</span> <span class="pl-v">BLAS</span>: <span class="pl-s1">macros</span>: <span class="pl-v">NO_ATLAS_INFO</span><span class="pl-c1">=</span><span class="pl-c1">1</span>, <span class="pl-v">HAVE_CBLAS</span><span class="pl-c1">=</span><span class="pl-c1">None</span> <span class="pl-s1">lib_dirs</span>: <span class="pl-c1">/</span><span class="pl-s1">usr</span><span class="pl-c1">/</span><span class="pl-s1">lib64</span> <span class="pl-s1">cblas_libs</span>: <span class="pl-s1">cblas</span> <span class="pl-v">Python</span> <span class="pl-s1">deps</span>: <span class="pl-s1">pip</span>: <span class="pl-c1">19.0</span>.<span class="pl-c1">3</span> <span class="pl-s1">setuptools</span>: <span class="pl-c1">40.8</span>.<span class="pl-c1">0</span> <span class="pl-s1">sklearn</span>: <span class="pl-c1">0.21</span>.<span class="pl-c1">2</span> <span class="pl-s1">numpy</span>: <span class="pl-c1">1.16</span>.<span class="pl-c1">4</span> <span class="pl-s1">scipy</span>: <span class="pl-c1">1.3</span>.<span class="pl-c1">0</span> <span class="pl-v">Cython</span>: <span class="pl-c1">None</span> <span class="pl-s1">pandas</span>: <span class="pl-c1">0.24</span>.<span class="pl-c1">2</span></pre></div>
1
<p dir="auto">Challenge <a href="http://freecodecamp.com/challenges/waypoint-target-elements-by-class-using-jquery" rel="nofollow">http://freecodecamp.com/challenges/waypoint-target-elements-by-class-using-jquery</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/12478585/9374199/0bbe33e4-46b9-11e5-8016-97378dad439b.png"><img src="https://cloud.githubusercontent.com/assets/12478585/9374199/0bbe33e4-46b9-11e5-8016-97378dad439b.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">You'll see where &lt;script&gt;&lt;/script&gt; should be there's that funky fcss-thing. It happened last page too.</p>
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-create-a-javascript-slot-machine" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-create-a-javascript-slot-machine</a> has an issue.</p> <p dir="auto">The four Javascript slot machine exercises all display the JS section of the code incorrectly. Presumably <code class="notranslate">fccss</code> is supposed to be <code class="notranslate">&lt;script&gt;</code>, and likewise <code class="notranslate">fcces</code> is supposed to be <code class="notranslate">&lt;/script&gt;</code>.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5023165/9371847/695d7f04-46a6-11e5-9ed0-8600b29b6c44.png"><img width="1969" alt="screen shot 2015-08-19 at 7 11 54 pm" src="https://cloud.githubusercontent.com/assets/5023165/9371847/695d7f04-46a6-11e5-9ed0-8600b29b6c44.png" style="max-width: 100%;"></a></p>
1
<h4 dir="auto">Description</h4> <p dir="auto">Output of SVC.decision_function for one observation depends on the other observations --&gt; it is not independant.</p> <h4 dir="auto">Steps/Code to Reproduce</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import numpy from sklearn.svm import SVC from sklearn.datasets import load_iris iris = load_iris() X = iris.data[:, :3] y = iris.target model = SVC() model.fit(X, y) X1 = X[:1] * 0.10 X2 = X[1:2] X3 = X[2:3] X1X2 = numpy.vstack([X1, X2]) X2X3 = numpy.vstack([X2, X3]) X1X3 = numpy.vstack([X1, X3]) X1X2X3 = numpy.vstack([X1, X2, X3]) print('X1') print(model.decision_function(X1)) print('X2') print(model.decision_function(X2)) print('X3') print('') print('X1 X2') print(model.decision_function(X1X2)) print('X2 X3') print(model.decision_function(X2X3)) print('') print('X1 X2 X3') print(model.decision_function(X1X2X3))"><pre class="notranslate"><code class="notranslate">import numpy from sklearn.svm import SVC from sklearn.datasets import load_iris iris = load_iris() X = iris.data[:, :3] y = iris.target model = SVC() model.fit(X, y) X1 = X[:1] * 0.10 X2 = X[1:2] X3 = X[2:3] X1X2 = numpy.vstack([X1, X2]) X2X3 = numpy.vstack([X2, X3]) X1X3 = numpy.vstack([X1, X3]) X1X2X3 = numpy.vstack([X1, X2, X3]) print('X1') print(model.decision_function(X1)) print('X2') print(model.decision_function(X2)) print('X3') print('') print('X1 X2') print(model.decision_function(X1X2)) print('X2 X3') print(model.decision_function(X2X3)) print('') print('X1 X2 X3') print(model.decision_function(X1X2X3)) </code></pre></div> <h4 dir="auto">Expected Results</h4> <p dir="auto">decision_function should verify:</p> <p dir="auto">decision_function(X1) == decision_function(X1X2)[:1]</p> <h4 dir="auto">Actual Results</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="X1 [[-0.49153396 0.99153396 2.5 ]] X2 [[ 2.5 0.77197248 -0.27197248]] X3 X1 X2 [[-0.04698652 0.99919072 2.0477958 ] [ 2.5 0.77197248 -0.27197248]] X2 X3 [[ 2.48614274 0.77829215 -0.26443489] [ 2.5 0.75104163 -0.25104163]] X1 X2 X3 [[-0.04568431 0.99921315 2.04647116] [ 2.48614274 0.77829215 -0.26443489] [ 2.5 0.75104163 -0.25104163]]"><pre class="notranslate"><code class="notranslate">X1 [[-0.49153396 0.99153396 2.5 ]] X2 [[ 2.5 0.77197248 -0.27197248]] X3 X1 X2 [[-0.04698652 0.99919072 2.0477958 ] [ 2.5 0.77197248 -0.27197248]] X2 X3 [[ 2.48614274 0.77829215 -0.26443489] [ 2.5 0.75104163 -0.25104163]] X1 X2 X3 [[-0.04568431 0.99921315 2.04647116] [ 2.48614274 0.77829215 -0.26443489] [ 2.5 0.75104163 -0.25104163]] </code></pre></div> <h4 dir="auto">Reasons</h4> <p dir="auto">decision_function calls _ovr_decision_function which normalizes outputs based on the whole set of observations.</p> <p dir="auto"><a href="https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/utils/multiclass.py#L432">https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/utils/multiclass.py#L432</a></p> <h4 dir="auto">Versions</h4> <p dir="auto">Windows-10-10.0.17134-SP0<br> Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)]<br> NumPy 1.15.3<br> SciPy 1.1.0<br> Scikit-Learn 0.20.0</p>
<h3 dir="auto">Describe the workflow you want to enable</h3> <p dir="auto">In my dreams, a new <code class="notranslate">InferenceData</code> class would simplify training and prediction to look more like</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import ... as learner data = InferenceData( df=..., # a data frame meta=Meta( y_cols=..., # name(s) of output variable ... # additional metadata fields ) ) train_data, test_data = data.split(train_fraction=0.7, ...) learner.fit(train_data) predictions = learner.predict(test_data.x)"><pre class="notranslate"><code class="notranslate">import ... as learner data = InferenceData( df=..., # a data frame meta=Meta( y_cols=..., # name(s) of output variable ... # additional metadata fields ) ) train_data, test_data = data.split(train_fraction=0.7, ...) learner.fit(train_data) predictions = learner.predict(test_data.x) </code></pre></div> <p dir="auto">Note that this introduces just two data variables <code class="notranslate">train_data</code> and <code class="notranslate">test_data</code> instead of the current standard four (<code class="notranslate">X_train, X_test, y_train, y_test</code>).</p> <p dir="auto">In addition, <code class="notranslate">InferenceData</code> could easily be extended to allow the above pipeline to handle related metadata such as feature weights, replacing a step like <code class="notranslate">learner.fit(train_data)</code> by <code class="notranslate">learner.fit(train_data, weights=train_data.row_weights)</code>, for example.</p> <h3 dir="auto">Describe your proposed solution</h3> <p dir="auto">A solution could look something like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@dataclass class Meta: &quot;&quot;&quot;Metadata for a Data class.&quot;&quot;&quot; y_cols: Optional[list[str]] = None row_weights_col: Optional[str] = None @property def y(self) -&gt; list[str]: &quot;&quot;&quot;Output variable column names.&quot;&quot;&quot; if not self.y_cols: return [] return self.y_cols @property def columns(self) -&gt; set[str]: &quot;&quot;&quot;All metadata columns.&quot;&quot;&quot; cols = set(self.y) if self.row_weights_col: cols.add(row_weights_col) return cols @dataclass class InferenceData: &quot;&quot;&quot;A data frame container that includes metadata relevant for machine learning and inference.&quot;&quot;&quot; df: DataFrame meta: Meta = Meta() def __post_init__(self) -&gt; None: &quot;&quot;&quot;Parameter validation.&quot;&quot;&quot; if (self.y is not None) and (self.n_rows != len(self.y)): raise ValueError(&quot;Expected y to have the same number of data points as x has.&quot;) # TODO: also validate that all columns referenced in self.meta exist in self.df etc @property def x(self) -&gt; DataFrame: &quot;&quot;&quot;The data frame of predictor variables, excluding output variables and weights, etc.&quot;&quot;&quot; non_metadata_cols = [col for col in self.df if col not in self.meta.columns] return self.df[non_metadata_cols] @property def y(self) -&gt; None | np.ndarray: &quot;&quot;&quot;Output features.&quot;&quot;&quot; if not self.meta.y_cols: return None if len(self.meta.y_cols) == 1: y_col = self.meta.y_cols[0] return self.df[y_col].to_numpy() return self.df[self.meta.y_cols].to_numpy() @property def w(self) -&gt; None | np.ndarray: &quot;&quot;&quot;The data frame of predictor variables, excluding output variables and weights, etc.&quot;&quot;&quot; return self.df[row_weights_col] def iloc(self, positional_indexes: Iterable) -&gt; &quot;InferenceData&quot;: &quot;&quot;&quot;Return the subset of the data in self corresponding to the specificied positional indices.&quot;&quot;&quot; return InferenceData(df=df.iloc[positional_indexes], meta=self.meta) @property def n_rows(self) -&gt; int: &quot;&quot;&quot;Number of rows of data.&quot;&quot;&quot; return self.df.shape[0]"><pre class="notranslate"><code class="notranslate">@dataclass class Meta: """Metadata for a Data class.""" y_cols: Optional[list[str]] = None row_weights_col: Optional[str] = None @property def y(self) -&gt; list[str]: """Output variable column names.""" if not self.y_cols: return [] return self.y_cols @property def columns(self) -&gt; set[str]: """All metadata columns.""" cols = set(self.y) if self.row_weights_col: cols.add(row_weights_col) return cols @dataclass class InferenceData: """A data frame container that includes metadata relevant for machine learning and inference.""" df: DataFrame meta: Meta = Meta() def __post_init__(self) -&gt; None: """Parameter validation.""" if (self.y is not None) and (self.n_rows != len(self.y)): raise ValueError("Expected y to have the same number of data points as x has.") # TODO: also validate that all columns referenced in self.meta exist in self.df etc @property def x(self) -&gt; DataFrame: """The data frame of predictor variables, excluding output variables and weights, etc.""" non_metadata_cols = [col for col in self.df if col not in self.meta.columns] return self.df[non_metadata_cols] @property def y(self) -&gt; None | np.ndarray: """Output features.""" if not self.meta.y_cols: return None if len(self.meta.y_cols) == 1: y_col = self.meta.y_cols[0] return self.df[y_col].to_numpy() return self.df[self.meta.y_cols].to_numpy() @property def w(self) -&gt; None | np.ndarray: """The data frame of predictor variables, excluding output variables and weights, etc.""" return self.df[row_weights_col] def iloc(self, positional_indexes: Iterable) -&gt; "InferenceData": """Return the subset of the data in self corresponding to the specificied positional indices.""" return InferenceData(df=df.iloc[positional_indexes], meta=self.meta) @property def n_rows(self) -&gt; int: """Number of rows of data.""" return self.df.shape[0] </code></pre></div> <p dir="auto">Of course, the usefulness of this solution will depend on wrapping existing machine learning algorithms to accept an InferenceData class as input.</p> <h3 dir="auto">Describe alternatives you've considered, if relevant</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Additional context</h3> <p dir="auto"><em>No response</em></p>
0
<h3 dir="auto">Bug summary</h3> <p dir="auto">Pyplot can't parse mathtext string, where there is a latin chatacter after greek letter (with spacing of course)</p> <h3 dir="auto">Code for reproduction</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt plt.title(r'$\alpha x$') 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">plt</span>.<span class="pl-en">title</span>(<span class="pl-s">r'$\alpha x$'</span>) <span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div> <h3 dir="auto">Actual outcome</h3> <p dir="auto">Exception in Tkinter callback<br> Traceback (most recent call last):<br> File "/home/brave_falcon/.local/lib/python3.8/site-packages/matplotlib/_mathtext.py", line 2277, in parse<br> result = self._expression.parseString(s)<br> File "/home/brave_falcon/.local/lib/python3.8/site-packages/pyparsing/core.py", line 1107, in parse_string<br> raise exc.with_traceback(None)<br> pyparsing.exceptions.ParseFatalException: Unknown symbol: \alpha, found '' (at char 0), (line:1, col:1)</p> <h3 dir="auto">Expected outcome</h3> <p dir="auto">Just normal parsing of mathtext, without raising errors</p> <h3 dir="auto">Operating system</h3> <p dir="auto">Ubuntu 18.04.6 LTS</p> <h3 dir="auto">Matplotlib Version</h3> <p dir="auto">3.4.3</p> <h3 dir="auto">Matplotlib Backend</h3> <p dir="auto">TkAgg</p> <h3 dir="auto">Python version</h3> <p dir="auto">Python 3.8.12</p> <h3 dir="auto">Jupyter version</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Other libraries</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Installation</h3> <p dir="auto">pip</p> <h3 dir="auto">Conda channel</h3> <p dir="auto"><em>No response</em></p>
<p dir="auto">I've noticed there is push in the documentation for using objects over the pyplot functions. I agree that this the best way to use Matplotlib(other than the set_ get_ methods). The problem I have is that Jedi(used in Spyder IDE and other editors) doesn't recognize the return types of some Matplotlib functions and methods such as <code class="notranslate">plt.figure</code> and <code class="notranslate">plt.subplot</code>. For example in Jedi 0.9 you get:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [1]: import jedi; jedi.Script('import pylab; a = pylab.figure(); a.set_f').completions() Out[1]: []"><pre class="notranslate"><code class="notranslate">In [1]: import jedi; jedi.Script('import pylab; a = pylab.figure(); a.set_f').completions() Out[1]: [] </code></pre></div> <p dir="auto">I usually have to play with MPL code in the console first to remember all the functions instead of just typing it all in the editor.</p> <p dir="auto">Luckily recently this patch(<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="187605183" data-permission-text="Title is private" data-url="https://github.com/davidhalter/jedi/issues/796" data-hovercard-type="pull_request" data-hovercard-url="/davidhalter/jedi/pull/796/hovercard" href="https://github.com/davidhalter/jedi/pull/796">davidhalter/jedi#796</a>) has been recently submitted to Jedi(not by me) which adds among other things implements return type hints from numpydoc docstrings. With this Jedi patch I get:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [1]: import jedi; jedi.Script('import pylab; a = pylab.figure(); a.set_f').completions() Out[1]: [&lt;Completion: set_facecolor&gt;, &lt;Completion: set_figheight&gt;, &lt;Completion: set_figure&gt;, &lt;Completion: set_figwidth&gt;, &lt;Completion: set_frameon&gt;]"><pre class="notranslate"><code class="notranslate">In [1]: import jedi; jedi.Script('import pylab; a = pylab.figure(); a.set_f').completions() Out[1]: [&lt;Completion: set_facecolor&gt;, &lt;Completion: set_figheight&gt;, &lt;Completion: set_figure&gt;, &lt;Completion: set_figwidth&gt;, &lt;Completion: set_frameon&gt;] </code></pre></div> <p dir="auto">Which is great. This works because there is a Numpydoc docstring for <code class="notranslate">plt.figure</code> with return of <code class="notranslate">Figure</code>. This works in Spyder IDE as well.</p> <p dir="auto">Unfortunately, this code doesn't work even after the patch:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import jedi; jedi.Script('import pylab; ax = pylab.figure().add_subplot(111); ax.set_x').completions()"><pre class="notranslate"><code class="notranslate">import jedi; jedi.Script('import pylab; ax = pylab.figure().add_subplot(111); ax.set_x').completions() </code></pre></div> <p dir="auto">This is a result of the docstrings for Figure.add_subplot and Figure.add_axes not containing a numpydoc return statement.</p> <p dir="auto">However, If I add this the top of their docstrings:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" &quot;&quot;&quot; Returns ------- axes : Axes The Axes you made Examples --------"><pre class="notranslate"><code class="notranslate"> """ Returns ------- axes : Axes The Axes you made Examples -------- </code></pre></div> <p dir="auto">I then get this result with the patch applied:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [3]: import jedi; jedi.Script('import pylab; ax = pylab.figure().add_subplot(111); ax.set_x').completions() Out[3]: [&lt;Completion: set_xbound&gt;, &lt;Completion: set_xlabel&gt;, &lt;Completion: set_xlim&gt;, &lt;Completion: set_xmargin&gt;, &lt;Completion: set_xscale&gt;, &lt;Completion: set_xticklabels&gt;, &lt;Completion: set_xticks&gt;]"><pre class="notranslate"><code class="notranslate">In [3]: import jedi; jedi.Script('import pylab; ax = pylab.figure().add_subplot(111); ax.set_x').completions() Out[3]: [&lt;Completion: set_xbound&gt;, &lt;Completion: set_xlabel&gt;, &lt;Completion: set_xlim&gt;, &lt;Completion: set_xmargin&gt;, &lt;Completion: set_xscale&gt;, &lt;Completion: set_xticklabels&gt;, &lt;Completion: set_xticks&gt;] </code></pre></div> <p dir="auto">Which is quite helpful when trying to remember all those Axes methods and for new learners.</p> <p dir="auto">I'm sure there are a few other functions( like <code class="notranslate">plt.gcf</code> and <code class="notranslate">Figure.gca</code> to name a couple) that could use a type hint as well.</p> <p dir="auto">Here it is working in Spyder (Some functions of Numpy work too...That <code class="notranslate">z</code> completes as a <code class="notranslate">numpy.adarray</code> ):</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/10513354/20744218/d1798a62-b697-11e6-9d3c-f9ecd77fde2f.png"><img src="https://cloud.githubusercontent.com/assets/10513354/20744218/d1798a62-b697-11e6-9d3c-f9ecd77fde2f.png" alt="screenshot from 2016-11-29 23-05-25" style="max-width: 100%;"></a></p> <p dir="auto">For more info on this with spyder see my comments on <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="58000278" data-permission-text="Title is private" data-url="https://github.com/spyder-ide/spyder/issues/2162" data-hovercard-type="issue" data-hovercard-url="/spyder-ide/spyder/issues/2162/hovercard" href="https://github.com/spyder-ide/spyder/issues/2162">spyder-ide/spyder#2162</a></p> <p dir="auto">To help us understand and resolve your issue please check that you have provided<br> the information below.</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Matplotlib version, Python version and Platform (Windows, OSX, Linux ...)<br> I'm using Python 3.5 on Linux with Matplotlib 1.5.3</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> How did you install Matplotlib and Python (pip, anaconda, from source ...)<br> Anaconda</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> If possible please supply a <a href="http://sscce.org/" rel="nofollow">Short, Self Contained, Correct, Example</a><br> that demonstrates the issue i.e a small piece of code which reproduces the issue<br> and can be run with out any other (or as few as possible) external dependencies.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> If this is an image generation bug attach a screenshot demonstrating the issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> If this is a regression (Used to work in an earlier version of Matplotlib), please<br> note where it used to work.</li> </ul>
0
<p dir="auto">When adding something like the following to pubspec.yaml:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="flutter: assets: - ../../../../some_file"><pre class="notranslate"><code class="notranslate">flutter: assets: - ../../../../some_file </code></pre></div> <p dir="auto">The flutter tool appends that full path to the <code class="notranslate">flutter_assets</code> directory path and ends up writing the file outside of the <code class="notranslate">flutter_assets</code> directory(e.g to <code class="notranslate">flutter_assets/../../../../some_file</code>).</p> <p dir="auto">Loading the asset at runtime fails.</p>
<p dir="auto">This was specifically happening with font assets. A font folder was unexpectedly being created as a sibling to the build directly.</p>
1
<p dir="auto">Seen on <code class="notranslate">rustc 0.12.0-pre-nightly (4d4eb1023 2014-08-02 23:36:09 +0000)</code></p> <p dir="auto">When compiling my <a href="https://github.com/TyOverby/irc-message/tree/e66c15e216720a2af23325a150318ea2c2d8bc4b">irc message parsing library</a> rustc uses as much CPU and memory as it can before crashing due to either an out of memory exception or an "illegal instruction" (stack overflow?).</p> <p dir="auto">The weird thing about this is that a single change didn't introduce the bug. As I worked on it, compile times got slower and slower until my machine could no longer even build the project.</p> <p dir="auto">Uninterestingly, I'm not using macros or any other rust features that might have explosive properties.</p>
<h1 dir="auto">Test Case</h1> <p dir="auto">To reproduce, download the two files in this gist and attempt to build <code class="notranslate">mkrust.rs</code>:</p> <p dir="auto"><a href="https://gist.github.com/bkoropoff/537951c596ba24166f06">https://gist.github.com/bkoropoff/537951c596ba24166f06</a></p> <h1 dir="auto">Analysis</h1> <p dir="auto">The complex <code class="notranslate">json.query(...)</code> expression in <code class="notranslate">mkrust.rs</code> seems to be the culprit. Progressively simplifying the expression will eventually cause the bug to no longer reproduce.</p> <p dir="auto">Running rustc under massif yields the following (truncated for space) stack for the primary memory hog, which appears to be a hash map associated with region inference:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="99.25% (522,819,638B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc. -&gt;68.00% (358,203,360B) 0x7E5562C: je_mallocx (in /home/bkoropoff/Software/rust/lib/librustrt-d8560cb2-0.11.0-pre.so) | -&gt;50.16% (264,241,152B) 0x57AF077: collections::hashmap::table::RawTable$LT$K$C$$x20V$GT$::new::h16071681466547729146::v0.11.0.pre (in /home/bkoropoff/Software/rust/lib/librustc-d252d482-0.11.0-pre.so) | | -&gt;50.16% (264,241,152B) 0x57B1D51: collections::hashmap::HashMap$LT$K$C$$x20V$C$$x20H$GT$::resize::h9544924386944675449::v0.11.0.pre (in /home/bkoropoff/Software/rust/lib/librustc-d252d482-0.11.0-pre.so) | | | -&gt;50.16% (264,241,152B) 0x57B81D1: middle::typeck::infer::region_inference::RegionVarBindings$LT$$x27a$GT$::add_constraint::he966b592d2e519c2Sxo::v0.11.0.pre (in /home/bkoropoff/Software/rust/lib/librustc-d252d482-0.11.0-pre.so) | | | -&gt;50.16% (264,241,152B) 0x57BA642: middle::typeck::infer::region_inference::RegionVarBindings$LT$$x27a$GT$::make_subregion::h5a25349bdfe40532sBo::v0.11.0.pre (in /home/bkoropoff/Software/rust/lib/librustc-d252d482-0.11.0-pre.so) | | | | -&gt;50.16% (264,241,152B) 0x57BC9F6: middle::typeck::infer::region_inference::RegionVarBindings$LT$$x27a$GT$::lub_regions::closure.93817 (in /home/bkoropoff/Software/rust/lib/librustc-d252d482-0.11.0-pre.so) | | | | | -&gt;50.16% (264,241,152B) 0x57BC0D0: middle::typeck::infer::region_inference::RegionVarBindings$LT$$x27a$GT$::combine_vars::h5ec95b92851d887cDUo::v0.11.0.pre (in /home/bkoropoff/Software/rust/lib/librustc-d252d482-0.11.0-pre.so) | | | | | | -&gt;50.16% (264,241,152B) 0x57A23E6: middle::typeck::infer::region_inference::RegionVarBindings$LT$$x27a$GT$::lub_regions::hc2ef972d6db9d001eIo::v0.11.0.pre (in /home/bkoropoff/Software/rust/lib/librustc-d252d482-0.11.0-pre.so) | | | | | | -&gt;50.16% (264,241,152B) 0x578A07A: middle::typeck::infer::lub::Lub$LT$$x27f$GT$.Combine::regions::h96b097927410ccd30sn::v0.11.0.pre (in /home/bkoropoff/Software/rust/lib/librustc-d252d482-0.11.0-pre.so)"><pre class="notranslate"><code class="notranslate">99.25% (522,819,638B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc. -&gt;68.00% (358,203,360B) 0x7E5562C: je_mallocx (in /home/bkoropoff/Software/rust/lib/librustrt-d8560cb2-0.11.0-pre.so) | -&gt;50.16% (264,241,152B) 0x57AF077: collections::hashmap::table::RawTable$LT$K$C$$x20V$GT$::new::h16071681466547729146::v0.11.0.pre (in /home/bkoropoff/Software/rust/lib/librustc-d252d482-0.11.0-pre.so) | | -&gt;50.16% (264,241,152B) 0x57B1D51: collections::hashmap::HashMap$LT$K$C$$x20V$C$$x20H$GT$::resize::h9544924386944675449::v0.11.0.pre (in /home/bkoropoff/Software/rust/lib/librustc-d252d482-0.11.0-pre.so) | | | -&gt;50.16% (264,241,152B) 0x57B81D1: middle::typeck::infer::region_inference::RegionVarBindings$LT$$x27a$GT$::add_constraint::he966b592d2e519c2Sxo::v0.11.0.pre (in /home/bkoropoff/Software/rust/lib/librustc-d252d482-0.11.0-pre.so) | | | -&gt;50.16% (264,241,152B) 0x57BA642: middle::typeck::infer::region_inference::RegionVarBindings$LT$$x27a$GT$::make_subregion::h5a25349bdfe40532sBo::v0.11.0.pre (in /home/bkoropoff/Software/rust/lib/librustc-d252d482-0.11.0-pre.so) | | | | -&gt;50.16% (264,241,152B) 0x57BC9F6: middle::typeck::infer::region_inference::RegionVarBindings$LT$$x27a$GT$::lub_regions::closure.93817 (in /home/bkoropoff/Software/rust/lib/librustc-d252d482-0.11.0-pre.so) | | | | | -&gt;50.16% (264,241,152B) 0x57BC0D0: middle::typeck::infer::region_inference::RegionVarBindings$LT$$x27a$GT$::combine_vars::h5ec95b92851d887cDUo::v0.11.0.pre (in /home/bkoropoff/Software/rust/lib/librustc-d252d482-0.11.0-pre.so) | | | | | | -&gt;50.16% (264,241,152B) 0x57A23E6: middle::typeck::infer::region_inference::RegionVarBindings$LT$$x27a$GT$::lub_regions::hc2ef972d6db9d001eIo::v0.11.0.pre (in /home/bkoropoff/Software/rust/lib/librustc-d252d482-0.11.0-pre.so) | | | | | | -&gt;50.16% (264,241,152B) 0x578A07A: middle::typeck::infer::lub::Lub$LT$$x27f$GT$.Combine::regions::h96b097927410ccd30sn::v0.11.0.pre (in /home/bkoropoff/Software/rust/lib/librustc-d252d482-0.11.0-pre.so) </code></pre></div>
1
<p dir="auto"><strong>TypeScript Version:</strong></p> <p dir="auto">1.8</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="async function scanPorts() { let result = await Promise.all(devices.map((device) =&gt; { return getPortStatus(device) })); return result.indexOf(&quot;open&quot;); ^ }"><pre class="notranslate"><span class="pl-k">async</span> <span class="pl-k">function</span> <span class="pl-en">scanPorts</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">result</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-smi">Promise</span><span class="pl-kos">.</span><span class="pl-en">all</span><span class="pl-kos">(</span><span class="pl-s1">devices</span><span class="pl-kos">.</span><span class="pl-en">map</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">device</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-en">getPortStatus</span><span class="pl-kos">(</span><span class="pl-s1">device</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">return</span> <span class="pl-s1">result</span><span class="pl-kos">.</span><span class="pl-en">indexOf</span><span class="pl-kos">(</span><span class="pl-s">"open"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c1">^</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><strong>Error</strong></p> <p dir="auto"><code class="notranslate">error TS2345: Argument of type 'string' is not assignable to parameter of type 'Promise&lt;{}&gt;'.</code></p>
<p dir="auto"><strong>TypeScript Version:</strong></p> <p dir="auto">1.8.9</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="Promise.all([Promise.resolve('')]); // has type Promise&lt;Promise&lt;string&gt;[]&gt;"><pre class="notranslate"><span class="pl-smi">Promise</span><span class="pl-kos">.</span><span class="pl-en">all</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-smi">Promise</span><span class="pl-kos">.</span><span class="pl-en">resolve</span><span class="pl-kos">(</span><span class="pl-s">''</span><span class="pl-kos">)</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// has type Promise&lt;Promise&lt;string&gt;[]&gt;</span></pre></div> <p dir="auto"><strong>Expected behavior:</strong><br> The expression has type <code class="notranslate">Promise&lt;string[]&gt;</code> as in 1.8.7<br> <strong>Actual behavior:</strong><br> The expression has type <code class="notranslate">Promise&lt;Promise&lt;string&gt;[]&gt;</code></p>
1
<p dir="auto">Current<code class="notranslate">tf.data.dataset</code>class only support <code class="notranslate">padded_batch</code> method which would pad every component into same shape, but there are cases that some component may not be padable, e.g., in object detection input pipeline, the ground truth calsses and bounding boxes are different for different image, so they can not be padded to the same shape as images, so how to batch these data in this case?</p>
<p dir="auto">Current TF dataset class only support fixed size padding for batching different sized input elements, however there are cases like in object detection, we may need to batch images according to their aspect ratios, i.e., push images with similar aspect ratio into one batch and pad them with minimal extra paddings, is there any existing approach that does not use feed_dict approach but directly utilize TF operators and read TF record files for accomplish this ? Thanks!</p>
1
<p dir="auto">Firebase Auth sendPasswordReset does not handle errors correctly when the email address does not exist. I receive this error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="W/BiChannelGoogleApi(15859): [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@135ff7f W/DynamiteModule(15859): Local module descriptor class for com.google.firebase.auth not found. I/FirebaseAuth(15859): [FirebaseAuth:] Loading module via FirebaseOptions. I/FirebaseAuth(15859): [FirebaseAuth:] Preparing to create service connection to gms implementation E/flutter (15859): [ERROR:flutter/shell/common/shell.cc(182)] Dart Error: Unhandled exception: E/flutter (15859): 'dart:async/future_impl.dart': Failed assertion: line 146: '&lt;optimized out&gt;': is not true. E/flutter (15859): #0 _AssertionError._doThrowNew (dart:core/runtime/liberrors_patch.dart:40:39) E/flutter (15859): #1 _AssertionError._throwNew (dart:core/runtime/liberrors_patch.dart:36:5) E/flutter (15859): #2 _FutureListener.handleError (dart:async/future_impl.dart:146:14) E/flutter (15859): #3 Future._propagateToListeners.handleError (dart:async/future_impl.dart:654:47) E/flutter (15859): #4 Future._propagateToListeners (dart:async/future_impl.dart:675:24) E/flutter (15859): #5 Future._completeError (dart:async/future_impl.dart:494:5) E/flutter (15859): #6 _SyncCompleter._completeError (dart:async/future_impl.dart:55:12) E/flutter (15859): #7 _Completer.completeError (dart:async/future_impl.dart:27:5) E/flutter (15859): #8 _AsyncAwaitCompleter.completeError (dart:async/runtime/libasync_patch.dart:40:18) E/flutter (15859): #9 FirebaseAuth.sendPasswordResetEmail (package:firebase_auth/firebase_auth.dart) E/flutter (15859): &lt;asynchronous suspension&gt; E/flutter (15859): #10 Auth.forgotPassword (file:///Volumes/drive/Flutter_Apps/flutter_crushn/lib/models/auth.dart:38:25) E/flutter (15859): &lt;asynchronous suspension&gt; E/flutter (15859): #11 _LoginState.forgotPasswordPressed (file:///Volumes/drive/Flutter_Apps/flutter_crushn/lib/pages/login.dart:382:42) E/flutter (15859): &lt;asynchronous suspension&gt; E/flutter (15859): #12 _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:507:14) E/flutter (15859): #13 _InkResponseState.build.&lt;anonymous closure&gt; (package:flutter/src/material/ink_well.dart:562:30) E/flutter (15859): #14 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:102:24) E/flutter (15859): #15 TapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:242:9) E/flutter (15859): #16 TapGestureRecognizer.acceptGesture (package:flutter/src/gestures/tap.dart:204:7) E/flutter (15859): #17 GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:156:27) E/flutter (15859): #18 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:147:20) E/flutter (15859): #19 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:121:22) E/flutter (15859): #20 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:101:7) E/flutter (15859): #21 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:64:7) E/flutter (15859): #22 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:48:7) E/flutter (15859): #23 _invoke1 (dart:ui/hooks.dart:153:13) E/flutter (15859): #24 _dispatchPointerDataPacket (dart:ui/hooks.dart:107:5)"><pre class="notranslate"><code class="notranslate">W/BiChannelGoogleApi(15859): [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@135ff7f W/DynamiteModule(15859): Local module descriptor class for com.google.firebase.auth not found. I/FirebaseAuth(15859): [FirebaseAuth:] Loading module via FirebaseOptions. I/FirebaseAuth(15859): [FirebaseAuth:] Preparing to create service connection to gms implementation E/flutter (15859): [ERROR:flutter/shell/common/shell.cc(182)] Dart Error: Unhandled exception: E/flutter (15859): 'dart:async/future_impl.dart': Failed assertion: line 146: '&lt;optimized out&gt;': is not true. E/flutter (15859): #0 _AssertionError._doThrowNew (dart:core/runtime/liberrors_patch.dart:40:39) E/flutter (15859): #1 _AssertionError._throwNew (dart:core/runtime/liberrors_patch.dart:36:5) E/flutter (15859): #2 _FutureListener.handleError (dart:async/future_impl.dart:146:14) E/flutter (15859): #3 Future._propagateToListeners.handleError (dart:async/future_impl.dart:654:47) E/flutter (15859): #4 Future._propagateToListeners (dart:async/future_impl.dart:675:24) E/flutter (15859): #5 Future._completeError (dart:async/future_impl.dart:494:5) E/flutter (15859): #6 _SyncCompleter._completeError (dart:async/future_impl.dart:55:12) E/flutter (15859): #7 _Completer.completeError (dart:async/future_impl.dart:27:5) E/flutter (15859): #8 _AsyncAwaitCompleter.completeError (dart:async/runtime/libasync_patch.dart:40:18) E/flutter (15859): #9 FirebaseAuth.sendPasswordResetEmail (package:firebase_auth/firebase_auth.dart) E/flutter (15859): &lt;asynchronous suspension&gt; E/flutter (15859): #10 Auth.forgotPassword (file:///Volumes/drive/Flutter_Apps/flutter_crushn/lib/models/auth.dart:38:25) E/flutter (15859): &lt;asynchronous suspension&gt; E/flutter (15859): #11 _LoginState.forgotPasswordPressed (file:///Volumes/drive/Flutter_Apps/flutter_crushn/lib/pages/login.dart:382:42) E/flutter (15859): &lt;asynchronous suspension&gt; E/flutter (15859): #12 _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:507:14) E/flutter (15859): #13 _InkResponseState.build.&lt;anonymous closure&gt; (package:flutter/src/material/ink_well.dart:562:30) E/flutter (15859): #14 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:102:24) E/flutter (15859): #15 TapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:242:9) E/flutter (15859): #16 TapGestureRecognizer.acceptGesture (package:flutter/src/gestures/tap.dart:204:7) E/flutter (15859): #17 GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:156:27) E/flutter (15859): #18 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:147:20) E/flutter (15859): #19 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:121:22) E/flutter (15859): #20 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:101:7) E/flutter (15859): #21 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:64:7) E/flutter (15859): #22 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:48:7) E/flutter (15859): #23 _invoke1 (dart:ui/hooks.dart:153:13) E/flutter (15859): #24 _dispatchPointerDataPacket (dart:ui/hooks.dart:107:5) </code></pre></div>
<h2 dir="auto">Steps to Reproduce</h2> <p dir="auto">flutter 0.5.1</p> <ol dir="auto"> <li>a form in AnimatedSize</li> <li>Tap any textfield</li> <li>keyboard show up with a white padding to overlap all widget<br> similar issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="280742796" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/13475" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/13475/hovercard" href="https://github.com/flutter/flutter/issues/13475">#13475</a></li> </ol> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/42162609/43753338-cb36b94c-9a37-11e8-9ca0-5d035c0758ef.gif"><img src="https://user-images.githubusercontent.com/42162609/43753338-cb36b94c-9a37-11e8-9ca0-5d035c0758ef.gif" alt="ezgif-3-ae5a51c278" data-animated-image="" style="max-width: 100%;"></a></p> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="new AnimatedSize( vsync: this, duration: const Duration(milliseconds: 200), new Form( // some text field ))"><pre class="notranslate"><span class="pl-k">new</span> <span class="pl-c1">AnimatedSize</span>( vsync<span class="pl-k">:</span> <span class="pl-c1">this</span>, duration<span class="pl-k">:</span> <span class="pl-k">const</span> <span class="pl-c1">Duration</span>(milliseconds<span class="pl-k">:</span> <span class="pl-c1">200</span>), <span class="pl-k">new</span> <span class="pl-c1">Form</span>( <span class="pl-c">// some text field</span> ))</pre></div> <h2 dir="auto">Logs</h2> <p dir="auto">No exception.</p>
0
<p dir="auto">It could be cool that Image.network send an event when the image is ready to display.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[00036.034] 02660.02697&gt; EXCEPTION CAUGHT BY SERVICES [00036.038] 02660.02697&gt; The following SocketException was thrown resolving a single-frame image stream: [00036.038] 02660.02697&gt; Failed host lookup: 'static.pexels.com' (OS Error: Name does not resolve, errno = -2) [00036.052] 02660.02697&gt; [00036.052] 02660.02697&gt; When the exception was thrown, this was the stack: [00036.061] 02660.02697&gt; #0 IOClient.send (package:http/src/io_client.dart:30) [00036.061] 02660.02697&gt; &lt;asynchronous suspension&gt; [00036.061] 02660.02697&gt; #1 BaseClient._sendUnstreamed (package:http/src/base_client.dart:171) [00036.061] 02660.02697&gt; &lt;asynchronous suspension&gt; [00036.061] 02660.02697&gt; #2 BaseClient.get (package:http/src/base_client.dart:34) [00036.061] 02660.02697&gt; #3 NetworkImage._loadAsync (package:flutter/src/services/image_provider.dart:344) [00036.061] 02660.02697&gt; &lt;asynchronous suspension&gt; [00036.061] 02660.02697&gt; #4 NetworkImage.load (package:flutter/src/services/image_provider.dart:330) [00036.061] 02660.02697&gt; #5 ImageProvider.resolve.&lt;anonymous closure&gt;.&lt;anonymous closure&gt; (package:flutter/src/services/image_provider.dart:170) [00036.061] 02660.02697&gt; #6 ImageCache.putIfAbsent (package:flutter/src/services/image_cache.dart:82) [00036.062] 02660.02697&gt; #7 ImageProvider.resolve.&lt;anonymous closure&gt; (package:flutter/src/services/image_provider.dart:170) [00036.062] 02660.02697&gt; #8 SynchronousFuture.then (package:flutter/src/foundation/synchronous_future.dart:38) [00036.062] 02660.02697&gt; #9 ImageProvider.resolve (package:flutter/src/services/image_provider.dart:168) [00036.062] 02660.02697&gt; #10 _ImageState._resolveImage (package:flutter/src/widgets/image.dart:276) [00036.062] 02660.02697&gt; #11 _ImageState.didChangeDependencies (package:flutter/src/widgets/image.dart:257) [00036.062] 02660.02697&gt; #12 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3260) "><pre class="notranslate"><code class="notranslate">[00036.034] 02660.02697&gt; EXCEPTION CAUGHT BY SERVICES [00036.038] 02660.02697&gt; The following SocketException was thrown resolving a single-frame image stream: [00036.038] 02660.02697&gt; Failed host lookup: 'static.pexels.com' (OS Error: Name does not resolve, errno = -2) [00036.052] 02660.02697&gt; [00036.052] 02660.02697&gt; When the exception was thrown, this was the stack: [00036.061] 02660.02697&gt; #0 IOClient.send (package:http/src/io_client.dart:30) [00036.061] 02660.02697&gt; &lt;asynchronous suspension&gt; [00036.061] 02660.02697&gt; #1 BaseClient._sendUnstreamed (package:http/src/base_client.dart:171) [00036.061] 02660.02697&gt; &lt;asynchronous suspension&gt; [00036.061] 02660.02697&gt; #2 BaseClient.get (package:http/src/base_client.dart:34) [00036.061] 02660.02697&gt; #3 NetworkImage._loadAsync (package:flutter/src/services/image_provider.dart:344) [00036.061] 02660.02697&gt; &lt;asynchronous suspension&gt; [00036.061] 02660.02697&gt; #4 NetworkImage.load (package:flutter/src/services/image_provider.dart:330) [00036.061] 02660.02697&gt; #5 ImageProvider.resolve.&lt;anonymous closure&gt;.&lt;anonymous closure&gt; (package:flutter/src/services/image_provider.dart:170) [00036.061] 02660.02697&gt; #6 ImageCache.putIfAbsent (package:flutter/src/services/image_cache.dart:82) [00036.062] 02660.02697&gt; #7 ImageProvider.resolve.&lt;anonymous closure&gt; (package:flutter/src/services/image_provider.dart:170) [00036.062] 02660.02697&gt; #8 SynchronousFuture.then (package:flutter/src/foundation/synchronous_future.dart:38) [00036.062] 02660.02697&gt; #9 ImageProvider.resolve (package:flutter/src/services/image_provider.dart:168) [00036.062] 02660.02697&gt; #10 _ImageState._resolveImage (package:flutter/src/widgets/image.dart:276) [00036.062] 02660.02697&gt; #11 _ImageState.didChangeDependencies (package:flutter/src/widgets/image.dart:257) [00036.062] 02660.02697&gt; #12 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3260) </code></pre></div>
1
<p dir="auto">use .gitignore to know which files and folders not to search into (think <code class="notranslate">node_modules</code> or <code class="notranslate">packages</code>)</p>
<ul dir="auto"> <li>VSCode Version: 1.0.0 (1.0.0)</li> <li>OS Version: OSX 10.11.4 (15E65)</li> </ul> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>Create a new project with git repository initialised.</li> <li>Create a folder /foo/bar</li> <li>Add a symlink from /foo/bar to /bar <code class="notranslate">ln -s /foo/bar .</code></li> <li>Go to <strong>Git</strong> tab on vscode, and stage <code class="notranslate">/bar</code> folder.</li> </ol> <p dir="auto">If now you click on staged <code class="notranslate">/bar</code> folder, you'll get an error <code class="notranslate">Warn: Can't open this git resource.</code></p>
0
<p dir="auto">Please:</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Check for duplicate issues.</li> </ul> <p dir="auto">I am running <code class="notranslate">JAX</code> on a <code class="notranslate">Fedora 35</code> system, with <code class="notranslate">CUDA 11.6</code>, <code class="notranslate">CuDNN 8.2</code>, <code class="notranslate">Driver version 510.60.02</code></p> <p dir="auto">[I installed <code class="notranslate">CuDNN</code> based on the <code class="notranslate">RHEL8</code> instructions <a href="https://docs.nvidia.com/deeplearning/cudnn/install-guide/index.html" rel="nofollow">here</a>, since <code class="notranslate">Fedora 35</code> doesn't seem to officially get the builds for it]<br> I installed <code class="notranslate">JAX</code> by following the instructions present in the README.md file. On doing that, and simply running the import command, I get the following error</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import jax.numpy as jnp"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">jax</span>.<span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">jnp</span></pre></div> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="AttributeError Traceback (most recent call last) Input In [8], in &lt;cell line: 4&gt;() 2 import nibabel as nib 3 import numpy as np ----&gt; 4 import jax.numpy as jnp 6 class NIIHandler(): 8 def __init__(self, TRAIN_DATASET_PATH): File ~/.local/lib/python3.10/site-packages/jax/__init__.py:58, in &lt;module&gt; 38 from jax._src.config import ( 39 config as config, 40 enable_checks as enable_checks, (...) 55 transfer_guard_device_to_host as transfer_guard_device_to_host, 56 ) 57 from .core import eval_context as ensure_compile_time_eval ---&gt; 58 from jax._src.api import ( 59 ad, # TODO(phawkins): update users to avoid this. 60 block_until_ready, 61 checkpoint as checkpoint, 62 checkpoint_policies as checkpoint_policies, 63 closure_convert as closure_convert, 64 curry, # TODO(phawkins): update users to avoid this. 65 custom_gradient as custom_gradient, 66 custom_jvp as custom_jvp, 67 custom_vjp as custom_vjp, 68 default_backend as default_backend, 69 device_count as device_count, 70 device_get as device_get, 71 device_put as device_put, 72 device_put_sharded as device_put_sharded, 73 device_put_replicated as device_put_replicated, 74 devices as devices, 75 disable_jit as disable_jit, 76 eval_shape as eval_shape, 77 flatten_fun_nokwargs, # TODO(phawkins): update users to avoid this. 78 float0 as float0, 79 grad as grad, 80 hessian as hessian, 81 host_count as host_count, 82 host_id as host_id, 83 host_ids as host_ids, 84 jacobian as jacobian, 85 jacfwd as jacfwd, 86 jacrev as jacrev, 87 jit as jit, 88 jvp as jvp, 89 local_device_count as local_device_count, 90 local_devices as local_devices, 91 linearize as linearize, 92 linear_transpose as linear_transpose, 93 make_jaxpr as make_jaxpr, 94 mask as mask, 95 named_call as named_call, 96 pmap as pmap, 97 process_count as process_count, 98 process_index as process_index, 99 pxla, # TODO(phawkins): update users to avoid this. 100 remat as remat, 101 shapecheck as shapecheck, 102 ShapedArray as ShapedArray, 103 ShapeDtypeStruct as ShapeDtypeStruct, 104 # TODO(phawkins): hide tree* functions from jax, update callers to use 105 # jax.tree_util. 106 treedef_is_leaf, 107 tree_flatten, 108 tree_leaves, 109 tree_map, 110 tree_multimap, 111 tree_structure, 112 tree_transpose, 113 tree_unflatten, 114 value_and_grad as value_and_grad, 115 vjp as vjp, 116 vmap as vmap, 117 xla, # TODO(phawkins): update users to avoid this. 118 xla_computation as xla_computation, 119 ) 120 from jax.experimental.maps import soft_pmap as soft_pmap 121 from jax.version import __version__ as __version__ File ~/.local/lib/python3.10/site-packages/jax/_src/api.py:61, in &lt;module&gt; 55 from jax._src import traceback_util 56 from jax._src.api_util import ( 57 flatten_fun, apply_flat_fun, flatten_fun_nokwargs, flatten_fun_nokwargs2, 58 argnums_partial, argnums_partial_except, flatten_axes, donation_vector, 59 rebase_donate_argnums, _ensure_index, _ensure_index_tuple, 60 shaped_abstractify, _ensure_str_tuple, argnames_partial_except) ---&gt; 61 from jax._src.lax import lax as lax_internal 62 from jax._src.lib import jax_jit 63 from jax._src.lib import xla_bridge as xb File ~/.local/lib/python3.10/site-packages/jax/_src/lax/lax.py:1653, in &lt;module&gt; 1651 tan_p = standard_unop(_float | _complex, 'tan') 1652 ad.defjvp2(tan_p, lambda g, ans, x: mul(g, _const(x, 1) + square(ans))) -&gt; 1653 if jax._src.lib.mlir_api_version &gt;= 11: 1654 mlir.register_lowering(tan_p, partial(_nary_lower_mhlo, chlo.TanOp)) 1655 else: AttributeError: partially initialized module 'jax' has no attribute '_src' (most likely due to a circular import)"><pre class="notranslate"><span class="pl-v">AttributeError</span> <span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>) <span class="pl-v">Input</span> <span class="pl-v">In</span> [<span class="pl-c1">8</span>], <span class="pl-s1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">cell</span> <span class="pl-s1">line</span>: <span class="pl-c1">4</span><span class="pl-c1">&gt;</span>() <span class="pl-c1">2</span> <span class="pl-k">import</span> <span class="pl-s1">nibabel</span> <span class="pl-k">as</span> <span class="pl-s1">nib</span> <span class="pl-c1">3</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-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">4</span> <span class="pl-s1">import</span> <span class="pl-s1">jax</span>.<span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">jnp</span> <span class="pl-c1">6</span> <span class="pl-k">class</span> <span class="pl-v">NIIHandler</span>(): <span class="pl-c1">8</span> <span class="pl-k">def</span> <span class="pl-en">__init__</span>(<span class="pl-s1">self</span>, <span class="pl-v">TRAIN_DATASET_PATH</span>): <span class="pl-v">File</span> <span class="pl-c1">~</span><span class="pl-c1">/</span>.<span class="pl-s1">local</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">10</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">jax</span><span class="pl-c1">/</span><span class="pl-s1">__init__</span>.<span class="pl-s1">py</span>:<span class="pl-c1">58</span>, <span class="pl-s1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span> <span class="pl-c1">38</span> <span class="pl-k">from</span> <span class="pl-s1">jax</span>.<span class="pl-s1">_src</span>.<span class="pl-s1">config</span> <span class="pl-k">import</span> ( <span class="pl-c1">39</span> <span class="pl-s1">config</span> <span class="pl-k">as</span> <span class="pl-s1">config</span>, <span class="pl-c1">40</span> <span class="pl-s1">enable_checks</span> <span class="pl-k">as</span> <span class="pl-s1">enable_checks</span>, (...) <span class="pl-c1">55</span> <span class="pl-s1">transfer_guard_device_to_host</span> <span class="pl-k">as</span> <span class="pl-s1">transfer_guard_device_to_host</span>, <span class="pl-c1">56</span> ) <span class="pl-c1">57</span> <span class="pl-k">from</span> .<span class="pl-s1">core</span> <span class="pl-k">import</span> <span class="pl-s1">eval_context</span> <span class="pl-k">as</span> <span class="pl-s1">ensure_compile_time_eval</span> <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">58</span> <span class="pl-k">from</span> <span class="pl-s1">jax</span>.<span class="pl-s1">_src</span>.<span class="pl-s1">api</span> <span class="pl-k">import</span> ( <span class="pl-c1">59</span> <span class="pl-s1">ad</span>, <span class="pl-c"># TODO(phawkins): update users to avoid this.</span> <span class="pl-c1">60</span> <span class="pl-s1">block_until_ready</span>, <span class="pl-c1">61</span> <span class="pl-s1">checkpoint</span> <span class="pl-k">as</span> <span class="pl-s1">checkpoint</span>, <span class="pl-c1">62</span> <span class="pl-s1">checkpoint_policies</span> <span class="pl-k">as</span> <span class="pl-s1">checkpoint_policies</span>, <span class="pl-c1">63</span> <span class="pl-s1">closure_convert</span> <span class="pl-k">as</span> <span class="pl-s1">closure_convert</span>, <span class="pl-c1">64</span> <span class="pl-s1">curry</span>, <span class="pl-c"># TODO(phawkins): update users to avoid this.</span> <span class="pl-c1">65</span> <span class="pl-s1">custom_gradient</span> <span class="pl-k">as</span> <span class="pl-s1">custom_gradient</span>, <span class="pl-c1">66</span> <span class="pl-s1">custom_jvp</span> <span class="pl-k">as</span> <span class="pl-s1">custom_jvp</span>, <span class="pl-c1">67</span> <span class="pl-s1">custom_vjp</span> <span class="pl-k">as</span> <span class="pl-s1">custom_vjp</span>, <span class="pl-c1">68</span> <span class="pl-s1">default_backend</span> <span class="pl-k">as</span> <span class="pl-s1">default_backend</span>, <span class="pl-c1">69</span> <span class="pl-s1">device_count</span> <span class="pl-k">as</span> <span class="pl-s1">device_count</span>, <span class="pl-c1">70</span> <span class="pl-s1">device_get</span> <span class="pl-k">as</span> <span class="pl-s1">device_get</span>, <span class="pl-c1">71</span> <span class="pl-s1">device_put</span> <span class="pl-k">as</span> <span class="pl-s1">device_put</span>, <span class="pl-c1">72</span> <span class="pl-s1">device_put_sharded</span> <span class="pl-k">as</span> <span class="pl-s1">device_put_sharded</span>, <span class="pl-c1">73</span> <span class="pl-s1">device_put_replicated</span> <span class="pl-k">as</span> <span class="pl-s1">device_put_replicated</span>, <span class="pl-c1">74</span> <span class="pl-s1">devices</span> <span class="pl-k">as</span> <span class="pl-s1">devices</span>, <span class="pl-c1">75</span> <span class="pl-s1">disable_jit</span> <span class="pl-k">as</span> <span class="pl-s1">disable_jit</span>, <span class="pl-c1">76</span> <span class="pl-s1">eval_shape</span> <span class="pl-k">as</span> <span class="pl-s1">eval_shape</span>, <span class="pl-c1">77</span> <span class="pl-s1">flatten_fun_nokwargs</span>, <span class="pl-c"># TODO(phawkins): update users to avoid this.</span> <span class="pl-c1">78</span> <span class="pl-s1">float0</span> <span class="pl-k">as</span> <span class="pl-s1">float0</span>, <span class="pl-c1">79</span> <span class="pl-s1">grad</span> <span class="pl-k">as</span> <span class="pl-s1">grad</span>, <span class="pl-c1">80</span> <span class="pl-s1">hessian</span> <span class="pl-k">as</span> <span class="pl-s1">hessian</span>, <span class="pl-c1">81</span> <span class="pl-s1">host_count</span> <span class="pl-k">as</span> <span class="pl-s1">host_count</span>, <span class="pl-c1">82</span> <span class="pl-s1">host_id</span> <span class="pl-k">as</span> <span class="pl-s1">host_id</span>, <span class="pl-c1">83</span> <span class="pl-s1">host_ids</span> <span class="pl-k">as</span> <span class="pl-s1">host_ids</span>, <span class="pl-c1">84</span> <span class="pl-s1">jacobian</span> <span class="pl-k">as</span> <span class="pl-s1">jacobian</span>, <span class="pl-c1">85</span> <span class="pl-s1">jacfwd</span> <span class="pl-k">as</span> <span class="pl-s1">jacfwd</span>, <span class="pl-c1">86</span> <span class="pl-s1">jacrev</span> <span class="pl-k">as</span> <span class="pl-s1">jacrev</span>, <span class="pl-c1">87</span> <span class="pl-s1">jit</span> <span class="pl-k">as</span> <span class="pl-s1">jit</span>, <span class="pl-c1">88</span> <span class="pl-s1">jvp</span> <span class="pl-k">as</span> <span class="pl-s1">jvp</span>, <span class="pl-c1">89</span> <span class="pl-s1">local_device_count</span> <span class="pl-k">as</span> <span class="pl-s1">local_device_count</span>, <span class="pl-c1">90</span> <span class="pl-s1">local_devices</span> <span class="pl-k">as</span> <span class="pl-s1">local_devices</span>, <span class="pl-c1">91</span> <span class="pl-s1">linearize</span> <span class="pl-k">as</span> <span class="pl-s1">linearize</span>, <span class="pl-c1">92</span> <span class="pl-s1">linear_transpose</span> <span class="pl-k">as</span> <span class="pl-s1">linear_transpose</span>, <span class="pl-c1">93</span> <span class="pl-s1">make_jaxpr</span> <span class="pl-k">as</span> <span class="pl-s1">make_jaxpr</span>, <span class="pl-c1">94</span> <span class="pl-s1">mask</span> <span class="pl-k">as</span> <span class="pl-s1">mask</span>, <span class="pl-c1">95</span> <span class="pl-s1">named_call</span> <span class="pl-k">as</span> <span class="pl-s1">named_call</span>, <span class="pl-c1">96</span> <span class="pl-s1">pmap</span> <span class="pl-k">as</span> <span class="pl-s1">pmap</span>, <span class="pl-c1">97</span> <span class="pl-s1">process_count</span> <span class="pl-k">as</span> <span class="pl-s1">process_count</span>, <span class="pl-c1">98</span> <span class="pl-s1">process_index</span> <span class="pl-k">as</span> <span class="pl-s1">process_index</span>, <span class="pl-c1">99</span> <span class="pl-s1">pxla</span>, <span class="pl-c"># TODO(phawkins): update users to avoid this.</span> <span class="pl-c1">100</span> <span class="pl-s1">remat</span> <span class="pl-k">as</span> <span class="pl-s1">remat</span>, <span class="pl-c1">101</span> <span class="pl-s1">shapecheck</span> <span class="pl-k">as</span> <span class="pl-s1">shapecheck</span>, <span class="pl-c1">102</span> <span class="pl-v">ShapedArray</span> <span class="pl-k">as</span> <span class="pl-v">ShapedArray</span>, <span class="pl-c1">103</span> <span class="pl-v">ShapeDtypeStruct</span> <span class="pl-k">as</span> <span class="pl-v">ShapeDtypeStruct</span>, <span class="pl-c1">104</span> <span class="pl-c"># TODO(phawkins): hide tree* functions from jax, update callers to use</span> <span class="pl-c1">105</span> <span class="pl-c"># jax.tree_util.</span> <span class="pl-c1">106</span> <span class="pl-s1">treedef_is_leaf</span>, <span class="pl-c1">107</span> <span class="pl-s1">tree_flatten</span>, <span class="pl-c1">108</span> <span class="pl-s1">tree_leaves</span>, <span class="pl-c1">109</span> <span class="pl-s1">tree_map</span>, <span class="pl-c1">110</span> <span class="pl-s1">tree_multimap</span>, <span class="pl-c1">111</span> <span class="pl-s1">tree_structure</span>, <span class="pl-c1">112</span> <span class="pl-s1">tree_transpose</span>, <span class="pl-c1">113</span> <span class="pl-s1">tree_unflatten</span>, <span class="pl-c1">114</span> <span class="pl-s1">value_and_grad</span> <span class="pl-k">as</span> <span class="pl-s1">value_and_grad</span>, <span class="pl-c1">115</span> <span class="pl-s1">vjp</span> <span class="pl-k">as</span> <span class="pl-s1">vjp</span>, <span class="pl-c1">116</span> <span class="pl-s1">vmap</span> <span class="pl-k">as</span> <span class="pl-s1">vmap</span>, <span class="pl-c1">117</span> <span class="pl-s1">xla</span>, <span class="pl-c"># TODO(phawkins): update users to avoid this.</span> <span class="pl-c1">118</span> <span class="pl-s1">xla_computation</span> <span class="pl-k">as</span> <span class="pl-s1">xla_computation</span>, <span class="pl-c1">119</span> ) <span class="pl-c1">120</span> <span class="pl-k">from</span> <span class="pl-s1">jax</span>.<span class="pl-s1">experimental</span>.<span class="pl-s1">maps</span> <span class="pl-k">import</span> <span class="pl-s1">soft_pmap</span> <span class="pl-k">as</span> <span class="pl-s1">soft_pmap</span> <span class="pl-c1">121</span> <span class="pl-k">from</span> <span class="pl-s1">jax</span>.<span class="pl-s1">version</span> <span class="pl-k">import</span> <span class="pl-s1">__version__</span> <span class="pl-k">as</span> <span class="pl-s1">__version__</span> <span class="pl-v">File</span> <span class="pl-c1">~</span><span class="pl-c1">/</span>.<span class="pl-s1">local</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">10</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">jax</span><span class="pl-c1">/</span><span class="pl-s1">_src</span><span class="pl-c1">/</span><span class="pl-s1">api</span>.<span class="pl-s1">py</span>:<span class="pl-c1">61</span>, <span class="pl-s1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span> <span class="pl-c1">55</span> <span class="pl-k">from</span> <span class="pl-s1">jax</span>.<span class="pl-s1">_src</span> <span class="pl-k">import</span> <span class="pl-s1">traceback_util</span> <span class="pl-c1">56</span> <span class="pl-k">from</span> <span class="pl-s1">jax</span>.<span class="pl-s1">_src</span>.<span class="pl-s1">api_util</span> <span class="pl-k">import</span> ( <span class="pl-c1">57</span> <span class="pl-s1">flatten_fun</span>, <span class="pl-s1">apply_flat_fun</span>, <span class="pl-s1">flatten_fun_nokwargs</span>, <span class="pl-s1">flatten_fun_nokwargs2</span>, <span class="pl-c1">58</span> <span class="pl-s1">argnums_partial</span>, <span class="pl-s1">argnums_partial_except</span>, <span class="pl-s1">flatten_axes</span>, <span class="pl-s1">donation_vector</span>, <span class="pl-c1">59</span> <span class="pl-s1">rebase_donate_argnums</span>, <span class="pl-s1">_ensure_index</span>, <span class="pl-s1">_ensure_index_tuple</span>, <span class="pl-c1">60</span> <span class="pl-s1">shaped_abstractify</span>, <span class="pl-s1">_ensure_str_tuple</span>, <span class="pl-s1">argnames_partial_except</span>) <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">61</span> <span class="pl-k">from</span> <span class="pl-s1">jax</span>.<span class="pl-s1">_src</span>.<span class="pl-s1">lax</span> <span class="pl-k">import</span> <span class="pl-s1">lax</span> <span class="pl-k">as</span> <span class="pl-s1">lax_internal</span> <span class="pl-c1">62</span> <span class="pl-k">from</span> <span class="pl-s1">jax</span>.<span class="pl-s1">_src</span>.<span class="pl-s1">lib</span> <span class="pl-k">import</span> <span class="pl-s1">jax_jit</span> <span class="pl-c1">63</span> <span class="pl-k">from</span> <span class="pl-s1">jax</span>.<span class="pl-s1">_src</span>.<span class="pl-s1">lib</span> <span class="pl-k">import</span> <span class="pl-s1">xla_bridge</span> <span class="pl-k">as</span> <span class="pl-s1">xb</span> <span class="pl-v">File</span> <span class="pl-c1">~</span><span class="pl-c1">/</span>.<span class="pl-s1">local</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">10</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">jax</span><span class="pl-c1">/</span><span class="pl-s1">_src</span><span class="pl-c1">/</span><span class="pl-s1">lax</span><span class="pl-c1">/</span><span class="pl-s1">lax</span>.<span class="pl-s1">py</span>:<span class="pl-c1">1653</span>, <span class="pl-s1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span> <span class="pl-c1">1651</span> <span class="pl-s1">tan_p</span> <span class="pl-c1">=</span> <span class="pl-en">standard_unop</span>(<span class="pl-s1">_float</span> <span class="pl-c1">|</span> <span class="pl-s1">_complex</span>, <span class="pl-s">'tan'</span>) <span class="pl-c1">1652</span> <span class="pl-s1">ad</span>.<span class="pl-en">defjvp2</span>(<span class="pl-s1">tan_p</span>, <span class="pl-k">lambda</span> <span class="pl-s1">g</span>, <span class="pl-s1">ans</span>, <span class="pl-s1">x</span>: <span class="pl-en">mul</span>(<span class="pl-s1">g</span>, <span class="pl-en">_const</span>(<span class="pl-s1">x</span>, <span class="pl-c1">1</span>) <span class="pl-c1">+</span> <span class="pl-en">square</span>(<span class="pl-s1">ans</span>))) <span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">1653</span> <span class="pl-k">if</span> <span class="pl-s1">jax</span>.<span class="pl-s1">_src</span>.<span class="pl-s1">lib</span>.<span class="pl-s1">mlir_api_version</span> <span class="pl-c1">&gt;=</span> <span class="pl-c1">11</span>: <span class="pl-c1">1654</span> <span class="pl-s1">mlir</span>.<span class="pl-en">register_lowering</span>(<span class="pl-s1">tan_p</span>, <span class="pl-en">partial</span>(<span class="pl-s1">_nary_lower_mhlo</span>, <span class="pl-s1">chlo</span>.<span class="pl-v">TanOp</span>)) <span class="pl-c1">1655</span> <span class="pl-k">else</span>: <span class="pl-v">AttributeError</span>: <span class="pl-s1">partially</span> <span class="pl-s1">initialized</span> <span class="pl-s1">module</span> <span class="pl-s">'jax'</span> <span class="pl-s1">has</span> <span class="pl-s1">no</span> <span class="pl-s1">attribute</span> <span class="pl-s">'_src'</span> (<span class="pl-s1">most</span> <span class="pl-s1">likely</span> <span class="pl-s1">due</span> <span class="pl-s1">to</span> <span class="pl-s1">a</span> <span class="pl-s1">circular</span> <span class="pl-s1">import</span>)</pre></div> <p dir="auto">I am extremely new to <code class="notranslate">JAX</code>, so please do let me know if there is something else I should be trying instead. Attaching my <code class="notranslate">nvidia-smi</code> and <code class="notranslate">nvcc -- version</code> results below.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/70141886/167195559-3086f698-2dd6-4cd0-8bfc-8d9df4126cb9.png"><img src="https://user-images.githubusercontent.com/70141886/167195559-3086f698-2dd6-4cd0-8bfc-8d9df4126cb9.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/70141886/167195599-7fe5c522-fada-47bf-a07a-f7630c76993e.png"><img src="https://user-images.githubusercontent.com/70141886/167195599-7fe5c522-fada-47bf-a07a-f7630c76993e.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Thank you very much!</p>
<p dir="auto">Please:</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Check for duplicate requests.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Describe your goal, and if possible provide a code snippet with a motivating example.</li> </ul> <p dir="auto"><a href="https://jax.readthedocs.io/en/latest/jax.random.html#advanced-rng-configuration" rel="nofollow">https://jax.readthedocs.io/en/latest/jax.random.html#advanced-rng-configuration</a></p> <p dir="auto">In here, the efficiently shardable through jit is only for TPUs. Could you make it for GPU?</p>
0
<p dir="auto"><strong>TypeScript Version:</strong></p> <p dir="auto">1.8.9</p> <p dir="auto"><strong>Code</strong></p> <p dir="auto">With the following function</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function foo(a) { return a + 'hello'; }"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-s1">a</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">a</span> <span class="pl-c1">+</span> <span class="pl-s">'hello'</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">I'd expect that <code class="notranslate">typeChecker.typeToString</code> of <code class="notranslate">foo</code>'s type should yield <code class="notranslate">(a: string) =&gt; string</code>.</p> <p dir="auto">Instead, it returns <code class="notranslate">(a: any) =&gt; string</code>.</p> <p dir="auto">Is this an issue of <code class="notranslate">typeToString</code>, or is the underlying Type object really marks <code class="notranslate">a</code> as <code class="notranslate">any</code>?</p> <p dir="auto">If it's the former, how can I walk the Type object to generate the right signature? A quick glance shows that a procedure type is "anonymous", and holds an opaque reference of <code class="notranslate">target</code> and <code class="notranslate">mapper</code>, which doesn't shed light on how to traverse the type objects. Is there a guide somewhere about the types?</p> <p dir="auto">I'm trying to generate the type signature for run time contract checking, so I need an accurate representation of the resolved type info.</p>
<p dir="auto">Consider,</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function isString(obj: any): obj is string { return typeof typeof obj === &quot;string&quot;; } function foo(value: (string|number)): number { if (isString(value)) { return value.indexOf('foo') } else return value; } function bar(value: (string|number)): number { if (isString(value)) { return value.indexOf('foo') } return value; }"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">isString</span><span class="pl-kos">(</span><span class="pl-s1">obj</span>: <span class="pl-smi">any</span><span class="pl-kos">)</span>: <span class="pl-s1">obj</span> is <span class="pl-smi">string</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-k">typeof</span> <span class="pl-k">typeof</span> <span class="pl-s1">obj</span> <span class="pl-c1">===</span> <span class="pl-s">"string"</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">function</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-s1">value</span>: <span class="pl-kos">(</span><span class="pl-smi">string</span><span class="pl-c1">|</span><span class="pl-smi">number</span><span class="pl-kos">)</span><span class="pl-kos">)</span>: <span class="pl-smi">number</span> <span class="pl-kos">{</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-en">isString</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">return</span> <span class="pl-s1">value</span><span class="pl-kos">.</span><span class="pl-en">indexOf</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-k">else</span> <span class="pl-k">return</span> <span class="pl-s1">value</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">function</span> <span class="pl-en">bar</span><span class="pl-kos">(</span><span class="pl-s1">value</span>: <span class="pl-kos">(</span><span class="pl-smi">string</span><span class="pl-c1">|</span><span class="pl-smi">number</span><span class="pl-kos">)</span><span class="pl-kos">)</span>: <span class="pl-smi">number</span> <span class="pl-kos">{</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-en">isString</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">return</span> <span class="pl-s1">value</span><span class="pl-kos">.</span><span class="pl-en">indexOf</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-k">return</span> <span class="pl-s1">value</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Expected: Both <code class="notranslate">foo</code> and <code class="notranslate">bar</code> type-check correctly.<br> Received: <code class="notranslate">bar</code> reports that <code class="notranslate">value</code> is not assignable to <code class="notranslate">number</code>.</p> <p dir="auto">Flow analysis could be used here to determine <code class="notranslate">value</code> can only be <code class="notranslate">number</code> in all the code paths that arrive at the final <code class="notranslate">return</code>.</p>
0
<p dir="auto">This week <a href="https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/VAEv-MUFGC8" rel="nofollow">Chrome announced their intent to ship WebGL 2.0</a> so I guess it's about time to start adding support!</p> <p dir="auto">There are already some PRs that add support to <code class="notranslate">WebGLRenderer</code> for some of the new features but, somehow, it didn't feel it was good idea to make <code class="notranslate">WebGLRenderer</code> support both <code class="notranslate">webgl</code> and <code class="notranslate">webgl2</code>.</p> <p dir="auto">Say hello to <code class="notranslate">WebGL2Renderer</code>! <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/mrdoob/three.js/commit/2ff9d410753b72a5e43b211dc3be26f0f0ab8a0e/hovercard" href="https://github.com/mrdoob/three.js/commit/2ff9d410753b72a5e43b211dc3be26f0f0ab8a0e"><tt>2ff9d41</tt></a> <g-emoji class="g-emoji" alias="wave" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f44b.png">👋</g-emoji></p> <p dir="auto">A new renderer not only will save us from tons of conditionals but also will give us the chance of cleaning things up; starting with only supporting <code class="notranslate">BufferGeometry</code> <g-emoji class="g-emoji" alias="v" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/270c.png">✌️</g-emoji></p> <p dir="auto">Sorry for all the people which PRs didn't got merged because of my indecision! <g-emoji class="g-emoji" alias="pensive" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f614.png">😔</g-emoji></p>
<p dir="auto">This is about the way you manage smoothing groups in OBJLoader <a href="https://github.com/mrdoob/three.js/blob/dev/examples/js/loaders/OBJLoader.js#L583-L602">(your remark about it)</a> and more generally about BufferGeometry Groups rendering.</p> <blockquote> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/todo/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/todo">@todo</a> Handle files that have varying smooth values for a set of faces inside one geometry but does not define a usemtl for each face set</p> </blockquote> <p dir="auto">IMO :<br> 1- This case is a 'standart' case and g/s/usemtl should generate bufferGeometry groups (BTW can we add a name to a group ?)<br> 2- Actually this parameter set the material.flatShading (true/false), but it does not do the job</p> <p dir="auto">In 3DSMax the smoothing group integer is a kind of faces group index which indicates that the faces are not 'merged' with neighbour faces with a different index.<br> An example here (look at the bottom teapot) :<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/00700dac574ea0db7aa264ac2f92acbe63e2d0bc416ab9e2c7b4f2731aaa9af6/687474703a2f2f77696b692e706f6c79636f756e742e636f6d2f772f696d616765732f662f66632f536d6f6f7468696e675f67726f7570732e6a7067"><img src="https://camo.githubusercontent.com/00700dac574ea0db7aa264ac2f92acbe63e2d0bc416ab9e2c7b4f2731aaa9af6/687474703a2f2f77696b692e706f6c79636f756e742e636f6d2f772f696d616765732f662f66632f536d6f6f7468696e675f67726f7570732e6a7067" alt="Image" data-canonical-src="http://wiki.polycount.com/w/images/f/fc/Smoothing_groups.jpg" style="max-width: 100%;"></a></p> <p dir="auto">I don't know how that could be reproduced ... but, if I come back to bufferGeometry Groups, I think that the result could be approached if the limit between group stays visible even if material.flatShading = false, ie <strong>by displaying the edges between non-coplanar faces of a different group</strong>.</p> <p dir="auto">For example this cube contains groups referencing the same material :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="groups: […] 0: Object { start: 0, count: 6, materialIndex: 0 } 1: Object { start: 6, count: 6, materialIndex: 0 } 2: Object { start: 12, count: 6, materialIndex: 0 } 3: Object { start: 18, count: 6, materialIndex: 0 } 4: Object { start: 24, count: 6, materialIndex: 0 } 5: Object { start: 30, count: 6, materialIndex: 0 }"><pre class="notranslate"><code class="notranslate">groups: […] 0: Object { start: 0, count: 6, materialIndex: 0 } 1: Object { start: 6, count: 6, materialIndex: 0 } 2: Object { start: 12, count: 6, materialIndex: 0 } 3: Object { start: 18, count: 6, materialIndex: 0 } 4: Object { start: 24, count: 6, materialIndex: 0 } 5: Object { start: 30, count: 6, materialIndex: 0 } </code></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/4399390/36672709-982e4738-1b00-11e8-8a05-668a45b58163.png"><img src="https://user-images.githubusercontent.com/4399390/36672709-982e4738-1b00-11e8-8a05-668a45b58163.png" alt="image" style="max-width: 100%;"></a><br> For me it reproduces the <code class="notranslate">Cube with group names</code> example of <a href="http://paulbourke.net/dataformats/obj/" rel="nofollow">obj specs</a> (middle of page) :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" v 0.000000 2.000000 2.000000 ... # 8 vertices g front cube f 1 2 3 4 g back cube f 8 7 6 5 g right cube f 4 3 7 8 g top cube f 5 1 4 8 g left cube f 5 6 2 1 g bottom cube f 2 6 7 3 # 6 elements"><pre class="notranslate"><code class="notranslate"> v 0.000000 2.000000 2.000000 ... # 8 vertices g front cube f 1 2 3 4 g back cube f 8 7 6 5 g right cube f 4 3 7 8 g top cube f 5 1 4 8 g left cube f 5 6 2 1 g bottom cube f 2 6 7 3 # 6 elements </code></pre></div> <p dir="auto">But I expected the render below (which is <code class="notranslate">flatShading = true</code>) ..<br> OR<br> The following obj should be rendered as <code class="notranslate">flatShading = true</code> material even if it's <code class="notranslate">false</code> ?</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" v 0.000000 2.000000 2.000000 ... # 8 vertices s 1 f 1 2 3 4 s 2 f 8 7 6 5 s 3 f 4 3 7 8 s 4 f 5 1 4 8 s 5 f 5 6 2 1 s 6 f 2 6 7 3 # 6 elements"><pre class="notranslate"><code class="notranslate"> v 0.000000 2.000000 2.000000 ... # 8 vertices s 1 f 1 2 3 4 s 2 f 8 7 6 5 s 3 f 4 3 7 8 s 4 f 5 1 4 8 s 5 f 5 6 2 1 s 6 f 2 6 7 3 # 6 elements </code></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/4399390/36673287-8efc110c-1b02-11e8-941e-804ff7dbb801.png"><img src="https://user-images.githubusercontent.com/4399390/36673287-8efc110c-1b02-11e8-941e-804ff7dbb801.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">This way we could manage smoothed portions of the mesh and 'flat' limit between faces groups ?</p>
0
<p dir="auto">A min or max aggregation of a date field returns a floating point number, epoch milliseconds, despite it being internally stored as a long. Should it really return an long? In some rare cases, will floating point not return an entirely accurate answer?</p>
<p dir="auto">I store 64-Bit-Twitter-IDs in a long field in Elasticsearch documents:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&quot;tweetId&quot;: { &quot;type&quot;: &quot;long&quot; }"><pre class="notranslate"><code class="notranslate">"tweetId": { "type": "long" } </code></pre></div> <p dir="auto">I want to use Max aggregation to get the maximum id. Unfortunately I only get Double values (f.ex. 5.6253962514387763E17) instead of my Long Id and I loose the last digits.</p> <p dir="auto">It would be perfect when I can also get the max value as <code class="notranslate">Long</code> instead of <code class="notranslate">Double</code>.</p> <p dir="auto">See also my <a href="http://stackoverflow.com/questions/28295400/elasticsearch-max-long-value-aggregation" rel="nofollow">Stackoverflow question</a> about this issue.</p>
1
<p dir="auto">Challenge <a href="http://freecodecamp.com/challenges/waypoint-target-a-specific-child-of-an-element-using-jquery" rel="nofollow">http://freecodecamp.com/challenges/waypoint-target-a-specific-child-of-an-element-using-jquery</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p> <p dir="auto">I'm hitting the 'run code' button and it does nothing. I've tried refreshing the page and same response. I can't progress past this challenge because of this.If in fact I have a syntax error, there needs to be some pop up telling me so, otherwise I have no idea.</p>
<h4 dir="auto">Challenge Name</h4> <p dir="auto"><a href="http://beta.freecodecamp.com/en/map" rel="nofollow">http://beta.freecodecamp.com/en/map</a></p> <h4 dir="auto">Issue Description</h4> <p dir="auto">If you collapse or expand the "Responsive Web Design" sub-list from the map list, it expands or collapses the whole Responsive Web Design List. Because it is targeting the same id.</p> <h4 dir="auto">Screenshot</h4> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/5114e08b0ae51fd20c84ff7a3a52a68476998da60a204399d7362d1633773c83/68747470733a2f2f692e696d6775722e636f6d2f6b4d6f664e49662e706e67"><img src="https://camo.githubusercontent.com/5114e08b0ae51fd20c84ff7a3a52a68476998da60a204399d7362d1633773c83/68747470733a2f2f692e696d6775722e636f6d2f6b4d6f664e49662e706e67" alt="" data-canonical-src="https://i.imgur.com/kMofNIf.png" style="max-width: 100%;"></a></p>
0
<p dir="auto"><code class="notranslate">OptionsResolve::resolve</code> method produces <code class="notranslate">Options::all</code> call before validating option values. <code class="notranslate">Options::all</code> call then executes normalizers with options that have not been validated yet. This makes it impossible to constrain options that are passed to normalizers in form types, like <code class="notranslate">ChoiceType</code>, <code class="notranslate">CollectionType</code>, <code class="notranslate">CountryType</code>, <code class="notranslate">LanguageType</code>, <code class="notranslate">LocaleType</code>, <code class="notranslate">TimezoneType</code>, <code class="notranslate">TimeType</code> and <code class="notranslate">CurrencyType</code>.</p> <p dir="auto">This issue was discovered while fixing <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="40500906" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/11694" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/11694/hovercard" href="https://github.com/symfony/symfony/issues/11694">#11694</a> with PR <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="40506718" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/11696" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/11696/hovercard" href="https://github.com/symfony/symfony/pull/11696">#11696</a></p>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;?php /** @Route */ class Controller { /** @Route */ method action() }"><pre class="notranslate"><span class="pl-ent">&lt;?php</span> <span class="pl-c">/** @Route */</span> <span class="pl-k">class</span> <span class="pl-v">Controller</span> { <span class="pl-c">/** @Route */</span> method action() }</pre></div> <p dir="auto">The annotation class loader does a bad job at merging class level settings with method level settings.</p> <p dir="auto">IE if the methods are [get, post] at class level and [post] at method level, the resulting methods will be [post, post].</p> <p dir="auto">This could easily be fixed but how:</p> <ul dir="auto"> <li>Should the class level params take precedence,</li> <li>Should the method level params take precedence,</li> <li>Should we do what other loader do for when merging collections - which has my pref.</li> </ul> <p dir="auto">If we pick the last choice, we might want to delegate the params merging to an exterbal service so that all loaders use the same services and code duplication stop causing troubles.</p> <p dir="auto">One last thing is where this should be merge ? This is obviously a bug fix but it also breaks BC and so I would recommend not to merge this to 2.0 and 2.1 but add this issue to a list of known issues for those realeses and fix from 2.2 onwards.</p>
0
<p dir="auto">I was viewing the <a href="https://flask.palletsprojects.com/en/2.0.x/testing/" rel="nofollow">testing docs</a> and found that the <code class="notranslate">create_app</code> function imported for the fixture is not used. Also <code class="notranslate">flaskr</code> is not imported directly, only the <code class="notranslate">create_app</code> function is. I don't think this is how it should be or am I missing something?</p>
<p dir="auto">Hello everybody.</p> <p dir="auto">Please, forgive my poor english, and do not get me wrong, my question is not malicious.</p> <p dir="auto">Actually, are any plans to reach version 1.0? Or at least reach a new version?</p> <p dir="auto">1.0, or a more fluid release versions can be a way to attract more users and developers.</p> <p dir="auto">Greetings, and thanks for the work you do in Flask.</p>
0
<p dir="auto">Describe what you were doing when the bug occurred:</p> <ol dir="auto"> <li>In React Profiler, under bar chart, clicked one of the components</li> <li></li> <li></li> </ol> <hr> <h2 dir="auto">Please do not remove the text below this line</h2> <p dir="auto">DevTools version: 4.0.6-a39d9c3</p> <p dir="auto">Call stack: at n.value (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:16722)<br> at m (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:293893)<br> at Al (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:294128)<br> at Ha (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:55891)<br> at bi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:62940)<br> at Xl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:99536)<br> at Hl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:84256)<br> at Fl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:81286)<br> at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:25364<br> at n.unstable_runWithPriority (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:4368)</p> <p dir="auto">Component stack: in Al<br> in div<br> in div<br> in Ir<br> in Unknown<br> in n<br> in Unknown<br> in div<br> in div<br> in Wa<br> in ce<br> in be<br> in So<br> in Vl</p>
<p dir="auto">PLEASE INCLUDE REPRO INSTRUCTIONS AND EXAMPLE CODE</p> <hr> <h2 dir="auto">Please do not remove the text below this line</h2> <p dir="auto">DevTools version: 4.0.4-3c6a219</p> <p dir="auto">Call stack: at n.value (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:16721)<br> at m (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:293207)<br> at pl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:293442)<br> at Ha (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:55890)<br> at bi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:62939)<br> at Xl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:99535)<br> at Hl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:84255)<br> at Fl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:81285)<br> at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:25363<br> at n.unstable_runWithPriority (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:4368)</p> <p dir="auto">Component stack: in pl<br> in div<br> in div<br> in Or<br> in Unknown<br> in n<br> in Unknown<br> in div<br> in div<br> in Ha<br> in le<br> in ve<br> in ko<br> in Ul</p>
1
<h2 dir="auto">Steps to Reproduce</h2> <ol dir="auto"> <li>... deal flutter build apk</li> <li>...</li> <li>...</li> </ol> <h2 dir="auto">Logs</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Reading input... Reading program jar [D:\FlutterSDK\flutterSdkUp\flutter\bin\cache\artifacts\engine\android-arm-release\flutter.jar] (filtered) Reading program jar [C:\Users\62682\.gradle\caches\transforms-1\files-1.1\sdk-2.12.5.0.aar\69d585b47560b80838e0320cdea510f7\jars\classes.jar] (filtered) Reading program jar [C:\Users\62682\.gradle\caches\modules-2\files-2.1\com.tencent.mm.opensdk\wechat-sdk-android-without-mta\1.4.0\6d9332f6999746b8fbda27659744f23e5dd27021\wechat-sdk-android-without-mta-1.4.0.jar] (filtered) Reading program jar [C:\Users\62682\.gradle\caches\transforms-1\files-1.1\support-v4-27.1.1.aar\207a5c58f369141f2b579675c7c9b49c\jars\classes.jar] (filtered) Reading program jar [C:\Users\62682\.gradle\caches\transforms-1\files-1.1\support-media-compat-27.1.1.aar\ef2d0c15837087a672dfad0bc1414f63\jars\classes.jar] (filtered) Reading program jar [C:\Users\62682\.gradle\caches\transforms-1\files-1.1\support-fragment-27.1.1.aar\8d045f8acabc8ceae40863e4ca8b6785\jars\classes.jar] (filtered) Reading program jar [C:\Users\62682\.gradle\caches\transforms-1\files-1.1\support-core-ui-27.1.1.aar\eda8615aa2110b28c33a97a9507ef161\jars\classes.jar] (filtered) Reading program jar [C:\Users\62682\.gradle\caches\transforms-1\files-1.1\support-core-utils-27.1.1.aar\bf2d85f29110f5f714ade3ddc5816d32\jars\classes.jar] (filtered) Reading program jar [C:\Users\62682\.gradle\caches\transforms-1\files-1.1\support-compat-27.1.1.aar\7a014764b6a3cafe6fb4602242f1df12\jars\classes.jar] (filtered) Reading program jar [C:\Users\62682\.gradle\caches\modules-2\files-2.1\com.google.protobuf\protobuf-lite\3.0.1\59b5b9c6e1a3054696d23492f888c1f8b583f5fc\protobuf-lite-3.0.1.jar] (filtered) Reading program jar [C:\Users\62682\.gradle\caches\modules-2\files-2.1\com.android.support\support-annotations\27.1.1\39ded76b5e1ce1c5b2688e1d25cdc20ecee32007\support-annotations-27.1.1.jar] (filtered) Reading program jar [C:\Users\62682\.gradle\caches\transforms-1\files-1.1\runtime-1.1.0.aar\cd4240276775951ba2a8eb41cb918a06\jars\classes.jar] (filtered) Reading program jar [C:\Users\62682\.gradle\caches\transforms-1\files-1.1\livedata-core-1.1.0.aar\be9ac40849b2a5f12f41661aa64b5c6f\jars\classes.jar] (filtered) Reading program jar [C:\Users\62682\.gradle\caches\transforms-1\files-1.1\viewmodel-1.1.0.aar\c377007519d29db9af37170c97fdd1ee\jars\classes.jar] (filtered) Reading program jar [C:\Users\62682\.gradle\caches\modules-2\files-2.1\android.arch.lifecycle\common\1.1.0\edf3f7bfb84a7521d0599efa3b0113a0ee90f85\common-1.1.0.jar] (filtered) Reading program jar [C:\Users\62682\.gradle\caches\transforms-1\files-1.1\runtime-1.1.0.aar\584604e38b0ba1f26d8b9b2eec4d8517\jars\classes.jar] (filtered) Reading program jar [C:\Users\62682\.gradle\caches\modules-2\files-2.1\android.arch.core\common\1.1.0\8007981f7d7540d89cd18471b8e5dcd2b4f99167\common-1.1.0.jar] (filtered) Reading program jar [D:\Achers\FlutterO2O\o2o\build\shared_preferences\intermediates\intermediate-jars\release\classes.jar] (filtered) Reading program jar [D:\Achers\FlutterO2O\o2o\build\url_launcher\intermediates\intermediate-jars\release\classes.jar] (filtered) Reading program jar [D:\Achers\FlutterO2O\o2o\build\image_picker\intermediates\intermediate-jars\release\classes.jar] (filtered) Reading program jar [D:\Achers\FlutterO2O\o2o\build\flutter_blue\intermediates\intermediate-jars\release\classes.jar] (filtered) Reading program directory [D:\Achers\FlutterO2O\o2o\build\app\intermediates\classes\release] (filtered) Reading program jar [D:\Achers\FlutterO2O\o2o\build\app\intermediates\transforms\mergeJavaRes\release\0.jar] (filtered) Reading library jar [D:\android-sdk-windows\platforms\android-27\android.jar] Reading library jar [D:\android-sdk-windows\platforms\android-27\optional\org.apache.http.legacy.jar] Note: duplicate definition of library class [org.apache.http.params.HttpParams] Note: duplicate definition of library class [org.apache.http.params.HttpConnectionParams] Note: duplicate definition of library class [org.apache.http.params.CoreConnectionPNames] Note: duplicate definition of library class [org.apache.http.conn.ConnectTimeoutException] Note: duplicate definition of library class [org.apache.http.conn.scheme.LayeredSocketFactory] Note: duplicate definition of library class [org.apache.http.conn.scheme.HostNameResolver] Note: duplicate definition of library class [org.apache.http.conn.scheme.SocketFactory] Note: duplicate definition of library class [android.net.http.SslCertificate$DName] Note: duplicate definition of library class [android.net.http.SslError] Note: duplicate definition of library class [android.net.http.SslCertificate] Note: duplicate definition of library class [android.net.http.HttpResponseCache] Note: there were 11 duplicate class definitions. (http://proguard.sourceforge.net/manual/troubleshooting.html#duplicateclass) Initializing... Note: the configuration refers to the unknown class 'fqcn.of.javascript.interface.for.webview' Note: the configuration refers to the unknown class 'com.alibaba.android.arouter.facade.template.ISyringe' Note: the configuration refers to the unknown class 'com.bumptech.glide.module.GlideModule' Note: the configuration refers to the unknown class 'com.talkingdata.sdk.TalkingDataSDK' Note: com.google.protobuf.ExtensionRegistryFactory: can't find dynamically referenced class com.google.protobuf.ExtensionRegistry Note: com.google.protobuf.ExtensionRegistryLite: can't find dynamically referenced class com.google.protobuf.Extension Note: com.igexin.assist.sdk.a: can't find dynamically referenced class com.igexin.assist.control.xiaomi.MiuiPushManager Note: com.igexin.assist.sdk.a: can't find dynamically referenced class com.igexin.assist.control.meizu.FlymePushManager Note: com.igexin.assist.sdk.a: can't find dynamically referenced class com.igexin.assist.control.huawei.HmsPushManager Note: com.igexin.assist.sdk.a: can't find dynamically referenced class com.igexin.assist.control.oppo.OppoPushManager Note: com.igexin.assist.sdk.a: can't find dynamically referenced class com.igexin.assist.control.fcm.FcmPushManager Note: com.igexin.assist.sdk.a: can't find dynamically referenced class com.igexin.assist.control.xiaomi.MiuiPushManager Note: com.igexin.assist.sdk.a: can't find dynamically referenced class com.igexin.assist.control.meizu.FlymePushManager Note: com.igexin.assist.sdk.a: can't find dynamically referenced class com.igexin.assist.control.huawei.HmsPushManager Note: com.igexin.assist.sdk.a: can't find dynamically referenced class com.igexin.assist.control.oppo.OppoPushManager Note: com.igexin.assist.sdk.a: can't find dynamically referenced class com.igexin.assist.control.fcm.FcmPushManager Note: com.igexin.assist.sdk.a: can't find dynamically referenced class com.xiaomi.mipush.sdk.MiPushClient Note: com.igexin.assist.sdk.a: can't find dynamically referenced class com.meizu.cloud.pushsdk.PushManager Note: com.igexin.push.core.a.a.g: can't find dynamically referenced class com.android.internal.R$id Note: com.igexin.push.extension.distribution.basic.a.o: can't find dynamically referenced class com.android.internal.R$id Note: com.igexin.push.extension.distribution.basic.a.o: can't find dynamically referenced class com.android.internal.R$id Note: com.igexin.push.extension.distribution.basic.g.e.b: can't find dynamically referenced class com.android.internal.R$id Note: com.igexin.push.extension.distribution.basic.l.a: can't find dynamically referenced class android.app.MiuiNotification Note: com.igexin.push.extension.distribution.basic.l.b: can't find dynamically referenced class com.igexin.assist.control.xiaomi.MiuiPushManager Note: com.igexin.push.extension.distribution.basic.l.b: can't find dynamically referenced class com.igexin.assist.control.meizu.FlymePushManager Note: com.igexin.push.extension.distribution.basic.l.b: can't find dynamically referenced class com.xiaomi.mipush.sdk.MiPushClient Note: com.igexin.push.extension.distribution.basic.l.b: can't find dynamically referenced class com.meizu.cloud.pushsdk.PushManager Note: com.igexin.push.extension.distribution.basic.l.d: can't find dynamically referenced class android.os.ServiceManager Note: com.igexin.push.extension.distribution.gbd.i.k: can't find dynamically referenced class android.os.SystemProperties Note: com.igexin.push.util.a: can't find dynamically referenced class android.os.ServiceManager Note: the configuration explicitly specifies 'org.json.**' to keep library class 'org.json.JSONArray' Note: the configuration explicitly specifies 'org.json.**' to keep library class 'org.json.JSONException' Note: the configuration explicitly specifies 'org.json.**' to keep library class 'org.json.JSONObject' Note: the configuration explicitly specifies 'org.json.**' to keep library class 'org.json.JSONStringer' Note: the configuration explicitly specifies 'org.json.**' to keep library class 'org.json.JSONTokener' Note: the configuration explicitly specifies 'org.json.**' to keep library class 'org.json.JSONArray' Note: the configuration explicitly specifies 'org.json.**' to keep library class 'org.json.JSONException' Note: the configuration explicitly specifies 'org.json.**' to keep library class 'org.json.JSONObject' Note: the configuration explicitly specifies 'org.json.**' to keep library class 'org.json.JSONStringer' Note: the configuration explicitly specifies 'org.json.**' to keep library class 'org.json.JSONTokener' Note: there were 4 references to unknown classes. You should check your configuration for typos. (http://proguard.sourceforge.net/manual/troubleshooting.html#unknownclass) Note: there were 10 library classes explicitly being kept. You don't need to keep library classes; they are already left unchanged. (http://proguard.sourceforge.net/manual/troubleshooting.html#libraryclass) Note: there were 26 unresolved dynamic references to classes or interfaces. You should check if you need to specify additional program jars. (http://proguard.sourceforge.net/manual/troubleshooting.html#dynamicalclass) Ignoring unused library classes... Original number of library classes: 4610 Final number of library classes: 1272 Printing kept classes, fields, and methods... Shrinking... Printing usage to [D:\Achers\FlutterO2O\o2o\build\app\outputs\mapping\release\usage.txt]... Removing unused program classes and class elements... Original number of program classes: 2275 Final number of program classes: 2271 Obfuscating... Printing mapping to [D:\Achers\FlutterO2O\o2o\build\app\outputs\mapping\release\mapping.txt]... Writing output... Preparing output jar [D:\Achers\FlutterO2O\o2o\build\app\intermediates\transforms\proguard\release\0.jar] Copying resources from program jar [D:\FlutterSDK\flutterSdkUp\flutter\bin\cache\artifacts\engine\android-arm-release\flutter.jar] (filtered) Copying resources from program jar [C:\Users\62682\.gradle\caches\transforms-1\files-1.1\sdk-2.12.5.0.aar\69d585b47560b80838e0320cdea510f7\jars\classes.jar] (filtered) Copying resources from program jar [C:\Users\62682\.gradle\caches\modules-2\files-2.1\com.tencent.mm.opensdk\wechat-sdk-android-without-mta\1.4.0\6d9332f6999746b8fbda27659744f23e5dd27021\wechat-sdk-android-without-mta-1.4.0. jar] (filtered) Copying resources from program jar [C:\Users\62682\.gradle\caches\transforms-1\files-1.1\support-v4-27.1.1.aar\207a5c58f369141f2b579675c7c9b49c\jars\classes.jar] (filtered) Copying resources from program jar [C:\Users\62682\.gradle\caches\transforms-1\files-1.1\support-media-compat-27.1.1.aar\ef2d0c15837087a672dfad0bc1414f63\jars\classes.jar] (filtered) Copying resources from program jar [C:\Users\62682\.gradle\caches\transforms-1\files-1.1\support-fragment-27.1.1.aar\8d045f8acabc8ceae40863e4ca8b6785\jars\classes.jar] (filtered) Copying resources from program jar [C:\Users\62682\.gradle\caches\transforms-1\files-1.1\support-core-ui-27.1.1.aar\eda8615aa2110b28c33a97a9507ef161\jars\classes.jar] (filtered) Copying resources from program jar [C:\Users\62682\.gradle\caches\transforms-1\files-1.1\support-core-utils-27.1.1.aar\bf2d85f29110f5f714ade3ddc5816d32\jars\classes.jar] (filtered) Copying resources from program jar [C:\Users\62682\.gradle\caches\transforms-1\files-1.1\support-compat-27.1.1.aar\7a014764b6a3cafe6fb4602242f1df12\jars\classes.jar] (filtered) Copying resources from program jar [C:\Users\62682\.gradle\caches\modules-2\files-2.1\com.google.protobuf\protobuf-lite\3.0.1\59b5b9c6e1a3054696d23492f888c1f8b583f5fc\protobuf-lite-3.0.1.jar] (filtered) Copying resources from program jar [C:\Users\62682\.gradle\caches\modules-2\files-2.1\com.android.support\support-annotations\27.1.1\39ded76b5e1ce1c5b2688e1d25cdc20ecee32007\support-annotations-27.1.1.jar] (filtered) Copying resources from program jar [C:\Users\62682\.gradle\caches\transforms-1\files-1.1\runtime-1.1.0.aar\cd4240276775951ba2a8eb41cb918a06\jars\classes.jar] (filtered) Copying resources from program jar [C:\Users\62682\.gradle\caches\transforms-1\files-1.1\livedata-core-1.1.0.aar\be9ac40849b2a5f12f41661aa64b5c6f\jars\classes.jar] (filtered) Copying resources from program jar [C:\Users\62682\.gradle\caches\transforms-1\files-1.1\viewmodel-1.1.0.aar\c377007519d29db9af37170c97fdd1ee\jars\classes.jar] (filtered) Copying resources from program jar [C:\Users\62682\.gradle\caches\modules-2\files-2.1\android.arch.lifecycle\common\1.1.0\edf3f7bfb84a7521d0599efa3b0113a0ee90f85\common-1.1.0.jar] (filtered) Copying resources from program jar [C:\Users\62682\.gradle\caches\transforms-1\files-1.1\runtime-1.1.0.aar\584604e38b0ba1f26d8b9b2eec4d8517\jars\classes.jar] (filtered) Copying resources from program jar [C:\Users\62682\.gradle\caches\modules-2\files-2.1\android.arch.core\common\1.1.0\8007981f7d7540d89cd18471b8e5dcd2b4f99167\common-1.1.0.jar] (filtered) Copying resources from program jar [D:\Achers\FlutterO2O\o2o\build\shared_preferences\intermediates\intermediate-jars\release\classes.jar] (filtered) Copying resources from program jar [D:\Achers\FlutterO2O\o2o\build\url_launcher\intermediates\intermediate-jars\release\classes.jar] (filtered) Copying resources from program jar [D:\Achers\FlutterO2O\o2o\build\image_picker\intermediates\intermediate-jars\release\classes.jar] (filtered) Copying resources from program jar [D:\Achers\FlutterO2O\o2o\build\flutter_blue\intermediates\intermediate-jars\release\classes.jar] (filtered) Copying resources from program directory [D:\Achers\FlutterO2O\o2o\build\app\intermediates\classes\release] (filtered) Copying resources from program jar [D:\Achers\FlutterO2O\o2o\build\app\intermediates\transforms\mergeJavaRes\release\0.jar] (filtered) Printing classes to [D:\Achers\FlutterO2O\o2o\build\app\outputs\mapping\release\dump.txt]... Gradle task 'assembleRelease'... Done 13.5s Built build\app\outputs\apk\release\app-release.apk (17.4MB). --&gt; "><pre class="notranslate"><code class="notranslate">Reading input... Reading program jar [D:\FlutterSDK\flutterSdkUp\flutter\bin\cache\artifacts\engine\android-arm-release\flutter.jar] (filtered) Reading program jar [C:\Users\62682\.gradle\caches\transforms-1\files-1.1\sdk-2.12.5.0.aar\69d585b47560b80838e0320cdea510f7\jars\classes.jar] (filtered) Reading program jar [C:\Users\62682\.gradle\caches\modules-2\files-2.1\com.tencent.mm.opensdk\wechat-sdk-android-without-mta\1.4.0\6d9332f6999746b8fbda27659744f23e5dd27021\wechat-sdk-android-without-mta-1.4.0.jar] (filtered) Reading program jar [C:\Users\62682\.gradle\caches\transforms-1\files-1.1\support-v4-27.1.1.aar\207a5c58f369141f2b579675c7c9b49c\jars\classes.jar] (filtered) Reading program jar [C:\Users\62682\.gradle\caches\transforms-1\files-1.1\support-media-compat-27.1.1.aar\ef2d0c15837087a672dfad0bc1414f63\jars\classes.jar] (filtered) Reading program jar [C:\Users\62682\.gradle\caches\transforms-1\files-1.1\support-fragment-27.1.1.aar\8d045f8acabc8ceae40863e4ca8b6785\jars\classes.jar] (filtered) Reading program jar [C:\Users\62682\.gradle\caches\transforms-1\files-1.1\support-core-ui-27.1.1.aar\eda8615aa2110b28c33a97a9507ef161\jars\classes.jar] (filtered) Reading program jar [C:\Users\62682\.gradle\caches\transforms-1\files-1.1\support-core-utils-27.1.1.aar\bf2d85f29110f5f714ade3ddc5816d32\jars\classes.jar] (filtered) Reading program jar [C:\Users\62682\.gradle\caches\transforms-1\files-1.1\support-compat-27.1.1.aar\7a014764b6a3cafe6fb4602242f1df12\jars\classes.jar] (filtered) Reading program jar [C:\Users\62682\.gradle\caches\modules-2\files-2.1\com.google.protobuf\protobuf-lite\3.0.1\59b5b9c6e1a3054696d23492f888c1f8b583f5fc\protobuf-lite-3.0.1.jar] (filtered) Reading program jar [C:\Users\62682\.gradle\caches\modules-2\files-2.1\com.android.support\support-annotations\27.1.1\39ded76b5e1ce1c5b2688e1d25cdc20ecee32007\support-annotations-27.1.1.jar] (filtered) Reading program jar [C:\Users\62682\.gradle\caches\transforms-1\files-1.1\runtime-1.1.0.aar\cd4240276775951ba2a8eb41cb918a06\jars\classes.jar] (filtered) Reading program jar [C:\Users\62682\.gradle\caches\transforms-1\files-1.1\livedata-core-1.1.0.aar\be9ac40849b2a5f12f41661aa64b5c6f\jars\classes.jar] (filtered) Reading program jar [C:\Users\62682\.gradle\caches\transforms-1\files-1.1\viewmodel-1.1.0.aar\c377007519d29db9af37170c97fdd1ee\jars\classes.jar] (filtered) Reading program jar [C:\Users\62682\.gradle\caches\modules-2\files-2.1\android.arch.lifecycle\common\1.1.0\edf3f7bfb84a7521d0599efa3b0113a0ee90f85\common-1.1.0.jar] (filtered) Reading program jar [C:\Users\62682\.gradle\caches\transforms-1\files-1.1\runtime-1.1.0.aar\584604e38b0ba1f26d8b9b2eec4d8517\jars\classes.jar] (filtered) Reading program jar [C:\Users\62682\.gradle\caches\modules-2\files-2.1\android.arch.core\common\1.1.0\8007981f7d7540d89cd18471b8e5dcd2b4f99167\common-1.1.0.jar] (filtered) Reading program jar [D:\Achers\FlutterO2O\o2o\build\shared_preferences\intermediates\intermediate-jars\release\classes.jar] (filtered) Reading program jar [D:\Achers\FlutterO2O\o2o\build\url_launcher\intermediates\intermediate-jars\release\classes.jar] (filtered) Reading program jar [D:\Achers\FlutterO2O\o2o\build\image_picker\intermediates\intermediate-jars\release\classes.jar] (filtered) Reading program jar [D:\Achers\FlutterO2O\o2o\build\flutter_blue\intermediates\intermediate-jars\release\classes.jar] (filtered) Reading program directory [D:\Achers\FlutterO2O\o2o\build\app\intermediates\classes\release] (filtered) Reading program jar [D:\Achers\FlutterO2O\o2o\build\app\intermediates\transforms\mergeJavaRes\release\0.jar] (filtered) Reading library jar [D:\android-sdk-windows\platforms\android-27\android.jar] Reading library jar [D:\android-sdk-windows\platforms\android-27\optional\org.apache.http.legacy.jar] Note: duplicate definition of library class [org.apache.http.params.HttpParams] Note: duplicate definition of library class [org.apache.http.params.HttpConnectionParams] Note: duplicate definition of library class [org.apache.http.params.CoreConnectionPNames] Note: duplicate definition of library class [org.apache.http.conn.ConnectTimeoutException] Note: duplicate definition of library class [org.apache.http.conn.scheme.LayeredSocketFactory] Note: duplicate definition of library class [org.apache.http.conn.scheme.HostNameResolver] Note: duplicate definition of library class [org.apache.http.conn.scheme.SocketFactory] Note: duplicate definition of library class [android.net.http.SslCertificate$DName] Note: duplicate definition of library class [android.net.http.SslError] Note: duplicate definition of library class [android.net.http.SslCertificate] Note: duplicate definition of library class [android.net.http.HttpResponseCache] Note: there were 11 duplicate class definitions. (http://proguard.sourceforge.net/manual/troubleshooting.html#duplicateclass) Initializing... Note: the configuration refers to the unknown class 'fqcn.of.javascript.interface.for.webview' Note: the configuration refers to the unknown class 'com.alibaba.android.arouter.facade.template.ISyringe' Note: the configuration refers to the unknown class 'com.bumptech.glide.module.GlideModule' Note: the configuration refers to the unknown class 'com.talkingdata.sdk.TalkingDataSDK' Note: com.google.protobuf.ExtensionRegistryFactory: can't find dynamically referenced class com.google.protobuf.ExtensionRegistry Note: com.google.protobuf.ExtensionRegistryLite: can't find dynamically referenced class com.google.protobuf.Extension Note: com.igexin.assist.sdk.a: can't find dynamically referenced class com.igexin.assist.control.xiaomi.MiuiPushManager Note: com.igexin.assist.sdk.a: can't find dynamically referenced class com.igexin.assist.control.meizu.FlymePushManager Note: com.igexin.assist.sdk.a: can't find dynamically referenced class com.igexin.assist.control.huawei.HmsPushManager Note: com.igexin.assist.sdk.a: can't find dynamically referenced class com.igexin.assist.control.oppo.OppoPushManager Note: com.igexin.assist.sdk.a: can't find dynamically referenced class com.igexin.assist.control.fcm.FcmPushManager Note: com.igexin.assist.sdk.a: can't find dynamically referenced class com.igexin.assist.control.xiaomi.MiuiPushManager Note: com.igexin.assist.sdk.a: can't find dynamically referenced class com.igexin.assist.control.meizu.FlymePushManager Note: com.igexin.assist.sdk.a: can't find dynamically referenced class com.igexin.assist.control.huawei.HmsPushManager Note: com.igexin.assist.sdk.a: can't find dynamically referenced class com.igexin.assist.control.oppo.OppoPushManager Note: com.igexin.assist.sdk.a: can't find dynamically referenced class com.igexin.assist.control.fcm.FcmPushManager Note: com.igexin.assist.sdk.a: can't find dynamically referenced class com.xiaomi.mipush.sdk.MiPushClient Note: com.igexin.assist.sdk.a: can't find dynamically referenced class com.meizu.cloud.pushsdk.PushManager Note: com.igexin.push.core.a.a.g: can't find dynamically referenced class com.android.internal.R$id Note: com.igexin.push.extension.distribution.basic.a.o: can't find dynamically referenced class com.android.internal.R$id Note: com.igexin.push.extension.distribution.basic.a.o: can't find dynamically referenced class com.android.internal.R$id Note: com.igexin.push.extension.distribution.basic.g.e.b: can't find dynamically referenced class com.android.internal.R$id Note: com.igexin.push.extension.distribution.basic.l.a: can't find dynamically referenced class android.app.MiuiNotification Note: com.igexin.push.extension.distribution.basic.l.b: can't find dynamically referenced class com.igexin.assist.control.xiaomi.MiuiPushManager Note: com.igexin.push.extension.distribution.basic.l.b: can't find dynamically referenced class com.igexin.assist.control.meizu.FlymePushManager Note: com.igexin.push.extension.distribution.basic.l.b: can't find dynamically referenced class com.xiaomi.mipush.sdk.MiPushClient Note: com.igexin.push.extension.distribution.basic.l.b: can't find dynamically referenced class com.meizu.cloud.pushsdk.PushManager Note: com.igexin.push.extension.distribution.basic.l.d: can't find dynamically referenced class android.os.ServiceManager Note: com.igexin.push.extension.distribution.gbd.i.k: can't find dynamically referenced class android.os.SystemProperties Note: com.igexin.push.util.a: can't find dynamically referenced class android.os.ServiceManager Note: the configuration explicitly specifies 'org.json.**' to keep library class 'org.json.JSONArray' Note: the configuration explicitly specifies 'org.json.**' to keep library class 'org.json.JSONException' Note: the configuration explicitly specifies 'org.json.**' to keep library class 'org.json.JSONObject' Note: the configuration explicitly specifies 'org.json.**' to keep library class 'org.json.JSONStringer' Note: the configuration explicitly specifies 'org.json.**' to keep library class 'org.json.JSONTokener' Note: the configuration explicitly specifies 'org.json.**' to keep library class 'org.json.JSONArray' Note: the configuration explicitly specifies 'org.json.**' to keep library class 'org.json.JSONException' Note: the configuration explicitly specifies 'org.json.**' to keep library class 'org.json.JSONObject' Note: the configuration explicitly specifies 'org.json.**' to keep library class 'org.json.JSONStringer' Note: the configuration explicitly specifies 'org.json.**' to keep library class 'org.json.JSONTokener' Note: there were 4 references to unknown classes. You should check your configuration for typos. (http://proguard.sourceforge.net/manual/troubleshooting.html#unknownclass) Note: there were 10 library classes explicitly being kept. You don't need to keep library classes; they are already left unchanged. (http://proguard.sourceforge.net/manual/troubleshooting.html#libraryclass) Note: there were 26 unresolved dynamic references to classes or interfaces. You should check if you need to specify additional program jars. (http://proguard.sourceforge.net/manual/troubleshooting.html#dynamicalclass) Ignoring unused library classes... Original number of library classes: 4610 Final number of library classes: 1272 Printing kept classes, fields, and methods... Shrinking... Printing usage to [D:\Achers\FlutterO2O\o2o\build\app\outputs\mapping\release\usage.txt]... Removing unused program classes and class elements... Original number of program classes: 2275 Final number of program classes: 2271 Obfuscating... Printing mapping to [D:\Achers\FlutterO2O\o2o\build\app\outputs\mapping\release\mapping.txt]... Writing output... Preparing output jar [D:\Achers\FlutterO2O\o2o\build\app\intermediates\transforms\proguard\release\0.jar] Copying resources from program jar [D:\FlutterSDK\flutterSdkUp\flutter\bin\cache\artifacts\engine\android-arm-release\flutter.jar] (filtered) Copying resources from program jar [C:\Users\62682\.gradle\caches\transforms-1\files-1.1\sdk-2.12.5.0.aar\69d585b47560b80838e0320cdea510f7\jars\classes.jar] (filtered) Copying resources from program jar [C:\Users\62682\.gradle\caches\modules-2\files-2.1\com.tencent.mm.opensdk\wechat-sdk-android-without-mta\1.4.0\6d9332f6999746b8fbda27659744f23e5dd27021\wechat-sdk-android-without-mta-1.4.0. jar] (filtered) Copying resources from program jar [C:\Users\62682\.gradle\caches\transforms-1\files-1.1\support-v4-27.1.1.aar\207a5c58f369141f2b579675c7c9b49c\jars\classes.jar] (filtered) Copying resources from program jar [C:\Users\62682\.gradle\caches\transforms-1\files-1.1\support-media-compat-27.1.1.aar\ef2d0c15837087a672dfad0bc1414f63\jars\classes.jar] (filtered) Copying resources from program jar [C:\Users\62682\.gradle\caches\transforms-1\files-1.1\support-fragment-27.1.1.aar\8d045f8acabc8ceae40863e4ca8b6785\jars\classes.jar] (filtered) Copying resources from program jar [C:\Users\62682\.gradle\caches\transforms-1\files-1.1\support-core-ui-27.1.1.aar\eda8615aa2110b28c33a97a9507ef161\jars\classes.jar] (filtered) Copying resources from program jar [C:\Users\62682\.gradle\caches\transforms-1\files-1.1\support-core-utils-27.1.1.aar\bf2d85f29110f5f714ade3ddc5816d32\jars\classes.jar] (filtered) Copying resources from program jar [C:\Users\62682\.gradle\caches\transforms-1\files-1.1\support-compat-27.1.1.aar\7a014764b6a3cafe6fb4602242f1df12\jars\classes.jar] (filtered) Copying resources from program jar [C:\Users\62682\.gradle\caches\modules-2\files-2.1\com.google.protobuf\protobuf-lite\3.0.1\59b5b9c6e1a3054696d23492f888c1f8b583f5fc\protobuf-lite-3.0.1.jar] (filtered) Copying resources from program jar [C:\Users\62682\.gradle\caches\modules-2\files-2.1\com.android.support\support-annotations\27.1.1\39ded76b5e1ce1c5b2688e1d25cdc20ecee32007\support-annotations-27.1.1.jar] (filtered) Copying resources from program jar [C:\Users\62682\.gradle\caches\transforms-1\files-1.1\runtime-1.1.0.aar\cd4240276775951ba2a8eb41cb918a06\jars\classes.jar] (filtered) Copying resources from program jar [C:\Users\62682\.gradle\caches\transforms-1\files-1.1\livedata-core-1.1.0.aar\be9ac40849b2a5f12f41661aa64b5c6f\jars\classes.jar] (filtered) Copying resources from program jar [C:\Users\62682\.gradle\caches\transforms-1\files-1.1\viewmodel-1.1.0.aar\c377007519d29db9af37170c97fdd1ee\jars\classes.jar] (filtered) Copying resources from program jar [C:\Users\62682\.gradle\caches\modules-2\files-2.1\android.arch.lifecycle\common\1.1.0\edf3f7bfb84a7521d0599efa3b0113a0ee90f85\common-1.1.0.jar] (filtered) Copying resources from program jar [C:\Users\62682\.gradle\caches\transforms-1\files-1.1\runtime-1.1.0.aar\584604e38b0ba1f26d8b9b2eec4d8517\jars\classes.jar] (filtered) Copying resources from program jar [C:\Users\62682\.gradle\caches\modules-2\files-2.1\android.arch.core\common\1.1.0\8007981f7d7540d89cd18471b8e5dcd2b4f99167\common-1.1.0.jar] (filtered) Copying resources from program jar [D:\Achers\FlutterO2O\o2o\build\shared_preferences\intermediates\intermediate-jars\release\classes.jar] (filtered) Copying resources from program jar [D:\Achers\FlutterO2O\o2o\build\url_launcher\intermediates\intermediate-jars\release\classes.jar] (filtered) Copying resources from program jar [D:\Achers\FlutterO2O\o2o\build\image_picker\intermediates\intermediate-jars\release\classes.jar] (filtered) Copying resources from program jar [D:\Achers\FlutterO2O\o2o\build\flutter_blue\intermediates\intermediate-jars\release\classes.jar] (filtered) Copying resources from program directory [D:\Achers\FlutterO2O\o2o\build\app\intermediates\classes\release] (filtered) Copying resources from program jar [D:\Achers\FlutterO2O\o2o\build\app\intermediates\transforms\mergeJavaRes\release\0.jar] (filtered) Printing classes to [D:\Achers\FlutterO2O\o2o\build\app\outputs\mapping\release\dump.txt]... Gradle task 'assembleRelease'... Done 13.5s Built build\app\outputs\apk\release\app-release.apk (17.4MB). --&gt; </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" &lt;!-- Finally, paste the output of running `flutter doctor -v` here. --&gt; "><pre class="notranslate"><code class="notranslate"> &lt;!-- Finally, paste the output of running `flutter doctor -v` here. --&gt; </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" • Flutter version 0.11.3 at D:\FlutterSDK\flutterSdkUp\flutter • Framework revision 72bf075e8d (6 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.3) • Android SDK at D:\android-sdk-windows • Android NDK location not configured (optional; useful for native profiling support) • Platform android-28, build-tools 28.0.3 • ANDROID_HOME = D:\android-sdk-windows • Java binary at: D:\Program Files\Android\Android Studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01) • All Android licenses accepted. [√] Android Studio (version 3.0) • Android Studio at D:\Program Files\Android\Android Studio • Flutter plugin version 23.2.1 • Dart plugin version 171.4424 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01) [√] Connected device (1 available) • SM G9350 • 41d574b4 • android-arm64 • Android 8.0.0 (API 26) • No issues found! "><pre lang="[√]" class="notranslate"><code class="notranslate"> • Flutter version 0.11.3 at D:\FlutterSDK\flutterSdkUp\flutter • Framework revision 72bf075e8d (6 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.3) • Android SDK at D:\android-sdk-windows • Android NDK location not configured (optional; useful for native profiling support) • Platform android-28, build-tools 28.0.3 • ANDROID_HOME = D:\android-sdk-windows • Java binary at: D:\Program Files\Android\Android Studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01) • All Android licenses accepted. [√] Android Studio (version 3.0) • Android Studio at D:\Program Files\Android\Android Studio • Flutter plugin version 23.2.1 • Dart plugin version 171.4424 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01) [√] Connected device (1 available) • SM G9350 • 41d574b4 • android-arm64 • Android 8.0.0 (API 26) • No issues found! </code></pre></div>
<p dir="auto">We have an issue with Flutter connected to Cloud Firestore in offline mode.</p> <p dir="auto">Specifically, if you have a ListView builder that displays data from a <strong>Firestore Collection</strong>:</p> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" StreamBuilder&lt;QuerySnapshot&gt;( stream: Firestore.instance.collection('flutter_data').snapshots(), builder: (context, snapshot) { if (!snapshot.hasData || snapshot.connectionState == ConnectionState.waiting) { return CircularProgressIndicator(); } return FirestoreListView(documents: snapshot.data.documents); }, )"><pre class="notranslate"> <span class="pl-c1">StreamBuilder</span>&lt;<span class="pl-c1">QuerySnapshot</span>&gt;( stream<span class="pl-k">:</span> <span class="pl-c1">Firestore</span>.instance.<span class="pl-en">collection</span>(<span class="pl-s">'flutter_data'</span>).<span class="pl-en">snapshots</span>(), builder<span class="pl-k">:</span> (context, snapshot) { <span class="pl-k">if</span> (<span class="pl-k">!</span>snapshot.hasData <span class="pl-k">||</span> snapshot.connectionState <span class="pl-k">==</span> <span class="pl-c1">ConnectionState</span>.waiting) { <span class="pl-k">return</span> <span class="pl-c1">CircularProgressIndicator</span>(); } <span class="pl-k">return</span> <span class="pl-c1">FirestoreListView</span>(documents<span class="pl-k">:</span> snapshot.data.documents); }, )</pre></div> <p dir="auto">and you have a button that adds data to Firestore :</p> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" void addTitle(String text) { Map&lt;String, String&gt; data = {'title': text}; Firestore.instance.runTransaction((Transaction tx) async { var snapshot = await tx.get(Firestore.instance.document('flutter_data')); await tx.set(snapshot.reference, data); }); }"><pre class="notranslate"> <span class="pl-k">void</span> <span class="pl-en">addTitle</span>(<span class="pl-c1">String</span> text) { <span class="pl-c1">Map</span>&lt;<span class="pl-c1">String</span>, <span class="pl-c1">String</span>&gt; data <span class="pl-k">=</span> {<span class="pl-s">'title'</span><span class="pl-k">:</span> text}; <span class="pl-c1">Firestore</span>.instance.<span class="pl-en">runTransaction</span>((<span class="pl-c1">Transaction</span> tx) <span class="pl-k">async</span> { <span class="pl-k">var</span> snapshot <span class="pl-k">=</span> <span class="pl-k">await</span> tx.<span class="pl-en">get</span>(<span class="pl-c1">Firestore</span>.instance.<span class="pl-en">document</span>(<span class="pl-s">'flutter_data'</span>)); <span class="pl-k">await</span> tx.<span class="pl-en">set</span>(snapshot.reference, data); }); }</pre></div> <p dir="auto">Then assuming we have no network connection and add say the title -&gt; test12345 , our listview builder will show the string <strong>test12345</strong> approx 5 times - we then turn on the connection, our app will then throw a PlatformException with the error :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="**errorCode = 9** **message = Transaction failed all retries**"><pre class="notranslate"><code class="notranslate">**errorCode = 9** **message = Transaction failed all retries** </code></pre></div> <p dir="auto">And stack trace</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt; &quot;LocalDownloadTask &lt;3109D0D9-C5AA-456D-8A15-B6DFB23DA3B8&gt;.&lt;1&gt;&quot; &gt; ), NSLocalizedDescription=A server with the specified hostname could not be found., NSErrorFailingURLStringKey=https://app-measurement.com/config/app/1:841219028691:ios:4435fb28c55b69f4?platform=ios&amp;app_instance_id=D2667171446D4FB3BBEDA454B4D5B89E&amp;gmp_version=50200, NSErrorFailingURLKey=https://app-measurement.com/config/app/1:841219028691:ios:4435fb28c55b69f4?platform=ios&amp;app_instance_id=D2667171446D4FB3BBEDA454B4D5B89E&amp;gmp_version=50200, _kCFStream [&lt;decode: missing data&gt;] &gt; 5.9.0 - [Firebase/Analytics][I-ACS901017] Encounter network error. Code, error: -1003, Error Domain=NSURLErrorDomain Code=-1003 &quot;A server with the specified hostname could not be found.&quot; UserInfo={_kCFStreamErrorCodeKey=8, NSUnderlyingError=0x600001fdc180 {Error Domain=kCFErrorDomainCFNetwork Code=-1003 &quot;(null)&quot; UserInfo={_kCFStreamErrorCodeKey=8, _kCFStreamErrorDomainKey=12}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDownloadTask &lt;3109D0D9-C5AA-456D-8A15-B6DFB23DA3B8&gt;.&lt;1&gt;, _NSURLErrorRelatedURLSessionTaskError"><pre class="notranslate"><code class="notranslate">&gt; "LocalDownloadTask &lt;3109D0D9-C5AA-456D-8A15-B6DFB23DA3B8&gt;.&lt;1&gt;" &gt; ), NSLocalizedDescription=A server with the specified hostname could not be found., NSErrorFailingURLStringKey=https://app-measurement.com/config/app/1:841219028691:ios:4435fb28c55b69f4?platform=ios&amp;app_instance_id=D2667171446D4FB3BBEDA454B4D5B89E&amp;gmp_version=50200, NSErrorFailingURLKey=https://app-measurement.com/config/app/1:841219028691:ios:4435fb28c55b69f4?platform=ios&amp;app_instance_id=D2667171446D4FB3BBEDA454B4D5B89E&amp;gmp_version=50200, _kCFStream [&lt;decode: missing data&gt;] &gt; 5.9.0 - [Firebase/Analytics][I-ACS901017] Encounter network error. Code, error: -1003, Error Domain=NSURLErrorDomain Code=-1003 "A server with the specified hostname could not be found." UserInfo={_kCFStreamErrorCodeKey=8, NSUnderlyingError=0x600001fdc180 {Error Domain=kCFErrorDomainCFNetwork Code=-1003 "(null)" UserInfo={_kCFStreamErrorCodeKey=8, _kCFStreamErrorDomainKey=12}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDownloadTask &lt;3109D0D9-C5AA-456D-8A15-B6DFB23DA3B8&gt;.&lt;1&gt;, _NSURLErrorRelatedURLSessionTaskError </code></pre></div> <p dir="auto">More importantly, we now have '5' documents in Firestore - it appears that when in offline mode, for each retry that the local client sdk does, it stores the document that many times in Firestore and thus causes duplicates - we were only expecting <strong>ONE</strong> document to be added in Firestore.</p> <p dir="auto"><strong>We therefore have two issues</strong></p> <ol dir="auto"> <li>Our stream gets a new event from the client cache for each time it trys to add to cloud firestore</li> <li>Cloud firestore incorrectly batches all the retries for the same document and duplicates the data on cloud firestore</li> </ol> <p dir="auto"><strong>For issue 1</strong><br> We are yet to find a workaround</p> <p dir="auto"><strong>For issue 2</strong><br> Ideally we would like to be able to interrogate something like a <strong><em>querysnapshot meta data</em></strong> and determine if the event that we receive from the stream is from the local cache , if so - we would check to see if we have already shown the new item in our listview and if so, just ignore the event., However - we cannot find anything that will give us access to this information.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/18722796/48225805-cd5f3080-e395-11e8-9f20-3de2dda1da94.gif"><img src="https://user-images.githubusercontent.com/18722796/48225805-cd5f3080-e395-11e8-9f20-3de2dda1da94.gif" alt="firestore" data-animated-image="" style="max-width: 100%;"></a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/18722796/48225762-adc80800-e395-11e8-9198-fc3e14df58c2.png"><img src="https://user-images.githubusercontent.com/18722796/48225762-adc80800-e395-11e8-9198-fc3e14df58c2.png" alt="image" style="max-width: 100%;"></a></p>
0
<p dir="auto">Looking for a way to get a parsed <code class="notranslate">deno info</code> object in user.land. Is there a way to avoid implementing it?</p>
<p dir="auto">JavaScript in the browser does not check imports for environmental (ex: dom use in workers) errors. Deno, however, by default does. This creates problems for browser based code running in deno. We need a flag to skip this checking so that deno behaves like the browser.</p> <p dir="auto">Example: I have a large utilities file which includes both vanilla JS exports and dom exports. Many of the"apps" using this run in both workers and in the main thread even tho the utilities library uses the dom. This is possible because imports are not error-checked at load time, but naturally fail at run-time if a worker asks for a dom utility.</p> <p dir="auto">Load-time checking would require duplicating the apps, one for workers, another for main thread browser apps.</p> <p dir="auto">I believe run-time failure is the standard, thus making this worker/main-thread sharing possible.</p> <p dir="auto">So when I run an app in deno that uses no dom utility, I still get:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: Uncaught ReferenceError: document is not defined const can = document.createElement('canvas')"><pre class="notranslate"><code class="notranslate">error: Uncaught ReferenceError: document is not defined const can = document.createElement('canvas') </code></pre></div> <p dir="auto">.. i.e. is a load-time error rather than a run-time error.</p> <p dir="auto">I believe this may be common for devs wishing to run their modern JS apps in places other than the browser such as node, deno, bun and others.</p> <p dir="auto">Thus the need for an option for run-time errors rather than load-time pre-checking.</p>
0
<p dir="auto">!TypeError: Path must be a string. Received null! when trying to debug in Node using VSC Insiders. Works fine in regular VSC.</p>
<p dir="auto">Using VSCode 0.10.10-insider on Windows 7</p> <p dir="auto">I can no longer debug my JavaScript in this build. It just throws this error</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/563860/13458737/2bef9a1e-e0c3-11e5-82fa-0e1dae4e271c.PNG"><img src="https://cloud.githubusercontent.com/assets/563860/13458737/2bef9a1e-e0c3-11e5-82fa-0e1dae4e271c.PNG" alt="capture" style="max-width: 100%;"></a></p> <p dir="auto">Falling back to the 0.10.8 release on the "stable" channel, I can debug this project again. I could also debug this project with the previous insiders build.</p> <p dir="auto">To reproduce:</p> <ol dir="auto"> <li>Clone my repo <a href="https://github.com/jumpinjackie/jsdoc-typescript-plugin">https://github.com/jumpinjackie/jsdoc-typescript-plugin</a></li> <li><code class="notranslate">npm install</code></li> <li><code class="notranslate">npm run-script tsc</code></li> <li>Open this clone dir in VSCode 0.10.10-insider</li> <li>Start debugging with the provided launch.json</li> </ol> <p dir="auto">As an aside, it would be nice for such errors to present an option to show the stack trace as well, because I have no clue where to even look to determine the cause of this problem.</p>
1
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import require = require('collisionExportsRequireAndAlias_file1'); // Error //!!! Duplicate identifier 'require'. Compiler reserves name 'require' in top level scope of an external module. import exports = require('collisionExportsRequireAndAlias_file11'); // Error //!!! Duplicate identifier 'exports'. Compiler reserves name 'exports' in top level scope of an external module."><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-en">require</span> <span class="pl-c1">=</span> require<span class="pl-kos">(</span><span class="pl-s">'collisionExportsRequireAndAlias_file1'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Error</span> <span class="pl-c">//!!! Duplicate identifier 'require'. Compiler reserves name 'require' in top level scope of an external module.</span> <span class="pl-k">import</span> <span class="pl-s1">exports</span> <span class="pl-c1">=</span> require<span class="pl-kos">(</span><span class="pl-s">'collisionExportsRequireAndAlias_file11'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Error</span> <span class="pl-c">//!!! Duplicate identifier 'exports'. Compiler reserves name 'exports' in top level scope of an external module.</span></pre></div> <p dir="auto">Expected: errors above<br> Actual: no errors</p> <p dir="auto">See related testcases for other examples of where this is an error linked in TC ID field:<br> collisionExportsRequireAndClass.errors.txt<br> collisionExportsRequireAndEnum.errors.txt<br> collisionExportsRequireAndFunction.errors.txt<br> collisionExportsRequireAndModule.errors.txt<br> collisionExportsRequireAndVar.errors.txt<br> collisionRestParameterArrowFunctions.errors.txt</p>
<p dir="auto"><strong>TypeScript Version:</strong></p> <p dir="auto">1.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="// A self-contained demonstration of the problem follows... function createDefaultProperties(): { [name: string]: any } { const startTime = Date.now(); let eventCounter = 0; return { get ['common.sequenceId']() { return eventCounter++; }, get timestamp() { return new Date(); }, get ['common.timesincesessionstart']() { return Date.now() - startTime; } }; }"><pre class="notranslate"><span class="pl-c">// A self-contained demonstration of the problem follows...</span> <span class="pl-k">function</span> <span class="pl-en">createDefaultProperties</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">name</span>: <span class="pl-smi">string</span><span class="pl-kos">]</span>: <span class="pl-smi">any</span> <span class="pl-kos">}</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">startTime</span> <span class="pl-c1">=</span> <span class="pl-smi">Date</span><span class="pl-kos">.</span><span class="pl-en">now</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">eventCounter</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-kos">{</span> <span class="pl-k">get</span> <span class="pl-kos">[</span><span class="pl-s">'common.sequenceId'</span><span class="pl-kos">]</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">eventCounter</span><span class="pl-c1">++</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-k">get</span> <span class="pl-en">timestamp</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-smi">Date</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">get</span> <span class="pl-kos">[</span><span class="pl-s">'common.timesincesessionstart'</span><span class="pl-kos">]</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-smi">Date</span><span class="pl-kos">.</span><span class="pl-en">now</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">-</span> <span class="pl-s1">startTime</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> <ul dir="auto"> <li>open playground website</li> <li>paste code above</li> <li>it crashes like so:</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Object {stack: &quot;TypeError: Cannot read property 'declarations' of …script/common/lib/typescriptServices.js:19:13310)&quot;, message: &quot;TypeError: Cannot read property 'declarations' of undefined&quot;} message : &quot;TypeError: Cannot read property 'declarations' of undefined&quot; stack : &quot;TypeError: Cannot read property 'declarations' of undefined↵ at e.checkNode (https://www.typescriptlang.org/play/Script/vs/languages/typescript/common/typescriptWorker2.js:1:30909)↵ at t.e._checkNodeOrToken (https://www.typescriptlang.org/play/Script/vs/languages/typescript/common/typescriptWorker2.js:2:2107)↵ at t.e._visit (https://www.typescriptlang.org/play/Script/vs/languages/typescript/common/typescriptWorker2.js:2:1801)↵ at https://www.typescriptlang.org/play/Script/vs/languages/typescript/common/typescriptWorker2.js:2:1853↵ at r (https://www.typescriptlang.org/play/Script/vs/languages/typescript/common/lib/typescriptServices.js:19:10966)↵ at Object.i [as forEachChild] (https://www.typescriptlang.org/play/Script/vs/languages/typescript/common/lib/typescriptServices.js:19:14002)↵ at t.e._visit (https://www.typescriptlang.org/play/Script/vs/languages/typescript/common/typescriptWorker2.js:2:1824)↵ at https://www.typescriptlang.org/play/Script/vs/languages/typescript/common/typescriptWorker2.js:2:1853↵ at a (https://www.typescriptlang.org/play/Script/vs/languages/typescript/common/lib/typescriptServices.js:19:11081)↵ at Object.i [as forEachChild] (https://www.typescriptlang.org/play/Script/vs/languages/typescript/common/lib/typescriptServices.js:19:13310)&quot; __proto__ : Object"><pre class="notranslate"><code class="notranslate">Object {stack: "TypeError: Cannot read property 'declarations' of …script/common/lib/typescriptServices.js:19:13310)", message: "TypeError: Cannot read property 'declarations' of undefined"} message : "TypeError: Cannot read property 'declarations' of undefined" stack : "TypeError: Cannot read property 'declarations' of undefined↵ at e.checkNode (https://www.typescriptlang.org/play/Script/vs/languages/typescript/common/typescriptWorker2.js:1:30909)↵ at t.e._checkNodeOrToken (https://www.typescriptlang.org/play/Script/vs/languages/typescript/common/typescriptWorker2.js:2:2107)↵ at t.e._visit (https://www.typescriptlang.org/play/Script/vs/languages/typescript/common/typescriptWorker2.js:2:1801)↵ at https://www.typescriptlang.org/play/Script/vs/languages/typescript/common/typescriptWorker2.js:2:1853↵ at r (https://www.typescriptlang.org/play/Script/vs/languages/typescript/common/lib/typescriptServices.js:19:10966)↵ at Object.i [as forEachChild] (https://www.typescriptlang.org/play/Script/vs/languages/typescript/common/lib/typescriptServices.js:19:14002)↵ at t.e._visit (https://www.typescriptlang.org/play/Script/vs/languages/typescript/common/typescriptWorker2.js:2:1824)↵ at https://www.typescriptlang.org/play/Script/vs/languages/typescript/common/typescriptWorker2.js:2:1853↵ at a (https://www.typescriptlang.org/play/Script/vs/languages/typescript/common/lib/typescriptServices.js:19:11081)↵ at Object.i [as forEachChild] (https://www.typescriptlang.org/play/Script/vs/languages/typescript/common/lib/typescriptServices.js:19:13310)" __proto__ : Object </code></pre></div>
0
<h3 dir="auto">Describe the workflow you want to enable</h3> <p dir="auto">As a user who specify weighted metrics/scoring such as balanced accuracy, I would like the scoring <code class="notranslate">GridSearchCV</code> uses for optimising and <code class="notranslate">best_score_</code> to be weighted as well. Based on current documentation, I think it is currently simply a mean, so I do not aware if this has been tackled/asked before.</p> <p dir="auto">I am thinking about this since my data is imbalanced, and saw <a href="https://stackoverflow.com/questions/47572191/scikit-learn-scoring-in-gridsearchcv" rel="nofollow">this</a> post in SO too.</p> <p dir="auto">The mean seems to work fine when <code class="notranslate">StratifiedKFold</code> with minority class is multiple of <code class="notranslate">K</code>. If not (where the number minority class in each fold can be different) the scoring could be different with the 'combined scoring'. However, this is not as severe as doing this in <code class="notranslate">LeaveOneOut</code>.</p> <h3 dir="auto">Describe your proposed solution</h3> <p dir="auto">When the user specify built-in weighted scoring, record the validation results for all folds and calculate scoring from combined validation result.</p> <p dir="auto">This can be default behavior or an option to turn this on/off. However, I couldn't see why people who specify weighted metrics want to turn this off.</p> <h3 dir="auto">Describe alternatives you've considered, if relevant</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Additional context</h3> <p dir="auto"><em>No response</em></p>
<h4 dir="auto">Description</h4> <p dir="auto"><code class="notranslate">GridSearchCV</code> and <code class="notranslate">RandomizedSearchCV</code> do not allow for passing parameters to the <code class="notranslate">scorer</code> function. This could be made possible by adding an extra <code class="notranslate">scorer_params</code>, similar to the <code class="notranslate">fit_params</code> argument.</p> <p dir="auto">For consistency with <code class="notranslate">fit_params</code>, special care would have to be paid to sample weights. Weights fed through <code class="notranslate">fit_params</code> are currently well-distributed across training folds. Similarly, weights fed through <code class="notranslate">scorer_params</code> would have to be distributed across validation folds.</p> <p dir="auto">Is adding this feature under consideration?</p> <p dir="auto">If not, should I give it a try?</p> <p dir="auto">(Nota: follow-up issue to the closed <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="198979024" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/8156" data-hovercard-type="issue" data-hovercard-url="/scikit-learn/scikit-learn/issues/8156/hovercard" href="https://github.com/scikit-learn/scikit-learn/issues/8156">#8156</a>. I believed the change in focus required a new thread.)</p>
1